istanbul-lib-source-maps
Advanced tools
Comparing version 1.0.0-alpha.10 to 1.0.0
@@ -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 @@ }, |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
19897
7
11
502
2