File tree 2 files changed +5
-11
lines changed
2 files changed +5
-11
lines changed Original file line number Diff line number Diff line change 1
1
/**
2
- * @typedef {import('mdast').Content } Content
3
- * @typedef {import('mdast').Root } Root
4
- */
5
-
6
- // To do: when `mdast` is released, use `Nodes`.
7
- /**
8
- * @typedef {Content | Root } Node
2
+ * @typedef {import('mdast').Nodes } Nodes
9
3
*/
10
4
11
5
import { ok as assert } from 'devlop'
@@ -14,7 +8,7 @@ import {visit} from 'unist-util-visit'
14
8
/**
15
9
* Make an mdast tree compact by merging adjacent text nodes and block quotes.
16
10
*
17
- * @param {Node } tree
11
+ * @param {Nodes } tree
18
12
* Tree to change.
19
13
* @returns {undefined }
20
14
* Nothing.
Original file line number Diff line number Diff line change 32
32
" index.js"
33
33
],
34
34
"dependencies" : {
35
- "@types/mdast" : " ^3 .0.0" ,
35
+ "@types/mdast" : " ^4 .0.0" ,
36
36
"devlop" : " ^1.0.0" ,
37
- "unist-util-visit" : " ^4 .0.0"
37
+ "unist-util-visit" : " ^5 .0.0"
38
38
},
39
39
"devDependencies" : {
40
40
"@types/node" : " ^20.0.0" ,
44
44
"remark-preset-wooorm" : " ^9.0.0" ,
45
45
"type-coverage" : " ^2.0.0" ,
46
46
"typescript" : " ^5.0.0" ,
47
- "unist-builder" : " ^3 .0.0" ,
47
+ "unist-builder" : " ^4 .0.0" ,
48
48
"xo" : " ^0.54.0"
49
49
},
50
50
"scripts" : {
You can’t perform that action at this time.
0 commit comments