Skip to content

Commit 697da23

Browse files
committed
Update dev-dependencies
1 parent 6cd9d72 commit 697da23

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ function fromXml(doc) {
3030

3131
return stack[0]
3232

33-
function onerror(err) {
34-
var index = err.message.indexOf('\nLine')
33+
function onerror(error) {
34+
var index = error.message.indexOf('\nLine')
3535
/* istanbul ignore next
3636
* - The substring should always be included, but this guards against
3737
* changes in newer sax versions */
38-
fail(index === -1 ? err.message : err.message.slice(0, index), 'sax')
38+
fail(index === -1 ? error.message : error.message.slice(0, index), 'sax')
3939
}
4040

4141
function onsgmldeclaration() {

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"remark-cli": "^9.0.0",
4444
"remark-preset-wooorm": "^8.0.0",
4545
"tape": "^5.0.0",
46-
"xo": "^0.34.0"
46+
"xo": "^0.38.0"
4747
},
4848
"scripts": {
4949
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",

test/index.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,12 @@ test('xast-util-from-xml', function (t) {
208208

209209
test('fixtures', function (t) {
210210
var base = join('test', 'fixtures')
211+
var files = fs.readdirSync(base).filter(negate(hidden))
212+
var index = -1
211213

212-
fs.readdirSync(base).filter(negate(hidden)).forEach(each)
214+
while (++index < files.length) {
215+
each(files[index])
216+
}
213217

214218
t.end()
215219

0 commit comments

Comments
 (0)