You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

node-html-better-parser

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-html-better-parser - npm Package Compare versions

Comparing version

to
1.4.8

2

dist/src/index.js

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

// https://html.spec.whatwg.org/multipage/custom-elements.html#valid-custom-element-name
const kMarkupPattern = /<!--[^]*?(?=-->)-->|<(\/?)([a-z][-.:0-9_a-z]*)((\s+[a-z][-.:0-9_a-z]*(\s*=\s*("[^"]*"|'([^']*')|([^\s\/>]+)))?)*)\s*(\/?)>/ig;
const kMarkupPattern = /<!--[^]*?(?=-->)-->|<(\/?)([a-z][-.:0-9_a-z]*)((?:\s+[a-z][-.:0-9_a-z]*(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s\/>]+))?|\s+[^<>\s/]*?)*)\s*(\/?)>/ig;
const kIdClassAttributePattern = /(^|\s)(id|class)\s*=\s*("([^"]+)"|'([^']+)'|(\S+))/ig;

@@ -810,0 +810,0 @@ const kAttributePattern = /([a-z][-.:0-9_a-z]*)(\s*=\s*("([^"]*)"|'([^']*)'|(\S+)))?/ig;

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

@@ -12,3 +12,3 @@ "main": "dist/src/index.js",

"ts:umd": "tsc -t es5 -m umd -d false --outDir ./dist/umd/",
"build": "npm run clean && npm run ts:cjs && npm run ts:umd",
"build": "npm run test && npm run clean && npm run ts:cjs && npm run ts:umd",
"dev": "tsc -w",

@@ -15,0 +15,0 @@ "prepare": "npm run build",

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.