node-install-release 0.3.17 → 0.4.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.
@@ -5,14 +5,7 @@ var access = require('fs-access-compat');
5
5
 
6
6
  var progress = require('./progress');
7
7
 
8
- var major = +process.versions.node.split('.')[0];
9
- var minor = +process.versions.node.split('.')[1];
10
- var callExtract = path.join(__dirname, 'callExtract.js');
11
-
12
- var call = null; // break dependencies
13
8
  module.exports = function conditionalExtract(src, dest, options, callback) {
14
- if (!call) call = require('node-version-call'); // break dependencies
15
-
16
9
  if (typeof options === 'function') {
17
10
  callback = options;
18
11
  options = null;
@@ -25,22 +18,10 @@ module.exports = function conditionalExtract(src, dest, options, callback) {
25
18
  mkpath(path.dirname(dest), function () {
26
19
  var extractOptions = Object.assign({ strip: 1, progress: progress, time: 1000 }, options);
27
20
 
28
- // TODO: yauzl does not read the master record properly on Node 0.8
29
- if (major === 0 && minor <= 8 && path.extname(src) === '.zip') {
30
- try {
31
- delete extractOptions.progress;
32
- call({ version: 'lts', callbacks: true }, callExtract, src, dest, extractOptions);
33
- console.log('');
34
- callback();
35
- } catch (err) {
36
- callback(err);
37
- }
38
- } else {
39
- extract(src, dest, extractOptions, function (err) {
40
- console.log('');
41
- callback(err);
42
- });
43
- }
21
+ extract(src, dest, extractOptions, function (err) {
22
+ console.log('');
23
+ callback(err);
24
+ });
44
25
  });
45
26
  });
46
27
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-install-release",
3
- "version": "0.3.17",
3
+ "version": "0.4.1",
4
4
  "description": "Cross-platform solution for installing releases of Node.js",
5
5
  "keywords": [
6
6
  "node",
@@ -36,19 +36,18 @@
36
36
  "cross-spawn-cb": "^0.6.14",
37
37
  "end-with": "^1.0.2",
38
38
  "exit": "^0.1.2",
39
- "fast-extract": "^0.3.4",
39
+ "fast-extract": "^0.4.3",
40
40
  "fs-access-compat": "^1.0.3",
41
- "function-exec-sync": "^0.2.9",
42
- "get-remote": "^0.7.11",
41
+ "function-exec-sync": "^0.2.10",
42
+ "get-remote": "^0.8.1",
43
43
  "getopts-compat": "^2.2.5",
44
44
  "isarray": "^2.0.5",
45
45
  "lodash.find": "^4.6.0",
46
46
  "lodash.keys": "^4.2.0",
47
47
  "match-semver": "^0.1.1",
48
48
  "mkpath": "^1.0.0",
49
- "node-filename-to-dist-paths": "^0.1.15",
50
- "node-resolve-versions": "^0.3.6",
51
- "node-version-call": "^0.3.16",
49
+ "node-filename-to-dist-paths": "^0.2.1",
50
+ "node-resolve-versions": "^0.3.9",
52
51
  "osenv": "^0.1.5",
53
52
  "pump": "^3.0.0",
54
53
  "queue-cb": "^1.1.7",
@@ -56,7 +55,7 @@
56
55
  "single-line-log2": "^1.1.3"
57
56
  },
58
57
  "devDependencies": {
59
- "@typescript-eslint/parser": "^5.32.0",
58
+ "@typescript-eslint/parser": "^5.33.0",
60
59
  "cr": "^0.1.0",
61
60
  "depcheck": "^1.4.3",
62
61
  "eslint": "^8.21.0",
@@ -67,7 +66,7 @@
67
66
  "fs-access-sync-compat": "^1.0.2",
68
67
  "is-version": "^0.2.1",
69
68
  "mocha-compat": "^3.5.5",
70
- "node-version-utils": "^0.5.5",
69
+ "node-version-utils": "^0.5.6",
71
70
  "prettier": "^2.7.1"
72
71
  },
73
72
  "engines": {
@@ -1,5 +0,0 @@
1
- var extract = require('fast-extract');
2
-
3
- module.exports = function callExtract(src, dest, options, callback) {
4
- extract(src, dest, options, callback);
5
- };