postcss 8.5.31 → 8.5.32

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/input.js CHANGED
@@ -230,7 +230,7 @@ class Input {
230
230
  } else {
231
231
  fromUrl = new URL(
232
232
  from.source,
233
- this.map.consumer().sourceRoot || pathToFileURL(this.map.mapFile)
233
+ pathToFileURL(this.map.mapFile || resolve('.') + '/')
234
234
  )
235
235
  }
236
236
 
@@ -205,7 +205,7 @@ class LazyResult {
205
205
  }
206
206
 
207
207
  finally(onFinally) {
208
- return this.async().then(onFinally, onFinally)
208
+ return this.async().finally(onFinally)
209
209
  }
210
210
 
211
211
  getAsyncError() {
@@ -102,7 +102,7 @@ class NoWorkResult {
102
102
  }
103
103
 
104
104
  finally(onFinally) {
105
- return this.async().then(onFinally, onFinally)
105
+ return this.async().finally(onFinally)
106
106
  }
107
107
 
108
108
  sync() {
package/lib/node.js CHANGED
@@ -240,7 +240,7 @@ class Node {
240
240
  } else if (opts.word) {
241
241
  let stringRepresentation = inputString.slice(
242
242
  sourceOffset(inputString, this.source.start),
243
- sourceOffset(inputString, this.source.end)
243
+ this.rangeBy().end.offset
244
244
  )
245
245
  let index = stringRepresentation.indexOf(opts.word)
246
246
  if (index !== -1) pos = this.positionInside(index)
@@ -308,7 +308,7 @@ class Node {
308
308
  if (opts.word) {
309
309
  let stringRepresentation = inputString.slice(
310
310
  sourceOffset(inputString, this.source.start),
311
- sourceOffset(inputString, this.source.end)
311
+ end.offset
312
312
  )
313
313
  let index = stringRepresentation.indexOf(opts.word)
314
314
  if (index !== -1) {
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.5.31'
10
+ this.version = '8.5.32'
11
11
  this.plugins = this.normalize(plugins)
12
12
  }
13
13
 
package/lib/warning.js CHANGED
@@ -31,6 +31,7 @@ class Warning {
31
31
  return this.node.error(this.text, {
32
32
  index: this.index,
33
33
  plugin: this.plugin,
34
+ start: this.start,
34
35
  word: this.word
35
36
  }).message
36
37
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "postcss",
3
- "version": "8.5.31",
3
+ "version": "8.5.32",
4
4
  "description": "Tool for transforming styles with JS plugins",
5
5
  "keywords": [
6
6
  "css",