autoprefixer 10.4.23 → 10.4.24

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.
@@ -352,7 +352,7 @@ class Gradient extends Value {
352
352
 
353
353
  node.nodes = []
354
354
  for (let param of params) {
355
- node.nodes = node.nodes.concat(param)
355
+ node.nodes.push(...param)
356
356
  }
357
357
 
358
358
  node.nodes.unshift(
@@ -135,13 +135,14 @@ exports.prefixTrackValue = prefixTrackValue
135
135
  function prefixTrackValue({ gap, value }) {
136
136
  let result = parser(value).nodes.reduce((nodes, node) => {
137
137
  if (node.type === 'function' && node.value === 'repeat') {
138
- return nodes.concat({
138
+ nodes.push({
139
139
  type: 'word',
140
140
  value: transformRepeat(node, { gap })
141
141
  })
142
+ return nodes
142
143
  }
143
144
  if (gap && node.type === 'space') {
144
- return nodes.concat(
145
+ nodes.push(
145
146
  {
146
147
  type: 'space',
147
148
  value: ' '
@@ -152,8 +153,10 @@ function prefixTrackValue({ gap, value }) {
152
153
  },
153
154
  node
154
155
  )
156
+ return nodes
155
157
  }
156
- return nodes.concat(node)
158
+ nodes.push(node)
159
+ return nodes
157
160
  }, [])
158
161
 
159
162
  return parser.stringify(result)
@@ -1046,7 +1049,8 @@ function normalizeRowColumn(str) {
1046
1049
  if (node.type === 'space') {
1047
1050
  return result
1048
1051
  }
1049
- return result.concat(parser.stringify(node))
1052
+ result.push(parser.stringify(node))
1053
+ return result
1050
1054
  }, [])
1051
1055
 
1052
1056
  return normalized
package/lib/transition.js CHANGED
@@ -314,7 +314,7 @@ class Transition {
314
314
  if (param[param.length - 1].type !== 'div') {
315
315
  param.push(this.div(params))
316
316
  }
317
- nodes = nodes.concat(param)
317
+ nodes.push(...param)
318
318
  }
319
319
  if (nodes[0].type === 'div') {
320
320
  nodes = nodes.slice(1)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autoprefixer",
3
- "version": "10.4.23",
3
+ "version": "10.4.24",
4
4
  "description": "Parse CSS and add vendor prefixes to CSS rules using values from the Can I Use website",
5
5
  "engines": {
6
6
  "node": "^10 || ^12 || >=14"
@@ -40,7 +40,7 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "browserslist": "^4.28.1",
43
- "caniuse-lite": "^1.0.30001760",
43
+ "caniuse-lite": "^1.0.30001766",
44
44
  "fraction.js": "^5.3.4",
45
45
  "picocolors": "^1.1.1",
46
46
  "postcss-value-parser": "^4.2.0"