Socket
Socket
Sign inDemoInstall

cssmin

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cssmin - npm Package Compare versions

Comparing version 0.4.2 to 0.4.3

9

cssmin.js

@@ -123,2 +123,8 @@ /**

});
// Preserve spaces in calc expressions
css = css.replace(/calc\s*\(\s*(.*?)\s*\)/g, function (m, c) {
return m.replace(c, c.replace(/\s+/g, "___YUICSSMIN_SPACE_IN_CALC___"));
});
css = css.replace(/\s+([!{};:>+\(\)\],])/g, '$1');

@@ -146,2 +152,5 @@ css = css.replace(/___YUICSSMIN_PSEUDOCLASSCOLON___/g, ":");

// Restore preserved spaces in calc expressions
css = css.replace(/___YUICSSMIN_SPACE_IN_CALC___/g, " ");
// remove unnecessary semicolons

@@ -148,0 +157,0 @@ css = css.replace(/;+\}/g, "}");

2

package.json
{
"name": "cssmin",
"version": "0.4.2",
"version": "0.4.3",
"description": "A simple CSS minifier that uses a port of YUICompressor in JS",

@@ -5,0 +5,0 @@ "main": "cssmin",

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