@crvouga/mockingbird-service-aha 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 +12 -4
- package/dist/{chunk-QDXJJZOB.js → chunk-F74PD2VS.js} +3 -3
- package/dist/{chunk-5BPUOFOQ.js → chunk-KO36APMJ.js} +6 -5
- package/dist/chunk-KO36APMJ.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-5BPUOFOQ.js.map +0 -7
- /package/dist/{chunk-QDXJJZOB.js.map → chunk-F74PD2VS.js.map} +0 -0
package/dist/cli.js
CHANGED
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
|
|
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
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
|
|
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crvouga/mockingbird-service-aha",
|
|
3
|
-
"version": "3.10.
|
|
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",
|