unist-util-select
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -7,4 +7,6 @@ 'use strict' | ||
var not = require('not') | ||
var is = require('unist-util-is') | ||
var convert = require('unist-util-is/convert') | ||
var is = convert() | ||
match.needsIndex = [ | ||
@@ -80,7 +82,7 @@ 'first-child', | ||
function root(query, node, index, parent) { | ||
return is(null, node) && !parent | ||
return is(node) && !parent | ||
} | ||
function scope(query, node, index, parent, state) { | ||
return is(null, node) && state.scopeNodes.indexOf(node) !== -1 | ||
return is(node) && state.scopeNodes.indexOf(node) !== -1 | ||
} | ||
@@ -87,0 +89,0 @@ |
{ | ||
"name": "unist-util-select", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Select unist nodes using css-like selectors", | ||
@@ -44,3 +44,3 @@ "license": "MIT", | ||
"nth-check": "^1.0.1", | ||
"unist-util-is": "^2.1.2", | ||
"unist-util-is": "^3.0.0", | ||
"zwitch": "^1.0.3" | ||
@@ -47,0 +47,0 @@ }, |
27116
604
+ Addedunist-util-is@3.0.0(transitive)
- Removedunist-util-is@2.1.3(transitive)
Updatedunist-util-is@^3.0.0