nyc
Advanced tools
Comparing version 15.0.0-beta.3 to 15.0.0
@@ -55,11 +55,16 @@ #!/usr/bin/env node | ||
if (!argv.useSpawnWrap) { | ||
const { preloadAppend, propagateEnv } = require('node-preload') | ||
const requireModules = [ | ||
require.resolve('../lib/register-env.js'), | ||
...nyc.require.map(mod => resolveFrom.silent(nyc.cwd, mod) || mod) | ||
] | ||
const preloadList = require('node-preload') | ||
preloadList.push( | ||
...requireModules, | ||
require.resolve('../lib/wrap.js') | ||
) | ||
nyc.require.forEach(requireModule => { | ||
const mod = resolveFrom.silent(nyc.cwd, requireModule) || requireModule | ||
preloadAppend(mod) | ||
Object.assign(process.env, env) | ||
requireModules.forEach(mod => { | ||
require(mod) | ||
}) | ||
preloadAppend(require.resolve('../lib/wrap.js')) | ||
Object.assign(propagateEnv, env) | ||
} | ||
@@ -66,0 +71,0 @@ |
@@ -5,3 +5,3 @@ # Changelog | ||
## [15.0.0-beta.3](https://github.com/istanbuljs/nyc/compare/v14.1.1...v15.0.0-beta.3) (2019-12-09) | ||
## [15.0.0](https://github.com/istanbuljs/nyc/compare/v14.1.1...v15.0.0) (2019-12-20) | ||
@@ -25,2 +25,3 @@ | ||
* Drop node.js 6, upgrade dependencies ([#1134](https://github.com/istanbuljs/nyc/issues/1134)) ([00c3b34](https://github.com/istanbuljs/nyc/commit/00c3b3440a5b2ffe11b9c19ae4e08ad2f5b70e33)) | ||
* Filenames relative to project cwd in coverage reports ([#1212](https://github.com/istanbuljs/nyc/issues/1212)) ([5258e9f](https://github.com/istanbuljs/nyc/commit/5258e9fdb1d9e3d4abd4cc9768bc09cd8040a6be)) | ||
* Use @istanbuljs/schema for yargs setup ([#1194](https://github.com/istanbuljs/nyc/issues/1194)) ([fd40d49](https://github.com/istanbuljs/nyc/commit/fd40d49331665d936b86f30e9a873ba80071b770)) | ||
@@ -27,0 +28,0 @@ * Use istanbul-lib-processinfo ([#1145](https://github.com/istanbuljs/nyc/issues/1145)) ([7943413](https://github.com/istanbuljs/nyc/commit/7943413dc032f8f98a164fdde88d7344e817bb5e)) |
@@ -368,4 +368,4 @@ 'use strict' | ||
if (!this.config.useSpawnWrap) { | ||
const { propagateEnv } = require('node-preload') | ||
propagateEnv.NYC_PROCESS_ID = this.processInfo.uuid | ||
const updateVariable = require('./lib/register-env.js') | ||
updateVariable('NYC_PROCESS_ID') | ||
} | ||
@@ -445,2 +445,3 @@ this._addRequireHooks() | ||
skipFull: this.config.skipFull, | ||
projectRoot: this.cwd, | ||
maxCols: process.stdout.columns || 100 | ||
@@ -447,0 +448,0 @@ }).execute(context) |
{ | ||
"name": "nyc", | ||
"version": "15.0.0-beta.3", | ||
"version": "15.0.0", | ||
"description": "the Istanbul command line interface", | ||
@@ -58,3 +58,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"@istanbuljs/load-nyc-config": "^1.0.0-alpha.2", | ||
"@istanbuljs/load-nyc-config": "^1.0.0", | ||
"@istanbuljs/schema": "^0.1.2", | ||
@@ -64,22 +64,23 @@ "caching-transform": "^4.0.0", | ||
"decamelize": "^1.2.0", | ||
"find-cache-dir": "=3.0.0", | ||
"find-cache-dir": "^3.2.0", | ||
"find-up": "^4.1.0", | ||
"foreground-child": "^2.0.0", | ||
"glob": "^7.1.6", | ||
"istanbul-lib-coverage": "^3.0.0-alpha.2", | ||
"istanbul-lib-hook": "^3.0.0-alpha.2", | ||
"istanbul-lib-instrument": "^4.0.0-alpha.3", | ||
"istanbul-lib-coverage": "^3.0.0", | ||
"istanbul-lib-hook": "^3.0.0", | ||
"istanbul-lib-instrument": "^4.0.0", | ||
"istanbul-lib-processinfo": "^2.0.2", | ||
"istanbul-lib-report": "^3.0.0-alpha.2", | ||
"istanbul-lib-source-maps": "^4.0.0-alpha.5", | ||
"istanbul-reports": "^3.0.0-alpha.6", | ||
"istanbul-lib-report": "^3.0.0", | ||
"istanbul-lib-source-maps": "^4.0.0", | ||
"istanbul-reports": "^3.0.0", | ||
"js-yaml": "^3.13.1", | ||
"make-dir": "^3.0.0", | ||
"p-map": "^3.0.0", | ||
"node-preload": "^0.1.4", | ||
"process-on-spawn": "^1.0.0", | ||
"node-preload": "^0.2.0", | ||
"resolve-from": "^5.0.0", | ||
"rimraf": "^3.0.0", | ||
"signal-exit": "^3.0.2", | ||
"spawn-wrap": "^2.0.0-beta.0", | ||
"test-exclude": "^6.0.0-alpha.3", | ||
"spawn-wrap": "^2.0.0", | ||
"test-exclude": "^6.0.0", | ||
"uuid": "^3.3.3", | ||
@@ -96,3 +97,3 @@ "yargs": "^15.0.2" | ||
"standard-version": "^7.0.1", | ||
"tap": "^14.10.2", | ||
"tap": "^14.10.5", | ||
"which": "^2.0.2" | ||
@@ -99,0 +100,0 @@ }, |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 3 instances in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
103183
21
1075
0
28
27
+ Addedprocess-on-spawn@^1.0.0
+ Addedcommondir@1.0.1(transitive)
+ Addedfind-cache-dir@3.3.2(transitive)
+ Addedfromentries@1.3.2(transitive)
+ Addednode-preload@0.2.1(transitive)
+ Addedpkg-dir@4.2.0(transitive)
+ Addedprocess-on-spawn@1.0.0(transitive)
- Removednode-preload@0.1.4(transitive)
Updatedfind-cache-dir@^3.2.0
Updatedistanbul-lib-coverage@^3.0.0
Updatedistanbul-lib-hook@^3.0.0
Updatedistanbul-lib-report@^3.0.0
Updatedistanbul-reports@^3.0.0
Updatednode-preload@^0.2.0
Updatedspawn-wrap@^2.0.0
Updatedtest-exclude@^6.0.0