@crvouga/mockingbird-service-resend 3.10.2 → 3.10.4
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 +14 -4
- package/dist/{chunk-BHIGSH3C.js → chunk-KZ3R7R7R.js} +3 -3
- package/dist/{chunk-GK4XRO2F.js → chunk-P22KUPH7.js} +18 -7
- package/dist/chunk-P22KUPH7.js.map +7 -0
- package/dist/cli.js +2 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +1 -1
- package/dist/server.d.ts +3 -2
- package/dist/server.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-GK4XRO2F.js.map +0 -7
- /package/dist/{chunk-BHIGSH3C.js.map → chunk-KZ3R7R7R.js.map} +0 -0
package/dist/cli.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -864,9 +864,10 @@ declare class IdempotencyStore {
|
|
|
864
864
|
/**
|
|
865
865
|
* Run `handler` once per `key`. `fingerprint` identifies the request's parameters (e.g.
|
|
866
866
|
* the method, path and canonical body). Only `replayable` responses are stored (default:
|
|
867
|
-
* every status below 500
|
|
867
|
+
* every status below 500), so a transient failure can be retried. `replayable` also sees the
|
|
868
|
+
* response, for vendors that decide from more than the status.
|
|
868
869
|
*/
|
|
869
|
-
run(key: string, fingerprint: string, errors: IdempotencyErrors, handler: () => Promise<Response> | Response, replayable?: (status: number) => boolean): Promise<Response>;
|
|
870
|
+
run(key: string, fingerprint: string, errors: IdempotencyErrors, handler: () => Promise<Response> | Response, replayable?: (status: number, response: Response) => boolean): Promise<Response>;
|
|
870
871
|
}
|
|
871
872
|
|
|
872
873
|
type OwnedTransport = (request: Request, namespace: string, send: typeof fetch) => Promise<Response>;
|
package/dist/index.js
CHANGED
package/dist/server.d.ts
CHANGED
|
@@ -1745,9 +1745,10 @@ declare class IdempotencyStore {
|
|
|
1745
1745
|
/**
|
|
1746
1746
|
* Run `handler` once per `key`. `fingerprint` identifies the request's parameters (e.g.
|
|
1747
1747
|
* the method, path and canonical body). Only `replayable` responses are stored (default:
|
|
1748
|
-
* every status below 500
|
|
1748
|
+
* every status below 500), so a transient failure can be retried. `replayable` also sees the
|
|
1749
|
+
* response, for vendors that decide from more than the status.
|
|
1749
1750
|
*/
|
|
1750
|
-
run(key: string, fingerprint: string, errors: IdempotencyErrors, handler: () => Promise<Response> | Response, replayable?: (status: number) => boolean): Promise<Response>;
|
|
1751
|
+
run(key: string, fingerprint: string, errors: IdempotencyErrors, handler: () => Promise<Response> | Response, replayable?: (status: number, response: Response) => boolean): Promise<Response>;
|
|
1751
1752
|
}
|
|
1752
1753
|
|
|
1753
1754
|
type OwnedTransport = (request: Request, namespace: string, send: typeof fetch) => Promise<Response>;
|
package/dist/server.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crvouga/mockingbird-service-resend",
|
|
3
|
-
"version": "3.10.
|
|
3
|
+
"version": "3.10.4",
|
|
4
4
|
"description": "Stateful emulator of the Resend email API (send with idempotency, received emails, attachments) with an outbox and Svix-signed inbound webhooks (Mockingbird service contract).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|