@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/dist/cli.js CHANGED
@@ -3,8 +3,8 @@ import {
3
3
  runCli,
4
4
  serveCommand,
5
5
  serveTarget
6
- } from "./chunk-BHIGSH3C.js";
7
- import "./chunk-GK4XRO2F.js";
6
+ } from "./chunk-KZ3R7R7R.js";
7
+ import "./chunk-P22KUPH7.js";
8
8
  import "./chunk-6Z2MR3PO.js";
9
9
 
10
10
  // src/cli.ts
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, as Stripe does), so a transient failure can be retried.
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
@@ -9,7 +9,7 @@ import {
9
9
  forwardToInbox,
10
10
  operationIds,
11
11
  supportedOperationIds
12
- } from "./chunk-GK4XRO2F.js";
12
+ } from "./chunk-P22KUPH7.js";
13
13
  import "./chunk-6Z2MR3PO.js";
14
14
  export {
15
15
  DOWNLOAD_URL_TTL_MS,
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, as Stripe does), so a transient failure can be retried.
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
@@ -2,8 +2,8 @@ import {
2
2
  DEFAULT_PORT,
3
3
  createServer,
4
4
  serveTarget
5
- } from "./chunk-BHIGSH3C.js";
6
- import "./chunk-GK4XRO2F.js";
5
+ } from "./chunk-KZ3R7R7R.js";
6
+ import "./chunk-P22KUPH7.js";
7
7
  import "./chunk-6Z2MR3PO.js";
8
8
  export {
9
9
  DEFAULT_PORT,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crvouga/mockingbird-service-resend",
3
- "version": "3.10.2",
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",