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.2 to 1.0.3

readme.md

1

dist/htmlelement.d.ts

@@ -17,3 +17,4 @@ declare class HTMLElementData {

querySelector(query: string): HTMLElementData;
getAttribute(attribute: string): (string | null);
}
export default HTMLElementData;

@@ -532,4 +532,10 @@ "use strict";

};
HTMLElementData.prototype.getAttribute = function (attribute) {
var attributeRegExp = new RegExp(attribute + "\\s*=\\s*('|\")(.*?)(\"|')", 'mi');
var outerHTML = this.outerHTML.slice(this.outerHTML.indexOf('<'), this.outerHTML.indexOf('>') + 1);
var match = outerHTML.match(attributeRegExp);
return match ? match[2] : null;
};
return HTMLElementData;
}());
exports.default = HTMLElementData;

3

dist/index.d.ts

@@ -1,1 +0,2 @@

export { default as BeautifulDom } from './beautifuldom';
import BeautifulDom from './beautifuldom';
export default BeautifulDom;
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var beautifuldom_1 = require("./beautifuldom");
exports.BeautifulDom = beautifuldom_1.default;
var beautifuldom_1 = __importDefault(require("./beautifuldom"));
module.exports = beautifuldom_1.default;
{
"name": "beautiful-dom",
"version": "1.0.2",
"version": "1.0.3",
"description": "",

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

"scripts": {
"build":"tsc",
"test": "echo \"Error: no test specified\" && exit 1"
"test": "jest"
},

@@ -12,0 +11,0 @@ "keywords": ["dom","html","xml","parser","crawler"],

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