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.1.12 to 1.1.13

4

dist/index.js

@@ -445,6 +445,6 @@ "use strict";

if (this.rawAttrs) {
const re = /\b([a-z][a-z0-9\-]*)\s*=\s*("([^"]+)"|'([^']+)'|(\S+))/ig;
const re = /\b([a-z][a-z0-9\-]*)(?:\s*=\s*(?:"([^"]+)"|'([^']+)'|(\S+)))?/ig;
let match;
while (match = re.exec(this.rawAttrs)) {
attrs[match[1]] = match[3] || match[4] || match[5];
attrs[match[1]] = match[2] || match[3] || match[4] || "";
}

@@ -451,0 +451,0 @@ }

@@ -520,6 +520,6 @@ var __extends = (this && this.__extends) || (function () {

if (this.rawAttrs) {
var re = /\b([a-z][a-z0-9\-]*)\s*=\s*("([^"]+)"|'([^']+)'|(\S+))/ig;
var re = /\b([a-z][a-z0-9\-]*)(?:\s*=\s*(?:"([^"]+)"|'([^']+)'|(\S+)))?/ig;
var match = void 0;
while (match = re.exec(this.rawAttrs)) {
attrs[match[1]] = match[3] || match[4] || match[5];
attrs[match[1]] = match[2] || match[3] || match[4] || "";
}

@@ -526,0 +526,0 @@ }

{
"name": "node-html-parser",
"version": "1.1.12",
"version": "1.1.13",
"description": "A very fast HTML parser, generating a simplified DOM, with basic element query support.",

@@ -13,3 +13,4 @@ "main": "dist/index.js",

"build": "npm run clean && npm run ts:cjs && npm run ts:umd",
"dev": "tsc -w"
"dev": "tsc -w",
"pretest": "tsc -m commonjs"
},

@@ -16,0 +17,0 @@ "keywords": [

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