@zkp2p/zkp2p-attestation 1.3.0 → 1.3.1
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 +5 -0
- package/dist/cli/verify.js +6 -2
- package/dist/cli/verify.js.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +40 -48
- package/dist/index.d.ts +40 -48
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.3.1
|
|
4
|
+
|
|
5
|
+
- Republish of 1.3.0 from a clean build. The 1.3.0 tarball on npm shipped a stale `dist/` (built from a pre-rebase checkout): the runtime `dist/index.cjs` still posted the legacy `metadata` field and the typings still exported `*BuyerTeeMetadata` / `BuyerTeeMetadataByPlatform`. The new server only accepts `params`, so consumers on 1.3.0 hit a 4xx on every buyer TEE verify call.
|
|
6
|
+
- Action: upgrade to 1.3.1. 1.3.0 will be `npm deprecate`'d.
|
|
7
|
+
|
|
3
8
|
## 1.3.0
|
|
4
9
|
|
|
5
10
|
- BREAKING: Buyer TEE verify request body field renamed from `metadata` to `params`. The server Zod schema rejects the legacy `metadata` field. All `*BuyerTeeMetadata` types in `@zkp2p/zkp2p-attestation` are renamed to `*BuyerTeeParams`, and `BuyerTeeMetadataByPlatform` is now `BuyerTeeParamsByPlatform`.
|
package/dist/cli/verify.js
CHANGED
|
@@ -4389,10 +4389,14 @@ async function fetchWithTimeout(url, fetcher, timeoutMs) {
|
|
|
4389
4389
|
}),
|
|
4390
4390
|
timeoutPromise
|
|
4391
4391
|
]);
|
|
4392
|
-
|
|
4392
|
+
if (timeoutHandle !== void 0) {
|
|
4393
|
+
clearTimeout(timeoutHandle);
|
|
4394
|
+
}
|
|
4393
4395
|
return response;
|
|
4394
4396
|
} catch (cause) {
|
|
4395
|
-
|
|
4397
|
+
if (timeoutHandle !== void 0) {
|
|
4398
|
+
clearTimeout(timeoutHandle);
|
|
4399
|
+
}
|
|
4396
4400
|
if (cause instanceof Error && (cause.name === "AbortError" || cause.message === "timeout")) {
|
|
4397
4401
|
fail("TIMEOUT", `GET /attestation timed out after ${timeoutMs}ms`, { cause });
|
|
4398
4402
|
}
|