@pnpm/crypto.shasums-file 1100.2.7 → 1100.2.8
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/CHANGELOG.md +8 -0
- package/lib/diskCache.d.ts +1 -2
- package/lib/diskCache.js +1 -2
- package/lib/verifyNodeShasums.js +1 -4
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
package/lib/diskCache.d.ts
CHANGED
|
@@ -18,8 +18,7 @@
|
|
|
18
18
|
* `fetchVerifiedNodeShasumsFileCached`), so a pre-seeded entry is only
|
|
19
19
|
* accepted if it is a genuine release body.
|
|
20
20
|
* - Unverified entries are trusted on read, which grants a project nothing
|
|
21
|
-
* new: the unsigned channels' mirrors are already project-configurable
|
|
22
|
-
* (their bodies were project-controllable before the cache existed), and
|
|
21
|
+
* new: the unsigned channels' mirrors are already project-configurable, and
|
|
23
22
|
* the musl list's download URLs are derived from the hardcoded
|
|
24
23
|
* unofficial-builds base, never from the cached body.
|
|
25
24
|
* - Authenticated responses bypass this cache because the URL does not
|
package/lib/diskCache.js
CHANGED
|
@@ -21,8 +21,7 @@ import { threadId } from 'node:worker_threads';
|
|
|
21
21
|
* `fetchVerifiedNodeShasumsFileCached`), so a pre-seeded entry is only
|
|
22
22
|
* accepted if it is a genuine release body.
|
|
23
23
|
* - Unverified entries are trusted on read, which grants a project nothing
|
|
24
|
-
* new: the unsigned channels' mirrors are already project-configurable
|
|
25
|
-
* (their bodies were project-controllable before the cache existed), and
|
|
24
|
+
* new: the unsigned channels' mirrors are already project-configurable, and
|
|
26
25
|
* the musl list's download URLs are derived from the hardcoded
|
|
27
26
|
* unofficial-builds base, never from the cached body.
|
|
28
27
|
* - Authenticated responses bypass this cache because the URL does not
|
package/lib/verifyNodeShasums.js
CHANGED
|
@@ -93,14 +93,11 @@ async function signaturePacketVerifies(signaturePacket, keyPackets, literalDataP
|
|
|
93
93
|
if (keyPacket == null)
|
|
94
94
|
return false;
|
|
95
95
|
try {
|
|
96
|
-
// Resolves on a valid signature, rejects otherwise.
|
|
97
|
-
// cryptographic check against a pinned key — no web-of-trust / key-expiry
|
|
98
|
-
// evaluation, which is what `openpgp.verify` would (incorrectly here) apply.
|
|
96
|
+
// Resolves on a valid signature, rejects otherwise.
|
|
99
97
|
await signaturePacket.verify(keyPacket, signaturePacket.signatureType, literalDataPacket, signaturePacket.created ?? undefined, true);
|
|
100
98
|
return true;
|
|
101
99
|
}
|
|
102
100
|
catch {
|
|
103
|
-
// Not valid under this key/packet.
|
|
104
101
|
return false;
|
|
105
102
|
}
|
|
106
103
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/crypto.shasums-file",
|
|
3
|
-
"version": "1100.2.
|
|
3
|
+
"version": "1100.2.8",
|
|
4
4
|
"description": "Utils for working with shasums files",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pnpm",
|
|
@@ -29,15 +29,15 @@
|
|
|
29
29
|
"!*.map"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@pnpm/crypto.hash": "1100.0.
|
|
33
|
-
"@pnpm/error": "1100.2.
|
|
32
|
+
"@pnpm/crypto.hash": "1100.0.8",
|
|
33
|
+
"@pnpm/error": "1100.2.2",
|
|
34
34
|
"@pnpm/fetching.types": "1100.0.3",
|
|
35
|
-
"openpgp": "^6.3.
|
|
35
|
+
"openpgp": "^6.3.2"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@jest/globals": "30.4.1",
|
|
39
39
|
"@openpgp/web-stream-tools": "0.3.1",
|
|
40
|
-
"@pnpm/crypto.shasums-file": "1100.2.
|
|
40
|
+
"@pnpm/crypto.shasums-file": "1100.2.8"
|
|
41
41
|
},
|
|
42
42
|
"engines": {
|
|
43
43
|
"node": ">=22.13"
|