node-html-parser 6.1.3 → 6.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [6.1.4](https://github.com/taoqf/node-fast-html-parser/compare/v6.1.3...v6.1.4) (2022-11-15)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * [#224](https://github.com/taoqf/node-fast-html-parser/issues/224) ([0719bf0](https://github.com/taoqf/node-fast-html-parser/commit/0719bf031c3fec51611f9dff922f46bfe4acb060))
11
+
5
12
  ### [6.1.3](https://github.com/taoqf/node-fast-html-parser/compare/v6.1.2...v6.1.3) (2022-11-14)
6
13
 
7
14
  ### [6.1.2](https://github.com/taoqf/node-fast-html-parser/compare/v6.1.1...v6.1.2) (2022-11-14)
package/dist/main.js CHANGED
@@ -164,7 +164,7 @@ define("matcher", ["require", "exports", "nodes/type"], function (require, expor
164
164
  }
165
165
  function getSiblings(node) {
166
166
  var parent = getParent(node);
167
- return parent && getChildren(parent);
167
+ return parent ? getChildren(parent) : [];
168
168
  }
169
169
  function hasAttrib(elem, name) {
170
170
  return getAttributeValue(elem, name) !== undefined;
package/dist/matcher.js CHANGED
@@ -56,7 +56,7 @@ function existsOne(test, elems) {
56
56
  }
57
57
  function getSiblings(node) {
58
58
  var parent = getParent(node);
59
- return parent && getChildren(parent);
59
+ return parent ? getChildren(parent) : [];
60
60
  }
61
61
  function hasAttrib(elem, name) {
62
62
  return getAttributeValue(elem, name) !== undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-html-parser",
3
- "version": "6.1.3",
3
+ "version": "6.1.4",
4
4
  "description": "A very fast HTML parser, generating a simplified DOM, with basic element query support.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",