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.0.4 to 4.0.5

2

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

@@ -14,3 +14,3 @@ var hasInherit = require('./has-inherit');

var restoreFromOptimizing = require('../../restore-from-optimizing', restoreWithComponents);
var restoreFromOptimizing = require('../../restore-from-optimizing');

@@ -17,0 +17,0 @@ var Token = require('../../../tokenizer/token');

@@ -19,3 +19,2 @@ var fs = require('fs');

var hasProtocol = require('../utils/has-protocol');
var isAbsoluteResource = require('../utils/is-absolute-resource');
var isImport = require('../utils/is-import');

@@ -99,3 +98,3 @@ var isRemoteResource = require('../utils/is-remote-resource');

absoluteUri = isAbsoluteResource(uri) ?
absoluteUri = path.isAbsolute(uri) ?
uri :

@@ -134,3 +133,3 @@ path.resolve(uri);

rebaseConfig.toBase = context.source;
} else if (isAbsoluteResource(context.source)) {
} else if (path.isAbsolute(context.source)) {
rebaseConfig.fromBase = path.dirname(context.source);

@@ -281,4 +280,4 @@ rebaseConfig.toBase = context.options.rebaseTo;

var currentPath = path.resolve('');
var absoluteUri = isAbsoluteResource(uri) ?
path.resolve(currentPath, uri.substring(1)) :
var absoluteUri = path.isAbsolute(uri) ?
path.resolve(currentPath, uri[0] == '/' ? uri.substring(1) : uri) :
path.resolve(inlinerContext.rebaseTo, uri);

@@ -285,0 +284,0 @@ var relativeToCurrentPath = path.relative(currentPath, absoluteUri);

@@ -45,3 +45,3 @@ var path = require('path');

function isAbsolute(uri) {
return uri[0] == '/';
return path.isAbsolute(uri);
}

@@ -48,0 +48,0 @@

@@ -31,2 +31,3 @@ var Marker = require('./marker');

var RULE_WORD_SEPARATOR_PATTERN = /[\s\(]/;
var TAIL_BROKEN_VALUE_PATTERN = /[\s|\}]*$/;

@@ -440,3 +441,3 @@

var isAtRule = buffer[0] == Marker.AT || buffer[0] == Marker.UNDERSCORE;
var ruleWord = buffer.join('').split(/\s/)[0];
var ruleWord = buffer.join('').split(RULE_WORD_SEPARATOR_PATTERN)[0];

@@ -443,0 +444,0 @@ if (isAtRule && BLOCK_RULES.indexOf(ruleWord) > -1) {

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