Skip to content

Commit e91d074

Browse files
committed
Update dev-dependencies
1 parent 1d295be commit e91d074

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

index.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ try {
1515

1616
module.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

2123
var dim = ansiColor(2, 22);
2224
var 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 = [];

package.json

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,19 @@
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",
@@ -44,8 +45,8 @@
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": [
@@ -59,6 +60,8 @@
5960
"branches": 100
6061
},
6162
"remarkConfig": {
62-
"plugins": ["preset-wooorm"]
63+
"plugins": [
64+
"preset-wooorm"
65+
]
6366
}
6467
}

0 commit comments

Comments
 (0)