postcss 8.4.36 → 8.4.38
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/map-generator.js +3 -1
- package/lib/node.js +1 -1
- package/lib/processor.js +1 -1
- package/package.json +2 -2
package/lib/map-generator.js
CHANGED
@@ -98,7 +98,9 @@ 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
105
|
this.map = new SourceMapGenerator({
|
104
106
|
file: this.outputFile(),
|
package/lib/node.js
CHANGED
@@ -241,7 +241,7 @@ class Node {
|
|
241
241
|
column: opts.end.column,
|
242
242
|
line: opts.end.line
|
243
243
|
}
|
244
|
-
} else if (opts.endIndex) {
|
244
|
+
} else if (typeof opts.endIndex === 'number') {
|
245
245
|
end = this.positionInside(opts.endIndex)
|
246
246
|
} else if (opts.index) {
|
247
247
|
end = this.positionInside(opts.index + 1)
|
package/lib/processor.js
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "postcss",
|
3
|
-
"version": "8.4.
|
3
|
+
"version": "8.4.38",
|
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.
|
79
|
+
"source-map-js": "^1.2.0"
|
80
80
|
},
|
81
81
|
"browser": {
|
82
82
|
"./lib/terminal-highlight": false,
|