diff options
Diffstat (limited to 'node_modules/postcss')
| -rw-r--r-- | node_modules/postcss/lib/map-generator.js | 14 | ||||
| -rw-r--r-- | node_modules/postcss/lib/node.js | 2 | ||||
| -rw-r--r-- | node_modules/postcss/lib/processor.js | 2 | ||||
| -rwxr-xr-x | node_modules/postcss/package.json | 4 |
4 files changed, 15 insertions, 7 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) } diff --git a/node_modules/postcss/package.json b/node_modules/postcss/package.json index 68e1036d..2cfe97f5 100755 --- a/node_modules/postcss/package.json +++ b/node_modules/postcss/package.json @@ -1,6 +1,6 @@ { "name": "postcss", - "version": "8.4.35", + "version": "8.4.38", "description": "Tool for transforming styles with JS plugins", "engines": { "node": "^10 || ^12 || >=14" @@ -76,7 +76,7 @@ "dependencies": { "nanoid": "^3.3.7", "picocolors": "^1.0.0", - "source-map-js": "^1.0.2" + "source-map-js": "^1.2.0" }, "browser": { "./lib/terminal-highlight": false, |
