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 4.1.5 to 4.1.6

7

lib/optimizer/level-1/optimize.js

@@ -494,6 +494,3 @@ var shortenHex = require('./shorten-hex');

removeUnused(_properties);
if (_properties.length != properties.length) {
removeComments(properties, options);
}
removeComments(properties, options);
}

@@ -658,3 +655,3 @@

if (levelOptions.removeEmpty && (token[1].length === 0 || (token[2] && token[2].length === 0))) {
if (token[0] == Token.COMMENT && token[1].length === 0 || levelOptions.removeEmpty && (token[1].length === 0 || (token[2] && token[2].length === 0))) {
tokens.splice(i, 1);

@@ -661,0 +658,0 @@ i--;

@@ -73,3 +73,3 @@ var Spaces = require('../../options/format').Spaces;

isQuoted = isSingleQuoted || isDoubleQuoted;
isRelation = !isEscaped && roundBracketLevel === 0 && RELATION_PATTERN.test(character);
isRelation = !isAttribute && !isEscaped && roundBracketLevel === 0 && RELATION_PATTERN.test(character);
isWhitespace = WHITESPACE_PATTERN.test(character);

@@ -76,0 +76,0 @@

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

@@ -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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc