@zkp2p/zkp2p-attestation 1.6.2 → 1.6.3
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 +4 -0
- package/dist/cli/verify.js +8 -3
- package/dist/cli/verify.js.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.6.3
|
|
4
|
+
|
|
5
|
+
- Bind the default global `fetch` fallback to `globalThis` so browser and extension callers that rely on SDK defaults do not hit receiver-sensitive `Illegal invocation` failures. Caller-provided `fetch` overrides are still used unchanged.
|
|
6
|
+
|
|
3
7
|
## 1.6.2
|
|
4
8
|
|
|
5
9
|
- Default the production environment to `https://attestation-service.zkp2p.xyz` and bundle a production PCR8 pin for that hostname. The historical `attestation-service-preprod.zkp2p.xyz` hostname remains pinned to the same production PCR8.
|
package/dist/cli/verify.js
CHANGED
|
@@ -3809,11 +3809,16 @@ async function wrapCryptoFailure(promise, code, message) {
|
|
|
3809
3809
|
|
|
3810
3810
|
// src/crypto/env.ts
|
|
3811
3811
|
function resolveFetch(fetchOverride) {
|
|
3812
|
-
|
|
3813
|
-
|
|
3812
|
+
if (fetchOverride !== void 0) {
|
|
3813
|
+
if (typeof fetchOverride !== "function") {
|
|
3814
|
+
fail("CRYPTO_UNAVAILABLE", "fetch is unavailable; pass a fetch implementation");
|
|
3815
|
+
}
|
|
3816
|
+
return fetchOverride;
|
|
3817
|
+
}
|
|
3818
|
+
if (typeof globalThis.fetch !== "function") {
|
|
3814
3819
|
fail("CRYPTO_UNAVAILABLE", "fetch is unavailable; pass a fetch implementation");
|
|
3815
3820
|
}
|
|
3816
|
-
return
|
|
3821
|
+
return globalThis.fetch.bind(globalThis);
|
|
3817
3822
|
}
|
|
3818
3823
|
function resolveSubtle(subtleOverride) {
|
|
3819
3824
|
const subtle = subtleOverride ?? globalThis.crypto?.subtle;
|