Socket
Socket
Sign inDemoInstall

combine-source-map

Package Overview
Dependencies
4
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.7.2 to 0.8.0

8

index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc