autoprefixer 9.3.0 → 9.3.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,6 +1,9 @@
1
1
  # Change Log
2
2
  This project adheres to [Semantic Versioning](http://semver.org/).
3
3
 
4
+ ## 9.3.1
5
+ * Fix Grid prefixes with `repeat()` value (by Bogdan Dolin).
6
+
4
7
  ## 9.3 “Labor omnia vincit”
5
8
  * Add `place-self` support (by Bogdan Dolin).
6
9
  * Fix Grid row/column span inheritance bug (by Bogdan Dolin).
@@ -124,20 +124,36 @@ function transformRepeat(_ref3, _ref4) {
124
124
  count: []
125
125
  }),
126
126
  count = _nodes$reduce.count,
127
- size = _nodes$reduce.size;
127
+ size = _nodes$reduce.size; // insert gap values
128
+
128
129
 
129
130
  if (gap) {
130
- var val = [];
131
+ var _ret = function () {
132
+ size = size.filter(function (i) {
133
+ return i.trim();
134
+ });
135
+ var val = [];
136
+
137
+ var _loop = function _loop(i) {
138
+ size.forEach(function (item, index) {
139
+ if (index > 0 || i > 1) {
140
+ val.push(gap);
141
+ }
131
142
 
132
- for (var i = 1; i <= count; i++) {
133
- if (gap && i > 1) {
134
- val.push(gap);
143
+ val.push(item);
144
+ });
145
+ };
146
+
147
+ for (var i = 1; i <= count; i++) {
148
+ _loop(i);
135
149
  }
136
150
 
137
- val.push(size.join());
138
- }
151
+ return {
152
+ v: val.join(' ')
153
+ };
154
+ }();
139
155
 
140
- return val.join(' ');
156
+ if (typeof _ret === "object") return _ret.v;
141
157
  }
142
158
 
143
159
  return "(" + size.join('') + ")[" + count.join('') + "]";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autoprefixer",
3
- "version": "9.3.0",
3
+ "version": "9.3.1",
4
4
  "description": "Parse CSS and add vendor prefixes to CSS rules using values from the Can I Use website",
5
5
  "keywords": ["autoprefixer", "css", "prefix", "postcss", "postcss-plugin"],
6
6
  "author": "Andrey Sitnik <andrey@sitnik.ru>",
@@ -10,7 +10,7 @@
10
10
  "node": ">=6.0.0"
11
11
  },
12
12
  "dependencies": {
13
- "browserslist": "^4.3.2",
13
+ "browserslist": "^4.3.3",
14
14
  "caniuse-lite": "^1.0.30000898",
15
15
  "normalize-range": "^0.1.2",
16
16
  "num2fraction": "^1.2.2",