New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@asamuzakjp/dom-selector

Package Overview
Dependencies
Maintainers
1
Versions
193
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.19.1 to 0.19.2

4

package.json

@@ -32,3 +32,3 @@ {

"eslint-config-standard": "^17.1.0",
"eslint-plugin-jsdoc": "^46.2.6",
"eslint-plugin-jsdoc": "^46.3.0",
"eslint-plugin-regexp": "^1.15.0",

@@ -50,3 +50,3 @@ "eslint-plugin-unicorn": "^47.0.0",

},
"version": "0.19.1"
"version": "0.19.2"
}

@@ -11,3 +11,3 @@ # DOM Selector

Retrieve DOM node from the given CSS selector.
Retrieve DOM node from the given CSS selector.
**Experimental**

@@ -42,3 +42,3 @@

Returns **[boolean][61]** `true` if matched `false` otherwise
Returns **[boolean][61]** `true` if matched, `false` otherwise

@@ -76,3 +76,3 @@

querySelectorAll - same functionality as [Document.querySelectorAll()][69], [DocumentFragment.querySelectorAll()][70], [Element.querySelectorAll()][71]
querySelectorAll - same functionality as [Document.querySelectorAll()][69], [DocumentFragment.querySelectorAll()][70], [Element.querySelectorAll()][71]
**NOTE**: returns Array, not NodeList

@@ -79,0 +79,0 @@

@@ -0,12 +1,13 @@

export function matches(selector: string, node: object, opt?: {
warn?: boolean;
}): boolean;
export function closest(selector: string, node: object, opt?: {
warn?: object;
warn?: boolean;
}): object | null;
export function matches(selector: string, node: object, opt?: {
warn?: object;
}): boolean;
export function querySelector(selector: string, refPoint: object, opt?: {
warn?: object;
warn?: boolean;
}): object | null;
export function querySelectorAll(selector: string, refPoint: object, opt?: {
warn?: object;
sort?: boolean;
warn?: boolean;
}): Array<object | undefined>;

@@ -0,3 +1,9 @@

export function isContentEditable(node?: object): boolean;
export function isNamespaceDeclared(ns?: string, node?: object): boolean;
export function isDescendant(node?: object, root?: object): boolean;
export function unescapeSelector(selector?: string): string | null;
export function parseASTName(name: string, node?: object): object;
export class Matcher {
constructor(selector: string, node: object, opt?: {
sort?: boolean;
warn?: boolean;

@@ -47,6 +53,1 @@ });

}
export function isContentEditable(node?: object): boolean;
export function isDescendant(node?: object, root?: object): boolean;
export function isNamespaceDeclared(ns?: string, node?: object): boolean;
export function parseASTName(name: string, node?: object): object;
export function unescapeSelector(selector?: string): string | null;

@@ -1,5 +0,4 @@

import { generate } from "css-tree";
export function preprocess(...args: any[]): string;
export function parseSelector(selector: string): object;
export function preprocess(...args: any[]): string;
export function walkAST(ast?: object): Array<object | undefined>;
export { generate as generateCSS };
export { generate as generateCSS } from "css-tree";

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

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