Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

brightml

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

brightml - npm Package Compare versions

Comparing version 3.0.3 to 3.0.4

11

index.js

@@ -106,3 +106,3 @@ var fs = require('fs');

// Remove empty tags
if (!$(this).text().trim()) {
if (!$(this).html().trim()) {
if (!_.includes(rules.allowedEmpty, tagName)) {

@@ -135,2 +135,3 @@ return $(this).remove();

delete attributes[key];
continue;
}

@@ -143,4 +144,10 @@ // Filter schemes

});
if (!allowedLink) delete attributes[key];
if (!allowedLink) {
delete attributes[key];
continue;
}
}
// Replace line-breaks in attributes
attributes[key] = attributes[key].replace(/[\n\r\t\v]/g, ' ').trim();
}

@@ -147,0 +154,0 @@ });

2

package.json
{
"name": "brightml",
"version": "3.0.3",
"version": "3.0.4",
"description": "Smart utility rendering markdown-ready HTML",

@@ -5,0 +5,0 @@ "main": "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