istanbul-lib-source-maps
Advanced tools
Comparing version 1.0.0-alpha.1 to 1.0.0-alpha.2
@@ -45,10 +45,19 @@ /* | ||
return transformer.create(function (filePath) { | ||
if (!that.data[filePath]) { | ||
try { | ||
if (!that.data[filePath]) { | ||
return null; | ||
} | ||
var obj = that.data[filePath]; | ||
if (obj.file) { | ||
return new SMC(JSON.parse(fs.readFileSync(obj.file, 'utf8'))); | ||
} | ||
if (!obj.version && obj.sourcemap) { //typescript hack, talk to @blakeembrey about this | ||
obj = obj.sourcemap; | ||
} | ||
return new SMC(obj); | ||
} catch (ex) { | ||
console.error('Error returning source map for ' + filePath); | ||
console.error(ex.message || ex); | ||
return null; | ||
} | ||
var obj = that.data[filePath]; | ||
if (obj.file) { | ||
return new SMC(JSON.parse(fs.readFileSync(obj.file, 'utf8'))); | ||
} | ||
return new SMC(obj); | ||
}).transform(coverageMap); | ||
@@ -55,0 +64,0 @@ }; |
{ | ||
"name": "istanbul-lib-source-maps", | ||
"version": "1.0.0-alpha.1", | ||
"version": "1.0.0-alpha.2", | ||
"description": "Source maps support for istanbul", | ||
@@ -5,0 +5,0 @@ "author": "Krishnan Anantheswaran <kananthmail-github@yahoo.com>", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14096
357