Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 1.71 KB

dl-webapp-sources.md

File metadata and controls

26 lines (19 loc) · 1.71 KB

Home > @llllvvuu/dl-webapp-sources

dl-webapp-sources package

Functions

Function Description
fetchFile(normalizedUrlOrFilename, dependencies) Fetch method which can take a filepath or a URL.
getAggregatedSourceContents(urlsOrPaths, dependencies) The main method. End-to-end conversion of list of .js or .js.map filepaths/URLs to source contents.
getSourceContents(normalizedSourceMappingURL, sourceMapConsumer, dependencies) Tries both sourcesContent and sources paths
getSourceMappingURL(compiledContent) Utility method to extract un-normalized sourceMappingURL from .js content.
normalizeSourceMappingURL(compiledJsUrlOrFilename, sourcemapRelativeUrl, dependencies) Utility method to make a relative URL like "bundle.js.map" into a resolvable URL like "https://example.com/bundle.js.map" or "./example/bundle.js.map"

Interfaces

Interface Description
FetchFileDependencies
GetAggregatedSourceContentsDeps
GetSourceContentsDependencies
Logger
NormalizeUrlDependencies