Skip to content

Commit 42638e2

Browse files
committed
Update dev-dependencies
1 parent 2b27ce7 commit 42638e2

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

lib/all.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,11 @@ module.exports = all
66

77
// Serialize all children of `parent`.
88
function all(parent, config) {
9-
var children = parent && parent.children
10-
var length = children && children.length
9+
var children = (parent && parent.children) || []
1110
var index = -1
1211
var results = []
1312

14-
while (++index < length) {
13+
while (++index < children.length) {
1514
results[index] = one(children[index], config)
1615
}
1716

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"tape": "^5.0.0",
4242
"unist-builder": "^2.0.0",
4343
"xastscript": "^2.0.0",
44-
"xo": "^0.35.0"
44+
"xo": "^0.38.0"
4545
},
4646
"scripts": {
4747
"format": "remark . -qfo && prettier . --write --loglevel warn && xo --fix",

0 commit comments

Comments
 (0)