@delta-infra/cli 1.0.47 → 1.0.48
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/checksums.txt +5 -5
- package/package.json +1 -1
- package/scripts/install-wizard.js +2 -2
- package/scripts/install.js +5 -3
package/checksums.txt
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
915ea8aa85e7cbed2edb47273fa755da58e7e422c2f70f897582a8389a6d1e28 delta-cli-darwin-amd64.tar.gz
|
|
2
|
+
87dd614dfea3e5a1c8776a874f5c58b767454ca214e1aa0de6920e561c808ddf delta-cli-darwin-arm64.tar.gz
|
|
3
|
+
43a594728d1047389fdd57b3f12252b73d772a903ef27ff3ce13e804226a2a06 delta-cli-linux-amd64.tar.gz
|
|
4
|
+
29a7b43babdd8d61f11189762518c513c619a6a9106b02f01460c09c71df2fb2 delta-cli-linux-arm64.tar.gz
|
|
5
|
+
7f61f034ed7ccd3034bccaf2a891973dc82e4bf71a885124a01ae48c5dc6af60 delta-cli-windows-amd64.zip
|
package/package.json
CHANGED
|
@@ -214,12 +214,12 @@ async function stepInstallGlobally(msg) {
|
|
|
214
214
|
// Install the npm package (which triggers postinstall → install.js),
|
|
215
215
|
// then explicitly download the correct version binary in case the
|
|
216
216
|
// npx cache has stale package.json that misleads install.js.
|
|
217
|
-
await runSilentAsync("npm", ["install", "-g", PKG], { timeout:
|
|
217
|
+
await runSilentAsync("npm", ["install", "-g", PKG], { timeout: 300000 });
|
|
218
218
|
if (targetVer) {
|
|
219
219
|
await runSilentAsync(process.execPath, [
|
|
220
220
|
path.join(__dirname, "install.js"),
|
|
221
221
|
], {
|
|
222
|
-
timeout:
|
|
222
|
+
timeout: 300000,
|
|
223
223
|
env: { ...process.env, DELTA_CLI_RUN: "true", DELTA_CLI_VERSION: targetVer },
|
|
224
224
|
});
|
|
225
225
|
}
|
package/scripts/install.js
CHANGED
|
@@ -130,7 +130,7 @@ function probeMirrors(version, cb) {
|
|
|
130
130
|
];
|
|
131
131
|
var child;
|
|
132
132
|
try {
|
|
133
|
-
child = require("child_process").spawn("curl", args, { stdio: ["ignore", "pipe", "pipe"], timeout:
|
|
133
|
+
child = require("child_process").spawn("curl", args, { stdio: ["ignore", "pipe", "pipe"], timeout: 5000 });
|
|
134
134
|
var stdout = "";
|
|
135
135
|
var stderr = "";
|
|
136
136
|
child.stdout.on("data", function(d) { stdout += d; });
|
|
@@ -153,7 +153,7 @@ function probeMirrors(version, cb) {
|
|
|
153
153
|
})(i);
|
|
154
154
|
}
|
|
155
155
|
// Safety timeout: if probes hang, continue without mirrors after 10s
|
|
156
|
-
setTimeout(finish,
|
|
156
|
+
setTimeout(finish, 5000);
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
function releaseAssetUrls(version, assetName, cb) {
|
|
@@ -225,7 +225,9 @@ function download(url, destPath) {
|
|
|
225
225
|
assertAllowedHost(url);
|
|
226
226
|
const args = [
|
|
227
227
|
"--fail", "--location", "--silent", "--show-error",
|
|
228
|
-
"--connect-timeout", "10",
|
|
228
|
+
"--connect-timeout", "10",
|
|
229
|
+
"--max-time", "45",
|
|
230
|
+
"--speed-limit", "50000", "--speed-time", "10",
|
|
229
231
|
"--max-redirs", "3",
|
|
230
232
|
"--output", destPath,
|
|
231
233
|
];
|