combine-source-map
Advanced tools
Comparing version 0.7.2 to 0.8.0
@@ -15,7 +15,7 @@ 'use strict'; | ||
* to the path where 'sourceFile' is located. | ||
* | ||
* | ||
* This is necessary before adding relative paths to the | ||
* new combined map to ensure all paths are relative to their | ||
* original source. | ||
* | ||
* | ||
* The 'sourceRoot' from the original source map is joined | ||
@@ -37,2 +37,4 @@ * as well to ensure the complete path. | ||
var relativeRootedPath = relativeRoot ? path.join(relativeRoot, relativePath) : relativePath; | ||
relativeRootedPath = relativeRootedPath.replace(/\\/g, '/'); | ||
sourceFile = sourceFile.replace(/\\/g, '/'); | ||
@@ -46,3 +48,3 @@ if (sourceFile === relativeRootedPath || // same path, | ||
// make relative to source file | ||
return path.join(path.dirname(sourceFile), relativeRootedPath); | ||
return path.join(path.dirname(sourceFile), relativeRootedPath).replace(/\\/g, '/'); | ||
}, function(a, b, c) { | ||
@@ -49,0 +51,0 @@ return a + '::' + b + '::' + c; |
{ | ||
"name": "combine-source-map", | ||
"version": "0.7.2", | ||
"version": "0.8.0", | ||
"description": "Add source maps of multiple files, offset them and then combine them into one source map", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
26160
537
0