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

uglifycss

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uglifycss - npm Package Compare versions

Comparing version 0.0.14 to 0.0.15

8

package.json

@@ -5,3 +5,9 @@ {

"description": "Port of YUI CSS Compressor to NodeJS",
"version": "0.0.14",
"version": "0.0.15",
"keywords": [
"css",
"stylesheet",
"uglify",
"minify"
],
"license": "MIT",

@@ -8,0 +14,0 @@ "homepage": "https://github.com/fmarcia/UglifyCSS",

12

uglifycss-lib.js

@@ -280,3 +280,4 @@ /**

lines = [],
vars = {};
vars = {},
partial;

@@ -289,10 +290,15 @@ options = options || defaultOptions;

content = content.split("/*");
partial = "";
for (i = 0, c = content.length; i < c; ++i) {
endIndex = content[i].indexOf("*/");
if (endIndex > -1) {
comments.push(content[i].slice(0, endIndex));
comments.push(partial + content[i].slice(0, endIndex));
partial = "";
content[i] = "/*___PRESERVE_CANDIDATE_COMMENT_" + (comments.length - 1) + "___" + content[i].slice(endIndex);
} else if (i > 0) {
partial += content[i];
content[i] = "";
}
}
content = content.join("");
content = content.join("") + partial;

@@ -299,0 +305,0 @@ // preserve strings so their content doesn't get accidentally minified

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