Socket
Socket
Sign inDemoInstall

@web/parse5-utils

Package Overview
Dependencies
Maintainers
7
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@web/parse5-utils - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

2

package.json
{
"name": "@web/parse5-utils",
"version": "2.0.0",
"version": "2.0.1",
"publishConfig": {

@@ -5,0 +5,0 @@ "access": "public"

@@ -218,3 +218,15 @@ /** @typedef {import('parse5').TreeAdapter} TreeAdapter */

}
const children = adapter.getChildNodes(/** @type {ParentNode} */ (node));
/** @type {Node[]} */
let children = [];
if (adapter.isElementNode(node) && adapter.getTagName(node) === 'template') {
const content = adapter.getTemplateContent(node);
if (content) {
children = adapter.getChildNodes(content);
}
} else {
children = adapter.getChildNodes(/** @type {ParentNode} */ (node));
}
if (Array.isArray(children)) {

@@ -221,0 +233,0 @@ n.unshift(...children);

Sorry, the diff of this file is not supported yet

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