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

clean-css

Package Overview
Dependencies
Maintainers
0
Versions
211
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clean-css - npm Package Compare versions

Comparing version 0.2.3 to 0.2.4

6

History.md

@@ -0,1 +1,7 @@

0.2.4 / 2011-05-25
==================
* Fixed problem with expanding 'none' to '0' in partial/full background declarations.
* Fixed including clean-css library from binary (global to local).
0.2.3 / 2011-04-18

@@ -2,0 +8,0 @@ ==================

3

lib/clean.js

@@ -106,3 +106,4 @@ var sys = require('sys');

replace(/(\s|:)0(px|em|ex|cm|mm|in|pt|pc|%)/g, '$1' + '0') // zero + unit to zero
replace(/(border|border-top|border-right|border-bottom|border-left|outline|background):none/g, '$1:0') // none to 0
replace(/(border|border-top|border-right|border-bottom|border-left|outline):none/g, '$1:0') // none to 0
replace(/(background):none([;}])/g, '$1:0$2') // background:none to 0
replace(/0 0 0 0/g, '0') // multiple zeros into one

@@ -109,0 +110,0 @@ replace(/([: ,=\-])0\.(\d)/g, '$1.$2')

@@ -11,3 +11,3 @@ {

},
"version": "0.2.3",
"version": "0.2.4",
"main": "index.js",

@@ -14,0 +14,0 @@ "bin": {

@@ -179,2 +179,3 @@ var vows = require('vows'),

'display:none not changed': 'a{display:none}',
'longer background declaration not changed': 'html{background:none repeat scroll 0 0 white}',
'mixed zeros not changed': 'div{margin:0 0 1px 0}',

@@ -181,0 +182,0 @@ 'mixed zeros not changed #2': 'div{padding:0 1px 0 0}'

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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