postcss 8.4.35 → 8.4.37

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.
@@ -98,9 +98,14 @@ class MapGenerator {
98
98
  } else if (this.previous().length === 1) {
99
99
  let prev = this.previous()[0].consumer()
100
100
  prev.file = this.outputFile()
101
- this.map = SourceMapGenerator.fromSourceMap(prev)
101
+ this.map = SourceMapGenerator.fromSourceMap(prev, {
102
+ ignoreInvalidMapping: true
103
+ })
102
104
  } else {
103
- this.map = new SourceMapGenerator({ file: this.outputFile() })
105
+ this.map = new SourceMapGenerator({
106
+ file: this.outputFile(),
107
+ ignoreInvalidMapping: true
108
+ })
104
109
  this.map.addMapping({
105
110
  generated: { column: 0, line: 1 },
106
111
  original: { column: 0, line: 1 },
@@ -123,7 +128,10 @@ class MapGenerator {
123
128
 
124
129
  generateString() {
125
130
  this.css = ''
126
- this.map = new SourceMapGenerator({ file: this.outputFile() })
131
+ this.map = new SourceMapGenerator({
132
+ file: this.outputFile(),
133
+ ignoreInvalidMapping: true
134
+ })
127
135
 
128
136
  let line = 1
129
137
  let column = 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.4.35'
10
+ this.version = '8.4.37'
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.35",
3
+ "version": "8.4.37",
4
4
  "description": "Tool for transforming styles with JS plugins",
5
5
  "engines": {
6
6
  "node": "^10 || ^12 || >=14"
@@ -76,7 +76,7 @@
76
76
  "dependencies": {
77
77
  "nanoid": "^3.3.7",
78
78
  "picocolors": "^1.0.0",
79
- "source-map-js": "^1.0.2"
79
+ "source-map-js": "^1.2.0"
80
80
  },
81
81
  "browser": {
82
82
  "./lib/terminal-highlight": false,