autoprefixer 9.7.2 → 9.7.6

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.
Files changed (76) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +41 -28
  3. package/data/prefixes.js +10 -26
  4. package/lib/at-rule.js +21 -16
  5. package/lib/autoprefixer.js +1 -1
  6. package/lib/brackets.js +10 -26
  7. package/lib/browsers.js +1 -3
  8. package/lib/declaration.js +23 -29
  9. package/lib/hacks/align-content.js +13 -3
  10. package/lib/hacks/align-items.js +13 -3
  11. package/lib/hacks/align-self.js +13 -3
  12. package/lib/hacks/animation.js +13 -3
  13. package/lib/hacks/appearance.js +13 -3
  14. package/lib/hacks/backdrop-filter.js +13 -3
  15. package/lib/hacks/background-clip.js +13 -3
  16. package/lib/hacks/background-size.js +13 -3
  17. package/lib/hacks/block-logical.js +13 -3
  18. package/lib/hacks/border-image.js +13 -3
  19. package/lib/hacks/border-radius.js +13 -3
  20. package/lib/hacks/break-props.js +13 -3
  21. package/lib/hacks/color-adjust.js +13 -3
  22. package/lib/hacks/cross-fade.js +13 -3
  23. package/lib/hacks/display-flex.js +13 -3
  24. package/lib/hacks/display-grid.js +13 -3
  25. package/lib/hacks/filter-value.js +13 -3
  26. package/lib/hacks/filter.js +13 -3
  27. package/lib/hacks/flex-basis.js +13 -3
  28. package/lib/hacks/flex-direction.js +13 -3
  29. package/lib/hacks/flex-flow.js +13 -3
  30. package/lib/hacks/flex-grow.js +13 -3
  31. package/lib/hacks/flex-shrink.js +13 -3
  32. package/lib/hacks/flex-wrap.js +13 -3
  33. package/lib/hacks/flex.js +13 -3
  34. package/lib/hacks/fullscreen.js +13 -3
  35. package/lib/hacks/gradient.js +31 -83
  36. package/lib/hacks/grid-area.js +13 -3
  37. package/lib/hacks/grid-column-align.js +13 -3
  38. package/lib/hacks/grid-end.js +13 -3
  39. package/lib/hacks/grid-row-align.js +13 -3
  40. package/lib/hacks/grid-row-column.js +13 -3
  41. package/lib/hacks/grid-rows-columns.js +13 -3
  42. package/lib/hacks/grid-start.js +13 -3
  43. package/lib/hacks/grid-template-areas.js +14 -4
  44. package/lib/hacks/grid-template.js +13 -3
  45. package/lib/hacks/grid-utils.js +40 -67
  46. package/lib/hacks/image-rendering.js +13 -3
  47. package/lib/hacks/image-set.js +13 -3
  48. package/lib/hacks/inline-logical.js +13 -3
  49. package/lib/hacks/intrinsic.js +13 -3
  50. package/lib/hacks/justify-content.js +13 -3
  51. package/lib/hacks/mask-border.js +13 -3
  52. package/lib/hacks/mask-composite.js +13 -3
  53. package/lib/hacks/order.js +13 -3
  54. package/lib/hacks/overscroll-behavior.js +13 -3
  55. package/lib/hacks/pixelated.js +13 -3
  56. package/lib/hacks/place-self.js +13 -3
  57. package/lib/hacks/placeholder.js +13 -3
  58. package/lib/hacks/text-decoration-skip-ink.js +13 -3
  59. package/lib/hacks/text-decoration.js +13 -3
  60. package/lib/hacks/text-emphasis-position.js +13 -3
  61. package/lib/hacks/transform-decl.js +22 -17
  62. package/lib/hacks/user-select.js +13 -3
  63. package/lib/hacks/writing-mode.js +13 -3
  64. package/lib/info.js +12 -39
  65. package/lib/old-selector.js +11 -18
  66. package/lib/old-value.js +1 -3
  67. package/lib/prefixer.js +9 -16
  68. package/lib/prefixes.js +39 -112
  69. package/lib/processor.js +25 -88
  70. package/lib/resolution.js +26 -45
  71. package/lib/selector.js +25 -33
  72. package/lib/supports.js +15 -55
  73. package/lib/transition.js +29 -127
  74. package/lib/utils.js +9 -14
  75. package/lib/value.js +13 -3
  76. package/package.json +6 -8
@@ -2,6 +2,16 @@
2
2
 
3
3
  function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
4
4
 
5
+ function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
6
+
7
+ function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
8
+
9
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10
+
11
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
12
+
13
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
14
+
5
15
  function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
6
16
 
7
17
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
@@ -10,11 +20,11 @@ var Declaration = require('../declaration');
10
20
 
11
21
  var BASIC = ['none', 'underline', 'overline', 'line-through', 'blink', 'inherit', 'initial', 'unset'];
12
22
 
13
- var TextDecoration =
14
- /*#__PURE__*/
15
- function (_Declaration) {
23
+ var TextDecoration = /*#__PURE__*/function (_Declaration) {
16
24
  _inheritsLoose(TextDecoration, _Declaration);
17
25
 
26
+ var _super = _createSuper(TextDecoration);
27
+
18
28
  function TextDecoration() {
19
29
  return _Declaration.apply(this, arguments) || this;
20
30
  }
@@ -2,17 +2,27 @@
2
2
 
3
3
  function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
4
4
 
5
+ function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
6
+
7
+ function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
8
+
9
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10
+
11
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
12
+
13
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
14
+
5
15
  function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
6
16
 
7
17
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
8
18
 
9
19
  var Declaration = require('../declaration');
10
20
 
11
- var TextEmphasisPosition =
12
- /*#__PURE__*/
13
- function (_Declaration) {
21
+ var TextEmphasisPosition = /*#__PURE__*/function (_Declaration) {
14
22
  _inheritsLoose(TextEmphasisPosition, _Declaration);
15
23
 
24
+ var _super = _createSuper(TextEmphasisPosition);
25
+
16
26
  function TextEmphasisPosition() {
17
27
  return _Declaration.apply(this, arguments) || this;
18
28
  }
@@ -2,17 +2,33 @@
2
2
 
3
3
  function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
4
4
 
5
+ function _createForOfIteratorHelperLoose(o) { var i = 0; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } i = o[Symbol.iterator](); return i.next.bind(i); }
6
+
7
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
8
+
9
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
10
+
11
+ function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
12
+
13
+ function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
14
+
15
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
16
+
17
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
18
+
19
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
20
+
5
21
  function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
6
22
 
7
23
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
8
24
 
9
25
  var Declaration = require('../declaration');
10
26
 
11
- var TransformDecl =
12
- /*#__PURE__*/
13
- function (_Declaration) {
27
+ var TransformDecl = /*#__PURE__*/function (_Declaration) {
14
28
  _inheritsLoose(TransformDecl, _Declaration);
15
29
 
30
+ var _super = _createSuper(TransformDecl);
31
+
16
32
  function TransformDecl() {
17
33
  return _Declaration.apply(this, arguments) || this;
18
34
  }
@@ -46,19 +62,8 @@ function (_Declaration) {
46
62
  return false;
47
63
  }
48
64
 
49
- for (var _iterator = TransformDecl.functions3d, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
50
- var _ref;
51
-
52
- if (_isArray) {
53
- if (_i >= _iterator.length) break;
54
- _ref = _iterator[_i++];
55
- } else {
56
- _i = _iterator.next();
57
- if (_i.done) break;
58
- _ref = _i.value;
59
- }
60
-
61
- var func = _ref;
65
+ for (var _iterator = _createForOfIteratorHelperLoose(TransformDecl.functions3d), _step; !(_step = _iterator()).done;) {
66
+ var func = _step.value;
62
67
 
63
68
  if (decl.value.includes(func + "(")) {
64
69
  return true;
@@ -76,7 +81,7 @@ function (_Declaration) {
76
81
  decl = _Declaration.prototype.set.call(this, decl, prefix);
77
82
 
78
83
  if (prefix === '-ms-') {
79
- decl.value = decl.value.replace(/rotateZ/gi, 'rotate');
84
+ decl.value = decl.value.replace(/rotatez/gi, 'rotate');
80
85
  }
81
86
 
82
87
  return decl;
@@ -2,17 +2,27 @@
2
2
 
3
3
  function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
4
4
 
5
+ function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
6
+
7
+ function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
8
+
9
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10
+
11
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
12
+
13
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
14
+
5
15
  function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
6
16
 
7
17
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
8
18
 
9
19
  var Declaration = require('../declaration');
10
20
 
11
- var UserSelect =
12
- /*#__PURE__*/
13
- function (_Declaration) {
21
+ var UserSelect = /*#__PURE__*/function (_Declaration) {
14
22
  _inheritsLoose(UserSelect, _Declaration);
15
23
 
24
+ var _super = _createSuper(UserSelect);
25
+
16
26
  function UserSelect() {
17
27
  return _Declaration.apply(this, arguments) || this;
18
28
  }
@@ -2,17 +2,27 @@
2
2
 
3
3
  function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
4
4
 
5
+ function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
6
+
7
+ function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
8
+
9
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10
+
11
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
12
+
13
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
14
+
5
15
  function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
6
16
 
7
17
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
8
18
 
9
19
  var Declaration = require('../declaration');
10
20
 
11
- var WritingMode =
12
- /*#__PURE__*/
13
- function (_Declaration) {
21
+ var WritingMode = /*#__PURE__*/function (_Declaration) {
14
22
  _inheritsLoose(WritingMode, _Declaration);
15
23
 
24
+ var _super = _createSuper(WritingMode);
25
+
16
26
  function WritingMode() {
17
27
  return _Declaration.apply(this, arguments) || this;
18
28
  }
package/lib/info.js CHANGED
@@ -1,5 +1,11 @@
1
1
  "use strict";
2
2
 
3
+ function _createForOfIteratorHelperLoose(o) { var i = 0; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } i = o[Symbol.iterator](); return i.next.bind(i); }
4
+
5
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
6
+
7
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
8
+
3
9
  var browserslist = require('browserslist');
4
10
 
5
11
  function capitalize(str) {
@@ -35,19 +41,8 @@ module.exports = function (prefixes) {
35
41
 
36
42
  var versions = {};
37
43
 
38
- for (var _iterator = prefixes.browsers.selected, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
39
- var _ref;
40
-
41
- if (_isArray) {
42
- if (_i >= _iterator.length) break;
43
- _ref = _iterator[_i++];
44
- } else {
45
- _i = _iterator.next();
46
- if (_i.done) break;
47
- _ref = _i.value;
48
- }
49
-
50
- var _browser = _ref;
44
+ for (var _iterator = _createForOfIteratorHelperLoose(prefixes.browsers.selected), _step; !(_step = _iterator()).done;) {
45
+ var _browser = _step.value;
51
46
 
52
47
  var parts = _browser.split(' ');
53
48
 
@@ -91,19 +86,8 @@ module.exports = function (prefixes) {
91
86
 
92
87
  var selectors = [];
93
88
 
94
- for (var _iterator2 = prefixes.add.selectors, _isArray2 = Array.isArray(_iterator2), _i2 = 0, _iterator2 = _isArray2 ? _iterator2 : _iterator2[Symbol.iterator]();;) {
95
- var _ref2;
96
-
97
- if (_isArray2) {
98
- if (_i2 >= _iterator2.length) break;
99
- _ref2 = _iterator2[_i2++];
100
- } else {
101
- _i2 = _iterator2.next();
102
- if (_i2.done) break;
103
- _ref2 = _i2.value;
104
- }
105
-
106
- var selector = _ref2;
89
+ for (var _iterator2 = _createForOfIteratorHelperLoose(prefixes.add.selectors), _step2; !(_step2 = _iterator2()).done;) {
90
+ var selector = _step2.value;
107
91
 
108
92
  if (selector.prefixes) {
109
93
  selectors.push(prefix(selector.name, selector.prefixes));
@@ -131,19 +115,8 @@ module.exports = function (prefixes) {
131
115
  continue;
132
116
  }
133
117
 
134
- for (var _iterator3 = _data.values, _isArray3 = Array.isArray(_iterator3), _i3 = 0, _iterator3 = _isArray3 ? _iterator3 : _iterator3[Symbol.iterator]();;) {
135
- var _ref3;
136
-
137
- if (_isArray3) {
138
- if (_i3 >= _iterator3.length) break;
139
- _ref3 = _iterator3[_i3++];
140
- } else {
141
- _i3 = _iterator3.next();
142
- if (_i3.done) break;
143
- _ref3 = _i3.value;
144
- }
145
-
146
- var value = _ref3;
118
+ for (var _iterator3 = _createForOfIteratorHelperLoose(_data.values), _step3; !(_step3 = _iterator3()).done;) {
119
+ var value = _step3.value;
147
120
 
148
121
  var _grid = value.name.includes('grid');
149
122
 
@@ -1,8 +1,12 @@
1
1
  "use strict";
2
2
 
3
- var OldSelector =
4
- /*#__PURE__*/
5
- function () {
3
+ function _createForOfIteratorHelperLoose(o) { var i = 0; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } i = o[Symbol.iterator](); return i.next.bind(i); }
4
+
5
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
6
+
7
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
8
+
9
+ var OldSelector = /*#__PURE__*/function () {
6
10
  function OldSelector(selector, prefix) {
7
11
  this.prefix = prefix;
8
12
  this.prefixed = selector.prefixed(this.prefix);
@@ -37,21 +41,10 @@ function () {
37
41
 
38
42
  var some = false;
39
43
 
40
- for (var _iterator = this.prefixeds, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
41
- var _ref;
42
-
43
- if (_isArray) {
44
- if (_i >= _iterator.length) break;
45
- _ref = _iterator[_i++];
46
- } else {
47
- _i = _iterator.next();
48
- if (_i.done) break;
49
- _ref = _i.value;
50
- }
51
-
52
- var _ref2 = _ref,
53
- string = _ref2[0],
54
- regexp = _ref2[1];
44
+ for (var _iterator = _createForOfIteratorHelperLoose(this.prefixeds), _step; !(_step = _iterator()).done;) {
45
+ var _step$value = _step.value,
46
+ string = _step$value[0],
47
+ regexp = _step$value[1];
55
48
 
56
49
  if (before.includes(string) && before.match(regexp)) {
57
50
  some = true;
package/lib/old-value.js CHANGED
@@ -2,9 +2,7 @@
2
2
 
3
3
  var utils = require('./utils');
4
4
 
5
- var OldValue =
6
- /*#__PURE__*/
7
- function () {
5
+ var OldValue = /*#__PURE__*/function () {
8
6
  function OldValue(unprefixed, prefixed, string, regexp) {
9
7
  this.unprefixed = unprefixed;
10
8
  this.prefixed = prefixed;
package/lib/prefixer.js CHANGED
@@ -1,5 +1,11 @@
1
1
  "use strict";
2
2
 
3
+ function _createForOfIteratorHelperLoose(o) { var i = 0; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } i = o[Symbol.iterator](); return i.next.bind(i); }
4
+
5
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
6
+
7
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
8
+
3
9
  var vendor = require('postcss').vendor;
4
10
 
5
11
  var Browsers = require('./browsers');
@@ -39,9 +45,7 @@ function _clone(obj, parent) {
39
45
  return cloned;
40
46
  }
41
47
 
42
- var Prefixer =
43
- /*#__PURE__*/
44
- function () {
48
+ var Prefixer = /*#__PURE__*/function () {
45
49
  /**
46
50
  * Add hack to selected names
47
51
  */
@@ -138,19 +142,8 @@ function () {
138
142
  });
139
143
  var added = [];
140
144
 
141
- for (var _iterator = prefixes, _isArray = Array.isArray(_iterator), _i2 = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
142
- var _ref;
143
-
144
- if (_isArray) {
145
- if (_i2 >= _iterator.length) break;
146
- _ref = _iterator[_i2++];
147
- } else {
148
- _i2 = _iterator.next();
149
- if (_i2.done) break;
150
- _ref = _i2.value;
151
- }
152
-
153
- var prefix = _ref;
145
+ for (var _iterator = _createForOfIteratorHelperLoose(prefixes), _step; !(_step = _iterator()).done;) {
146
+ var prefix = _step.value;
154
147
 
155
148
  if (this.add(node, prefix, added.concat([prefix]), result)) {
156
149
  added.push(prefix);
package/lib/prefixes.js CHANGED
@@ -1,5 +1,11 @@
1
1
  "use strict";
2
2
 
3
+ function _createForOfIteratorHelperLoose(o) { var i = 0; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } i = o[Symbol.iterator](); return i.next.bind(i); }
4
+
5
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
6
+
7
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
8
+
3
9
  var vendor = require('postcss').vendor;
4
10
 
5
11
  var Declaration = require('./declaration');
@@ -78,9 +84,7 @@ Value.hack(require('./hacks/display-grid'));
78
84
  Value.hack(require('./hacks/filter-value'));
79
85
  var declsCache = {};
80
86
 
81
- var Prefixes =
82
- /*#__PURE__*/
83
- function () {
87
+ var Prefixes = /*#__PURE__*/function () {
84
88
  function Prefixes(data, browsers, options) {
85
89
  if (options === void 0) {
86
90
  options = {};
@@ -98,8 +102,8 @@ function () {
98
102
  this.processor = new Processor(this);
99
103
  }
100
104
  /**
101
- * Return clone instance to remove all prefixes
102
- */
105
+ * Return clone instance to remove all prefixes
106
+ */
103
107
 
104
108
 
105
109
  var _proto = Prefixes.prototype;
@@ -119,8 +123,8 @@ function () {
119
123
  return this.cleanerCache;
120
124
  }
121
125
  /**
122
- * Select prefixes from data, which is necessary for selected browsers
123
- */
126
+ * Select prefixes from data, which is necessary for selected browsers
127
+ */
124
128
  ;
125
129
 
126
130
  _proto.select = function select(list) {
@@ -196,8 +200,8 @@ function () {
196
200
  return selected;
197
201
  }
198
202
  /**
199
- * Sort vendor prefixes
200
- */
203
+ * Sort vendor prefixes
204
+ */
201
205
  ;
202
206
 
203
207
  _proto.sort = function sort(prefixes) {
@@ -213,8 +217,8 @@ function () {
213
217
  });
214
218
  }
215
219
  /**
216
- * Cache prefixes data to fast CSS processing
217
- */
220
+ * Cache prefixes data to fast CSS processing
221
+ */
218
222
  ;
219
223
 
220
224
  _proto.preprocess = function preprocess(selected) {
@@ -238,19 +242,8 @@ function () {
238
242
  if (props) {
239
243
  var value = Value.load(name, prefixes, this);
240
244
 
241
- for (var _iterator = props, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
242
- var _ref;
243
-
244
- if (_isArray) {
245
- if (_i >= _iterator.length) break;
246
- _ref = _iterator[_i++];
247
- } else {
248
- _i = _iterator.next();
249
- if (_i.done) break;
250
- _ref = _i.value;
251
- }
252
-
253
- var prop = _ref;
245
+ for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done;) {
246
+ var prop = _step.value;
254
247
 
255
248
  if (!add[prop]) {
256
249
  add[prop] = {
@@ -278,35 +271,13 @@ function () {
278
271
  if (this.data[_name].selector) {
279
272
  var selector = Selector.load(_name, _prefixes);
280
273
 
281
- for (var _iterator2 = _prefixes, _isArray2 = Array.isArray(_iterator2), _i2 = 0, _iterator2 = _isArray2 ? _iterator2 : _iterator2[Symbol.iterator]();;) {
282
- var _ref2;
283
-
284
- if (_isArray2) {
285
- if (_i2 >= _iterator2.length) break;
286
- _ref2 = _iterator2[_i2++];
287
- } else {
288
- _i2 = _iterator2.next();
289
- if (_i2.done) break;
290
- _ref2 = _i2.value;
291
- }
292
-
293
- var prefix = _ref2;
274
+ for (var _iterator2 = _createForOfIteratorHelperLoose(_prefixes), _step2; !(_step2 = _iterator2()).done;) {
275
+ var prefix = _step2.value;
294
276
  remove.selectors.push(selector.old(prefix));
295
277
  }
296
278
  } else if (_name === '@keyframes' || _name === '@viewport') {
297
- for (var _iterator3 = _prefixes, _isArray3 = Array.isArray(_iterator3), _i3 = 0, _iterator3 = _isArray3 ? _iterator3 : _iterator3[Symbol.iterator]();;) {
298
- var _ref3;
299
-
300
- if (_isArray3) {
301
- if (_i3 >= _iterator3.length) break;
302
- _ref3 = _iterator3[_i3++];
303
- } else {
304
- _i3 = _iterator3.next();
305
- if (_i3.done) break;
306
- _ref3 = _i3.value;
307
- }
308
-
309
- var _prefix = _ref3;
279
+ for (var _iterator3 = _createForOfIteratorHelperLoose(_prefixes), _step3; !(_step3 = _iterator3()).done;) {
280
+ var _prefix = _step3.value;
310
281
 
311
282
  var prefixed = "@" + _prefix + _name.slice(1);
312
283
 
@@ -322,36 +293,14 @@ function () {
322
293
  if (_props) {
323
294
  var _value = Value.load(_name, [], this);
324
295
 
325
- for (var _iterator4 = _prefixes, _isArray4 = Array.isArray(_iterator4), _i4 = 0, _iterator4 = _isArray4 ? _iterator4 : _iterator4[Symbol.iterator]();;) {
326
- var _ref4;
327
-
328
- if (_isArray4) {
329
- if (_i4 >= _iterator4.length) break;
330
- _ref4 = _iterator4[_i4++];
331
- } else {
332
- _i4 = _iterator4.next();
333
- if (_i4.done) break;
334
- _ref4 = _i4.value;
335
- }
336
-
337
- var _prefix2 = _ref4;
296
+ for (var _iterator4 = _createForOfIteratorHelperLoose(_prefixes), _step4; !(_step4 = _iterator4()).done;) {
297
+ var _prefix2 = _step4.value;
338
298
 
339
299
  var old = _value.old(_prefix2);
340
300
 
341
301
  if (old) {
342
- for (var _iterator5 = _props, _isArray5 = Array.isArray(_iterator5), _i5 = 0, _iterator5 = _isArray5 ? _iterator5 : _iterator5[Symbol.iterator]();;) {
343
- var _ref5;
344
-
345
- if (_isArray5) {
346
- if (_i5 >= _iterator5.length) break;
347
- _ref5 = _iterator5[_i5++];
348
- } else {
349
- _i5 = _iterator5.next();
350
- if (_i5.done) break;
351
- _ref5 = _i5.value;
352
- }
353
-
354
- var _prop = _ref5;
302
+ for (var _iterator5 = _createForOfIteratorHelperLoose(_props), _step5; !(_step5 = _iterator5()).done;) {
303
+ var _prop = _step5.value;
355
304
 
356
305
  if (!remove[_prop]) {
357
306
  remove[_prop] = {};
@@ -366,19 +315,8 @@ function () {
366
315
  }
367
316
  }
368
317
  } else {
369
- for (var _iterator6 = _prefixes, _isArray6 = Array.isArray(_iterator6), _i6 = 0, _iterator6 = _isArray6 ? _iterator6 : _iterator6[Symbol.iterator]();;) {
370
- var _ref6;
371
-
372
- if (_isArray6) {
373
- if (_i6 >= _iterator6.length) break;
374
- _ref6 = _iterator6[_i6++];
375
- } else {
376
- _i6 = _iterator6.next();
377
- if (_i6.done) break;
378
- _ref6 = _i6.value;
379
- }
380
-
381
- var p = _ref6;
318
+ for (var _iterator6 = _createForOfIteratorHelperLoose(_prefixes), _step6; !(_step6 = _iterator6()).done;) {
319
+ var p = _step6.value;
382
320
  var olds = this.decl(_name).old(_name, p);
383
321
 
384
322
  if (_name === 'align-self') {
@@ -393,19 +331,8 @@ function () {
393
331
  }
394
332
  }
395
333
 
396
- for (var _iterator7 = olds, _isArray7 = Array.isArray(_iterator7), _i7 = 0, _iterator7 = _isArray7 ? _iterator7 : _iterator7[Symbol.iterator]();;) {
397
- var _ref7;
398
-
399
- if (_isArray7) {
400
- if (_i7 >= _iterator7.length) break;
401
- _ref7 = _iterator7[_i7++];
402
- } else {
403
- _i7 = _iterator7.next();
404
- if (_i7.done) break;
405
- _ref7 = _i7.value;
406
- }
407
-
408
- var _prefixed = _ref7;
334
+ for (var _iterator7 = _createForOfIteratorHelperLoose(olds), _step7; !(_step7 = _iterator7()).done;) {
335
+ var _prefixed = _step7.value;
409
336
 
410
337
  if (!remove[_prefixed]) {
411
338
  remove[_prefixed] = {};
@@ -436,8 +363,8 @@ function () {
436
363
  }
437
364
  }
438
365
  /**
439
- * Return unprefixed version of property
440
- */
366
+ * Return unprefixed version of property
367
+ */
441
368
  ;
442
369
 
443
370
  _proto.unprefixed = function unprefixed(prop) {
@@ -450,16 +377,16 @@ function () {
450
377
  return value;
451
378
  }
452
379
  /**
453
- * Normalize prefix for remover
454
- */
380
+ * Normalize prefix for remover
381
+ */
455
382
  ;
456
383
 
457
384
  _proto.normalize = function normalize(prop) {
458
385
  return this.decl(prop).normalize(prop);
459
386
  }
460
387
  /**
461
- * Return prefixed version of property
462
- */
388
+ * Return prefixed version of property
389
+ */
463
390
  ;
464
391
 
465
392
  _proto.prefixed = function prefixed(prop, prefix) {
@@ -467,8 +394,8 @@ function () {
467
394
  return this.decl(prop).prefixed(prop, prefix);
468
395
  }
469
396
  /**
470
- * Return values, which must be prefixed in selected property
471
- */
397
+ * Return values, which must be prefixed in selected property
398
+ */
472
399
  ;
473
400
 
474
401
  _proto.values = function values(type, prop) {
@@ -483,8 +410,8 @@ function () {
483
410
  }
484
411
  }
485
412
  /**
486
- * Group declaration by unprefixed property to check them
487
- */
413
+ * Group declaration by unprefixed property to check them
414
+ */
488
415
  ;
489
416
 
490
417
  _proto.group = function group(decl) {