Comparing version 3.3.0-candidate.2 to 3.3.0-candidate.3
const Exclude = require('test-exclude') | ||
const furi = require('furi') | ||
const libCoverage = require('istanbul-lib-coverage') | ||
@@ -6,3 +7,3 @@ const libReport = require('istanbul-lib-report') | ||
const { readdirSync, readFileSync } = require('fs') | ||
const { isAbsolute, normalize, resolve } = require('path') | ||
const { isAbsolute, resolve } = require('path') | ||
// TODO: switch back to @c88/v8-coverage once patch is landed. | ||
@@ -123,4 +124,10 @@ const { mergeProcessCovs } = require('@bcoe/v8-coverage') | ||
for (const v8ScriptCov of v8ProcessCov.result) { | ||
v8ScriptCov.url = v8ScriptCov.url.replace(/^file:\/\//, '') | ||
v8ScriptCov.url = normalize(v8ScriptCov.url) | ||
if (/^file:\/\//.test(v8ScriptCov.url)) { | ||
try { | ||
v8ScriptCov.url = furi.toSysPath(v8ScriptCov.url) | ||
} catch (err) { | ||
console.warn(err) | ||
continue | ||
} | ||
} | ||
if (this.exclude.shouldInstrument(v8ScriptCov.url) && | ||
@@ -127,0 +134,0 @@ (!this.omitRelative || isAbsolute(v8ScriptCov.url))) { |
{ | ||
"name": "c8", | ||
"version": "3.3.0-candidate.2", | ||
"version": "3.3.0-candidate.3", | ||
"description": "output coverage reports using Node.js' built in coverage", | ||
@@ -38,2 +38,3 @@ "main": "index.js", | ||
"foreground-child": "^1.5.6", | ||
"furi": "^1.3.0", | ||
"istanbul-lib-coverage": "^2.0.1", | ||
@@ -45,3 +46,3 @@ "istanbul-lib-report": "^2.0.1", | ||
"uuid": "^3.3.2", | ||
"v8-to-istanbul": "^2.0.0", | ||
"v8-to-istanbul": "^2.0.1", | ||
"yargs": "^12.0.2", | ||
@@ -48,0 +49,0 @@ "yargs-parser": "^10.1.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
14235
247
13
+ Addedfuri@^1.3.0
+ Added@types/is-windows@0.2.0(transitive)
+ Addedfuri@1.3.0(transitive)
+ Addedis-windows@1.0.2(transitive)
Updatedv8-to-istanbul@^2.0.1