Socket
Socket
Sign inDemoInstall

csso

Package Overview
Dependencies
3
Maintainers
3
Versions
82
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.3.1 to 3.4.0

lib/replace/Percentage.js

6

HISTORY.md

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

## 3.4.0 (November 3, 2017)
- Added percent sign removal for zero percentages for some properties that is safe (@RubaXa, #286)
- Removed unit removal for zero values in `-ms-flex` due it breaks flex in IE10/11 (#362)
- Improved performance of selectors comparison (@smelukov, #343)
## 3.3.1 (October 17, 2017)

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

6

lib/replace/Dimension.js

@@ -38,4 +38,6 @@ var packNumber = require('./Number').pack;

// issue #200: don't remove units in flex property as it could change value meaning
if (this.declaration.property === 'flex') {
// issue #362: shouldn't remove unit in -ms-flex since it breaks flex in IE10/11
// issue #200: shouldn't remove unit in flex since it breaks flex in IE10/11
if (this.declaration.property === '-ms-flex' ||
this.declaration.property === 'flex') {
return;

@@ -42,0 +44,0 @@ }

@@ -7,3 +7,3 @@ var walk = require('css-tree').walkUp;

Dimension: require('./Dimension'),
Percentage: require('./Number'),
Percentage: require('./Percentage'),
Number: require('./Number'),

@@ -10,0 +10,0 @@ String: require('./String'),

@@ -102,7 +102,19 @@ var hasOwnProperty = Object.prototype.hasOwnProperty;

function hasSimilarSelectors(selectors1, selectors2) {
return selectors1.some(function(a) {
return selectors2.some(function(b) {
return a.compareMarker === b.compareMarker;
});
});
var cursor1 = selectors1.head;
while (cursor1 !== null) {
var cursor2 = selectors2.head;
while (cursor2 !== null) {
if (cursor1.data.compareMarker === cursor2.data.compareMarker) {
return true;
}
cursor2 = cursor2.next;
}
cursor1 = cursor1.next;
}
return false;
}

@@ -109,0 +121,0 @@

{
"name": "csso",
"version": "3.3.1",
"version": "3.4.0",
"description": "CSS minifier with structural optimisations",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc