Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

c8

Package Overview
Dependencies
Maintainers
2
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

c8 - npm Package Compare versions

Comparing version 9.0.0 to 9.1.0

1

lib/commands/report.js

@@ -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,

19

lib/report.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc