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

@asamuzakjp/dom-selector

Package Overview
Dependencies
Maintainers
1
Versions
191
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 0.6.1 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 @@ }

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