Socket
Socket
Sign inDemoInstall

html-minifier

Package Overview
Dependencies
45
Maintainers
2
Versions
80
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.1 to 3.0.2

4

package.json
{
"name": "html-minifier",
"description": "Highly configurable, well-tested, JavaScript-based HTML minifier.",
"version": "3.0.1",
"version": "3.0.2",
"keywords": [

@@ -68,3 +68,3 @@ "cli",

"grunt-browserify": "5.0.x",
"grunt-contrib-uglify": "1.0.x",
"grunt-contrib-uglify": "2.0.x",
"grunt-eslint": "19.0.x",

@@ -71,0 +71,0 @@ "phantomjs-prebuilt": "2.1.x",

@@ -848,4 +848,11 @@ 'use strict';

uidIgnore = uniqueId(value);
var pattern = new RegExp('^' + uidIgnore + '([0-9]+)$');
if (options.ignoreCustomComments) {
options.ignoreCustomComments.push(pattern);
}
else {
options.ignoreCustomComments = [pattern];
}
}
var token = '<!--!' + uidIgnore + ignoredMarkupChunks.length + '-->';
var token = '<!--' + uidIgnore + ignoredMarkupChunks.length + '-->';
ignoredMarkupChunks.push(group1);

@@ -1258,3 +1265,3 @@ return token;

if (uidIgnore) {
str = str.replace(new RegExp('<!--!' + uidIgnore + '([0-9]+)-->', 'g'), function(match, index) {
str = str.replace(new RegExp('<!--' + uidIgnore + '([0-9]+)-->', 'g'), function(match, index) {
return ignoredMarkupChunks[+index];

@@ -1261,0 +1268,0 @@ });

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc