@delta-infra/cli 1.0.37 → 1.0.39

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,5 +1,5 @@
1
- 94376f7836b3ee1618bcc7e61d7873d6265cb8938f7aab108c03768eaf88b344 delta-cli-darwin-amd64.tar.gz
2
- 2216a1cce22772c2084daee909da80d48b446bbe12dfe99c0a83c6bfe9444640 delta-cli-darwin-arm64.tar.gz
3
- 95af28f39980c47712a4951c8e8921ae044976e95af38565432afec3140e5e90 delta-cli-linux-amd64.tar.gz
4
- 4814c6e2c5334f6d048da07a48a22630b9e1779458ed4a8bddf71c58dc45cffc delta-cli-linux-arm64.tar.gz
5
- 71250c3124f07605d8e85fea3a8e446ebac4790ff7bb2e231b4002b9d56205db delta-cli-windows-amd64.zip
1
+ f582eedec50f860c5bf293326f7b25c479f623bde94ead9359045a37c02f065e delta-cli-darwin-amd64.tar.gz
2
+ 0ebef0fbf62e62d51af7f6e701134462bd495a791d07e86b268bf10d1bad2f72 delta-cli-darwin-arm64.tar.gz
3
+ 61a6c6478c1e4363191c3743732ea4c43c2585c49a1726176d23393d3578faff delta-cli-linux-amd64.tar.gz
4
+ d46e4cac35d42af3c16bab807f0c43b1dd9d0aac7691f80ae6be12673106d610 delta-cli-linux-arm64.tar.gz
5
+ ff38fbf67c71a2ad9d1f8f33546241b63b89ef940f1a0a4db2a67cec9f78e5a4 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.37",
3
+ "version": "1.0.39",
4
4
  "description": "Delta Sandbox CLI",
5
5
  "bin": {
6
6
  "delta-cli": "scripts/run.js"
@@ -329,20 +329,19 @@ function install() {
329
329
  try {
330
330
  console.error("Downloading from " + downloadUrls[i]);
331
331
  download(downloadUrls[i], archivePath);
332
+ console.error("Download complete, verifying checksum...");
333
+ const expectedHash = getExpectedChecksum(archiveName);
334
+ verifyChecksum(archivePath, expectedHash);
335
+ console.error("Checksum verified");
332
336
  downloaded = true;
333
- console.error("Download complete, verifying...");
334
337
  break;
335
338
  } catch (e) {
336
- console.error("Failed: " + e.message);
339
+ console.error("Failed: " + e.message + " (" + downloadUrls[i] + ")");
337
340
  lastErr = e;
338
341
  }
339
342
  }
340
343
  if (!downloaded) throw lastErr;
341
344
 
342
- const expectedHash = getExpectedChecksum(archiveName);
343
- verifyChecksum(archivePath, expectedHash);
344
- console.error("Checksum verified");
345
-
346
345
  if (isWindows) {
347
346
  console.error("Extracting archive...");
348
347
  extractZipWindows(archivePath, tmpDir);