source-map-support
Advanced tools
Comparing version 0.5.1 to 0.5.2
{ | ||
"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) { |
27741
477