Socket
Socket
Sign inDemoInstall

minimize

Package Overview
Dependencies
40
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.7.2 to 1.7.3

2

lib/helpers.js

@@ -130,3 +130,3 @@ 'use strict';

//
allowed = list.attributes[key];
allowed = Object.hasOwnProperty.call(list.attributes, key) && list.attributes[key];
allowed = allowed

@@ -133,0 +133,0 @@ ? allowed === '*' || ~allowed.indexOf(name)

{
"name": "minimize",
"version": "1.7.2",
"version": "1.7.3",
"description": "Minimize HTML",

@@ -5,0 +5,0 @@ "main": "./lib/minimize",

@@ -151,2 +151,7 @@ /*global beforeEach, afterEach*/

});
it('should check if the attribute is actually a defined property', function () {
html.block.attribs = { 'constructor': 'something' };
expect(helpers.attributes(html.block)).to.be.equal(' constructor=something');
})
});

@@ -153,0 +158,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc