Socket
Socket
Sign inDemoInstall

node-html-parser

Package Overview
Dependencies
Maintainers
1
Versions
119
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.13 to 1.2.14

5

dist/main.js

@@ -573,3 +573,4 @@ var __extends = (this && this.__extends) || (function () {

});
HTMLElement.prototype.set_content = function (content) {
HTMLElement.prototype.set_content = function (content, options) {
if (options === void 0) { options = {}; }
if (content instanceof node_3.default) {

@@ -579,3 +580,3 @@ content = [content];

else if (typeof content == 'string') {
var r = parse(content);
var r = parse(content, options);
content = r.childNodes.length ? r.childNodes : [new text_1.default(content)];

@@ -582,0 +583,0 @@ }

2

dist/nodes/html.d.ts

@@ -73,3 +73,3 @@ import Node from './node';

get innerHTML(): string;
set_content(content: string | Node | Node[]): void;
set_content(content: string | Node | Node[], options?: Options): void;
get outerHTML(): string;

@@ -76,0 +76,0 @@ /**

@@ -205,3 +205,4 @@ "use strict";

});
HTMLElement.prototype.set_content = function (content) {
HTMLElement.prototype.set_content = function (content, options) {
if (options === void 0) { options = {}; }
if (content instanceof node_1.default) {

@@ -211,3 +212,3 @@ content = [content];

else if (typeof content == 'string') {
var r = parse(content);
var r = parse(content, options);
content = r.childNodes.length ? r.childNodes : [new text_1.default(content)];

@@ -214,0 +215,0 @@ }

{
"name": "node-html-parser",
"version": "1.2.13",
"version": "1.2.14",
"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