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
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.17.0 to 0.18.0

5

package.json

@@ -36,5 +36,6 @@ {

"jsdom": "^22.1.0",
"linkedom": "^0.14.26",
"mocha": "^10.2.0",
"nwsapi": "^2.2.5",
"sinon": "^15.1.2",
"sinon": "^15.2.0",
"typescript": "^5.1.3"

@@ -49,3 +50,3 @@ },

},
"version": "0.17.0"
"version": "0.18.0"
}

52

types/js/matcher.d.ts

@@ -8,6 +8,31 @@ export class Matcher {

_prepare(selector?: string): any[];
_collectNthChild(anb: {
a: number;
b: number;
reverse?: boolean;
selector?: object;
}, node: object): object;
_collectNthOfType(anb: {
a: number;
b: number;
reverse?: boolean;
}, node: object): object;
_matchAnPlusB(ast: object, node: object, nthName: string): object;
_matchDirectionPseudoClass(ast: object, node: object): object | null;
_matchLanguagePseudoClass(ast: object, node: object): object | null;
_matchLogicalPseudoFunc(ast: object, node: object): object | null;
_matchPseudoClassSelector(ast: object, node: object): object;
_matchAttributeSelector(ast: object, node: object): object | null;
_matchClassSelector(ast: object, node: object): object | null;
_matchIDSelector(ast: object, node: object): object | null;
_matchPseudoElementSelector(ast: object, node: object): void;
_matchTypeSelector(ast: object, node: object): object | null;
_matchSelector(ast: object, node: object): object;
_matchLeaves(leaves: object, node: object): boolean;
_matchLeaves(leaves: any[], node: object): boolean;
_matchTwig(twig: object, node: object, opt?: {
find?: string;
}): object;
_findNodes(twig: object, range: string): object;
_collectNodes(range: string): any[];
_matchCombo(combo: object, prevNodes: object, nextNodes: object): object;
_matchNodes(range: string): object;

@@ -22,31 +47,6 @@ _find(range: string): object;

}
export function collectNthChild(anb?: {
a: number;
b: number;
reverse?: boolean;
selector?: string;
}, node?: object): object;
export function collectNthOfType(anb?: {
a: number;
b: number;
reverse?: boolean;
}, node?: object): object;
export function createSelectorForNode(node?: object): string | null;
export function isContentEditable(node?: object): boolean;
export function isDescendant(node?: object, root?: object): boolean;
export function isNamespaceDeclared(ns?: string, node?: object): boolean;
export function matchAnPlusB(nthName: string, ast?: object, node?: object): object;
export function matchAttributeSelector(ast?: object, node?: object): object | null;
export function matchClassSelector(ast?: object, node?: object): object | null;
export function matchCombinator(combo?: object, prevNodes?: object, nextNodes?: object, opt?: {
filter?: string;
}): object;
export function matchDirectionPseudoClass(ast?: object, node?: object): object | null;
export function matchIDSelector(ast?: object, node?: object): object | null;
export function matchLanguagePseudoClass(ast?: object, node?: object): object | null;
export function matchLogicalPseudoFunc(ast?: object, node?: object, refPoint?: object): object | null;
export function matchPseudoClassSelector(ast?: object, node?: object, refPoint?: object): object;
export function matchPseudoElementSelector(ast?: object, node?: object): void;
export function matchTypeSelector(ast?: object, node?: object): object | null;
export function parseASTName(name: string, node?: object): object;
export function unescapeSelector(selector?: string): string | null;

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