Socket
Socket
Sign inDemoInstall

c8

Package Overview
Dependencies
Maintainers
1
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 3.3.0-candidate.2 to 3.3.0-candidate.3

13

lib/report.js
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"

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