@aryaminus/controlkeel 0.3.42 → 0.3.43
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/lib/install.js +9 -6
- package/package.json +1 -1
- package/server.json +2 -2
package/lib/install.js
CHANGED
|
@@ -133,10 +133,11 @@ async function verifyChecksum(filePath, asset) {
|
|
|
133
133
|
let checksumText;
|
|
134
134
|
try {
|
|
135
135
|
checksumText = await downloadText(checksumUrl);
|
|
136
|
-
} catch {
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
136
|
+
} catch (err) {
|
|
137
|
+
throw new Error(
|
|
138
|
+
`[controlkeel] Failed to download checksum file from ${checksumUrl}. ` +
|
|
139
|
+
`Cannot verify binary integrity. Aborting installation. (${err.message})`
|
|
140
|
+
);
|
|
140
141
|
}
|
|
141
142
|
|
|
142
143
|
const expectedHash = checksumText
|
|
@@ -145,8 +146,10 @@ async function verifyChecksum(filePath, asset) {
|
|
|
145
146
|
.find(([, name]) => name === asset || name === `./${asset}`)?.[0];
|
|
146
147
|
|
|
147
148
|
if (!expectedHash) {
|
|
148
|
-
|
|
149
|
-
|
|
149
|
+
throw new Error(
|
|
150
|
+
`[controlkeel] No checksum entry found for ${asset} in checksums file. ` +
|
|
151
|
+
`Cannot verify binary integrity. Aborting installation.`
|
|
152
|
+
);
|
|
150
153
|
}
|
|
151
154
|
|
|
152
155
|
const actualHash = await sha256File(filePath);
|
package/package.json
CHANGED
package/server.json
CHANGED
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
"url": "https://github.com/aryaminus/controlkeel.git",
|
|
8
8
|
"source": "github"
|
|
9
9
|
},
|
|
10
|
-
"version": "0.3.
|
|
10
|
+
"version": "0.3.43",
|
|
11
11
|
"packages": [
|
|
12
12
|
{
|
|
13
13
|
"registryType": "npm",
|
|
14
14
|
"identifier": "@aryaminus/controlkeel",
|
|
15
|
-
"version": "0.3.
|
|
15
|
+
"version": "0.3.43",
|
|
16
16
|
"runtimeHint": "npx",
|
|
17
17
|
"transport": {
|
|
18
18
|
"type": "stdio"
|