@delta-infra/cli 1.0.32 → 1.0.34

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 CHANGED
@@ -1,4 +1,5 @@
1
- c052f80b8cffe0d816c46c64ecc0206611c80714e44b1392531f23c8340dfa93 delta-cli-darwin-amd64.tar.gz
2
- e6b1359f7dc15a31b9864e62bb12276f7a8935b032993ff9bffe3a7c67216168 delta-cli-darwin-arm64.tar.gz
3
- b6fc6b5ac048d177b702d93e2eb09780c4f79b1b3fc328ad3c18d0ea7eca771d delta-cli-linux-amd64.tar.gz
4
- 2960fa855443d4cddf4092c27329d1a2ffb2668721a5e88d4f4e5ab2d3d18be8 delta-cli-windows-amd64.zip
1
+ 3280a243a3ad74deff648243103fa6835de7b16624a96bff4388e001ba6d3d83 delta-cli-darwin-amd64.tar.gz
2
+ f42ca72eb07e3c8edc08c64cb38db980e83c025a10dbb63817cd8074d05018de delta-cli-darwin-arm64.tar.gz
3
+ 4f3aa674d93f227f3182c5052db7f6bb1fdbc9684e654973474b147f00021ee7 delta-cli-linux-amd64.tar.gz
4
+ 6eebd852f36fda70edc83c2950a29808a4beddb01fe777af56db930f0ecb9b65 delta-cli-linux-arm64.tar.gz
5
+ 23b0d6614d594977cefc96fa357b31f27324e7c5db291efa33432b86d48360bd delta-cli-windows-amd64.zip
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delta-infra/cli",
3
- "version": "1.0.32",
3
+ "version": "1.0.34",
4
4
  "description": "Delta Sandbox CLI",
5
5
  "bin": {
6
6
  "delta-cli": "scripts/run.js"
@@ -65,14 +65,24 @@ const dest = path.join(binDir, NAME + (isWindows ? ".exe" : ""));
65
65
 
66
66
  // ── Mirror URL resolution ──────────────────────────────────────────────────
67
67
 
68
+ var _curlTimeoutMs = null;
69
+
70
+ function _getCurlTimeout() {
71
+ if (_curlTimeoutMs !== null) return _curlTimeoutMs;
72
+ var env = process.env.DELTA_CLI_DOWNLOAD_TIMEOUT;
73
+ var t = env ? parseInt(env, 10) : 0;
74
+ _curlTimeoutMs = t > 0 ? t : 60000;
75
+ return _curlTimeoutMs;
76
+ }
77
+
68
78
  function releaseAssetUrls(version, assetName) {
69
- const urls = [];
70
- const mirror = process.env.DELTA_CLI_MIRROR || "";
79
+ var urls = [];
80
+ var mirror = process.env.DELTA_CLI_MIRROR || "";
71
81
  if (mirror) {
72
- urls.push(`${mirror.replace(/\/$/, "")}/yzailab/delta-infra-cli/releases/download/v${version}/${assetName}`);
82
+ urls.push("" + mirror.replace(/\/$/, "") + "/yzailab/delta-infra-cli/releases/download/v" + version + "/" + assetName);
73
83
  }
74
- // China acceleration mirror (gh-proxy.com)
75
- urls.push(`https://gh-proxy.com/https://github.com/yzailab/delta-infra-cli/releases/download/v${version}/${assetName}`);
84
+ // gh-proxy.com China acceleration mirror (tried before GitHub source)
85
+ urls.push("https://gh-proxy.com/https://github.com/yzailab/delta-infra-cli/releases/download/v" + version + "/" + assetName);
76
86
  // GitHub source
77
87
  urls.push(GITHUB_URL);
78
88
  return urls;