node-install-release 0.3.7 → 0.3.8

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.
@@ -8,10 +8,12 @@ var progress = require('./progress');
8
8
 
9
9
  var major = +process.versions.node.split('.')[0];
10
10
  var minor = +process.versions.node.split('.')[1];
11
- var call = require('node-version-call');
12
11
  var callExtract = __dirname + '/callExtract.js'; // eslint-disable-line n/no-path-concat
13
12
 
13
+ var call = null; // remove dependency
14
14
  module.exports = function conditionalExtract(src, dest, options, callback) {
15
+ if (!call) call = require('node-version-call'); // remove dependency
16
+
15
17
  if (typeof options === 'function') {
16
18
  callback = options;
17
19
  options = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-install-release",
3
- "version": "0.3.7",
3
+ "version": "0.3.8",
4
4
  "description": "Cross-platform solution for installing releases of Node.js",
5
5
  "keywords": [
6
6
  "node",
@@ -48,7 +48,7 @@
48
48
  "mkpath": "^1.0.0",
49
49
  "node-filename-to-dist-paths": "^0.1.13",
50
50
  "node-resolve-versions": "^0.3.2",
51
- "node-version-call": "^0.3.1",
51
+ "node-version-call": "^0.3.2",
52
52
  "osenv": "^0.1.5",
53
53
  "pump": "^3.0.0",
54
54
  "queue-cb": "^1.1.7",
@@ -67,7 +67,7 @@
67
67
  "fs-access-sync-compat": "^1.0.2",
68
68
  "is-version": "^0.2.1",
69
69
  "mocha-compat": "^3.5.5",
70
- "node-version-utils": "^0.5.3",
70
+ "node-version-utils": "^0.5.4",
71
71
  "prettier": "^2.7.1"
72
72
  },
73
73
  "engines": {