node-version-utils 0.4.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -1,4 +1,5 @@
1
1
  module.exports = {
2
2
  spawn: require('./spawn'),
3
3
  spawnSync: require('./spawnSync'),
4
+ spawnOptions: require('./spawnOptions')
4
5
  };
@@ -2,7 +2,7 @@ var path = require('path');
2
2
  var assign = require('just-extend');
3
3
  var prepend = require('path-string-prepend');
4
4
  var NODE = process.platform === 'win32' ? 'node.exe' : 'node';
5
- var pathKey = require('cross-spawn-cb').pathKey;
5
+ var pathKey = require('cross-spawn-cb/lib/path-key').default;
6
6
  var startsCaseInsensitiveFn = require('./startsCaseInsensitiveFn');
7
7
 
8
8
  var isWindows = process.platform === 'win32';
@@ -30,8 +30,9 @@ module.exports = function spawnOptions(installPath, options) {
30
30
 
31
31
  // override node
32
32
  if (env.NODE !== undefined) env.NODE = env.npm_node_execpath;
33
+ if (env.NODE_EXE !== undefined) env.NODE_EXE = env.npm_node_execpath;
33
34
 
34
35
  // put the path to node and npm at the front and remove nvs
35
36
  env[PATH_KEY] = prepend(env[PATH_KEY] || '', env.npm_config_binroot);
36
- return assign({}, options, { cwd: process.cwd(), env: env, execPath: env.npm_node_execpath, path: env[PATH_KEY] });
37
+ return assign({}, options, { cwd: process.cwd(), env: env });
37
38
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-version-utils",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "Utilities for running commands on a specific version of node by installed path",
5
5
  "keywords": [
6
6
  "node",
@@ -30,16 +30,16 @@
30
30
  "test": "mocha-compat test/spec/**/*.test.js --no-timeouts"
31
31
  },
32
32
  "dependencies": {
33
- "cross-spawn-cb": "^0.5.9",
33
+ "cross-spawn-cb": "^0.5.12",
34
34
  "just-extend": "^6.0.1",
35
35
  "path-string-prepend": "^0.2.0"
36
36
  },
37
37
  "devDependencies": {
38
- "@typescript-eslint/parser": "^5.30.0",
38
+ "@typescript-eslint/parser": "^5.30.5",
39
39
  "cr": "^0.1.0",
40
40
  "depcheck": "^1.4.3",
41
- "dis-dat": "^0.1.6",
42
- "eslint": "^8.18.0",
41
+ "dis-dat": "^0.1.7",
42
+ "eslint": "^8.19.0",
43
43
  "eslint-config-prettier": "^8.5.0",
44
44
  "eslint-config-standard": "^17.0.0",
45
45
  "eslint-plugin-import": "^2.26.0",
@@ -48,8 +48,9 @@
48
48
  "lodash.find": "^4.6.0",
49
49
  "match-semver": "^0.1.0",
50
50
  "mocha-compat": "^3.5.5",
51
- "node-install-release": "^0.2.6",
51
+ "node-install-release": "^0.2.8",
52
52
  "prettier": "^2.7.1",
53
+ "rimraf": "^2.7.1",
53
54
  "semver": "^5.7.1"
54
55
  },
55
56
  "engines": {