postcss-colormin 2.2.1 → 2.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ # 2.2.2
2
+
3
+ * Resolves an issue where the module would mangle the non-standard `composes`
4
+ property when consumed via css-loader.
5
+
1
6
  # 2.2.1
2
7
 
3
8
  * Resolves an issue where converting an rgb/hsl function next to another token,
package/dist/index.js CHANGED
@@ -41,7 +41,7 @@ function transform(decl, opts) {
41
41
  reduceWhitespaces(decl);
42
42
  return;
43
43
  }
44
- if (/^(font|filter)/.test(decl.prop)) {
44
+ if (/^(composes|font|filter)/i.test(decl.prop)) {
45
45
  return;
46
46
  }
47
47
  var ast = (0, _postcssValueParser2.default)(decl.value);
@@ -67,7 +67,7 @@ function transform(decl, opts) {
67
67
  }
68
68
 
69
69
  exports.default = _postcss2.default.plugin('postcss-colormin', function () {
70
- var opts = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0];
70
+ var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
71
71
 
72
72
  return function (css) {
73
73
  return css.walkDecls(function (node) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "postcss-colormin",
3
- "version": "2.2.1",
3
+ "version": "2.2.2",
4
4
  "description": "Minify colors in your CSS files with PostCSS.",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -24,7 +24,7 @@
24
24
  ],
25
25
  "license": "MIT",
26
26
  "devDependencies": {
27
- "ava": "^0.16.0",
27
+ "ava": "^0.17.0",
28
28
  "babel-cli": "^6.3.17",
29
29
  "babel-core": "^6.3.26",
30
30
  "babel-plugin-add-module-exports": "^0.2.0",
@@ -36,7 +36,7 @@
36
36
  "eslint": "^3.0.0",
37
37
  "eslint-config-cssnano": "^3.0.0",
38
38
  "eslint-plugin-babel": "^3.3.0",
39
- "eslint-plugin-import": "^1.10.2"
39
+ "eslint-plugin-import": "^2.0.1"
40
40
  },
41
41
  "homepage": "https://github.com/ben-eb/postcss-colormin",
42
42
  "author": {