postcss-minify-selectors
Advanced tools
Comparing version
@@ -0,1 +1,6 @@ | ||
# 2.0.2 | ||
* Fixed a crash with Polymer mixins; now the module will pass through any | ||
selector string with a trailing colon. | ||
# 2.0.1 | ||
@@ -2,0 +7,0 @@ |
@@ -33,2 +33,7 @@ 'use strict'; | ||
var selector = rule.raws.selector && rule.raws.selector.raw || rule.selector; | ||
// If the selector ends with a ':' it is likely a part of a custom mixin, | ||
// so just pass through. | ||
if (selector[selector.length - 1] === ':') { | ||
return; | ||
} | ||
rule.selector = getParsed(selector, function (selectors) { | ||
@@ -35,0 +40,0 @@ selectors.nodes = sort(selectors.nodes, {insensitive: true}); |
{ | ||
"name": "postcss-minify-selectors", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Minify selectors with PostCSS.", | ||
@@ -12,3 +12,3 @@ "main": "index.js", | ||
"scripts": { | ||
"lint": "jshint index.js lib/*.js --reporter node_modules/jshint-stylish/stylish.js", | ||
"lint": "jshint index.js lib/*.js --reporter node_modules/jshint-stylish/index.js", | ||
"test": "tape test.js | tap-spec" | ||
@@ -27,6 +27,6 @@ }, | ||
"jshint": "^2.8.0", | ||
"jshint-stylish": "^2.0.1", | ||
"postcss-font-magician": "^1.3.0", | ||
"tap-spec": "^4.1.0", | ||
"tape": "^4.2.0" | ||
"jshint-stylish": "^2.1.0", | ||
"postcss-font-magician": "^1.4.0", | ||
"tap-spec": "^4.1.1", | ||
"tape": "^4.4.0" | ||
}, | ||
@@ -39,11 +39,8 @@ "homepage": "https://github.com/ben-eb/postcss-minify-selectors", | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/ben-eb/postcss-minify-selectors.git" | ||
}, | ||
"repository": "ben-eb/postcss-minify-selectors.git", | ||
"dependencies": { | ||
"alphanum-sort": "^1.0.1", | ||
"postcss": "^5.0.4", | ||
"postcss-selector-parser": "^1.1.4" | ||
"alphanum-sort": "^1.0.2", | ||
"postcss": "^5.0.14", | ||
"postcss-selector-parser": "^1.3.0" | ||
} | ||
} |
@@ -7,3 +7,3 @@ # [postcss][postcss]-minify-selectors [][ci] [][npm] [][deps] | ||
With [npm](https://npmjs.org/package/postcss-minify-selectors) do: | ||
With [npm](https://www.npmjs.com/package/postcss-minify-selectors) do: | ||
@@ -10,0 +10,0 @@ ``` |
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
8815
2.95%100
5.26%1
Infinity%Updated
Updated