Socket
Socket
Sign inDemoInstall

source-map-support

Package Overview
Dependencies
1
Maintainers
3
Versions
66
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.5.1 to 0.5.2

2

package.json
{
"name": "source-map-support",
"description": "Fixes stack traces for files with source maps",
"version": "0.5.1",
"version": "0.5.2",
"main": "./source-map-support.js",

@@ -6,0 +6,0 @@ "scripts": {

@@ -69,3 +69,7 @@ var SourceMapConsumer = require('source-map').SourceMapConsumer;

// existsSync/readFileSync can't handle file protocol, but once stripped, it works
path = path.replace(/file:\/\/(\w:\\|\/)/, '');
path = path.replace(/file:\/\/\/(\w:)?/, function(protocol, drive) {
return drive ?
'' : // file:///C:/dir/file -> C:/dir/file
'/'; // file:///root-dir/file -> /root-dir/file
});
}

@@ -72,0 +76,0 @@ if (path in fileContentsCache) {

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