Comparing version 9.0.0 to 9.1.0
@@ -28,2 +28,3 @@ const { checkCoverages } = require('./check-coverage') | ||
reportsDirectory: argv['reports-dir'], | ||
reporterOptions: argv.reporterOptions || {}, | ||
tempDirectory: argv.tempDirectory, | ||
@@ -30,0 +31,0 @@ watermarks: argv.watermarks, |
@@ -17,3 +17,2 @@ const Exclude = require('test-exclude') | ||
const v8toIstanbul = require('v8-to-istanbul') | ||
const isCjsEsmBridgeCov = require('./is-cjs-esm-bridge') | ||
const util = require('util') | ||
@@ -110,3 +109,2 @@ const debuglog = util.debuglog('c8') | ||
const resultCountPerPath = new Map() | ||
const possibleCjsEsmBridges = new Map() | ||
@@ -130,11 +128,4 @@ for (const v8ScriptCov of v8ProcessCov.result) { | ||
if (isCjsEsmBridgeCov(v8ScriptCov)) { | ||
possibleCjsEsmBridges.set(converter, { | ||
path, | ||
functions: v8ScriptCov.functions | ||
}) | ||
} else { | ||
converter.applyCoverage(v8ScriptCov.functions) | ||
map.merge(converter.toIstanbul()) | ||
} | ||
converter.applyCoverage(v8ScriptCov.functions) | ||
map.merge(converter.toIstanbul()) | ||
} catch (err) { | ||
@@ -145,8 +136,2 @@ debuglog(`file: ${v8ScriptCov.url} error: ${err.stack}`) | ||
for (const [converter, { path, functions }] of possibleCjsEsmBridges) { | ||
if (resultCountPerPath.get(path) <= 1) { | ||
converter.applyCoverage(functions) | ||
map.merge(converter.toIstanbul()) | ||
} | ||
} | ||
this._allCoverageFiles = map | ||
@@ -153,0 +138,0 @@ return this._allCoverageFiles |
{ | ||
"name": "c8", | ||
"version": "9.0.0", | ||
"version": "9.1.0", | ||
"description": "output coverage reports using Node.js' built in coverage", | ||
@@ -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
37469
11
849