postcss 8.4.2 → 8.4.3

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.

Potentially problematic release.


This version of postcss might be problematic. Click here for more details.

@@ -84,7 +84,7 @@ class MapGenerator {
84
84
  this.root.removeChild(i)
85
85
  }
86
86
  }
87
- } else {
87
+ } else if (this.css) {
88
88
  this.css = this.css.replace(/(\n)?\/\*#[\S\s]*?\*\/$/gm, '')
89
89
  }
90
90
  }
@@ -104,7 +104,7 @@ class MapGenerator {
104
104
  }
105
105
  }
106
106
  })
107
- } else {
107
+ } else if (this.css) {
108
108
  let from = this.opts.from
109
109
  ? this.toUrl(this.path(this.opts.from))
110
110
  : '<no source>'
@@ -8,6 +8,7 @@ const Result = require('./result')
8
8
 
9
9
  class NoWorkResult {
10
10
  constructor(processor, css, opts) {
11
+ css = css.toString()
11
12
  this.stringified = false
12
13
 
13
14
  this._processor = processor
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.2'
10
+ this.version = '8.4.3'
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.2",
3
+ "version": "8.4.3",
4
4
  "description": "Tool for transforming styles with JS plugins",
5
5
  "engines": {
6
6
  "node": "^10 || ^12 || >=14"