Comparing version 3.2.1 to 3.2.2
@@ -89,3 +89,5 @@ import { isTag, hasChildren } from "domhandler"; | ||
if (recurse && hasChildren(node) && node.children.length > 0) { | ||
return findOne(test, node.children, true); | ||
const found = findOne(test, node.children, true); | ||
if (found) | ||
return found; | ||
} | ||
@@ -92,0 +94,0 @@ } |
@@ -100,3 +100,5 @@ "use strict"; | ||
if (recurse && (0, domhandler_1.hasChildren)(node) && node.children.length > 0) { | ||
return findOne(test, node.children, true); | ||
var found = findOne(test, node.children, true); | ||
if (found) | ||
return found; | ||
} | ||
@@ -103,0 +105,0 @@ } |
{ | ||
"name": "domutils", | ||
"version": "3.2.1", | ||
"version": "3.2.2", | ||
"description": "Utilities for working with htmlparser2's dom", | ||
@@ -52,5 +52,5 @@ "author": "Felix Boehm <me@feedic.com>", | ||
"@types/jest": "^29.5.14", | ||
"@types/node": "^22.10.2", | ||
"@typescript-eslint/eslint-plugin": "^8.18.1", | ||
"@typescript-eslint/parser": "^8.18.1", | ||
"@types/node": "^22.10.5", | ||
"@typescript-eslint/eslint-plugin": "^8.19.0", | ||
"@typescript-eslint/parser": "^8.19.0", | ||
"eslint": "^8.57.1", | ||
@@ -63,3 +63,3 @@ "eslint-config-prettier": "^9.1.0", | ||
"ts-jest": "^29.2.5", | ||
"typedoc": "^0.27.5", | ||
"typedoc": "^0.27.6", | ||
"typescript": "^5.7.2" | ||
@@ -66,0 +66,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
166738
2854