Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-html-parser

Package Overview
Dependencies
Maintainers
1
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-html-parser - npm Package Compare versions

Comparing version 1.2.17 to 1.2.18

6

dist/main.js

@@ -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 = {}; }

15

dist/nodes/html.d.ts

@@ -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",

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