postcss-calc 6.0.0 → 6.0.1

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,7 @@
1
+ # 6.0.1 - 2017-10-10
2
+
3
+ - Fixed: throwing error for attribute selectors without a value
4
+
1
5
  # 6.0.0 - 2017-05-08
2
6
 
3
7
  - Breaking: Updated PostCSS from v5.x to v6.x, and reduce-css-calc from v1.x
@@ -17,6 +17,10 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
17
17
  var MATCH_CALC = /((?:\-[a-z]+\-)?calc)/;
18
18
 
19
19
  function transformValue(value, options, result, item) {
20
+ if (!value) {
21
+ return value;
22
+ }
23
+
20
24
  var reduced = (0, _reduceCssCalc2.default)(value, options.precision);
21
25
  // if the warnWhenCannotResolve option is on, inform the user that the calc
22
26
  // expression could not be resolved to a single value
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "postcss-calc",
3
- "version": "6.0.0",
3
+ "version": "6.0.1",
4
4
  "description": "PostCSS plugin to reduce calc()",
5
5
  "keywords": [
6
6
  "css",