From 06823fbf1c2e763a5bf76c3990ca98fbbcd98691 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Tue, 14 May 2024 14:05:49 +0800 Subject: updated node_modules --- node_modules/source-map-js/README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'node_modules/source-map-js/README.md') diff --git a/node_modules/source-map-js/README.md b/node_modules/source-map-js/README.md index ba01846c..614962d7 100644 --- a/node_modules/source-map-js/README.md +++ b/node_modules/source-map-js/README.md @@ -466,6 +466,9 @@ You may pass an object with the following properties: discretion, as a last resort. Even then, one should avoid using this flag when running tests, if possible. +* `ignoreInvalidMapping`: Optional. When `true`, instead of throwing error on + invalid mapping, it will be ignored. + ```js var generator = new sourceMap.SourceMapGenerator({ file: "my-generated-javascript-file.js", @@ -473,14 +476,18 @@ var generator = new sourceMap.SourceMapGenerator({ }); ``` -#### SourceMapGenerator.fromSourceMap(sourceMapConsumer) +#### SourceMapGenerator.fromSourceMap(sourceMapConsumer, sourceMapGeneratorOptions) Creates a new `SourceMapGenerator` from an existing `SourceMapConsumer` instance. * `sourceMapConsumer` The SourceMap. +* `sourceMapGeneratorOptions` options that will be passed to the SourceMapGenerator constructor which used under the hood. + ```js -var generator = sourceMap.SourceMapGenerator.fromSourceMap(consumer); +var generator = sourceMap.SourceMapGenerator.fromSourceMap(consumer, { + ignoreInvalidMapping: true, +}); ``` #### SourceMapGenerator.prototype.addMapping(mapping) -- cgit v1.2.3