New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

unist-util-select

Package Overview
Dependencies
Maintainers
2
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unist-util-select - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

8

lib/pseudo.js

@@ -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 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc