Socket
Socket
Sign inDemoInstall

beautiful-dom

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

beautiful-dom - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

__tests__/dom.js

6

dist/beautifuldom.js

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

}
this.data = data_source.split(/\n\r|\n|\r/gmi).join(" ");
this.data = data_source.toString().split(/\n\r|\n|\r/gmi).join(" ");
}

@@ -438,4 +438,4 @@ BeautifulDom.prototype.reInit = function () {

BeautifulDom.prototype.createTagRegExp = function (tagType) {
var tagRegExp = new RegExp("<\\s*" + tagType + "(\\s*|\\s+).*?>|<\\s*/" + tagType + ">", "mi");
var openingRegExp = new RegExp("<\\s*" + tagType + "(\\s*|\\s+).*?>");
var tagRegExp = new RegExp("<\\s*" + tagType + "\\b.*?>|<\\s*/" + tagType + ">", "mi");
var openingRegExp = new RegExp("<\\s*" + tagType + "\\b.*?>");
var closingRegExp = new RegExp("<\\s*/" + tagType + ">");

@@ -442,0 +442,0 @@ return { tagRegExp: tagRegExp, openingRegExp: openingRegExp, closingRegExp: closingRegExp };

{
"name": "beautiful-dom",
"version": "1.0.6",
"version": "1.0.7",
"description": "Beautiful-dom is a lightweight library that mirrors the capabilities of the HTML DOM API needed for parsing crawled HTML/XML pages. It models the methods and properties of HTML nodes that are relevant for extracting data from HTML nodes. It is written in TypeScript and can be used as a CommonJS library",

@@ -10,2 +10,5 @@ "main": "dist/index.js",

},
"devDependencies":{
"jest": "^24.5.0"
},
"keywords": ["dom","html","xml","parser","crawler"],

@@ -12,0 +15,0 @@ "author": "Ajah Chukwuemeka",

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