vite-plugin-istanbul
Advanced tools
Comparing version 2.6.1 to 2.7.0
@@ -1,2 +0,2 @@ | ||
## [2.6.1](https://github.com/ifaxity/vite-plugin-istanbul/compare/v2.6.0...v2.6.1) (2022-04-11) | ||
# [2.7.0](https://github.com/ifaxity/vite-plugin-istanbul/compare/v2.6.1...v2.7.0) (2022-04-12) | ||
@@ -6,2 +6,7 @@ | ||
* Replaced reference id with this.getFilename() to get accurate filenames ([733997a](https://github.com/ifaxity/vite-plugin-istanbul/commit/733997a780e260208d2f34d2d52684ee4f71d734)) | ||
* Load CYPRESS_COVERAGE from process.env ([ba6ea74](https://github.com/ifaxity/vite-plugin-istanbul/commit/ba6ea743ce1b897fe6290aaedf2b4f000686c8b6)) | ||
### Features | ||
* Replaced chalk with picocolors ([a4ee760](https://github.com/ifaxity/vite-plugin-istanbul/commit/a4ee7600adac092b1766e750dde411ce16569184)) |
@@ -8,3 +8,3 @@ "use strict"; | ||
const test_exclude_1 = __importDefault(require("test-exclude")); | ||
const chalk_1 = __importDefault(require("chalk")); | ||
const picocolors_1 = require("picocolors"); | ||
// Custom extensions to include .vue files | ||
@@ -55,3 +55,3 @@ const DEFAULT_EXTENSION = ['.js', '.cjs', '.mjs', '.ts', '.tsx', '.jsx', '.vue']; | ||
if (!((_a = config.build) === null || _a === void 0 ? void 0 : _a.sourcemap)) { | ||
logger.warn(`${PLUGIN_NAME}> ${chalk_1.default.yellow(`Sourcemaps was automatically enabled for code coverage to be accurate. | ||
logger.warn(`${PLUGIN_NAME}> ${(0, picocolors_1.yellow)(`Sourcemaps was automatically enabled for code coverage to be accurate. | ||
To hide this message set build.sourcemap to true, 'inline' or 'hidden'.`)}`); | ||
@@ -68,3 +68,4 @@ // Enforce sourcemapping, | ||
const { isProduction } = config; | ||
const { CYPRESS_COVERAGE, VITE_COVERAGE } = config.env; | ||
const { CYPRESS_COVERAGE } = process.env; | ||
const { VITE_COVERAGE } = config.env; | ||
const env = (_a = (opts.cypress ? CYPRESS_COVERAGE : VITE_COVERAGE)) === null || _a === void 0 ? void 0 : _a.toLowerCase(); | ||
@@ -71,0 +72,0 @@ if ((checkProd && isProduction && !forceBuildInstrument) || |
{ | ||
"name": "vite-plugin-istanbul", | ||
"version": "2.6.1", | ||
"version": "2.7.0", | ||
"author": "iFaxity (christian@faxity.se)", | ||
@@ -32,4 +32,4 @@ "license": "MIT", | ||
"dependencies": { | ||
"chalk": "^5.0.1", | ||
"istanbul-lib-instrument": "^5.1.0", | ||
"picocolors": "^1.0.0", | ||
"test-exclude": "^6.0.0" | ||
@@ -36,0 +36,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
16763
131
0
1
+ Addedpicocolors@^1.0.0
- Removedchalk@^5.0.1
- Removedchalk@5.3.0(transitive)