oclif 3.15.0 → 3.15.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.
- package/.oclif.manifest.json +1 -1
- package/lib/tarballs/node.js +11 -1
- package/package.json +3 -1
package/.oclif.manifest.json
CHANGED
package/lib/tarballs/node.js
CHANGED
|
@@ -9,8 +9,10 @@ const log_1 = require("../log");
|
|
|
9
9
|
const node_child_process_1 = require("node:child_process");
|
|
10
10
|
const node_util_1 = require("node:util");
|
|
11
11
|
const got_1 = require("got");
|
|
12
|
+
const retry = require("async-retry");
|
|
12
13
|
const pipeline = (0, node_util_1.promisify)(node_stream_1.pipeline);
|
|
13
14
|
const exec = (0, node_util_1.promisify)(node_child_process_1.exec);
|
|
15
|
+
const RETRY_TIMEOUT_MS = 1000;
|
|
14
16
|
async function checkFor7Zip() {
|
|
15
17
|
try {
|
|
16
18
|
await exec('7z');
|
|
@@ -69,7 +71,15 @@ async function fetchNodeBinary({ nodeVersion, output, platform, arch, tmp }) {
|
|
|
69
71
|
}
|
|
70
72
|
};
|
|
71
73
|
if (!fs.existsSync(cache)) {
|
|
72
|
-
await download
|
|
74
|
+
await retry(download, {
|
|
75
|
+
retries: 3,
|
|
76
|
+
factor: 1,
|
|
77
|
+
maxTimeout: RETRY_TIMEOUT_MS,
|
|
78
|
+
minTimeout: RETRY_TIMEOUT_MS,
|
|
79
|
+
onRetry(_e, attempt) {
|
|
80
|
+
(0, log_1.log)(`retrying node download (attempt ${attempt})`);
|
|
81
|
+
},
|
|
82
|
+
});
|
|
73
83
|
await extract();
|
|
74
84
|
}
|
|
75
85
|
await fs.copy(path.join(cache, getFilename(platform)), output);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oclif",
|
|
3
3
|
"description": "oclif: create your own CLI",
|
|
4
|
-
"version": "3.15.
|
|
4
|
+
"version": "3.15.1",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bin": {
|
|
7
7
|
"oclif": "bin/run"
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
"@oclif/plugin-help": "^5.2.14",
|
|
13
13
|
"@oclif/plugin-not-found": "^2.3.32",
|
|
14
14
|
"@oclif/plugin-warn-if-update-available": "^2.0.44",
|
|
15
|
+
"async-retry": "^1.3.3",
|
|
15
16
|
"aws-sdk": "^2.1231.0",
|
|
16
17
|
"concurrently": "^7.6.0",
|
|
17
18
|
"debug": "^4.3.3",
|
|
@@ -30,6 +31,7 @@
|
|
|
30
31
|
"devDependencies": {
|
|
31
32
|
"@oclif/plugin-legacy": "^1.3.0",
|
|
32
33
|
"@oclif/test": "^2.3.31",
|
|
34
|
+
"@types/async-retry": "^1.4.5",
|
|
33
35
|
"@types/chai": "^4.3.4",
|
|
34
36
|
"@types/cli-progress": "^3.11.0",
|
|
35
37
|
"@types/fs-extra": "^9.0",
|