@asamuzakjp/nwsapi
Advanced tools
Comparing version 2.2.7 to 2.2.8
{ | ||
"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; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
76957
1809