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.8 to 4.1.9

11

lib/optimizer/level-2/remove-unused-at-rules.js

@@ -11,3 +11,8 @@ var populateComponents = require('./properties/populate-components');

var keyframeRegex = /^@(\-moz\-|\-o\-|\-webkit\-)?keyframes /;
var optionalMatchingQuotesRegex = /^(['"]?)(.*)\1$/;
function removeQuotes(value) {
return value.replace(optionalMatchingQuotesRegex, '$2');
}
function removeUnusedAtRules(tokens, context) {

@@ -111,3 +116,3 @@ removeUnusedAtRule(tokens, matchCounterStyle, markCounterStylesAsUsed, context);

if (property[1][1] == 'font-family') {
match = property[2][1].toLowerCase();
match = removeQuotes(property[2][1].toLowerCase());
atRules[match] = atRules[match] || [];

@@ -139,3 +144,3 @@ atRules[match].push(token);

for (j = 0, m = component.value.length; j < m; j++) {
normalizedMatch = component.value[j][1].toLowerCase();
normalizedMatch = removeQuotes(component.value[j][1].toLowerCase());

@@ -152,3 +157,3 @@ if (normalizedMatch in atRules) {

for (j = 2, m = property.length; j < m; j++) {
normalizedMatch = property[j][1].toLowerCase();
normalizedMatch = removeQuotes(property[j][1].toLowerCase());

@@ -155,0 +160,0 @@ if (normalizedMatch in atRules) {

{
"name": "clean-css",
"version": "4.1.8",
"version": "4.1.9",
"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