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.1 to 3.3.0-candidate.2

8

lib/report.js
const Exclude = require('test-exclude')
const furi = require('furi')
const libCoverage = require('istanbul-lib-coverage')

@@ -7,3 +6,3 @@ const libReport = require('istanbul-lib-report')

const { readdirSync, readFileSync } = require('fs')
const { resolve, isAbsolute } = require('path')
const { isAbsolute, normalize, resolve } = require('path')
// TODO: switch back to @c88/v8-coverage once patch is landed.

@@ -124,5 +123,4 @@ const { mergeProcessCovs } = require('@bcoe/v8-coverage')

for (const v8ScriptCov of v8ProcessCov.result) {
if (/^file:\/\//.test(v8ScriptCov.url)) {
v8ScriptCov.url = furi.toSysPath(v8ScriptCov.url)
}
v8ScriptCov.url = v8ScriptCov.url.replace(/^file:\/\//, '')
v8ScriptCov.url = normalize(v8ScriptCov.url)
if (this.exclude.shouldInstrument(v8ScriptCov.url) &&

@@ -129,0 +127,0 @@ (!this.omitRelative || isAbsolute(v8ScriptCov.url))) {

{
"name": "c8",
"version": "3.3.0-candidate.1",
"version": "3.3.0-candidate.2",
"description": "output coverage reports using Node.js' built in coverage",

@@ -38,3 +38,2 @@ "main": "index.js",

"foreground-child": "^1.5.6",
"furi": "^1.0.0",
"istanbul-lib-coverage": "^2.0.1",

@@ -41,0 +40,0 @@ "istanbul-lib-report": "^2.0.1",

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