@bugsnag/source-maps
Advanced tools
Comparing version 2.3.2 to 2.3.3
@@ -42,6 +42,10 @@ "use strict"; | ||
return s; | ||
// If the source path is a webpack path and we are running on Windows, | ||
// we normalize the path separators to URI format | ||
const isWebPackOnWindows = s.indexOf('webpack') > -1 && process.platform === 'win32'; | ||
const absoluteSourcePath = path_1.default.resolve(path_1.default.dirname(sourceMapPath), s.replace(/webpack:\/\/.*\/\.\//, `${projectRoot}/`)); | ||
return absoluteSourcePath.replace(projectRoot, '').replace(/^(\/|\\)/, ''); | ||
const strippedSourcePath = absoluteSourcePath.replace(projectRoot, '').replace(/^(\/|\\)/, ''); | ||
return isWebPackOnWindows ? strippedSourcePath.replace(/\\/g, '/') : strippedSourcePath; | ||
}); | ||
} | ||
//# sourceMappingURL=StripProjectRoot.js.map |
{ | ||
"name": "@bugsnag/source-maps", | ||
"version": "2.3.2", | ||
"version": "2.3.3", | ||
"description": "CLI and JS library for uploading source maps to Bugsnag", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
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
161725
2293
3