🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@asamuzakjp/dom-selector

Package Overview
Dependencies
Maintainers
1
Versions
216
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@asamuzakjp/dom-selector - npm Package Compare versions

Comparing version

to
0.6.2

2

package.json

@@ -43,3 +43,3 @@ {

},
"version": "0.6.1"
"version": "0.6.2"
}

@@ -1340,11 +1340,9 @@ /**

const arr = this._match(this.#ast, this.#node);
let res;
if (arr.length) {
const [i, j] = arr;
if (i !== this.#node && i.nodeType === ELEMENT_NODE) {
res = i;
} else if (j) {
res = j;
const i = arr.findIndex(node => node === this.#node);
if (i >= 0) {
arr.splice(i, 1);
}
}
const [res] = arr;
return res || null;

@@ -1351,0 +1349,0 @@ }