File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ Yields:
51
51
map:
52
52
{ type: ' list' ,
53
53
ordered: false ,
54
- children: [ { type: ' listItem' , loose: true , children: [Object ] } ] } }
54
+ children: [ { type: ' listItem' , loose: true , children: [Array ] } ] } }
55
55
```
56
56
57
57
## API
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ function toc(node, options) {
27
27
var result = search ( node , heading , settings . maxDepth || 6 ) ;
28
28
var map = result . map ;
29
29
30
- result . map = map . length ? contents ( map , settings . tight ) : null ;
30
+ result . map = map . length === 0 ? null : contents ( map , settings . tight ) ;
31
31
32
32
/* No given heading */
33
33
if ( ! heading ) {
Original file line number Diff line number Diff line change 42
42
"browserify" : " ^16.2.1" ,
43
43
"esmangle" : " ^1.0.1" ,
44
44
"istanbul" : " ^0.4.4" ,
45
- "remark-attr" : " ^0.6.2 " ,
45
+ "remark-attr" : " ^0.7.0 " ,
46
46
"remark" : " ^10.0.0" ,
47
47
"remark-cli" : " ^6.0.0" ,
48
48
"remark-comment-config" : " ^5.0.0" ,
52
52
"remark-usage" : " ^6.0.0" ,
53
53
"remark-validate-links" : " ^7.0.0" ,
54
54
"tape" : " ^4.6.0" ,
55
- "xo" : " ^0.21.1 "
55
+ "xo" : " ^0.23.0 "
56
56
},
57
57
"xo" : {
58
58
"space" : 4 ,
You can’t perform that action at this time.
0 commit comments