summaryrefslogtreecommitdiff
path: root/node_modules/postcss/lib
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/postcss/lib')
-rw-r--r--node_modules/postcss/lib/map-generator.js14
-rw-r--r--node_modules/postcss/lib/node.js2
-rw-r--r--node_modules/postcss/lib/processor.js2
3 files changed, 13 insertions, 5 deletions
diff --git a/node_modules/postcss/lib/map-generator.js b/node_modules/postcss/lib/map-generator.js
index ea1ef5ec..71b21caa 100644
--- a/node_modules/postcss/lib/map-generator.js
+++ b/node_modules/postcss/lib/map-generator.js
@@ -98,9 +98,14 @@ class MapGenerator {
} else if (this.previous().length === 1) {
let prev = this.previous()[0].consumer()
prev.file = this.outputFile()
- this.map = SourceMapGenerator.fromSourceMap(prev)
+ this.map = SourceMapGenerator.fromSourceMap(prev, {
+ ignoreInvalidMapping: true
+ })
} else {
- this.map = new SourceMapGenerator({ file: this.outputFile() })
+ this.map = new SourceMapGenerator({
+ file: this.outputFile(),
+ ignoreInvalidMapping: true
+ })
this.map.addMapping({
generated: { column: 0, line: 1 },
original: { column: 0, line: 1 },
@@ -123,7 +128,10 @@ class MapGenerator {
generateString() {
this.css = ''
- this.map = new SourceMapGenerator({ file: this.outputFile() })
+ this.map = new SourceMapGenerator({
+ file: this.outputFile(),
+ ignoreInvalidMapping: true
+ })
let line = 1
let column = 1
diff --git a/node_modules/postcss/lib/node.js b/node_modules/postcss/lib/node.js
index d79dd56e..9e747ca7 100644
--- a/node_modules/postcss/lib/node.js
+++ b/node_modules/postcss/lib/node.js
@@ -241,7 +241,7 @@ class Node {
column: opts.end.column,
line: opts.end.line
}
- } else if (opts.endIndex) {
+ } else if (typeof opts.endIndex === 'number') {
end = this.positionInside(opts.endIndex)
} else if (opts.index) {
end = this.positionInside(opts.index + 1)
diff --git a/node_modules/postcss/lib/processor.js b/node_modules/postcss/lib/processor.js
index b9e587cd..d8a16f45 100644
--- a/node_modules/postcss/lib/processor.js
+++ b/node_modules/postcss/lib/processor.js
@@ -7,7 +7,7 @@ let Root = require('./root')
class Processor {
constructor(plugins = []) {
- this.version = '8.4.35'
+ this.version = '8.4.38'
this.plugins = this.normalize(plugins)
}