Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@asamuzakjp/nwsapi

Package Overview
Dependencies
Maintainers
0
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@asamuzakjp/nwsapi - npm Package Compare versions

Comparing version 2.2.7 to 2.2.8

2

package.json
{
"name": "@asamuzakjp/nwsapi",
"version": "2.2.7",
"version": "2.2.8",
"description": "Fast CSS Selectors API Engine",

@@ -5,0 +5,0 @@ "homepage": "http://javascript.nwbox.com/nwsapi/",

/**
* Forked and modified from nwsapi@2.2.2
* - Export to cjs only
* - Use `let` and `const` as much as possible
* - Support complex selectors within `:is()`, `:not()` and `:where()`
* - Add ::slotted() to pseudo-elements list
* - Fix function source for :root, :target and :indeterminate pseudo-classes
* - Fix <ident-token>
* - Fix `:nth-of-type()`
* - Add ::slotted() to pseudo-elements list
* - Remove unused pseudo-classes
* - Export to cjs only
*/

@@ -541,3 +542,6 @@ /*

}
let e; let i; let j; let k; let l; const name = element.localName;
let e; let i; let j; let k; let l;
const name = element.localName;
const prefix = element.prefix;
const nsURI = element.namespaceURI;
if (nodes[set] && nodes[set][name] && parent === element.parentElement) {

@@ -557,3 +561,10 @@ i = set; j = idx; l = len;

e = parent && parent.firstElementChild || element;
while (e) { if (e === element) j = l; if (e.localName == name) { nodes[i][name][l] = e; ++l; } e = e.nextElementSibling; }
while (e) {
if (e === element) j = l;
if (e.localName == name && e.prefix == prefix && e.namespaceURI == nsURI) {
nodes[i][name][l] = e;
++l;
}
e = e.nextElementSibling;
}
set = i; idx = j; len = l;

@@ -560,0 +571,0 @@ if (l < 2) return l;

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