Socket
Socket
Sign inDemoInstall

esquery

Package Overview
Dependencies
1
Maintainers
2
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.1.0

8

esquery.js

@@ -97,3 +97,4 @@ /* vim: set sw=4 sts=4 : */

},
leave: function () { a.shift(); }
leave: function () { a.shift(); },
fallback: 'iteration'
});

@@ -228,3 +229,3 @@ }

/*
* Determines if the given node has an asjacent sibling that matches the given selector.
* Determines if the given node has an adjacent sibling that matches the given selector.
*/

@@ -308,3 +309,4 @@ function adjacent(node, selector, ancestry, side) {

},
leave: function () { ancestry.shift(); }
leave: function () { ancestry.shift(); },
fallback: 'iteration'
});

@@ -311,0 +313,0 @@ return results;

{
"name": "esquery",
"preferGlobal": false,
"version": "1.0.1",
"version": "1.1.0",
"author": "Joel Feenstra <jrfeenst+esquery@gmail.com>",

@@ -6,0 +6,0 @@ "description": "A query library for ECMAScript AST using a CSS selector like query language.",

@@ -11,3 +11,3 @@ ESQuery is a library for querying the AST output by Esprima for patterns of syntax using a CSS style selector system. Check out the demo:

* attribute regex: `[attr=/foo.*/]`
* attribute conditons: `[attr!="foo"]`, `[attr>2]`, `[attr<3]`, `[attr>=2]`, or `[attr<=3]`
* attribute conditions: `[attr!="foo"]`, `[attr>2]`, `[attr<3]`, `[attr>=2]`, or `[attr<=3]`
* nested attribute: `[attr.level2="foo"]`

@@ -23,2 +23,3 @@ * field: `FunctionDeclaration > Identifier.id`

* [negation](http://dev.w3.org/csswg/selectors4/#negation-pseudo): `:not(ForStatement)`
* [has](https://drafts.csswg.org/selectors-4/#has-pseudo): `:has(ForStatement)`
* [matches-any](http://dev.w3.org/csswg/selectors4/#matches): `:matches([attr] > :first-child, :last-child)`

@@ -25,0 +26,0 @@ * [subject indicator](http://dev.w3.org/csswg/selectors4/#subject): `!IfStatement > [name="foo"]`

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc