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

clean-css

Package Overview
Dependencies
Maintainers
2
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 3.4.9 to 3.4.10

5

History.md

@@ -0,1 +1,6 @@

[3.4.10 / 2016-02-29](https://github.com/jakubpawlowicz/clean-css/compare/v3.4.9...v3.4.10)
==================
* Fixed issue [#735](https://github.com/jakubpawlowicz/clean-css/issues/735) - whitespace removal with escaped chars.
[3.4.9 / 2016-01-03](https://github.com/jakubpawlowicz/clean-css/compare/v3.4.8...v3.4.9)

@@ -2,0 +7,0 @@ ==================

11

lib/selectors/clean-up.js

@@ -9,2 +9,11 @@ function removeWhitespace(match, value) {

function whitespaceReplacements(_, p1, p2, p3) {
if (p1 && p2 && p3.length)
return p1 + p2 + ' ';
else if (p1 && p2)
return p1 + p2;
else
return p2;
}
var CleanUp = {

@@ -20,3 +29,3 @@ selectors: function (selectors, removeUnsupported, adjacentSpace) {

.replace(/ ?, ?/g, ',')
.replace(/\s*([>\+\~])\s*/g, '$1')
.replace(/\s*(\\)?([>+~])(\s*)/g, whitespaceReplacements)
.trim();

@@ -23,0 +32,0 @@

2

package.json
{
"name": "clean-css",
"version": "3.4.9",
"version": "3.4.10",
"author": "Jakub Pawlowicz <contact@jakubpawlowicz.com> (http://twitter.com/jakubpawlowicz)",

@@ -5,0 +5,0 @@ "description": "A well-tested CSS minifier",

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