v8-to-istanbul
Advanced tools
Comparing version 7.0.0-candidate.0 to 7.0.0-candidate.1
@@ -209,6 +209,6 @@ const CovLine = require('./line') | ||
// Not required since Node 13, see: https://github.com/nodejs/node/pull/27375 | ||
const isPrerNode13 = /^v1[0-2]\./u.test(process.version) | ||
// Not required since Node 12, see: https://github.com/nodejs/node/pull/27375 | ||
const isPreNode12 = /^v1[0-1]\./u.test(process.version) | ||
function getShebangLength (source) { | ||
if (isPrerNode13 && source.indexOf('#!') === 0) { | ||
if (isPreNode12 && source.indexOf('#!') === 0) { | ||
const match = source.match(/(?<shebang>#!.*)/) | ||
@@ -215,0 +215,0 @@ if (match) { |
@@ -37,5 +37,2 @@ const assert = require('assert') | ||
this.sourceTranspiled = undefined | ||
// Indicate that this report was generated with placeholder data from | ||
// running --all: | ||
this.all = false | ||
} | ||
@@ -111,7 +108,6 @@ | ||
line.count = 0 | ||
this.all = true | ||
return true | ||
} | ||
return startCol < line.endCol && endCol >= line.startCol | ||
return startCol <= line.endCol && endCol >= line.startCol | ||
}) | ||
@@ -231,3 +227,2 @@ const startLineInstance = lines[0] | ||
path: resolvedPath, | ||
all: this.all, | ||
...this._statementsToIstanbul(source, path), | ||
@@ -234,0 +229,0 @@ ...this._branchesToIstanbul(source, path), |
{ | ||
"name": "v8-to-istanbul", | ||
"version": "7.0.0-candidate.0", | ||
"version": "7.0.0-candidate.1", | ||
"description": "convert from v8 coverage format to istanbul's format", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
37434
563