Socket
Socket
Sign inDemoInstall

vite-plugin-istanbul

Package Overview
Dependencies
247
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.0.0 to 6.0.0

dist/index.d.cts

2

dist/index.d.ts

@@ -19,2 +19,2 @@ import { Plugin } from 'vite';

export { IstanbulPluginOptions, istanbulPlugin as default };
export { type IstanbulPluginOptions, istanbulPlugin as default };
{
"name": "vite-plugin-istanbul",
"version": "5.0.0",
"version": "6.0.0",
"author": "iFaxity (christian@faxity.se)",

@@ -22,3 +22,6 @@ "license": "MIT",

"build": "unbuild",
"prepublishOnly": "npm run build"
"prettier": "prettier --check .",
"format": "prettier --write .",
"prepublishOnly": "npm run build",
"prepare": "husky"
},

@@ -42,18 +45,25 @@ "homepage": "https://github.com/ifaxity/vite-plugin-istanbul",

"@istanbuljs/load-nyc-config": "^1.1.0",
"espree": "^9.6.1",
"istanbul-lib-instrument": "^5.1.0",
"espree": "^10.0.1",
"istanbul-lib-instrument": "^6.0.2",
"picocolors": "^1.0.0",
"source-map": "^0.7.4",
"test-exclude": "^6.0.0"
},
"peerDependencies": {
"vite": ">=2.9.1 <= 5"
"vite": ">=4 <=6"
},
"devDependencies": {
"@semantic-release/changelog": "^6.0.1",
"@commitlint/cli": "^19.0.3",
"@commitlint/config-conventional": "^19.0.3",
"@ianvs/prettier-plugin-sort-imports": "^4.1.1",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@types/node": "^20.4.2",
"@types/ws": "^8.5.5",
"typescript": "^5.1.6",
"unbuild": "^1.2.1"
"@types/node": "^20.11.24",
"@types/ws": "^8.5.10",
"husky": "^9.0.11",
"lint-staged": "^15.2.2",
"prettier": "^3.2.5",
"typescript": "^5.3.3",
"unbuild": "^2.0.0"
}
}

@@ -34,13 +34,14 @@ vite-plugin-istanbul

#### Parameters
* `opts {IstanbulPluginOptions}` - Object of optional options to pass to the plugin.
* `opts.cwd {string}` - Optional string of the current working directory, used for the include/exclude patterns. Defaults to `process.cwd()`.
* `opts.include {string|string[]}` - Optional string or array of strings of glob patterns to include.
* `opts.exclude {string|string[]}` - Optional string or array of strings of glob patterns to exclude.
* `opts.extension {string|string[]}` - Optional string or array of strings of extensions to include (dot prefixed like .js or .ts). By default this is set to `['.js', '.cjs', '.mjs', '.ts', '.tsx', '.jsx', '.vue']`.
* `opts.requireEnv {boolean}` - Optional boolean to require the environment variable (defaults to **VITE_COVERAGE**) to equal `true` in order to instrument the code. Otherwise it will instrument even if env variable is not set. However if `requireEnv` is not set the instrumentation will stop if the environment variable is equal to `false`.
* `opts.cypress {boolean}` - Optional boolean to change the environment variable to **CYPRESS_COVERAGE** instead of **VITE_COVERAGE**. For ease of use with `@cypress/code-coverage``.
* `opts.checkProd {boolean}` - Optional boolean to enforce the plugin to skip instrumentation for production environments. Looks at Vite's **isProduction** key from the `ResolvedConfig`.
* `opts.forceBuildInstrument {boolean}` - Optional boolean to enforce the plugin to add instrumentation in build mode. Defaults to false.
* `opts.nycrcPath {string}` - Path to specific nyc config to use instead of automatically searching for a nycconfig. This parameter is just passed down to `@istanbuljs/load-nyc-config`.
- `opts {IstanbulPluginOptions}` - Object of optional options to pass to the plugin.
- `opts.cwd {string}` - Optional string of the current working directory, used for the include/exclude patterns. Defaults to `process.cwd()`.
- `opts.include {string|string[]}` - Optional string or array of strings of glob patterns to include.
- `opts.exclude {string|string[]}` - Optional string or array of strings of glob patterns to exclude.
- `opts.extension {string|string[]}` - Optional string or array of strings of extensions to include (dot prefixed like .js or .ts). By default this is set to `['.js', '.cjs', '.mjs', '.ts', '.tsx', '.jsx', '.vue']`.
- `opts.requireEnv {boolean}` - Optional boolean to require the environment variable (defaults to **VITE_COVERAGE**) to equal `true` in order to instrument the code. Otherwise it will instrument even if env variable is not set. However if `requireEnv` is not set the instrumentation will stop if the environment variable is equal to `false`.
- `opts.cypress {boolean}` - Optional boolean to change the environment variable to **CYPRESS_COVERAGE** instead of **VITE_COVERAGE**. For ease of use with `@cypress/code-coverage``.
- `opts.checkProd {boolean}` - Optional boolean to enforce the plugin to skip instrumentation for production environments. Looks at Vite's **isProduction** key from the `ResolvedConfig`.
- `opts.forceBuildInstrument {boolean}` - Optional boolean to enforce the plugin to add instrumentation in build mode. Defaults to false.
- `opts.nycrcPath {string}` - Path to specific nyc config to use instead of automatically searching for a nycconfig. This parameter is just passed down to `@istanbuljs/load-nyc-config`.
Notes

@@ -71,3 +72,3 @@ --------------------------

exclude: ['node_modules', 'test/'],
extension: [ '.js', '.ts', '.vue' ],
extension: ['.js', '.ts', '.vue'],
requireEnv: true,

@@ -74,0 +75,0 @@ }),

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc