Socket
Socket
Sign inDemoInstall

html-dom-parser

Package Overview
Dependencies
6
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.0.2 to 5.0.3

lib/types.d.ts

19

dist/html-dom-parser.js

@@ -44,2 +44,3 @@ (function (global, factory) {

if (tagName) {
/* istanbul ignore next */
html = "<".concat(tagName, ">").concat(html, "</").concat(tagName, ">");

@@ -619,3 +620,3 @@ }

if (parent === void 0) { parent = null; }
var result = [];
var domNodes = [];
var current;

@@ -649,3 +650,3 @@ var index = 0;

// set previous node next
var prev = result[index - 1] || null;
var prev = domNodes[index - 1] || null;
if (prev) {

@@ -658,14 +659,14 @@ prev.next = current;

current.next = null;
result.push(current);
domNodes.push(current);
}
if (directive) {
current = new ProcessingInstruction(directive.substring(0, directive.indexOf(' ')).toLowerCase(), directive);
current.next = result[0] || null;
current.next = domNodes[0] || null;
current.parent = parent;
result.unshift(current);
if (result[1]) {
result[1].prev = result[0];
domNodes.unshift(current);
if (domNodes[1]) {
domNodes[1].prev = domNodes[0];
}
}
return result;
return domNodes;
}

@@ -684,3 +685,3 @@

}
if (html === '') {
if (!html) {
return [];

@@ -687,0 +688,0 @@ }

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).HTMLDOMParser=t()}(this,(function(){"use strict";var e="html",t="head",n="body",r=/<([a-zA-Z]+[0-9]?)/,o=/<head[^]*>/i,i=/<body[^]*>/i,s=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},a=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},c="object"==typeof window&&window.DOMParser;if("function"==typeof c){var u=new c;s=a=function(e,t){return t&&(e="<".concat(t,">").concat(e,"</").concat(t,">")),u.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var l=document.implementation.createHTMLDocument();s=function(e,t){if(t){var n=l.documentElement.querySelector(t);return n&&(n.innerHTML=e),l}return l.documentElement.innerHTML=e,l}}var d,p,f="object"==typeof document&&document.createElement("template");f&&f.content&&(d=function(e){return f.innerHTML=e,f.content.childNodes}),function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(p||(p={})),p.Root,p.Text,p.Directive,p.Comment,p.Script,p.Style,p.Tag,p.CDATA,p.Doctype;class h{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return S(this,e)}}class m extends h{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}}class x extends m{constructor(){super(...arguments),this.type=p.Text}get nodeType(){return 3}}class y extends m{constructor(){super(...arguments),this.type=p.Comment}get nodeType(){return 8}}class v extends m{constructor(e,t){super(t),this.name=e,this.type=p.Directive}get nodeType(){return 1}}class g extends h{constructor(e){super(),this.children=e}get firstChild(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}}class b extends g{constructor(){super(...arguments),this.type=p.CDATA}get nodeType(){return 4}}class T extends g{constructor(){super(...arguments),this.type=p.Root}get nodeType(){return 9}}class w extends g{constructor(e,t,n=[],r=("script"===e?p.Script:"style"===e?p.Style:p.Tag)){super(n),this.name=e,this.attribs=t,this.type=r}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map((e=>{var t,n;return{name:e,value:this.attribs[e],namespace:null===(t=this["x-attribsNamespace"])||void 0===t?void 0:t[e],prefix:null===(n=this["x-attribsPrefix"])||void 0===n?void 0:n[e]}}))}}function C(e){return(t=e).type===p.Tag||t.type===p.Script||t.type===p.Style;var t}function S(e,t=!1){let n;if(function(e){return e.type===p.Text}(e))n=new x(e.data);else if(function(e){return e.type===p.Comment}(e))n=new y(e.data);else if(C(e)){const r=t?N(e.children):[],o=new w(e.name,{...e.attribs},r);r.forEach((e=>e.parent=o)),null!=e.namespace&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]={...e["x-attribsNamespace"]}),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]={...e["x-attribsPrefix"]}),n=o}else if(function(e){return e.type===p.CDATA}(e)){const r=t?N(e.children):[],o=new b(r);r.forEach((e=>e.parent=o)),n=o}else if(function(e){return e.type===p.Root}(e)){const r=t?N(e.children):[],o=new T(r);r.forEach((e=>e.parent=o)),e["x-mode"]&&(o["x-mode"]=e["x-mode"]),n=o}else{if(!function(e){return e.type===p.Directive}(e))throw new Error(`Not implemented yet: ${e.type}`);{const t=new v(e.name,e.data);null!=e["x-name"]&&(t["x-name"]=e["x-name"],t["x-publicId"]=e["x-publicId"],t["x-systemId"]=e["x-systemId"]),n=t}}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function N(e){const t=e.map((e=>S(e,!0)));for(let e=1;e<t.length;e++)t[e].prev=t[e-1],t[e-1].next=t[e];return t}var D=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"].reduce((function(e,t){return e[t.toLowerCase()]=t,e}),{});function L(e){for(var t={},n=0,r=e.length;n<r;n++){var o=e[n];t[o.name]=o.value}return t}function M(e){var t=function(e){return D[e]}(e=e.toLowerCase());return t||e}function A(e,t,n){void 0===t&&(t=null);for(var r,o=[],i=0,s=e.length;i<s;i++){var a=e[i];switch(a.nodeType){case 1:var c=M(a.nodeName);(r=new w(c,L(a.attributes))).children=A("template"===c?a.content.childNodes:a.childNodes,r);break;case 3:r=new x(a.nodeValue);break;case 8:r=new y(a.nodeValue);break;default:continue}var u=o[i-1]||null;u&&(u.next=r),r.parent=t,r.prev=u,r.next=null,o.push(r)}return n&&((r=new v(n.substring(0,n.indexOf(" ")).toLowerCase(),n)).next=o[0]||null,r.parent=t,o.unshift(r),o[1]&&(o[1].prev=o[0])),o}var I=/<(![a-zA-Z\s]+)>/;return function(c){if("string"!=typeof c)throw new TypeError("First argument must be a string");if(""===c)return[];var u=c.match(I),l=u?u[1]:void 0;return A(function(c){var u,l,p=c.match(r),f=p&&p[1]?p[1].toLowerCase():"";switch(f){case e:var h=a(c);return o.test(c)||null===(u=null==(x=h.querySelector(t))?void 0:x.parentNode)||void 0===u||u.removeChild(x),i.test(c)||null===(l=null==(x=h.querySelector(n))?void 0:x.parentNode)||void 0===l||l.removeChild(x),h.querySelectorAll(e);case t:case n:var m=s(c).querySelectorAll(f);return i.test(c)&&o.test(c)?m[0].parentNode.childNodes:m;default:return d?d(c):(x=s(c,n).querySelector(n)).childNodes;var x}}(c),null,l)}}));
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).HTMLDOMParser=t()}(this,(function(){"use strict";var e="html",t="head",n="body",r=/<([a-zA-Z]+[0-9]?)/,o=/<head[^]*>/i,i=/<body[^]*>/i,s=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},a=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},c="object"==typeof window&&window.DOMParser;if("function"==typeof c){var u=new c;s=a=function(e,t){return t&&(e="<".concat(t,">").concat(e,"</").concat(t,">")),u.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var l=document.implementation.createHTMLDocument();s=function(e,t){if(t){var n=l.documentElement.querySelector(t);return n&&(n.innerHTML=e),l}return l.documentElement.innerHTML=e,l}}var d,p,f="object"==typeof document&&document.createElement("template");f&&f.content&&(d=function(e){return f.innerHTML=e,f.content.childNodes}),function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(p||(p={})),p.Root,p.Text,p.Directive,p.Comment,p.Script,p.Style,p.Tag,p.CDATA,p.Doctype;class h{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return S(this,e)}}class m extends h{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}}class x extends m{constructor(){super(...arguments),this.type=p.Text}get nodeType(){return 3}}class y extends m{constructor(){super(...arguments),this.type=p.Comment}get nodeType(){return 8}}class v extends m{constructor(e,t){super(t),this.name=e,this.type=p.Directive}get nodeType(){return 1}}class g extends h{constructor(e){super(),this.children=e}get firstChild(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}}class b extends g{constructor(){super(...arguments),this.type=p.CDATA}get nodeType(){return 4}}class T extends g{constructor(){super(...arguments),this.type=p.Root}get nodeType(){return 9}}class w extends g{constructor(e,t,n=[],r=("script"===e?p.Script:"style"===e?p.Style:p.Tag)){super(n),this.name=e,this.attribs=t,this.type=r}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map((e=>{var t,n;return{name:e,value:this.attribs[e],namespace:null===(t=this["x-attribsNamespace"])||void 0===t?void 0:t[e],prefix:null===(n=this["x-attribsPrefix"])||void 0===n?void 0:n[e]}}))}}function C(e){return(t=e).type===p.Tag||t.type===p.Script||t.type===p.Style;var t}function S(e,t=!1){let n;if(function(e){return e.type===p.Text}(e))n=new x(e.data);else if(function(e){return e.type===p.Comment}(e))n=new y(e.data);else if(C(e)){const r=t?N(e.children):[],o=new w(e.name,{...e.attribs},r);r.forEach((e=>e.parent=o)),null!=e.namespace&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]={...e["x-attribsNamespace"]}),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]={...e["x-attribsPrefix"]}),n=o}else if(function(e){return e.type===p.CDATA}(e)){const r=t?N(e.children):[],o=new b(r);r.forEach((e=>e.parent=o)),n=o}else if(function(e){return e.type===p.Root}(e)){const r=t?N(e.children):[],o=new T(r);r.forEach((e=>e.parent=o)),e["x-mode"]&&(o["x-mode"]=e["x-mode"]),n=o}else{if(!function(e){return e.type===p.Directive}(e))throw new Error(`Not implemented yet: ${e.type}`);{const t=new v(e.name,e.data);null!=e["x-name"]&&(t["x-name"]=e["x-name"],t["x-publicId"]=e["x-publicId"],t["x-systemId"]=e["x-systemId"]),n=t}}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function N(e){const t=e.map((e=>S(e,!0)));for(let e=1;e<t.length;e++)t[e].prev=t[e-1],t[e-1].next=t[e];return t}var D=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"].reduce((function(e,t){return e[t.toLowerCase()]=t,e}),{});function L(e){for(var t={},n=0,r=e.length;n<r;n++){var o=e[n];t[o.name]=o.value}return t}function M(e){var t=function(e){return D[e]}(e=e.toLowerCase());return t||e}function A(e,t,n){void 0===t&&(t=null);for(var r,o=[],i=0,s=e.length;i<s;i++){var a=e[i];switch(a.nodeType){case 1:var c=M(a.nodeName);(r=new w(c,L(a.attributes))).children=A("template"===c?a.content.childNodes:a.childNodes,r);break;case 3:r=new x(a.nodeValue);break;case 8:r=new y(a.nodeValue);break;default:continue}var u=o[i-1]||null;u&&(u.next=r),r.parent=t,r.prev=u,r.next=null,o.push(r)}return n&&((r=new v(n.substring(0,n.indexOf(" ")).toLowerCase(),n)).next=o[0]||null,r.parent=t,o.unshift(r),o[1]&&(o[1].prev=o[0])),o}var I=/<(![a-zA-Z\s]+)>/;return function(c){if("string"!=typeof c)throw new TypeError("First argument must be a string");if(!c)return[];var u=c.match(I),l=u?u[1]:void 0;return A(function(c){var u,l,p=c.match(r),f=p&&p[1]?p[1].toLowerCase():"";switch(f){case e:var h=a(c);return o.test(c)||null===(u=null==(x=h.querySelector(t))?void 0:x.parentNode)||void 0===u||u.removeChild(x),i.test(c)||null===(l=null==(x=h.querySelector(n))?void 0:x.parentNode)||void 0===l||l.removeChild(x),h.querySelectorAll(e);case t:case n:var m=s(c).querySelectorAll(f);return i.test(c)&&o.test(c)?m[0].parentNode.childNodes:m;default:return d?d(c):(x=s(c,n).querySelector(n)).childNodes;var x}}(c),null,l)}}));
//# sourceMappingURL=html-dom-parser.min.js.map

@@ -40,2 +40,3 @@ "use strict";

if (tagName) {
/* istanbul ignore next */
html = "<".concat(tagName, ">").concat(html, "</").concat(tagName, ">");

@@ -42,0 +43,0 @@ }

@@ -7,3 +7,3 @@ /**

*/
export default function HTMLDOMParser(html: string): (import("domhandler").Element | import("domhandler").Text | import("domhandler").Comment | import("domhandler").ProcessingInstruction)[];
export default function HTMLDOMParser(html: string): import("..").DOMNode[];
//# sourceMappingURL=html-to-dom.d.ts.map

@@ -19,3 +19,3 @@ "use strict";

}
if (html === '') {
if (!html) {
return [];

@@ -22,0 +22,0 @@ }

@@ -1,2 +0,2 @@

import { Comment, Element, ProcessingInstruction, Text } from 'domhandler';
import type { DOMNode } from '../types';
/**

@@ -17,3 +17,3 @@ * Formats DOM attributes to a hash map.

*/
export declare function formatDOM(nodes: NodeList, parent?: Element | null, directive?: string): (Comment | Element | ProcessingInstruction | Text)[];
export declare function formatDOM(nodes: NodeList, parent?: DOMNode | null, directive?: string): DOMNode[];
//# sourceMappingURL=utilities.d.ts.map

@@ -58,3 +58,3 @@ "use strict";

if (parent === void 0) { parent = null; }
var result = [];
var domNodes = [];
var current;

@@ -88,3 +88,3 @@ var index = 0;

// set previous node next
var prev = result[index - 1] || null;
var prev = domNodes[index - 1] || null;
if (prev) {

@@ -97,16 +97,16 @@ prev.next = current;

current.next = null;
result.push(current);
domNodes.push(current);
}
if (directive) {
current = new domhandler_1.ProcessingInstruction(directive.substring(0, directive.indexOf(' ')).toLowerCase(), directive);
current.next = result[0] || null;
current.next = domNodes[0] || null;
current.parent = parent;
result.unshift(current);
if (result[1]) {
result[1].prev = result[0];
domNodes.unshift(current);
if (domNodes[1]) {
domNodes[1].prev = domNodes[0];
}
}
return result;
return domNodes;
}
exports.formatDOM = formatDOM;
//# sourceMappingURL=utilities.js.map

@@ -5,5 +5,6 @@ /**

*
* @see {@link https://github.com/substack/node-browserify#browser-field}
* @see https://github.com/substack/node-browserify#browser-field
*/
export { default } from './server/html-to-dom';
export * from './types';
//# sourceMappingURL=index.d.ts.map
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
var __importDefault = (this && this.__importDefault) || function (mod) {

@@ -11,6 +25,7 @@ return (mod && mod.__esModule) ? mod : { "default": mod };

*
* @see {@link https://github.com/substack/node-browserify#browser-field}
* @see https://github.com/substack/node-browserify#browser-field
*/
var html_to_dom_1 = require("./server/html-to-dom");
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(html_to_dom_1).default; } });
__exportStar(require("./types"), exports);
//# sourceMappingURL=index.js.map

@@ -14,3 +14,3 @@ import type { ParserOptions } from 'htmlparser2';

*/
export default function HTMLDOMParser(html: string, options?: ParserOptions): (import("domhandler").Element | import("domhandler").Text | import("domhandler").Comment | import("domhandler").ProcessingInstruction)[];
export default function HTMLDOMParser(html: string, options?: ParserOptions): import("..").DOMNode[];
//# sourceMappingURL=html-to-dom.d.ts.map

@@ -22,3 +22,3 @@ "use strict";

}
if (html === '') {
if (!html) {
return [];

@@ -25,0 +25,0 @@ }

@@ -1,3 +0,3 @@

import type { ChildNode, Comment, Element, ProcessingInstruction, Text } from 'domhandler';
type Node = Element | Text | Comment | ProcessingInstruction;
import type { ChildNode } from 'domhandler';
import type { DOMNode } from '../types';
/**

@@ -9,4 +9,3 @@ * Sets root parent to null.

*/
export declare function unsetRootParent(nodes: ChildNode[]): Node[];
export {};
export declare function unsetRootParent(nodes: ChildNode[]): DOMNode[];
//# sourceMappingURL=utilities.d.ts.map
{
"name": "html-dom-parser",
"version": "5.0.2",
"version": "5.0.3",
"description": "HTML to DOM parser.",
"author": "Mark <mark@remarkablemark.org>",
"main": "lib/index.js",
"module": "esm/index.mjs",
"main": "./lib/index.js",
"module": "./esm/index.mjs",
"types": "./lib/index.d.ts",
"exports": {

@@ -89,3 +90,3 @@ ".": {

"karma-mocha-reporter": "2.2.5",
"lint-staged": "15.0.1",
"lint-staged": "15.0.2",
"mocha": "10.2.0",

@@ -92,0 +93,0 @@ "npm-run-all": "4.1.5",

@@ -48,2 +48,3 @@ // constants

if (tagName) {
/* istanbul ignore next */
html = `<${tagName}>${html}</${tagName}>`;

@@ -50,0 +51,0 @@ }

@@ -17,3 +17,3 @@ import domparser from './domparser';

if (html === '') {
if (!html) {
return [];

@@ -20,0 +20,0 @@ }

import { Comment, Element, ProcessingInstruction, Text } from 'domhandler';
import { CASE_SENSITIVE_TAG_NAMES_MAP } from './constants';
import type { DOMNode } from '../types';

@@ -62,6 +64,6 @@ /**

nodes: NodeList,
parent: Element | null = null,
parent: DOMNode | null = null,
directive?: string,
): (Comment | Element | ProcessingInstruction | Text)[] {
const result = [];
): DOMNode[] {
const domNodes = [];
let current;

@@ -109,3 +111,3 @@ let index = 0;

// set previous node next
const prev = result[index - 1] || null;
const prev = domNodes[index - 1] || null;
if (prev) {

@@ -116,7 +118,7 @@ prev.next = current;

// set properties for current node
current.parent = parent;
current.parent = parent as Element;
current.prev = prev;
current.next = null;
result.push(current);
domNodes.push(current);
}

@@ -129,12 +131,13 @@

);
current.next = result[0] || null;
current.parent = parent;
result.unshift(current);
if (result[1]) {
result[1].prev = result[0];
current.next = domNodes[0] || null;
current.parent = parent as Element;
domNodes.unshift(current);
if (domNodes[1]) {
domNodes[1].prev = domNodes[0];
}
}
return result;
return domNodes;
}

@@ -5,4 +5,6 @@ /**

*
* @see {@link https://github.com/substack/node-browserify#browser-field}
* @see https://github.com/substack/node-browserify#browser-field
*/
export { default } from './server/html-to-dom';
export * from './types';

@@ -24,3 +24,3 @@ import { Parser } from 'htmlparser2';

if (html === '') {
if (!html) {
return [];

@@ -27,0 +27,0 @@ }

@@ -1,10 +0,4 @@

import type {
ChildNode,
Comment,
Element,
ProcessingInstruction,
Text,
} from 'domhandler';
import type { ChildNode } from 'domhandler';
type Node = Element | Text | Comment | ProcessingInstruction;
import type { DOMNode } from '../types';

@@ -17,3 +11,3 @@ /**

*/
export function unsetRootParent(nodes: ChildNode[]): Node[] {
export function unsetRootParent(nodes: ChildNode[]): DOMNode[] {
let index = 0;

@@ -27,3 +21,3 @@ const nodesLength = nodes.length;

return nodes as Node[];
return nodes as DOMNode[];
}

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc