node-html-parser
Advanced tools
Comparing version 1.2.17 to 1.2.18
@@ -1017,8 +1017,2 @@ var __extends = (this && this.__extends) || (function () { | ||
var frameflag = 'documentfragmentcontainer'; | ||
/** | ||
* Parses HTML and returns a root element | ||
* Parse a chuck of HTML source. | ||
* @param {string} data html | ||
* @return {HTMLElement} root element | ||
*/ | ||
function parse(data, options) { | ||
@@ -1025,0 +1019,0 @@ if (options === void 0) { options = {}; } |
@@ -153,3 +153,2 @@ import Node from './node'; | ||
lowerCaseTagName?: boolean; | ||
noFix?: boolean; | ||
script?: boolean; | ||
@@ -166,6 +165,14 @@ style?: boolean; | ||
*/ | ||
export declare function parse(data: string, options?: Options): (TextNode & { | ||
export declare function parse(data: string, options?: Options): HTMLElement & { | ||
valid: boolean; | ||
}) | (HTMLElement & { | ||
}; | ||
export declare function parse(data: string, options?: Options & { | ||
noFix: false; | ||
}): HTMLElement & { | ||
valid: boolean; | ||
}); | ||
}; | ||
export declare function parse(data: string, options?: Options & { | ||
noFix: true; | ||
}): (HTMLElement | TextNode) & { | ||
valid: boolean; | ||
}; |
@@ -649,8 +649,2 @@ "use strict"; | ||
var frameflag = 'documentfragmentcontainer'; | ||
/** | ||
* Parses HTML and returns a root element | ||
* Parse a chuck of HTML source. | ||
* @param {string} data html | ||
* @return {HTMLElement} root element | ||
*/ | ||
function parse(data, options) { | ||
@@ -657,0 +651,0 @@ if (options === void 0) { options = {}; } |
{ | ||
"name": "node-html-parser", | ||
"version": "1.2.17", | ||
"version": "1.2.18", | ||
"description": "A very fast HTML parser, generating a simplified DOM, with basic element query support.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
106112
23
2813