Socket
Socket
Sign inDemoInstall

clean-css

Package Overview
Dependencies
1
Maintainers
2
Versions
211
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.0.0 to 5.0.1

6

lib/optimizer/level-2/properties/merge-into-shorthands.js

@@ -169,3 +169,3 @@ var everyValuesPair = require('./every-values-pair');

component = components[descriptor.components[i]];
mayOverride = configuration[component.name].canOverride;
mayOverride = configuration[component.name].canOverride || sameValue;

@@ -180,2 +180,6 @@ if (!everyValuesPair(mayOverride.bind(null, validator), newProperty.components[i], component)) {

function sameValue(_validator, value1, value2) {
return value1 === value2;
}
function mergeable(components) {

@@ -182,0 +186,0 @@ var lastCount = null;

20

lib/optimizer/level-2/properties/override-properties.js

@@ -22,2 +22,6 @@ var hasInherit = require('./has-inherit');

function sameValue(_validator, value1, value2) {
return value1 === value2;
}
function wouldBreakCompatibility(property, validator) {

@@ -27,3 +31,3 @@ for (var i = 0; i < property.components.length; i++) {

var descriptor = configuration[component.name];
var canOverride = descriptor && descriptor.canOverride || canOverride.sameValue;
var canOverride = descriptor && descriptor.canOverride || sameValue;

@@ -269,3 +273,3 @@ var _component = shallowClone(component);

mayOverride = configuration[right.name].canOverride;
mayOverride = configuration[right.name].canOverride || sameValue;

@@ -320,3 +324,3 @@ traverseLoop:

component = findComponentIn(right, left);
mayOverride = configuration[left.name].canOverride;
mayOverride = configuration[left.name].canOverride || sameValue;
if (everyValuesPair(mayOverride.bind(null, validator), left, component)) {

@@ -346,3 +350,3 @@ left.unused = true;

overridingComponent = findComponentIn(right, overriddenComponent);
mayOverride = configuration[overriddenComponent.name].canOverride;
mayOverride = configuration[overriddenComponent.name].canOverride || sameValue;

@@ -429,3 +433,3 @@ if (!everyValuesPair(mayOverride.bind(null, validator), left, overridingComponent)) {

mayOverride = configuration[leftComponent.name].canOverride;
mayOverride = configuration[leftComponent.name].canOverride || sameValue;
if (!everyValuesPair(mayOverride.bind(null, validator), leftComponent, rightComponent))

@@ -444,3 +448,3 @@ continue propertyLoop;

component = findComponentIn(left, right);
mayOverride = configuration[right.name].canOverride;
mayOverride = configuration[right.name].canOverride || sameValue;
if (!everyValuesPair(mayOverride.bind(null, validator), component, right))

@@ -469,3 +473,3 @@ continue;

overridingComponent = right.components[k];
mayOverride = configuration[overridingComponent.name].canOverride;
mayOverride = configuration[overridingComponent.name].canOverride || sameValue;

@@ -475,3 +479,3 @@ overridable = overridable && everyValuesPair(mayOverride.bind(null, validator), overriddenComponent, overridingComponent);

} else {
mayOverride = configuration[right.name].canOverride;
mayOverride = configuration[right.name].canOverride || sameValue;
overridable = everyValuesPair(mayOverride.bind(null, validator), left, right);

@@ -478,0 +482,0 @@ }

{
"name": "clean-css",
"version": "5.0.0",
"version": "5.0.1",
"author": "Jakub Pawlowicz <contact@jakubpawlowicz.com> (https://jakubpawlowicz.com)",

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

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