domutils
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -37,2 +37,3 @@ /** | ||
childs[childs.lastIndexOf(elem)] = replacement; | ||
elem.parent = null; | ||
} | ||
@@ -39,0 +40,0 @@ } |
@@ -52,5 +52,5 @@ import { Element, AnyNode } from "domhandler"; | ||
/** | ||
* Search and array of nodes and its children for nodes passing a test function. | ||
* Search and array of nodes and its children for elements passing a test function. | ||
* | ||
* Same as `find`, only with less options, leading to reduced complexity. | ||
* Same as `find`, but limited to elements and with less options, leading to reduced complexity. | ||
* | ||
@@ -57,0 +57,0 @@ * @category Querying |
@@ -77,3 +77,3 @@ import { isTag, hasChildren } from "domhandler"; | ||
else if (recurse && checked.children.length > 0) { | ||
elem = findOne(test, checked.children); | ||
elem = findOne(test, checked.children, true); | ||
} | ||
@@ -96,5 +96,5 @@ } | ||
/** | ||
* Search and array of nodes and its children for nodes passing a test function. | ||
* Search and array of nodes and its children for elements passing a test function. | ||
* | ||
* Same as `find`, only with less options, leading to reduced complexity. | ||
* Same as `find`, but limited to elements and with less options, leading to reduced complexity. | ||
* | ||
@@ -101,0 +101,0 @@ * @category Querying |
@@ -41,2 +41,3 @@ "use strict"; | ||
childs[childs.lastIndexOf(elem)] = replacement; | ||
elem.parent = null; | ||
} | ||
@@ -43,0 +44,0 @@ } |
@@ -52,5 +52,5 @@ import { Element, AnyNode } from "domhandler"; | ||
/** | ||
* Search and array of nodes and its children for nodes passing a test function. | ||
* Search and array of nodes and its children for elements passing a test function. | ||
* | ||
* Same as `find`, only with less options, leading to reduced complexity. | ||
* Same as `find`, but limited to elements and with less options, leading to reduced complexity. | ||
* | ||
@@ -57,0 +57,0 @@ * @category Querying |
@@ -87,3 +87,3 @@ "use strict"; | ||
else if (recurse && checked.children.length > 0) { | ||
elem = findOne(test, checked.children); | ||
elem = findOne(test, checked.children, true); | ||
} | ||
@@ -110,5 +110,5 @@ } | ||
/** | ||
* Search and array of nodes and its children for nodes passing a test function. | ||
* Search and array of nodes and its children for elements passing a test function. | ||
* | ||
* Same as `find`, only with less options, leading to reduced complexity. | ||
* Same as `find`, but limited to elements and with less options, leading to reduced complexity. | ||
* | ||
@@ -115,0 +115,0 @@ * @category Querying |
{ | ||
"name": "domutils", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Utilities for working with htmlparser2's dom", | ||
@@ -34,2 +34,3 @@ "author": "Felix Boehm <me@feedic.com>", | ||
"build:esm": "npm run build:cjs -- --module esnext --target es2019 --outDir lib/esm && echo '{\"type\":\"module\"}' > lib/esm/package.json", | ||
"build:docs": "typedoc --hideGenerator --exclude \"**/*+(index|.spec).ts\" --categorizeByGroup false --sort enum-value-ascending --sort alphabetical src", | ||
"prepare": "npm run build" | ||
@@ -36,0 +37,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
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
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
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
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
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
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
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
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
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
154694
2672