Skip to content

Commit 7d3dee2

Browse files
committed
Update unist-util-is
1 parent 20ef6ca commit 7d3dee2

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
'use strict'
22

3-
var is = require('unist-util-is')
3+
var convert = require('unist-util-is/convert')
44

55
module.exports = findAllAfter
66

77
function findAllAfter(parent, index, test) {
8+
var is = convert(test)
89
var results = []
910
var children
1011
var child
@@ -28,7 +29,7 @@ function findAllAfter(parent, index, test) {
2829
while (++index < length) {
2930
child = children[index]
3031

31-
if (is(test, child, index, parent)) {
32+
if (is(child, index, parent)) {
3233
results.push(child)
3334
}
3435
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"Titus Wormer <[email protected]> (https://wooorm.com)"
1919
],
2020
"dependencies": {
21-
"unist-util-is": "^2.0.0"
21+
"unist-util-is": "^3.0.0"
2222
},
2323
"devDependencies": {
2424
"browserify": "^16.0.0",

0 commit comments

Comments
 (0)