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 1515
1616module . exports = color ? inspect : /* istanbul ignore next */ noColor ;
1717
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 ;
2022
2123var dim = ansiColor ( 2 , 22 ) ;
2224var yellow = ansiColor ( 33 , 39 ) ;
@@ -65,7 +67,7 @@ function inspect(node, pad) {
6567 var index ;
6668 var length ;
6769
68- if ( node && node . length && typeof node !== 'string' ) {
70+ if ( node && Boolean ( node . length ) && typeof node !== 'string' ) {
6971 length = node . length ;
7072 index = - 1 ;
7173 result = [ ] ;
Original file line number Diff line number Diff line change 1919 " index.js"
2020 ],
2121 "dependencies" : {
22- "is-empty" : " ^1.0.0"
22+ "is-empty" : " ^1.0.0" ,
23+ "rehype-parse" : " ^3.1.0"
2324 },
2425 "devDependencies" : {
2526 "browserify" : " ^14.0.0" ,
2627 "chalk" : " ^1.0.0" ,
2728 "esmangle" : " ^1.0.1" ,
28- "nyc" : " ^10 .0.0" ,
29+ "nyc" : " ^11 .0.0" ,
2930 "remark-cli" : " ^3.0.0" ,
30- "remark-preset-wooorm" : " ^2 .0.0" ,
31+ "remark-preset-wooorm" : " ^3 .0.0" ,
3132 "retext" : " ^5.0.0" ,
3233 "tape" : " ^4.4.0" ,
33- "xo" : " ^0.17.1 "
34+ "xo" : " ^0.18.2 "
3435 },
3536 "scripts" : {
3637 "build-md" : " remark . -qfo" ,
4445 },
4546 "xo" : {
4647 "space" : true ,
48+ "esnext" : false ,
4749 "rules" : {
48- "unicorn/explicit-length-check" : " off" ,
4950 "guard-for-in" : " off"
5051 },
5152 "ignore" : [
5960 "branches" : 100
6061 },
6162 "remarkConfig" : {
62- "plugins" : [" preset-wooorm" ]
63+ "plugins" : [
64+ " preset-wooorm"
65+ ]
6366 }
6467}
You can’t perform that action at this time.
0 commit comments