Packages

source-map-js

1.2.4 · 19 Nov 2026BSD-3-Clause312.6M / weekRepositorynpmAtom feed

Your version

1.1.0

17 Mar 2024Where it was published

1.2.4 is the newest release of 1.x.

In short

1 new1 fixed

Security

1 advisory affects 1.1.0; 1.2.2 fixes them

Release note

Add ignoreInvalidMapping option to SourceMapGenerator. If enabled, source-map-js will not throw an error on the incorrect previous source map. Instead, it will print warnings and ignore broken mappings.

var generator = new sourceMap.SourceMapGenerator({
  file: "my-generated-javascript-file.js",
  sourceRoot: "http://example.com/app/js/",
  ignoreInvalidMapping: true,
});
  • Do not throw an error since broken prev map is popular issue #20

  • Add ignoreInvalidMapping option

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.