postcss 8.4.44 → 8.4.46

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/lib/container.js CHANGED
@@ -210,10 +210,12 @@ class Container extends Node {
210
210
 
211
211
  let processed = nodes.map(i => {
212
212
  /* c8 ignore next */
213
- if (!i[my] || !i.markClean) Container.rebuild(i)
213
+ if (!i[my]) Container.rebuild(i)
214
214
  i = i.proxyOf
215
215
  if (i.parent) i.parent.removeChild(i)
216
216
  if (i[isClean]) markTreeDirty(i)
217
+
218
+ // if (!i.raws) i.raws = {}
217
219
  if (typeof i.raws.before === 'undefined') {
218
220
  if (sample && typeof sample.raws.before !== 'undefined') {
219
221
  i.raws.before = sample.raws.before.replace(/\S/g, '')
package/lib/node.js CHANGED
@@ -153,8 +153,9 @@ class Node {
153
153
  }
154
154
  }
155
155
 
156
+ /* c8 ignore next 3 */
156
157
  markClean() {
157
- this[isClean] = true;
158
+ this[isClean] = true
158
159
  }
159
160
 
160
161
  markDirty() {
@@ -215,20 +216,23 @@ class Node {
215
216
  }
216
217
  let end = this.source.end
217
218
  ? {
218
- column: this.source.end.column + 1,
219
- line: this.source.end.line
220
- }
219
+ column: this.source.end.column + 1,
220
+ line: this.source.end.line
221
+ }
221
222
  : {
222
- column: start.column + 1,
223
- line: start.line
224
- }
223
+ column: start.column + 1,
224
+ line: start.line
225
+ }
225
226
 
226
227
  if (opts.word) {
227
228
  let stringRepresentation = this.toString()
228
229
  let index = stringRepresentation.indexOf(opts.word)
229
230
  if (index !== -1) {
230
231
  start = this.positionInside(index, stringRepresentation)
231
- end = this.positionInside(index + opts.word.length, stringRepresentation)
232
+ end = this.positionInside(
233
+ index + opts.word.length,
234
+ stringRepresentation
235
+ )
232
236
  }
233
237
  } else {
234
238
  if (opts.start) {
package/lib/processor.js CHANGED
@@ -7,7 +7,7 @@ let Root = require('./root')
7
7
 
8
8
  class Processor {
9
9
  constructor(plugins = []) {
10
- this.version = '8.4.44'
10
+ this.version = '8.4.46'
11
11
  this.plugins = this.normalize(plugins)
12
12
  }
13
13
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "postcss",
3
- "version": "8.4.44",
3
+ "version": "8.4.46",
4
4
  "description": "Tool for transforming styles with JS plugins",
5
5
  "engines": {
6
6
  "node": "^10 || ^12 || >=14"
@@ -75,8 +75,8 @@
75
75
  },
76
76
  "dependencies": {
77
77
  "nanoid": "^3.3.7",
78
- "picocolors": "^1.0.1",
79
- "source-map-js": "^1.2.0"
78
+ "picocolors": "^1.1.0",
79
+ "source-map-js": "^1.2.1"
80
80
  },
81
81
  "browser": {
82
82
  "./lib/terminal-highlight": false,