source-map-resolve
Advanced tools
Changelog
Version 0.6.0 (2020-03-21) ###
Changelog
Version 0.5.3 (2019-12-28) ###
TextDecoder
and Uint8Array
.)Changelog
Version 0.5.2 (2018-05-10) ###
atob
to disallow depending on 2.0.3
which as a security
vulnerability.Changelog
Version 0.5.1 (2017-10-21) ###
Fixed: URLs are now decoded before being passed to read
in Node.js. This
allows reading files with spaces, for example.
Fixed: Missing or empty sources
fields (such as sources: []
) in source
maps are now handled. Previously, such source maps would cause crashes or
callbacks never bing called. Now, an empty result is produced:
sourcesResolved: [],
sourcesContent: []
Changelog
Version 0.5.0 (2016-02-28) ###
sourceMapData
property that contain as much as
possible of the intended result of the function up until the error occurred.resolveSources
and resolve
, as well as their *Sync
alternatives, no longer fail when one single source fails to be fetched.
Instead, the sourcesContent
array in the result object will contain error
objects for all failed sources, and strings otherwise. (Backwards-incompatible
change.)Changelog
Version 0.4.0 (2015-08-29) ###
ignoreSourceRoot
option of resolveSources
. It has been
replaced with sourceRoot: false
. (Backwards-incompatible change.)sourceRoot
option of resolveSources
. It not only allows to
ignore the source root, it also lets you replace it.parseMapToJSON
method.resolve
method now accepts null, mapUrl, ...
as arguments, in
addition to the existing signature, which will read mapUrl
instead of
looking for a sourceMappingURL in the code.Changelog
Version 0.3.1 (2014-08-16) ###
Changelog
Version 0.3.0 (2014-07-02) ###
sourceRoot
property of source maps may now be ignored, which can
be useful when resolving sources outside of the browser.Changelog
Version 0.2.0 (2014-06-22) ###
resolveSources
is now an object, not an array. The
old result array is available in the sourcesContent
property.
(Backwards-incompatible change.)sources
has been renamed to sourcesContent
in the result object
of resolve
. (Backwards-incompatible change.)resolveSources
now also returns all sources fully resolved, in the
sourcesResolved
property.resolve
now contains the sourcesResolved
property from resolveSources
.