File tree Expand file tree Collapse file tree 2 files changed +14
-9
lines changed Expand file tree Collapse file tree 2 files changed +14
-9
lines changed Original file line number Diff line number Diff line change 15
15
16
16
module . exports = color ? inspect : /* istanbul ignore next */ noColor ;
17
17
18
- inspect . color = noColor . color = inspect ;
19
- inspect . noColor = noColor . noColor = noColor ;
18
+ inspect . color = inspect ;
19
+ noColor . color = inspect ;
20
+ inspect . noColor = noColor ;
21
+ noColor . noColor = noColor ;
20
22
21
23
var dim = ansiColor ( 2 , 22 ) ;
22
24
var yellow = ansiColor ( 33 , 39 ) ;
@@ -65,7 +67,7 @@ function inspect(node, pad) {
65
67
var index ;
66
68
var length ;
67
69
68
- if ( node && node . length && typeof node !== 'string' ) {
70
+ if ( node && Boolean ( node . length ) && typeof node !== 'string' ) {
69
71
length = node . length ;
70
72
index = - 1 ;
71
73
result = [ ] ;
Original file line number Diff line number Diff line change 19
19
" index.js"
20
20
],
21
21
"dependencies" : {
22
- "is-empty" : " ^1.0.0"
22
+ "is-empty" : " ^1.0.0" ,
23
+ "rehype-parse" : " ^3.1.0"
23
24
},
24
25
"devDependencies" : {
25
26
"browserify" : " ^14.0.0" ,
26
27
"chalk" : " ^1.0.0" ,
27
28
"esmangle" : " ^1.0.1" ,
28
- "nyc" : " ^10 .0.0" ,
29
+ "nyc" : " ^11 .0.0" ,
29
30
"remark-cli" : " ^3.0.0" ,
30
- "remark-preset-wooorm" : " ^2 .0.0" ,
31
+ "remark-preset-wooorm" : " ^3 .0.0" ,
31
32
"retext" : " ^5.0.0" ,
32
33
"tape" : " ^4.4.0" ,
33
- "xo" : " ^0.17.1 "
34
+ "xo" : " ^0.18.2 "
34
35
},
35
36
"scripts" : {
36
37
"build-md" : " remark . -qfo" ,
44
45
},
45
46
"xo" : {
46
47
"space" : true ,
48
+ "esnext" : false ,
47
49
"rules" : {
48
- "unicorn/explicit-length-check" : " off" ,
49
50
"guard-for-in" : " off"
50
51
},
51
52
"ignore" : [
59
60
"branches" : 100
60
61
},
61
62
"remarkConfig" : {
62
- "plugins" : [" preset-wooorm" ]
63
+ "plugins" : [
64
+ " preset-wooorm"
65
+ ]
63
66
}
64
67
}
You can’t perform that action at this time.
0 commit comments