Skip to content

Commit 47538d5

Browse files
committed
Update dev-dependencies
1 parent c09308e commit 47538d5

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

index.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
module.exports = nlcstToString
44

55
// Stringify one nlcst node or list of nodes.
6-
function nlcstToString(node, separator) {
7-
var sep = separator || ''
6+
function nlcstToString(node, separator = '') {
87
var values
98
var length
109
var children
@@ -28,8 +27,8 @@ function nlcstToString(node, separator) {
2827
values = []
2928

3029
while (length--) {
31-
values[length] = nlcstToString(children[length], sep)
30+
values[length] = nlcstToString(children[length], separator)
3231
}
3332

34-
return values.join(sep)
33+
return values.join(separator)
3534
}

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
"files": [
2828
"index.js"
2929
],
30-
"dependencies": {},
3130
"devDependencies": {
3231
"browserify": "^17.0.0",
3332
"nyc": "^15.0.0",
@@ -37,7 +36,7 @@
3736
"tape": "^5.0.0",
3837
"tinyify": "^3.0.0",
3938
"unist-builder": "^2.0.0",
40-
"xo": "^0.35.0"
39+
"xo": "^0.38.0"
4140
},
4241
"scripts": {
4342
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",

0 commit comments

Comments
 (0)