Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

istanbul-lib-source-maps

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

istanbul-lib-source-maps - npm Package Compare versions

Comparing version 1.0.0-alpha.1 to 1.0.0-alpha.2

21

lib/map-store.js

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc