Socket
Socket
Sign inDemoInstall

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 7.10.0 to 7.11.0

12

CHANGELOG.md

@@ -5,2 +5,14 @@ # Changelog

## [7.11.0](https://github.com/bcoe/c8/compare/v7.10.0...v7.11.0) (2021-12-30)
### Features
* add --extension option ([#331](https://github.com/bcoe/c8/issues/331)) ([ff01cd8](https://github.com/bcoe/c8/commit/ff01cd832a155494892b24c30c5a1c8f0169fd8e))
### Bug Fixes
* **config:** support configuration inheritance ([#343](https://github.com/bcoe/c8/issues/343)) ([e81ed5d](https://github.com/bcoe/c8/commit/e81ed5dd9ef5dac1a1f2f6dc26a07abb6c05d709))
## [7.10.0](https://www.github.com/bcoe/c8/compare/v7.9.0...v7.10.0) (2021-10-06)

@@ -7,0 +19,0 @@

1

index.d.ts

@@ -6,2 +6,3 @@ export type Watermark = [number, number];

exclude?: string | string[],
extension?: string | string[],
excludeAfterRemap?: boolean,

@@ -8,0 +9,0 @@ include?: string | string[],

@@ -25,2 +25,3 @@ const { relative } = require('path')

exclude: argv.exclude,
extension: argv.extension,
reporter: Array.isArray(argv.reporter) ? argv.reporter : [argv.reporter],

@@ -27,0 +28,0 @@ reportsDirectory: argv['reports-dir'],

@@ -24,2 +24,3 @@ const { checkCoverages } = require('./check-coverage')

exclude: argv.exclude,
extension: argv.extension,
excludeAfterRemap: argv.excludeAfterRemap,

@@ -26,0 +27,0 @@ reporter: Array.isArray(argv.reporter) ? argv.reporter : [argv.reporter],

const defaultExclude = require('@istanbuljs/schema/default-exclude')
const defaultExtension = require('@istanbuljs/schema/default-extension')
const findUp = require('find-up')
const { readFileSync } = require('fs')
const Yargs = require('yargs/yargs')
const { applyExtends } = require('yargs/helpers')
const parser = require('yargs-parser')

@@ -15,3 +17,6 @@ const { resolve } = require('path')

describe: 'path to JSON configuration file',
configParser: (path) => JSON.parse(readFileSync(path)),
configParser: (path) => {
const config = JSON.parse(readFileSync(path))
return applyExtends(config, process.cwd(), true)
},
default: () => findUp.sync(['.c8rc', '.c8rc.json', '.nycrc', '.nycrc.json'])

@@ -62,2 +67,8 @@ })

})
.option('extension', {
alias: 'e',
default: defaultExtension,
group: 'Reporting options',
describe: 'a list of specific file extensions that should be covered'
})
.option('exclude-after-remap', {

@@ -64,0 +75,0 @@ alias: 'a',

@@ -18,2 +18,3 @@ const Exclude = require('test-exclude')

exclude,
extension,
excludeAfterRemap,

@@ -42,2 +43,3 @@ include,

include: include,
extension: extension,
relativePath: !allowExternal,

@@ -44,0 +46,0 @@ excludeNodeModules: excludeNodeModules

2

package.json
{
"name": "c8",
"version": "7.10.0",
"version": "7.11.0",
"description": "output coverage reports using Node.js' built in coverage",

@@ -5,0 +5,0 @@ "main": "./index.js",

@@ -38,3 +38,4 @@ # c8 - native V8 code-coverage

| `-n`, `--include` | see [section below](#checking-for-full-source-coverage-using---all) for more info | `Array<string>` | `[]` (include all files) |
| `-x`, `--exclude` | see [section below](#checking-for-full-source-coverage-using---all) for more info | `Array<string>` | [list](https://github.com/istanbuljs/schema/blob/main/default-exclude.js) |
| `-x`, `--exclude` | see [section below](#checking-for-full-source-coverage-using---all) for more info | `Array<string>` | [list](https://github.com/istanbuljs/schema/blob/master/default-exclude.js) |
| `-e`, `--extension` | only files matching these extensions will show coverage | `string | Array<string>` | [list](https://github.com/istanbuljs/schema/blob/master/default-extension.js) |
| `--skip-full` | do not show files with 100% statement, branch, and function coverage | `boolean` | `false` |

@@ -41,0 +42,0 @@ | `--check-coverage` | check whether coverage is within thresholds provided | `boolean` | `false` |

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