@crvouga/mockingbird-service-aha 3.10.3 → 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-TYJVLMNR.js";
7
- import "./chunk-2E3QAXJD.js";
6
+ } from "./chunk-F74PD2VS.js";
7
+ import "./chunk-KO36APMJ.js";
8
8
 
9
9
  // src/cli.ts
10
10
  var code = await runCli(
package/dist/index.d.ts CHANGED
@@ -786,9 +786,10 @@ declare class IdempotencyStore {
786
786
  /**
787
787
  * Run `handler` once per `key`. `fingerprint` identifies the request's parameters (e.g.
788
788
  * the method, path and canonical body). Only `replayable` responses are stored (default:
789
- * every status below 500, as Stripe does), so a transient failure can be retried.
789
+ * every status below 500), so a transient failure can be retried. `replayable` also sees the
790
+ * response, for vendors that decide from more than the status.
790
791
  */
791
- run(key: string, fingerprint: string, errors: IdempotencyErrors, handler: () => Promise<Response> | Response, replayable?: (status: number) => boolean): Promise<Response>;
792
+ run(key: string, fingerprint: string, errors: IdempotencyErrors, handler: () => Promise<Response> | Response, replayable?: (status: number, response: Response) => boolean): Promise<Response>;
792
793
  }
793
794
 
794
795
  type OwnedTransport = (request: Request, namespace: string, send: typeof fetch) => Promise<Response>;
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ import {
14
14
  verifyAuth,
15
15
  zonedParts,
16
16
  zonedToEpoch
17
- } from "./chunk-2E3QAXJD.js";
17
+ } from "./chunk-KO36APMJ.js";
18
18
  export {
19
19
  AHA_NAMESPACE,
20
20
  AHA_PRESETS,
package/dist/server.d.ts CHANGED
@@ -1757,9 +1757,10 @@ declare class IdempotencyStore {
1757
1757
  /**
1758
1758
  * Run `handler` once per `key`. `fingerprint` identifies the request's parameters (e.g.
1759
1759
  * the method, path and canonical body). Only `replayable` responses are stored (default:
1760
- * every status below 500, as Stripe does), so a transient failure can be retried.
1760
+ * every status below 500), so a transient failure can be retried. `replayable` also sees the
1761
+ * response, for vendors that decide from more than the status.
1761
1762
  */
1762
- run(key: string, fingerprint: string, errors: IdempotencyErrors, handler: () => Promise<Response> | Response, replayable?: (status: number) => boolean): Promise<Response>;
1763
+ run(key: string, fingerprint: string, errors: IdempotencyErrors, handler: () => Promise<Response> | Response, replayable?: (status: number, response: Response) => boolean): Promise<Response>;
1763
1764
  }
1764
1765
 
1765
1766
  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-TYJVLMNR.js";
6
- import "./chunk-2E3QAXJD.js";
5
+ } from "./chunk-F74PD2VS.js";
6
+ import "./chunk-KO36APMJ.js";
7
7
  export {
8
8
  DEFAULT_PORT,
9
9
  createServer,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crvouga/mockingbird-service-aha",
3
- "version": "3.10.3",
3
+ "version": "3.10.4",
4
4
  "description": "Stateful AHA phlebotomy emulator with signed HTTP orders, status webhooks, and a real deterministic SSH/SFTP result server.",
5
5
  "license": "MIT",
6
6
  "type": "module",