csso
Advanced tools
Comparing version 1.3.9 to 1.3.10
@@ -845,2 +845,8 @@ function TRBL(name, imp) { | ||
} | ||
// check if color is followed by number | ||
var parent = token[0].parent; | ||
var parentIx = parent.indexOf(token); | ||
var appendSpace = parent[parentIx + 1] && parent[parentIx + 1][1] != 's'; | ||
if (v.length === 3) { | ||
@@ -850,3 +856,12 @@ h += (t = Number(v[0][2]).toString(16)).length === 1 ? '0' + t : t; | ||
h += (t = Number(v[2][2]).toString(16)).length === 1 ? '0' + t : t; | ||
if (h.length === 6) return this._compressHashColor(h, {}); | ||
if (h.length === 6) { | ||
var vhash = this._compressHashColor(h, {}); | ||
if (appendSpace) { | ||
// che: I guess this is not right: modify color token with | ||
// indentation, but I can't find any better solution right now | ||
vhash[2] += ' '; | ||
} | ||
return vhash; | ||
} | ||
} | ||
@@ -853,0 +868,0 @@ } |
{ | ||
"name": "csso", | ||
"description": "CSSO — CSS optimizer", | ||
"version": "1.3.9", | ||
"homepage": "http://github.com/css/csso", | ||
"version": "1.3.10", | ||
"homepage": "https://github.com/css/csso", | ||
"author": "Sergey Kryzhanovsky <skryzhanovsky@ya.ru> (http://github.com/afelix)", | ||
"repository": { | ||
"type": "git", | ||
"url": "http://github.com/css/csso.git" | ||
"url": "https://github.com/css/csso.git" | ||
}, | ||
@@ -14,3 +14,3 @@ "bin": "./bin/csso", | ||
"engines": { | ||
"node": ">=0.4.0" | ||
"node": ">=0.8.0" | ||
}, | ||
@@ -17,0 +17,0 @@ "licenses": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
522437
1357
11315
0