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.17 to 0.0.18

2

package.json

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

"description": "Port of YUI CSS Compressor to NodeJS",
"version": "0.0.17",
"version": "0.0.18",
"keywords": [

@@ -8,0 +8,0 @@ "css",

@@ -406,14 +406,13 @@ /**

// preserve formulas in calc() before removing spaces
pattern = /calc\(([^\)\()]*)\)/;
var preserveCalc = function (ignore, f1) {
preservedTokens.push('calc(' + f1.replace(/(^\s*|\s*$)/g, "") + ')');
pattern = /calc\(([^;}]*)\)/g;
content = content.replace(pattern, function (ignore, f1) {
preservedTokens.push(
'calc(' +
f1.replace(/(^\s*|\s*$)/g, "")
.replace(/\( /g, "(")
.replace(/ \)/g, ")") +
')'
);
return "___PRESERVED_TOKEN_" + (preservedTokens.length - 1) + "___";
};
while (true) {
if (pattern.test(content)) {
content = content.replace(pattern, preserveCalc);
} else {
break;
}
}
});

@@ -420,0 +419,0 @@ // preserve matrix

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