@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 +1 -1
- package/checksums.txt +5 -7
- package/package.json +1 -1
- package/scripts/install.js +10 -10
package/README.md
CHANGED
package/checksums.txt
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
package/scripts/install.js
CHANGED
|
@@ -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
|
|
280
|
-
if (
|
|
281
|
-
const hash =
|
|
282
|
-
const name =
|
|
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
|
|