istanbul-lib-coverage
Advanced tools
Comparing version 1.0.0-alpha.4 to 1.0.0
@@ -169,2 +169,5 @@ /* | ||
Object.keys(statements).forEach(function (st) { | ||
if (!statementMap[st]) { | ||
return; | ||
} | ||
var line = statementMap[st].start.line, | ||
@@ -205,3 +208,3 @@ count = statements[st], | ||
Object.keys(branchMap).forEach(function (k) { | ||
var line = branchMap[k].loc.start.line, | ||
var line = branchMap[k].line, | ||
branchData = branches[k]; | ||
@@ -258,4 +261,4 @@ ret[line] = ret[line] || []; | ||
FileCoverage.prototype.computeSimpleTotals = function (propOrMethod) { | ||
var stats = this[propOrMethod], | ||
FileCoverage.prototype.computeSimpleTotals = function (property) { | ||
var stats = this[property], | ||
ret = {total: 0, covered: 0, skipped: 0}; | ||
@@ -262,0 +265,0 @@ |
{ | ||
"name": "istanbul-lib-coverage", | ||
"version": "1.0.0-alpha.4", | ||
"version": "1.0.0", | ||
"description": "Data library for istanbul coverage objects", | ||
@@ -11,3 +11,4 @@ "author": "Krishnan Anantheswaran <kananthmail-github@yahoo.com>", | ||
"test": "istanbul cover -x 'docs/**' --include-all-sources --print=both _mocha -- test/", | ||
"posttest": "istanbul check-coverage --statements 95 --branches 80" | ||
"posttest": "istanbul check-coverage --statements 95 --branches 80", | ||
"release": "standard-version" | ||
}, | ||
@@ -19,3 +20,4 @@ "devDependencies": { | ||
"jshint": "^2.8.0", | ||
"mocha": "^2.2.5" | ||
"mocha": "^2.2.5", | ||
"standard-version": "^2.4.0" | ||
}, | ||
@@ -22,0 +24,0 @@ "karmaDeps": { |
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
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
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
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
19241
6
8
490
2