clean-css
Advanced tools
Comparing version 4.0.4 to 4.0.5
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
370118
96
7774