Socket
Socket
Sign inDemoInstall

istanbul-lib-source-maps

Package Overview
Dependencies
16
Maintainers
2
Versions
40
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0-alpha.10 to 1.0.0

CHANGELOG.md

2

lib/pathutils.js

@@ -12,3 +12,3 @@ var path = require('path'),

exports.asAbsolute = function (file, baseDir) {
return isAbsolute(file) ? file : path.resolve(baseDir || process.cwd(), file);
return isAbsolute(file) ? file : path.resolve(baseDir || process.cwd, file);
};

@@ -15,0 +15,0 @@

@@ -11,2 +11,6 @@ /*

function isInvalidPosition (pos) {
return !pos || !pos.line || !pos.column || pos.line < 0 || pos.column < 0;
}
/**

@@ -19,3 +23,11 @@ * determines the original position for a given location

function getMapping(sourceMap, location, origFile) {
if (!location) {
return null;
}
if (isInvalidPosition(location.start) || isInvalidPosition(location.end)) {
return null;
}
var start = sourceMap.originalPositionFor(location.start),

@@ -22,0 +34,0 @@ end = sourceMap.originalPositionFor(location.end);

{
"name": "istanbul-lib-source-maps",
"version": "1.0.0-alpha.10",
"version": "1.0.0",
"description": "Source maps support for istanbul",

@@ -11,3 +11,4 @@ "author": "Krishnan Anantheswaran <kananthmail-github@yahoo.com>",

"test": "istanbul cover --include-all-sources --print=both _mocha -- test/",
"xposttest": "istanbul check-coverage --statements 95 --branches 80"
"xposttest": "istanbul check-coverage --statements 95 --branches 80",
"release": "standard-version"
},

@@ -26,2 +27,3 @@ "dependencies": {

"mocha": "^2.3.4",
"standard-version": "^2.4.0",
"ts-node": "^0.5.3"

@@ -28,0 +30,0 @@ },

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