@rotorsoft/act-http 1.11.1 → 1.11.2
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/.tsbuildinfo +1 -1
- package/dist/@types/api/index.d.ts +3 -3
- package/dist/@types/api/sse-wiring.d.ts +2 -2
- package/dist/@types/receiver/extract.d.ts +4 -4
- package/dist/@types/receiver/hono/index.d.ts +1 -1
- package/dist/@types/receiver/verify.d.ts +2 -2
- package/dist/@types/sse/apply-patch.d.ts.map +1 -1
- package/dist/@types/sse/broadcast.d.ts +6 -24
- package/dist/@types/sse/broadcast.d.ts.map +1 -1
- package/dist/@types/sse/state-cache.d.ts +1 -1
- package/dist/@types/sse/types.d.ts +4 -5
- package/dist/@types/sse/types.d.ts.map +1 -1
- package/dist/@types/trpc/index.d.ts.map +1 -1
- package/dist/@types/webhook/index.d.ts +1 -1
- package/dist/@types/webhook/index.d.ts.map +1 -1
- package/dist/@types/webhook/types.d.ts +1 -1
- package/dist/api/index.cjs.map +1 -1
- package/dist/api/index.js +2 -2
- package/dist/{chunk-FSN52BXM.js → chunk-75DA7NJI.js} +2 -2
- package/dist/chunk-75DA7NJI.js.map +1 -0
- package/dist/{chunk-MKD3SM3N.js → chunk-BOJG4555.js} +1 -1
- package/dist/chunk-BOJG4555.js.map +1 -0
- package/dist/{chunk-EERALS5E.js → chunk-CVCTDLJA.js} +1 -1
- package/dist/chunk-CVCTDLJA.js.map +1 -0
- package/dist/{chunk-G5FNOSDX.js → chunk-ET2PACPO.js} +1 -1
- package/dist/chunk-ET2PACPO.js.map +1 -0
- package/dist/{chunk-TTVMQYNN.js → chunk-OEMQP5ZM.js} +2 -2
- package/dist/chunk-OEMQP5ZM.js.map +1 -0
- package/dist/{chunk-5KZI37IT.js → chunk-QM6YP2XH.js} +3 -3
- package/dist/hono/index.cjs.map +1 -1
- package/dist/hono/index.js +4 -4
- package/dist/hono/index.js.map +1 -1
- package/dist/openapi/index.cjs +2 -2
- package/dist/openapi/index.cjs.map +1 -1
- package/dist/openapi/index.js +2 -2
- package/dist/openapi/index.js.map +1 -1
- package/dist/receiver/express/index.cjs.map +1 -1
- package/dist/receiver/express/index.js +1 -1
- package/dist/receiver/fastify/index.cjs.map +1 -1
- package/dist/receiver/fastify/index.js +1 -1
- package/dist/receiver/hono/index.cjs.map +1 -1
- package/dist/receiver/hono/index.js +2 -2
- package/dist/receiver/index.cjs.map +1 -1
- package/dist/receiver/index.js +3 -3
- package/dist/receiver/index.js.map +1 -1
- package/dist/receiver/trpc/index.cjs.map +1 -1
- package/dist/receiver/trpc/index.js +1 -1
- package/dist/sse/index.cjs +7 -25
- package/dist/sse/index.cjs.map +1 -1
- package/dist/sse/index.js +8 -26
- package/dist/sse/index.js.map +1 -1
- package/dist/trpc/index.cjs.map +1 -1
- package/dist/trpc/index.js +4 -4
- package/dist/trpc/index.js.map +1 -1
- package/dist/webhook/index.cjs.map +1 -1
- package/dist/webhook/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-EERALS5E.js.map +0 -1
- package/dist/chunk-FSN52BXM.js.map +0 -1
- package/dist/chunk-G5FNOSDX.js.map +0 -1
- package/dist/chunk-MKD3SM3N.js.map +0 -1
- package/dist/chunk-TTVMQYNN.js.map +0 -1
- /package/dist/{chunk-5KZI37IT.js.map → chunk-QM6YP2XH.js.map} +0 -0
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
*
|
|
24
24
|
* Sibling subpaths in the same package consume the utilities here:
|
|
25
25
|
*
|
|
26
|
-
* - `@rotorsoft/act-http/trpc` — tRPC adapter
|
|
27
|
-
* - `@rotorsoft/act-http/hono` — Hono adapter
|
|
28
|
-
* - `@rotorsoft/act-http/openapi` — OpenAPI emitter
|
|
26
|
+
* - `@rotorsoft/act-http/trpc` — tRPC adapter.
|
|
27
|
+
* - `@rotorsoft/act-http/hono` — Hono adapter.
|
|
28
|
+
* - `@rotorsoft/act-http/openapi` — OpenAPI emitter.
|
|
29
29
|
*
|
|
30
30
|
* Existing siblings unrelated to the generated-API work:
|
|
31
31
|
*
|
|
@@ -61,7 +61,7 @@ export type SseOptions = {
|
|
|
61
61
|
*
|
|
62
62
|
* Version-neutral frames (`_overlay`, `_resync`) are never dropped
|
|
63
63
|
* silently — they create no gap to notice, so a backlog made only of
|
|
64
|
-
* them collapses into a single `_resync` instead
|
|
64
|
+
* them collapses into a single `_resync` instead.
|
|
65
65
|
*
|
|
66
66
|
* Default `256`. Validated range `[1, 100_000]`.
|
|
67
67
|
*/
|
|
@@ -101,7 +101,7 @@ export declare const DEFAULT_SSE_HEARTBEAT_MS = 30000;
|
|
|
101
101
|
* version-keyed patch, so the consumer sees the gap and converges on
|
|
102
102
|
* current state regardless of which intermediate versions it missed.
|
|
103
103
|
* Version-neutral frames create no gap, so they collapse into a
|
|
104
|
-
* `_resync` rather than being dropped silently
|
|
104
|
+
* `_resync` rather than being dropped silently.
|
|
105
105
|
*/
|
|
106
106
|
export declare const DEFAULT_SSE_MAX_PENDING_PER_CONNECTION = 256;
|
|
107
107
|
/**
|
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
* Pair with `IdempotencyStore.claim` from
|
|
13
13
|
* `@rotorsoft/act-ops/idempotency`: extract the key from the inbound
|
|
14
14
|
* request, claim it on the store, return a `deduped` marker when the
|
|
15
|
-
* claim fails. The
|
|
16
|
-
* together
|
|
15
|
+
* claim fails. The receiver subpaths' `webhookMiddleware` wires these
|
|
16
|
+
* together.
|
|
17
17
|
*
|
|
18
18
|
* Validation beyond "is there a usable key?" (length bounds, format
|
|
19
19
|
* checks, normalization) is intentionally out of scope. Receivers
|
|
20
|
-
* picking a policy can layer it on top
|
|
21
|
-
*
|
|
20
|
+
* picking a policy can layer it on top, or use the middleware's
|
|
21
|
+
* defaults.
|
|
22
22
|
*/
|
|
23
23
|
export declare function extractIdempotencyKey(headers: Record<string, string | string[] | undefined>): string | undefined;
|
|
24
24
|
//# sourceMappingURL=extract.d.ts.map
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
* finalizes the claim automatically after `await next()`: a downstream
|
|
37
37
|
* 2xx/3xx **commits** the key (later retries dedup); any **4xx or 5xx**
|
|
38
38
|
* (or a thrown handler) **releases** it, so the sender's corrected retry
|
|
39
|
-
* re-processes instead of being silently dropped
|
|
39
|
+
* re-processes instead of being silently dropped. Fail-safe is
|
|
40
40
|
* toward reprocessing: releasing a deterministic 4xx costs bounded
|
|
41
41
|
* re-delivery, while committing it would lose a delivery the handler
|
|
42
42
|
* never accepted (the shipped `receiver()` returns 422 on a schema
|
|
@@ -47,8 +47,8 @@ export type VerifyOptions = {
|
|
|
47
47
|
* The signed payload is `${timestamp}.${body}`, so `body` must be
|
|
48
48
|
* the **raw request body bytes**. Any pre-parse normalization
|
|
49
49
|
* (whitespace trimming, JSON re-stringification) would change the
|
|
50
|
-
* hash and reject every otherwise-valid request.
|
|
51
|
-
*
|
|
50
|
+
* hash and reject every otherwise-valid request. The receiver
|
|
51
|
+
* subpaths' adapters pass the raw body alongside the parsed one.
|
|
52
52
|
*
|
|
53
53
|
* Uses Node's `crypto.timingSafeEqual` for the final comparison to
|
|
54
54
|
* avoid signature-equality timing attacks.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apply-patch.d.ts","sourceRoot":"","sources":["../../../src/sse/apply-patch.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/D;;GAEG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,cAAc,GAAG,cAAc,IAC7D;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,KAAK,EAAE,CAAC,CAAA;CAAE,GACtB;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,MAAM,EAAE,OAAO,GAAG,QAAQ,CAAA;CAAE,CAAC;AAE9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,cAAc,EACxD,GAAG,EAAE,YAAY,CAAC,CAAC,CAAC,EACpB,MAAM,EAAE,CAAC,GAAG,IAAI,GAAG,SAAS,GAC3B,WAAW,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"apply-patch.d.ts","sourceRoot":"","sources":["../../../src/sse/apply-patch.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/D;;GAEG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,cAAc,GAAG,cAAc,IAC7D;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,KAAK,EAAE,CAAC,CAAA;CAAE,GACtB;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,MAAM,EAAE,OAAO,GAAG,QAAQ,CAAA;CAAE,CAAC;AAE9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,cAAc,EACxD,GAAG,EAAE,YAAY,CAAC,CAAC,CAAC,EACpB,MAAM,EAAE,CAAC,GAAG,IAAI,GAAG,SAAS,GAC3B,WAAW,CAAC,CAAC,CAAC,CA8DhB"}
|
|
@@ -78,34 +78,16 @@ export declare class BroadcastChannel<S extends BroadcastState = BroadcastState>
|
|
|
78
78
|
*/
|
|
79
79
|
private broadcast_resync;
|
|
80
80
|
/**
|
|
81
|
-
* The LRU dropped an entry.
|
|
82
|
-
*
|
|
83
|
-
*
|
|
84
|
-
* would silently lack presence a live client is still showing (#1648).
|
|
85
|
-
*
|
|
86
|
-
* `overlay()` was hardened for the same loss on its own path (#1423);
|
|
87
|
-
* catching it here covers `publish()` too, and does it at the moment the
|
|
88
|
-
* data is lost rather than at a later commit that may never come. Reading
|
|
89
|
-
* the marker off the entry being evicted is what avoids the parallel
|
|
90
|
-
* bookkeeping structure the `OVERLAY_KEYS` design explicitly rejected.
|
|
81
|
+
* The LRU dropped an entry. Overlay-contributed keys lived only in the
|
|
82
|
+
* cache, so their loss is reported now, when it happens, rather than at a
|
|
83
|
+
* later commit that may never come.
|
|
91
84
|
*/
|
|
92
85
|
private on_cache_evict;
|
|
93
86
|
/**
|
|
94
87
|
* Overlay-contributed state for `streamId` is gone. Recover first, report
|
|
95
|
-
* second
|
|
96
|
-
*
|
|
97
|
-
*
|
|
98
|
-
* the way `fan_out` contains subscribers: a bad consumer must not break the
|
|
99
|
-
* publisher (#1423), and the same applies to a bad observer. Without this,
|
|
100
|
-
* a throwing `onOverlayMiss` escapes on the eviction path — which runs
|
|
101
|
-
* inside `publish()`, before that stream's own `fan_out` — so one host bug
|
|
102
|
-
* costs the evicted stream its recovery frame *and* an unrelated stream the
|
|
103
|
-
* frame for a version already written to the cache. The evicted stream's
|
|
104
|
-
* clients never self-heal from that, which is the silent loss #1648 exists
|
|
105
|
-
* to end.
|
|
106
|
-
*
|
|
107
|
-
* Routing the throw to `onSubscriberError` rather than swallowing it keeps
|
|
108
|
-
* it wherever the host already reads framework delivery failures.
|
|
88
|
+
* second: the resync goes out before the host hook, and a throwing hook is
|
|
89
|
+
* routed to `onSubscriberError`. Eviction runs inside `publish()` for
|
|
90
|
+
* another stream, so an escaping throw would cost that stream its frame.
|
|
109
91
|
*/
|
|
110
92
|
private report_overlay_miss;
|
|
111
93
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"broadcast.d.ts","sourceRoot":"","sources":["../../../src/sse/broadcast.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,YAAY,EAEjB,KAAK,UAAU,EAChB,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"broadcast.d.ts","sourceRoot":"","sources":["../../../src/sse/broadcast.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,YAAY,EAEjB,KAAK,UAAU,EAChB,MAAM,YAAY,CAAC;AA0GpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,qBAAa,gBAAgB,CAAC,CAAC,SAAS,cAAc,GAAG,cAAc;IACrE,OAAO,CAAC,QAAQ,CAAyC;IACzD,OAAO,CAAC,WAAW,CAAgB;IACnC,OAAO,CAAC,mBAAmB,CAA6C;IACxE,OAAO,CAAC,eAAe,CAA6B;IAEpD,YAAY,OAAO,CAAC,EAAE;QACpB,sEAAsE;QACtE,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB;;;;;;;;;;;;;;WAcG;QACH,aAAa,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;QAC3C;;;;;WAKG;QACH,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;QAC/D;;;;WAIG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,EAQA;IAED;;;OAGG;IACH,OAAO,CAAC,gBAAgB;IAMxB;;;;OAIG;IACH,OAAO,CAAC,cAAc;IAKtB;;;;;OAKG;IACH,OAAO,CAAC,mBAAmB;IAS3B;;;;;;;OAOG;IACH,OAAO,CACL,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,CAAC,EACR,OAAO,GAAE,OAAO,CAAC,CAAC,CAAC,EAAO,GACzB,YAAY,CAAC,CAAC,CAAC,CAkCjB;IAED;;;;OAIG;IACH,OAAO,CACL,QAAQ,EAAE,MAAM,EAChB,aAAa,EAAE,OAAO,CAAC,CAAC,CAAC,GACxB,YAAY,CAAC,CAAC,CAAC,GAAG,SAAS,CA8B7B;IAED;;;OAGG;IACH,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,MAAM,IAAI,CASzD;IAED,kDAAkD;IAClD,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAExC;IAED,8EAA8E;IAC9E,KAAK,CAAC,QAAQ,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS,CAErC;IAED,4DAA4D;IAC5D,eAAe,CACb,QAAQ,EAAE,MAAM,EAChB,aAAa,EAAE,OAAO,CAAC,CAAC,CAAC,GACxB,YAAY,CAAC,CAAC,CAAC,GAAG,SAAS,CAE7B;IAED,oEAAoE;IACpE,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAE7C;IAED,0DAA0D;IAC1D,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS,CAEzC;IAED,+EAA+E;IAC/E,IAAI,KAAK,IAAI,UAAU,CAAC,CAAC,CAAC,CAEzB;CACF"}
|
|
@@ -17,7 +17,7 @@ export declare class StateCache<S extends BroadcastState = BroadcastState> {
|
|
|
17
17
|
* @param maxSize - Max entries before the LRU drops its oldest.
|
|
18
18
|
* @param onEvict - Called with the entry the LRU just dropped. Eviction is
|
|
19
19
|
* the moment cached-only data is lost, so it is the only place a caller
|
|
20
|
-
* can still see what went
|
|
20
|
+
* can still see what went.
|
|
21
21
|
*/
|
|
22
22
|
constructor(maxSize?: number, onEvict?: (key: string, state: S) => void);
|
|
23
23
|
/** Get a cached state, promoting it to MRU position. */
|
|
@@ -20,11 +20,10 @@ export type BroadcastState = Record<string, unknown> & {
|
|
|
20
20
|
* stale). Ordinary version-bumping patches from `publish()` omit it.
|
|
21
21
|
*
|
|
22
22
|
* `_resync` carries no versions at all. The server emits it when it cannot
|
|
23
|
-
* construct a patch
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
* live subscribers silently
|
|
27
|
-
* way to notice (#1423).
|
|
23
|
+
* construct a patch: when overlay-contributed state is lost, because
|
|
24
|
+
* `overlay()` finds no cached baseline or the LRU evicts an entry that
|
|
25
|
+
* carried overlay keys. A client that receives one always reports `behind`
|
|
26
|
+
* and refetches, so live subscribers don't silently miss updates.
|
|
28
27
|
*/
|
|
29
28
|
export type PatchMessage<S extends BroadcastState = BroadcastState> = Record<number, DeepPartial<S>> & {
|
|
30
29
|
readonly _overlay?: true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/sse/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAExD;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG;IACrD,sFAAsF;IACtF,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/sse/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAExD;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG;IACrD,sFAAsF;IACtF,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,cAAc,GAAG,cAAc,IAAI,MAAM,CAC1E,MAAM,EACN,WAAW,CAAC,CAAC,CAAC,CACf,GAAG;IAAE,QAAQ,CAAC,QAAQ,CAAC,EAAE,IAAI,CAAC;IAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,IAAI,CAAA;CAAE,CAAC;AAE1D;;GAEG;AACH,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,cAAc,GAAG,cAAc,IAAI,CAClE,GAAG,EAAE,YAAY,CAAC,CAAC,CAAC,KACjB,IAAI,CAAC;AAEV;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY,GAAI,CAAC,SAAS,cAAc,OAAK,YAAY,CAAC,CAAC,CAChC,CAAC;AAEzC;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,GAAI,CAAC,SAAS,cAAc,OACpD,YAAY,CAAC,CAAC,CAAC,KACnB,OAAwD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/trpc/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/trpc/index.ts"],"names":[],"mappings":"AAwDA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,EACL,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,KAAK,gBAAgB,EAErB,KAAK,eAAe,EAErB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,KAAK,UAAU,EAAiB,MAAM,oBAAoB,CAAC;AACpE,OAAO,EACL,KAAK,cAAc,EAInB,KAAK,UAAU,EAEhB,MAAM,iBAAiB,CAAC;AAEzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,MAAM,MAAM,WAAW,CAAC,GAAG,IAAI;IAC7B,QAAQ,CAAC,KAAK,EAAE,cAAc,CAAC;IAC/B,QAAQ,CAAC,MAAM,EAAE,CACf,WAAW,EAAE,MAAM,EACnB,KAAK,EAAE,OAAO,EACd,GAAG,EAAE,GAAG,KACL,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC9B,QAAQ,CAAC,eAAe,CAAC,EAAE,CACzB,WAAW,EAAE,MAAM,EACnB,KAAK,EAAE,OAAO,EACd,GAAG,EAAE,GAAG,KACL,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACtD,QAAQ,CAAC,WAAW,CAAC,EAAE;QACrB,QAAQ,CAAC,KAAK,EAAE,gBAAgB,CAAC;QACjC,QAAQ,CAAC,OAAO,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,MAAM,GAAG,SAAS,CAAC;KACpD,CAAC;IACF;;;;;;;;;;;;;;OAcG;IACH,QAAQ,CAAC,GAAG,CAAC,EAAE,UAAU,CAAC;CAC3B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,aAAa,CAC3B,SAAS,EAAE,cAAc,GACxB,yBAAyB,CAmB3B;AAuDD;;;;;;;;;;GAUG;AACH,KAAK,eAAe,CAAC,IAAI,IAAI,eAAe,CAC1C,gBAAgB,EAChB,IAAI,SAAS;IAAE,QAAQ,EAAE;QAAE,OAAO,EAAE,MAAM,QAAQ,CAAA;KAAE,CAAA;CAAE,GAClD;KAAG,CAAC,IAAI,MAAM,QAAQ,GAAG,wBAAwB;CAAE,GACnD,MAAM,CAAC,MAAM,EAAE,wBAAwB,CAAC,CAC7C,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,wBAAgB,IAAI,CAClB,GAAG,SAAS,MAAM,GAAG,MAAM,EAC3B,IAAI,SAAS,UAAU,GAAG,UAAU,EACpC,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,CAAC,GAAG,CAAC,GAAG,eAAe,CAAC,IAAI,CAAC,CAmJ7D"}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* Wraps `fetch` with timeouts, automatic `Idempotency-Key` derivation, and
|
|
8
8
|
* status-classified errors. Designed to be composed with the reaction
|
|
9
|
-
* options
|
|
9
|
+
* options (`maxRetries`, `blockOnError`, `backoff`):
|
|
10
10
|
*
|
|
11
11
|
* ```ts
|
|
12
12
|
* import { webhook } from "@rotorsoft/act-http/webhook";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/webhook/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,KAAK,EAAa,eAAe,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAG1E,OAAO,EAEL,KAAK,aAAa,EAEnB,MAAM,YAAY,CAAC;AAEpB,YAAY,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/webhook/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,KAAK,EAAa,eAAe,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAG1E,OAAO,EAEL,KAAK,aAAa,EAEnB,MAAM,YAAY,CAAC;AAEpB,YAAY,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAEnE,OAAO,EAAE,oBAAoB,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC5D,YAAY,EACV,qBAAqB,EACrB,WAAW,EACX,aAAa,EACb,eAAe,GAChB,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,qBAAqB,EACrB,wBAAwB,EACxB,kBAAkB,EAClB,YAAY,GACb,MAAM,YAAY,CAAC;AAsBpB;;;;;;;;;;;;;GAaG;AACH,wBAAgB,OAAO,CAAC,OAAO,SAAS,OAAO,GAAG,OAAO,EACvD,MAAM,EAAE,aAAa,CAAC,OAAO,CAAC,GAC7B,eAAe,CAAC,OAAO,EAAE,MAAM,OAAO,CAAC,CA8FzC"}
|
|
@@ -47,7 +47,7 @@ export type WebhookConfig<TEvents extends Schemas = Schemas> = {
|
|
|
47
47
|
* `fetch` resolves on response headers, so the timer stays armed through
|
|
48
48
|
* the error-path body read as well. A receiver that answers with headers
|
|
49
49
|
* and then stalls its body times out like any other overrun instead of
|
|
50
|
-
* hanging the handler forever
|
|
50
|
+
* hanging the handler forever.
|
|
51
51
|
*/
|
|
52
52
|
readonly timeoutMs?: number;
|
|
53
53
|
/**
|