@delta-infra/cli 1.0.74 → 1.0.75

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/README.md CHANGED
@@ -388,7 +388,7 @@ make release
388
388
  ```bash
389
389
  export GH_TOKEN=<your-github-pat>
390
390
  export NPM_TOKEN=<your-npm-token>
391
- ./release.sh v1.0.74
391
+ ./release.sh v1.0.75
392
392
  ```
393
393
 
394
394
  脚本执行步骤:
package/checksums.txt CHANGED
@@ -1,7 +1,5 @@
1
- 8a30a10eafa97b1c567d7cd14258f2ef316088688bd2837d36453223be751288 *delta-cli-darwin-amd64.tar.gz
2
- 706cc3d39f94e6c10fc27a3532a8a27eb347dbf133b640e6ea38cc96c1425880 *delta-cli-darwin-arm64.tar.gz
3
- 013972a937e215ca72921e0f275fe55e486ea59fb29b0cac9599153a7ac03426 *delta-cli-linux-amd64.tar.gz
4
- 4b5bdc48a56984287de7c722909564bf644fc5a3447e884ca3b30cd409c2f106 *delta-cli-linux-arm64.tar.gz
5
- 0782f9d480e8da94a011e87e59e4dff6b2e38aa055bc1f8ba0c094f9220b6483 *delta-cli-next.zip
6
- 7f3e721cbe210e9f5699e9ebebc1085648ce0b92b30366e23ac53ba746874072 *delta-cli-test.zip
7
- 49f21249079ad6ce882bdb5321cd534316d6839777a10c64e2368e10577b5e11 *delta-cli-windows-amd64.zip
1
+ b70320aa2f2a5cff600a4f9b10240e586650efc157bc455e6edfcd76e57354af *delta-cli-darwin-amd64.tar.gz
2
+ 9a6821279d9e61115e9a4444bcdad2db29a524f75e6d3ecc694e903dc09bbe65 *delta-cli-darwin-arm64.tar.gz
3
+ ba142ae01ab832a0b950ba88e27fdf92d06483021d43ea9c1932966434f3dab1 *delta-cli-linux-amd64.tar.gz
4
+ 46df3385a51d36affbbeb984fb26f1cb38762a7957f03c70cddf951dee7bedf6 *delta-cli-linux-arm64.tar.gz
5
+ 14279afab95f712f706ee19061cffe88786fb7a2202764c05f7680f0779873d2 *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.74",
3
+ "version": "1.0.75",
4
4
  "description": "Delta Infra CLI for sandbox compute and science tools.",
5
5
  "bin": {
6
6
  "delta-cli": "scripts/run.js"
@@ -272,16 +272,16 @@ function getExpectedChecksum(archiveName, checksumsDir) {
272
272
  console.error("[WARN] checksums.txt not found, skipping checksum verification");
273
273
  return null;
274
274
  }
275
- const content = fs.readFileSync(checksumsPath, "utf8");
276
- for (const line of content.split("\n")) {
277
- const trimmed = line.trim();
278
- if (!trimmed) continue;
279
- const idx = trimmed.indexOf(" ");
280
- if (idx === -1) continue;
281
- const hash = trimmed.slice(0, idx);
282
- const name = trimmed.slice(idx + 2);
283
- if (name === archiveName) return hash;
284
- }
275
+ const content = fs.readFileSync(checksumsPath, "utf8");
276
+ for (const line of content.split("\n")) {
277
+ const trimmed = line.trim();
278
+ if (!trimmed) continue;
279
+ const match = trimmed.match(/^([a-fA-F0-9]{64})\s+\*?(.+)$/);
280
+ if (!match) continue;
281
+ const hash = match[1];
282
+ const name = match[2];
283
+ if (name === archiveName) return hash;
284
+ }
285
285
  throw new Error(`Checksum entry not found for ${archiveName}`);
286
286
  }
287
287