v8-to-istanbul
Advanced tools
Comparing version 7.1.1 to 7.1.2
@@ -5,2 +5,9 @@ # Changelog | ||
### [7.1.2](https://www.github.com/istanbuljs/v8-to-istanbul/compare/v7.1.1...v7.1.2) (2021-05-05) | ||
### Bug Fixes | ||
* fix undefined line in branches and functions ([#139](https://www.github.com/istanbuljs/v8-to-istanbul/issues/139)) ([f5ed83d](https://www.github.com/istanbuljs/v8-to-istanbul/commit/f5ed83d185129db48e5c05c5225470ad114c7609)) | ||
### [7.1.1](https://www.github.com/istanbuljs/v8-to-istanbul/compare/v7.1.0...v7.1.1) (2021-03-30) | ||
@@ -7,0 +14,0 @@ |
@@ -260,3 +260,4 @@ const assert = require('assert') | ||
this.branches[path].forEach((branch, index) => { | ||
const ignore = source.lines[branch.startLine - 1].ignore | ||
const srcLine = source.lines[branch.startLine - 1] | ||
const ignore = srcLine === undefined ? true : srcLine.ignore | ||
branches.branchMap[`${index}`] = branch.toIstanbul() | ||
@@ -275,3 +276,4 @@ branches.b[`${index}`] = [ignore ? 1 : branch.count] | ||
this.functions[path].forEach((fn, index) => { | ||
const ignore = source.lines[fn.startLine - 1].ignore | ||
const srcLine = source.lines[fn.startLine - 1] | ||
const ignore = srcLine === undefined ? true : srcLine.ignore | ||
functions.fnMap[`${index}`] = fn.toIstanbul() | ||
@@ -278,0 +280,0 @@ functions.f[`${index}`] = ignore ? 1 : fn.count |
{ | ||
"name": "v8-to-istanbul", | ||
"version": "7.1.1", | ||
"version": "7.1.2", | ||
"description": "convert from v8 coverage format to istanbul's format", | ||
@@ -37,3 +37,3 @@ "main": "index.js", | ||
"should": "13.2.3", | ||
"standard": "^14.3.1", | ||
"standard": "^16.0.0", | ||
"tap": "^14.10.8" | ||
@@ -40,0 +40,0 @@ }, |
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
40649
593