node-version-utils 0.3.0 → 0.3.1

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.
Files changed (2) hide show
  1. package/lib/spawnOptions.js +5 -3
  2. package/package.json +10 -10
@@ -1,5 +1,5 @@
1
1
  var path = require('path');
2
- var assign = require('object-assign');
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
5
  var PATH_KEY = require('env-path-key')();
@@ -18,7 +18,8 @@ module.exports = function envForInstallPath(installPath, options) {
18
18
  // copy the environment not for npm and skip case-insesitive additional paths
19
19
  for (var key in processEnv) {
20
20
  // skip npm_ variants
21
- if (key.length > 4 && (key[0] === 'n' || key[0] === 'N') && (key[1] === 'p' || key[1] === 'P') && (key[2] === 'm' || key[2] === 'M') && (key[3] === '_')) continue;;
21
+ if (key.length > 4 && (key[0] === 'n' || key[0] === 'N') && (key[1] === 'p' || key[1] === 'P') && (key[2] === 'm' || key[2] === 'M') && key[3] === '_')
22
+ continue;
22
23
 
23
24
  // skip non-matching path
24
25
  if (
@@ -28,7 +29,8 @@ module.exports = function envForInstallPath(installPath, options) {
28
29
  (key[2] === 't' || key[2] === 'T') &&
29
30
  (key[3] === 'h' || key[3] === 'H') &&
30
31
  key !== PATH_KEY
31
- ) continue;
32
+ )
33
+ continue;
32
34
  env[key] = processEnv[key];
33
35
  }
34
36
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-version-utils",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Utilities for running commands on a specific version of node by installed path",
5
5
  "keywords": [
6
6
  "node",
@@ -28,16 +28,16 @@
28
28
  "test:engines": "nvu engines npm test"
29
29
  },
30
30
  "dependencies": {
31
- "cross-spawn-cb": "^0.4.1",
32
- "env-path-key": "^0.1.0",
33
- "object-assign": "^4.1.1",
31
+ "cross-spawn-cb": "^0.5.2",
32
+ "env-path-key": "^0.2.0",
33
+ "just-extend": "^6.0.1",
34
34
  "path-string-prepend": "^0.2.0"
35
35
  },
36
36
  "devDependencies": {
37
- "babel-eslint": "^10.1.0",
37
+ "@typescript-eslint/parser": "^5.30.0",
38
38
  "cr": "^0.1.0",
39
- "depcheck": "^1.4.2",
40
- "dis-dat": "^0.1.3",
39
+ "depcheck": "^1.4.3",
40
+ "dis-dat": "^0.1.5",
41
41
  "eslint": "^6.8.0",
42
42
  "eslint-config-prettier": "^6.11.0",
43
43
  "eslint-config-standard": "^14.1.1",
@@ -49,9 +49,9 @@
49
49
  "lodash.find": "^4.6.0",
50
50
  "match-semver": "^0.1.0",
51
51
  "mocha-compat": "^3.5.5",
52
- "node-install-release": "^0.2.2",
53
- "node-version-use": "^0.2.0",
54
- "prettier": "^2.4.1",
52
+ "node-install-release": "^0.2.4",
53
+ "node-version-use": "^0.2.2",
54
+ "prettier": "^2.7.1",
55
55
  "rimraf": "^2.7.1",
56
56
  "semver": "^5.7.1"
57
57
  },