source-map-loader
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -5,2 +5,9 @@ # Changelog | ||
### [1.0.1](https://github.com/webpack-contrib/source-map-loader/compare/v1.0.0...v1.0.1) (2020-06-30) | ||
### Bug Fixes | ||
* webpack protocol ([a2e4cd6](https://github.com/webpack-contrib/source-map-loader/commit/a2e4cd6be7f9ff9024c201093f1410431f7a48e9)) | ||
## [1.0.0](https://github.com/webpack-contrib/source-map-loader/compare/v0.2.4...v1.0.0) (2020-05-26) | ||
@@ -7,0 +14,0 @@ |
@@ -82,3 +82,5 @@ "use strict"; | ||
const originalSourceContent = map.sourcesContent && map.sourcesContent[i] ? map.sourcesContent[i] : null; | ||
const skipReading = originalSourceContent !== null; | ||
const skipReading = originalSourceContent !== null; // We do not skipReading here, because we need absolute paths in sources. | ||
// This is necessary so that for sourceMaps with the same file structure in sources, name collisions do not occur. | ||
// https://github.com/webpack-contrib/source-map-loader/issues/51 | ||
@@ -85,0 +87,0 @@ try { |
@@ -150,2 +150,8 @@ "use strict"; | ||
if (skipReading) { | ||
return { | ||
sourceURL: url | ||
}; | ||
} | ||
if (protocol === 'file:') { | ||
@@ -156,8 +162,3 @@ const pathFromURL = _url.default.fileURLToPath(url); | ||
let sourceContent; | ||
if (!skipReading) { | ||
sourceContent = await fetchFromFilesystem(loaderContext, sourceURL); | ||
} | ||
const sourceContent = await fetchFromFilesystem(loaderContext, sourceURL); | ||
return { | ||
@@ -164,0 +165,0 @@ sourceURL, |
{ | ||
"name": "source-map-loader", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "extracts inlined source map and offers it to webpack", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
25984
481
0