css-select
Advanced tools
Comparing version 4.1.2 to 4.1.3
@@ -11,5 +11,5 @@ import { InternalSelector } from "./types"; | ||
*/ | ||
export declare function compile<Node, ElementNode extends Node>(selector: string | Selector[][], options: InternalOptions<Node, ElementNode>, context?: Node[] | Node): CompiledQuery<ElementNode>; | ||
export declare function compile<Node, ElementNode extends Node>(selector: string | Selector[][], options: InternalOptions<Node, ElementNode>, context?: Node[] | Node): CompiledQuery<Node>; | ||
export declare function compileUnsafe<Node, ElementNode extends Node>(selector: string | Selector[][], options: InternalOptions<Node, ElementNode>, context?: Node[] | Node): CompiledQuery<ElementNode>; | ||
export declare function compileToken<Node, ElementNode extends Node>(token: InternalSelector[][], options: InternalOptions<Node, ElementNode>, context?: Node[] | Node): CompiledQuery<ElementNode>; | ||
//# sourceMappingURL=compile.d.ts.map |
@@ -6,3 +6,3 @@ import type { CompiledQuery, Options, Query, Adapter } from "./types"; | ||
*/ | ||
export declare const compile: <Node_1, ElementNode extends Node_1>(selector: string | import("css-what").Selector[][], options?: Options<Node_1, ElementNode> | undefined, context?: Node_1 | Node_1[] | undefined) => CompiledQuery<ElementNode>; | ||
export declare const compile: <Node_1, ElementNode extends Node_1>(selector: string | import("css-what").Selector[][], options?: Options<Node_1, ElementNode> | undefined, context?: Node_1 | Node_1[] | undefined) => CompiledQuery<Node_1>; | ||
export declare const _compileUnsafe: <Node_1, ElementNode extends Node_1>(selector: string | import("css-what").Selector[][], options?: Options<Node_1, ElementNode> | undefined, context?: Node_1 | Node_1[] | undefined) => CompiledQuery<ElementNode>; | ||
@@ -9,0 +9,0 @@ export declare const _compileToken: <Node_1, ElementNode extends Node_1>(selector: import("./types").InternalSelector[][], options?: Options<Node_1, ElementNode> | undefined, context?: Node_1 | Node_1[] | undefined) => CompiledQuery<ElementNode>; |
@@ -6,3 +6,3 @@ import { CompileToken } from "./../types"; | ||
export declare const PLACEHOLDER_ELEMENT: {}; | ||
export declare function ensureIsTag<Node, ElementNode extends Node>(next: CompiledQuery<ElementNode>, adapter: Adapter<Node, ElementNode>): CompiledQuery<ElementNode>; | ||
export declare function ensureIsTag<Node, ElementNode extends Node>(next: CompiledQuery<ElementNode>, adapter: Adapter<Node, ElementNode>): CompiledQuery<Node>; | ||
export declare type Subselect = <Node, ElementNode extends Node>(next: CompiledQuery<ElementNode>, subselect: Selector[][], options: InternalOptions<Node, ElementNode>, context: Node[] | undefined, compileToken: CompileToken<Node, ElementNode>) => CompiledQuery<ElementNode>; | ||
@@ -9,0 +9,0 @@ export declare function getNextSiblings<Node, ElementNode extends Node>(elem: Node, adapter: Adapter<Node, ElementNode>): ElementNode[]; |
@@ -15,3 +15,3 @@ "use strict"; | ||
if (next === boolbase_1.falseFunc) | ||
return next; | ||
return boolbase_1.falseFunc; | ||
return function (elem) { return adapter.isTag(elem) && next(elem); }; | ||
@@ -18,0 +18,0 @@ } |
{ | ||
"name": "css-select", | ||
"version": "4.1.2", | ||
"version": "4.1.3", | ||
"description": "a CSS selector compiler/engine", | ||
@@ -31,4 +31,5 @@ "author": "Felix Boehm <me@feedic.com>", | ||
"devDependencies": { | ||
"@types/boolbase": "^1.0.0", | ||
"@types/jest": "^26.0.14", | ||
"@types/node": "^14.14.41", | ||
"@types/node": "^15.0.2", | ||
"@typescript-eslint/eslint-plugin": "^4.1.0", | ||
@@ -41,5 +42,5 @@ "@typescript-eslint/parser": "^4.1.0", | ||
"htmlparser2": "^6.0.0", | ||
"jest": "^26.4.2", | ||
"jest": "^27.0.3", | ||
"prettier": "^2.1.2", | ||
"ts-jest": "^26.5.5", | ||
"ts-jest": "^27.0.1", | ||
"typescript": "^4.0.2" | ||
@@ -46,0 +47,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
77706
14