keq 5.0.0-beta.9 → 5.0.1
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 +162 -0
- package/dist/index.d.mts +62 -18
- package/dist/index.d.mts.map +1 -1
- package/dist/index.d.ts +62 -18
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +181 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +181 -14
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,165 @@
|
|
|
1
|
+
## 5.0.1
|
|
2
|
+
|
|
3
|
+
## 5.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- 153244f: **BREAKING CHANGE:** Add an options to control query serialization.
|
|
8
|
+
|
|
9
|
+
- `.query({ a: [1, 2]})` => `?a[0]=1&a[1]=2`
|
|
10
|
+
- `.query({ a: [1, 2]}, { arrayFormat: 'brackets' })` => `?a[]=1&a[]=2`(default in keq@2)
|
|
11
|
+
- `.query({ a: [1, 2]}, { arrayFormat: 'repeat' })` => `?a=1&a=2`
|
|
12
|
+
- `.query({ a: [1, 2]}, { arrayFormat: 'comma' })` => `?a=1,2`
|
|
13
|
+
|
|
14
|
+
- 153244f: **BREAKING CHANGE:** `.params(key, value)` will not encode value automatically, please replace it with `.params(key, encodeURIComponent(value)`, if necessary.
|
|
15
|
+
- 214ae66: **BREAKING CHANGE:** Refactor `RequestException`:
|
|
16
|
+
|
|
17
|
+
- Third parameter changed from `retry: boolean` to `options: { fatal: boolean, response: Response }`
|
|
18
|
+
- `RequestException` moved from `@keq-request/exception` to `keq`
|
|
19
|
+
- Add `createExceptionByStatusCode` to create HTTP exceptions from a `Response` object
|
|
20
|
+
- Add `validateStatusCode` middleware and plugin to validate HTTP response and throw standard exception
|
|
21
|
+
- Add `clarifyFetchFailed` middleware
|
|
22
|
+
|
|
23
|
+
```javascript
|
|
24
|
+
// Before
|
|
25
|
+
new RequestException(400, "Error message", true);
|
|
26
|
+
|
|
27
|
+
// After
|
|
28
|
+
new RequestException(400, "Error message", {
|
|
29
|
+
fatal: false,
|
|
30
|
+
response: someResponseObject,
|
|
31
|
+
});
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
- 153244f: **BREAKING CHANGE:** Refactor event emitter. `fetch` event has been removed, please use `fetch:before`/`fetch:after` instead.
|
|
35
|
+
|
|
36
|
+
- add new function `.on(eventName, callback)` listen keq events
|
|
37
|
+
- add new event `fetch:before`
|
|
38
|
+
- add new event `fetch:after`
|
|
39
|
+
- add new event `middleware:before`
|
|
40
|
+
- add new event `middleware:after`
|
|
41
|
+
- add new event `timeout`
|
|
42
|
+
- add new event `abort`
|
|
43
|
+
- add new event `error`
|
|
44
|
+
- add new event `retry`
|
|
45
|
+
- add event listener support to `KeqRequest` instances
|
|
46
|
+
|
|
47
|
+
- 7ff2162: **BREAKING CHANGE:** Strictly adhere to URI template implementation (RFC 6570 compliant). Therefore, ':id' is no longer supported.
|
|
48
|
+
- 153244f: **BREAKING CHANGE:** change KeqRequest from interface to class.
|
|
49
|
+
|
|
50
|
+
- `request` cannot be invoke directly, please use `request.fetch()` instead.
|
|
51
|
+
- `KeqOptions` renamed to `KeqMiddlewareOptions`.
|
|
52
|
+
- `KeqOperations` renamed to `KeqApiSchema`.
|
|
53
|
+
- `KeqBaseOperation` renamed to `KeqDefaultOperation`.
|
|
54
|
+
|
|
55
|
+
- 153244f: **BREAKING CHANGE:** Refactoring keq middlewares
|
|
56
|
+
|
|
57
|
+
- `retryMiddleware`, `proxyResponseMiddleware`, `fetchArgumentMiddleware` be removed.
|
|
58
|
+
- `abortFlowControlMiddleware` and `serialFlowControlMiddleware` merged into `flowControlMiddleware`.
|
|
59
|
+
- `ctx.metadata` has been removed, please use `ctx.orchestrator` instead.
|
|
60
|
+
- `.retry()` will rerun all middlewares now, assert `ctx.data.retry.attempt` if middleware is not expect to be run.
|
|
61
|
+
- `ctx.options.retryOn`, `ctx.options.retryTimes` and `ctx.options.retryDelay` are replaced by `ctx.options.retry.on`, `ctx.options.retry.times` and `ctx.options.retry.delay`.
|
|
62
|
+
- `.option("resolveWithResponse")` had be removed, please use `.resolveWith('response')` instead.
|
|
63
|
+
- `next` cannot be run multi-times now.
|
|
64
|
+
- Some typescript type names have changed.
|
|
65
|
+
- `ctx.request.routeParams` is renamed to `ctx.request.pathParameters`
|
|
66
|
+
- `appendMiddlewares` and `prependMiddlewares` removed from Keq.
|
|
67
|
+
- Immutable properties of the context are now protected from modification.
|
|
68
|
+
|
|
69
|
+
- 153244f: **BREAKING CHANGE:** Drop support node@18.
|
|
70
|
+
- f8abc63: **BREAKING CHANGE:** Remove `end()`, add `derive()` for reusing request configuration and `fire()` for fire-and-forget invocation.
|
|
71
|
+
- 0a04864: **Fix:** fix: update browser targets to chrome91/firefox90/safari15/edge91 to resolve esbuild 0.27 destructuring build errors.
|
|
72
|
+
|
|
73
|
+
### Minor Changes
|
|
74
|
+
|
|
75
|
+
- c2d4453: **Feat:** Add `request.apply(...middlewares).exclude(...).forRoutes(...)` chainable API for route-scoped middleware registration. Supports AND/OR combination of route patterns and exclusion rules. Deprecates `useRouter()` and its shorthand methods.
|
|
76
|
+
- 95908fd: **Feat:** Enhance `.flowControl()` with new modes:
|
|
77
|
+
|
|
78
|
+
- Add `mutex` mode that rejects new requests when a request with the same signal key is already in-flight, throwing `MutexException`
|
|
79
|
+
- Add `concurrency` mode for controlling concurrent request limits
|
|
80
|
+
|
|
81
|
+
- 0a2eb2f: **Feat:** server-sent event support.
|
|
82
|
+
- a960073: **Feat:** Align intelligent response parsing and CLI code generation by using `content-type` / media type as the primary signal for binary detection.
|
|
83
|
+
|
|
84
|
+
- `intelligentParseResponse` now returns `ArrayBuffer` for recognized binary content types: `image/*`, `audio/*`, `video/*`, `font/*`, `application/octet-stream`, and `application/pdf`
|
|
85
|
+
- Fixed a bug where `text/plain` responses were not correctly detected (`plain/text` → `text/` prefix check), and extended support to all `text/*` types
|
|
86
|
+
- Unknown content types still return `undefined` to encourage explicit handling via `.resolveWith()`
|
|
87
|
+
- CLI now checks the response's media type key at the response level in addition to schema-level `format: binary` / `contentMediaType` checks
|
|
88
|
+
- CLI generated types changed from `Blob | Buffer` to `ArrayBuffer` for binary schemas to match runtime behavior
|
|
89
|
+
|
|
90
|
+
- f84775d: **Feat:** Add `rendering.v2Compat` option and restore `KeqRouter.module()` for v2 backward compatibility.
|
|
91
|
+
|
|
92
|
+
- `@keq-request/cli`: When `rendering.v2Compat` is `true`, generated micro-functions emit `.option('module', { name: moduleName, pathname, method })` matching v2 output.
|
|
93
|
+
- `keq`: Restore deprecated `KeqRouter.module()` instance/static method and `keqModuleRoute()` route factory, enabling module-based middleware routing for v2 consumers.
|
|
94
|
+
|
|
95
|
+
- a7a83da: **Perf:** Core now extends Promise, making keq instances true Promises instead of thenables.
|
|
96
|
+
- 153244f: **Feat:** add `.headers` as an alias for `.set`
|
|
97
|
+
- ca6c879: **Feat:** Orchestrator enhancements:
|
|
98
|
+
|
|
99
|
+
- The forked orchestrator can be merged into the original orchestrator
|
|
100
|
+
- `context.orchestration.middleware` can get current middleware status
|
|
101
|
+
- Synchronous middleware can be written
|
|
102
|
+
|
|
103
|
+
- b8d02ca: **Perf:** allow `undefined` as query value in string index signature overloads.
|
|
104
|
+
- 153244f: **Feat:** `.attach` can take multiple files.
|
|
105
|
+
- eed26f9: **Feat:** add build-in http exceptions.
|
|
106
|
+
|
|
107
|
+
- `BadRequestException`
|
|
108
|
+
- `UnauthorizedException`
|
|
109
|
+
- `ForbiddenException`
|
|
110
|
+
- `NotFoundedException`
|
|
111
|
+
- `NotAcceptableException`
|
|
112
|
+
- `ConflictException`
|
|
113
|
+
- `GatewayTimeoutException`
|
|
114
|
+
- `InternalServerErrorException`
|
|
115
|
+
- `BadGatewayException`
|
|
116
|
+
- `ServiceUnavailableException`
|
|
117
|
+
- `PreconditionFailedException`
|
|
118
|
+
|
|
119
|
+
## 5.0.0-beta.19
|
|
120
|
+
|
|
121
|
+
### Patch Changes
|
|
122
|
+
|
|
123
|
+
- cc017de: Add `fatal` property to `RequestException` as replacement for the deprecated `retry` property. `fatal: true` means the error should not be retried (equivalent to old `retry: false`). The `retry` property is preserved as a deprecated getter for backward compatibility.
|
|
124
|
+
|
|
125
|
+
## 5.0.0-beta.18
|
|
126
|
+
|
|
127
|
+
## 5.0.0-beta.17
|
|
128
|
+
|
|
129
|
+
## 5.0.0-beta.16
|
|
130
|
+
|
|
131
|
+
### Minor Changes
|
|
132
|
+
|
|
133
|
+
- c2d4453: **Feat:** Add `request.apply(...middlewares).exclude(...).forRoutes(...)` chainable API for route-scoped middleware registration. Supports AND/OR combination of route patterns and exclusion rules. Deprecates `useRouter()` and its shorthand methods.
|
|
134
|
+
- a960073: **Feat:** Align intelligent response parsing and CLI code generation by using `content-type` / media type as the primary signal for binary detection.
|
|
135
|
+
|
|
136
|
+
- `intelligentParseResponse` now returns `ArrayBuffer` for recognized binary content types: `image/*`, `audio/*`, `video/*`, `font/*`, `application/octet-stream`, and `application/pdf`
|
|
137
|
+
- Fixed a bug where `text/plain` responses were not correctly detected (`plain/text` → `text/` prefix check), and extended support to all `text/*` types
|
|
138
|
+
- Unknown content types still return `undefined` to encourage explicit handling via `.resolveWith()`
|
|
139
|
+
- CLI now checks the response's media type key at the response level in addition to schema-level `format: binary` / `contentMediaType` checks
|
|
140
|
+
- CLI generated types changed from `Blob | Buffer` to `ArrayBuffer` for binary schemas to match runtime behavior
|
|
141
|
+
|
|
142
|
+
- f84775d: **Feat:** Add `rendering.v2Compat` option and restore `KeqRouter.module()` for v2 backward compatibility.
|
|
143
|
+
|
|
144
|
+
- `@keq-request/cli`: When `rendering.v2Compat` is `true`, generated micro-functions emit `.option('module', { name: moduleName, pathname, method })` matching v2 output.
|
|
145
|
+
- `keq`: Restore deprecated `KeqRouter.module()` instance/static method and `keqModuleRoute()` route factory, enabling module-based middleware routing for v2 consumers.
|
|
146
|
+
|
|
147
|
+
## 5.0.0-beta.15
|
|
148
|
+
|
|
149
|
+
## 5.0.0-beta.14
|
|
150
|
+
|
|
151
|
+
## 5.0.0-beta.13
|
|
152
|
+
|
|
153
|
+
## 5.0.0-beta.12
|
|
154
|
+
|
|
155
|
+
## 5.0.0-beta.11
|
|
156
|
+
|
|
157
|
+
## 5.0.0-beta.10
|
|
158
|
+
|
|
159
|
+
### Minor Changes
|
|
160
|
+
|
|
161
|
+
- 95908fd: **Feat:** add `mutex` flow control mode that rejects new requests when a request with the same signal key is already in-flight, throwing `MutexException`
|
|
162
|
+
|
|
1
163
|
## 5.0.0-beta.9
|
|
2
164
|
|
|
3
165
|
## 5.0.0-beta.8
|
package/dist/index.d.mts
CHANGED
|
@@ -159,6 +159,8 @@ declare class KeqSharedContext implements KeqContext {
|
|
|
159
159
|
* The unique identifier of the request's location in the code
|
|
160
160
|
*/
|
|
161
161
|
get locationId(): string | undefined;
|
|
162
|
+
/** @deprecated Use `locationId` instead */
|
|
163
|
+
get identifier(): string | undefined;
|
|
162
164
|
get request(): KeqRequestInit;
|
|
163
165
|
get global(): KeqGlobal;
|
|
164
166
|
get emitter(): KeqContextEmitter;
|
|
@@ -206,7 +208,7 @@ interface KeqTimeoutOptions {
|
|
|
206
208
|
//#endregion
|
|
207
209
|
//#region src/middlewares/flow-control-middleware/types/keq-flow-control.d.ts
|
|
208
210
|
interface KeqFlowControlOptions {
|
|
209
|
-
mode: 'abort' | 'serial' | 'concurrent';
|
|
211
|
+
mode: 'abort' | 'serial' | 'concurrent' | 'mutex';
|
|
210
212
|
concurrencyLimit?: number;
|
|
211
213
|
signal: string | ((ctx: KeqExecutionContext) => string);
|
|
212
214
|
}
|
|
@@ -536,6 +538,7 @@ declare class Keq<OP extends KeqOperation = KeqDefaultOperation, RES_BODY extend
|
|
|
536
538
|
flowControl(mode: 'concurrent', limit: number, signal?: KeqFlowControlSignal): this;
|
|
537
539
|
flowControl(mode: 'serial', signal?: KeqFlowControlSignal): this;
|
|
538
540
|
flowControl(mode: 'abort', signal?: KeqFlowControlSignal): this;
|
|
541
|
+
flowControl(mode: 'mutex', signal?: KeqFlowControlSignal): this;
|
|
539
542
|
timeout(milliseconds: number): this;
|
|
540
543
|
resolveWith(m: 'response'): Keq<Override<OP, {
|
|
541
544
|
responseBody: Response;
|
|
@@ -569,12 +572,6 @@ interface KeqRetryOptions {
|
|
|
569
572
|
on?: KeqRetryOn;
|
|
570
573
|
}
|
|
571
574
|
//#endregion
|
|
572
|
-
//#region src/context/types/keq-context-options/keq-module-options.d.ts
|
|
573
|
-
interface KeqModuleOptions {
|
|
574
|
-
name: string;
|
|
575
|
-
pathname: string;
|
|
576
|
-
}
|
|
577
|
-
//#endregion
|
|
578
575
|
//#region src/context/types/keq-context-options/keq-middleware-options.d.ts
|
|
579
576
|
interface KeqMiddlewareOptions<OP extends KeqOperation> {
|
|
580
577
|
/**
|
|
@@ -589,7 +586,6 @@ interface KeqMiddlewareOptions<OP extends KeqOperation> {
|
|
|
589
586
|
*/
|
|
590
587
|
resolveWith(value: KeqResolveWithMode): Keq<OP>;
|
|
591
588
|
retry(value: KeqRetryOptions): Keq<OP>;
|
|
592
|
-
module(value: KeqModuleOptions): Keq<OP>;
|
|
593
589
|
flowControl(value: KeqFlowControlOptions): Keq<OP>;
|
|
594
590
|
timeout(value: KeqTimeoutOptions): Keq<OP>;
|
|
595
591
|
}
|
|
@@ -608,6 +604,7 @@ interface KeqGlobalCore {
|
|
|
608
604
|
serialFlowControl?: Record<string, queueAsPromised<{
|
|
609
605
|
next: KeqNext;
|
|
610
606
|
}, void>>;
|
|
607
|
+
mutexFlowControl?: Set<string>;
|
|
611
608
|
}
|
|
612
609
|
interface KeqGlobal {
|
|
613
610
|
core?: KeqGlobalCore;
|
|
@@ -706,6 +703,8 @@ declare class Core<OP extends KeqOperation = KeqDefaultOperation, RES_BODY exten
|
|
|
706
703
|
private run;
|
|
707
704
|
private __execute__;
|
|
708
705
|
fire(): void;
|
|
706
|
+
/** @deprecated Await the Keq instance directly or use `.fire()` for fire-and-forget. */
|
|
707
|
+
end(): Promise<RES_BODY>;
|
|
709
708
|
then<TResult1 = RES_BODY, TResult2 = never>(onfulfilled?: ((value: RES_BODY) => TResult1 | PromiseLike<TResult1>) | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null): Promise<TResult1 | TResult2>;
|
|
710
709
|
}
|
|
711
710
|
//#endregion
|
|
@@ -718,7 +717,17 @@ interface KeqRoute {
|
|
|
718
717
|
//#region src/router/utils/compose-route.d.ts
|
|
719
718
|
declare function composeRoute(routes: KeqRoute[]): KeqRoute;
|
|
720
719
|
//#endregion
|
|
720
|
+
//#region src/router/types/keq-route-pattern.d.ts
|
|
721
|
+
interface KeqRoutePattern {
|
|
722
|
+
host?: string;
|
|
723
|
+
method?: string;
|
|
724
|
+
pathname?: string;
|
|
725
|
+
}
|
|
726
|
+
//#endregion
|
|
721
727
|
//#region src/router/keq-router.d.ts
|
|
728
|
+
/**
|
|
729
|
+
* @deprecated Use `request.apply(...middlewares).forRoutes(...)` instead.
|
|
730
|
+
*/
|
|
722
731
|
declare class KeqRouter {
|
|
723
732
|
private readonly middlewares;
|
|
724
733
|
constructor(middlewares?: KeqMiddleware[]);
|
|
@@ -733,6 +742,9 @@ declare class KeqRouter {
|
|
|
733
742
|
pathname(pathname: string, middleware: KeqMiddleware, ...additionalMiddlewares: KeqMiddleware[]): this;
|
|
734
743
|
location(middleware: KeqMiddleware[]): this;
|
|
735
744
|
location(middleware: KeqMiddleware, ...additionalMiddlewares: KeqMiddleware[]): this;
|
|
745
|
+
/**
|
|
746
|
+
* @deprecated This method exists solely for backward compatibility with v2.
|
|
747
|
+
*/
|
|
736
748
|
module(moduleName: string, middleware: KeqMiddleware[]): this;
|
|
737
749
|
module(moduleName: string, middleware: KeqMiddleware, ...additionalMiddlewares: KeqMiddleware[]): this;
|
|
738
750
|
static route(route: KeqRoute, middleware: KeqMiddleware[]): KeqMiddleware;
|
|
@@ -745,18 +757,34 @@ declare class KeqRouter {
|
|
|
745
757
|
static pathname(pathname: string, middleware: KeqMiddleware, ...additionalMiddlewares: KeqMiddleware[]): KeqMiddleware;
|
|
746
758
|
static location(middleware: KeqMiddleware[]): KeqMiddleware;
|
|
747
759
|
static location(middleware: KeqMiddleware, ...additionalMiddlewares: KeqMiddleware[]): KeqMiddleware;
|
|
760
|
+
/**
|
|
761
|
+
* @deprecated This method exists solely for backward compatibility with v2.
|
|
762
|
+
*/
|
|
748
763
|
static module(moduleName: string, middleware: KeqMiddleware[]): KeqMiddleware;
|
|
749
764
|
static module(moduleName: string, middleware: KeqMiddleware, ...additionalMiddlewares: KeqMiddleware[]): KeqMiddleware;
|
|
750
765
|
}
|
|
751
766
|
//#endregion
|
|
767
|
+
//#region src/router/keq-middleware-applicator.d.ts
|
|
768
|
+
type KeqRouteTarget = KeqRoutePattern | KeqRoute;
|
|
769
|
+
declare class KeqMiddlewareApplicator<TReturn> {
|
|
770
|
+
private readonly middlewares;
|
|
771
|
+
private readonly registeredMiddlewares;
|
|
772
|
+
private readonly returnValue;
|
|
773
|
+
private readonly excludedTargets;
|
|
774
|
+
constructor(middlewares: KeqMiddleware[], registeredMiddlewares: KeqMiddleware[], returnValue: TReturn);
|
|
775
|
+
exclude(...routes: KeqRouteTarget[]): this;
|
|
776
|
+
forRoutes(...routes: KeqRouteTarget[]): TReturn;
|
|
777
|
+
forAllRoutes(): TReturn;
|
|
778
|
+
}
|
|
779
|
+
//#endregion
|
|
752
780
|
//#region src/request/request.d.ts
|
|
753
781
|
interface KeqRequestOptions {
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
782
|
+
middlewares?: KeqMiddleware[];
|
|
783
|
+
terminalMiddlewares?: KeqMiddleware[];
|
|
784
|
+
baseOrigin?: string;
|
|
785
|
+
qs?: KeqQueryOptions;
|
|
786
|
+
}
|
|
787
|
+
interface KeqRequestForkOptions {
|
|
760
788
|
baseOrigin?: string;
|
|
761
789
|
qs?: KeqQueryOptions;
|
|
762
790
|
}
|
|
@@ -775,10 +803,12 @@ declare class KeqRequest<SCHEMA extends KeqApiSchema = KeqApiSchema> {
|
|
|
775
803
|
* @description 跨请求共享数据,用于实现 flowControl的功能
|
|
776
804
|
*/
|
|
777
805
|
readonly global: KeqGlobal;
|
|
778
|
-
readonly
|
|
779
|
-
readonly
|
|
806
|
+
readonly middlewares: KeqMiddleware[];
|
|
807
|
+
private readonly __terminalMiddlewares__;
|
|
808
|
+
private __parent__?;
|
|
780
809
|
constructor(options?: KeqRequestOptions);
|
|
781
810
|
private __formatUrl__;
|
|
811
|
+
private resolveMiddlewares;
|
|
782
812
|
private __fetch__;
|
|
783
813
|
fetch<P extends keyof SCHEMA, M extends KeqRequestMethod>(url: P, init: KeqRequestFetchOptions<M>): Keq<Exclude<SCHEMA[P][M], undefined>>;
|
|
784
814
|
fetch<T = unknown>(url: string | URL, init: KeqRequestFetchOptions): Keq<KeqDefaultOperation<{
|
|
@@ -817,7 +847,17 @@ declare class KeqRequest<SCHEMA extends KeqApiSchema = KeqApiSchema> {
|
|
|
817
847
|
responseBody: T;
|
|
818
848
|
}>>;
|
|
819
849
|
use(firstMiddleware: KeqMiddleware, ...middleware: KeqMiddleware[]): this;
|
|
850
|
+
apply(middleware: KeqMiddleware[]): KeqMiddlewareApplicator<this>;
|
|
851
|
+
apply(middleware: KeqMiddleware, ...additionalMiddlewares: KeqMiddleware[]): KeqMiddlewareApplicator<this>;
|
|
852
|
+
/**
|
|
853
|
+
* @deprecated Use `request.apply(...middlewares).forRoutes(...)` instead.
|
|
854
|
+
*/
|
|
820
855
|
useRouter(): KeqRouter;
|
|
856
|
+
fork(options?: KeqRequestForkOptions): KeqRequest;
|
|
857
|
+
inherit(parent: KeqRequest): this;
|
|
858
|
+
adopt(child: KeqRequest): this;
|
|
859
|
+
/** @deprecated Use `middlewares` instead */
|
|
860
|
+
get preMiddlewares(): KeqMiddleware[];
|
|
821
861
|
on<K extends keyof KeqEvents>(event: K, listener: (data: KeqEvents[K]) => void): this;
|
|
822
862
|
}
|
|
823
863
|
declare const request: KeqRequest<KeqApiSchema>;
|
|
@@ -855,8 +895,12 @@ interface RequestExceptionOptions {
|
|
|
855
895
|
}
|
|
856
896
|
declare class RequestException extends Exception {
|
|
857
897
|
statusCode: number | string;
|
|
858
|
-
|
|
898
|
+
fatal: boolean;
|
|
859
899
|
response?: Response;
|
|
900
|
+
/** @deprecated Use `fatal` instead. `retry === true` is equivalent to `fatal === false`. */
|
|
901
|
+
get retry(): boolean;
|
|
902
|
+
/** @deprecated Pass `RequestExceptionOptions` instead. `retry: true` maps to `{ fatal: false }`. */
|
|
903
|
+
constructor(statusCode: number | string, message: string, retry: boolean);
|
|
860
904
|
constructor(statusCode: number | string, message?: string, options?: RequestExceptionOptions);
|
|
861
905
|
}
|
|
862
906
|
//#endregion
|
|
@@ -960,5 +1004,5 @@ declare class GatewayTimeoutException extends RequestException {
|
|
|
960
1004
|
constructor(message?: string, options?: RequestExceptionOptions);
|
|
961
1005
|
}
|
|
962
1006
|
//#endregion
|
|
963
|
-
export { AbortException, BadGatewayException, BadRequestException, ConflictException, ContentTooLargeException, Exception, ForbiddenException, GatewayTimeoutException, ImATeapotException, InternalServerErrorException, Keq, type KeqApiSchema, type KeqBodyInit, type KeqContext, type KeqContextData, type KeqContextEmitter, type KeqContextOptions, type KeqDefaultOperation, type KeqEvents, KeqExecutionContext, type KeqGlobal, type KeqGlobalCore, type KeqMiddleware, KeqMiddlewareExecutor, type KeqMiddlewareOptions, KeqMiddlewareOrchestrator, type KeqNext, type KeqOperation, type KeqOptions, type KeqPathParameterInit, type KeqQueryInit, type KeqQueryOptions, KeqRequest, type KeqRetryDelay, type KeqRetryOn, type KeqRoute, KeqSharedContext, type KeqSharedContextOptions, MethodNotAllowedException, NotAcceptableException, NotFoundedException, NotImplementedException, PreconditionFailedException, ProxyAuthenticationRequiredException, RequestException, type RequestExceptionOptions, RequestTimeoutException, type ServerSentEvent, ServiceUnavailableException, TimeoutException, TooManyRequestsException, TypeException, UnauthorizedException, UnsupportedMediaTypeException, UriTooLongException, composeMiddleware, composeRoute, createProxyResponse, createRequest, request };
|
|
1007
|
+
export { AbortException, BadGatewayException, BadRequestException, ConflictException, ContentTooLargeException, Exception, ForbiddenException, GatewayTimeoutException, ImATeapotException, InternalServerErrorException, Keq, type KeqApiSchema, type KeqBodyInit, type KeqContext, type KeqContextData, type KeqContextEmitter, type KeqContextOptions, type KeqDefaultOperation, type KeqEvents, KeqExecutionContext, type KeqGlobal, type KeqGlobalCore, type KeqMiddleware, KeqMiddlewareApplicator, KeqMiddlewareExecutor, type KeqMiddlewareOptions, KeqMiddlewareOrchestrator, type KeqNext, type KeqOperation, type KeqOptions, type KeqPathParameterInit, type KeqQueryInit, type KeqQueryOptions, KeqRequest, type KeqRequestForkOptions, type KeqRetryDelay, type KeqRetryOn, type KeqRoute, type KeqRoutePattern, type KeqRouteTarget, KeqSharedContext, type KeqSharedContextOptions, MethodNotAllowedException, NotAcceptableException, NotFoundedException, NotImplementedException, PreconditionFailedException, ProxyAuthenticationRequiredException, RequestException, type RequestExceptionOptions, RequestTimeoutException, type ServerSentEvent, ServiceUnavailableException, TimeoutException, TooManyRequestsException, TypeException, UnauthorizedException, UnsupportedMediaTypeException, UriTooLongException, composeMiddleware, composeRoute, createProxyResponse, createRequest, request };
|
|
964
1008
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/middleware/types/keq-next.ts","../src/middleware/types/keq-middleware.ts","../src/middleware/utils/compose-middleware.ts","../src/context/middleware-context.ts","../src/orchestrator/executor.ts","../src/orchestrator/orchestrator.ts","../src/request-init/types/keq-body-init.ts","../src/request-init/types/keq-request-method.ts","../src/request-init/request-init.ts","../src/context/orchestrator-context.ts","../src/context/shared-context.ts","../src/context/types/keq-context-emitter.ts","../src/middlewares/timeout-middleware/index.ts","../src/middlewares/flow-control-middleware/types/keq-flow-control.ts","../src/request/types/keq-query-value.ts","../src/request/types/keq-param-value.ts","../src/request/types/api-schema/operation.ts","../src/request/types/api-schema/api-schema.ts","../src/types/literal-keys.ts","../src/types/string-index-value-of.ts","../src/types/enabled-if-string-index.ts","../src/types/loose-nested-like.ts","../src/types/override.ts","../src/request/types/api-schema/default-operation.ts","../src/request/types/api-schema/extract-method-operations.ts","../src/request/types/content-type.ts","../src/request/types/keq-attachable-file.ts","../src/request/types/keq-query-options.ts","../src/request/types/server-sent-event.ts","../src/request/keq.ts","../src/context/types/keq-context-options/keq-resolve-with-mode.ts","../src/context/types/keq-context-options/keq-retry-options.ts","../src/context/types/keq-context-options/keq-module-options.ts","../src/context/types/keq-context-options/keq-middleware-options.ts","../src/context/types/keq-context-options/keq-context-options.ts","../src/context/types/keq-global.ts","../src/context/types/keq-context-data.ts","../src/context/types/keq-context.ts","../src/context/execution-context.ts","../src/context/utils/create-proxy-response.ts","../src/request/core.ts","../src/router/types/keq-route.ts","../src/router/utils/compose-route.ts","../src/router/keq-router.ts","../src/request/request.ts","../src/request/create-request.ts","../src/exception/exception.ts","../src/exception/type.exception.ts","../src/exception/abort.exception.ts","../src/exception/timeout.exception.ts","../src/exception/http-exceptions/request.exception.ts","../src/exception/http-exceptions/bad-request.exception.ts","../src/exception/http-exceptions/unauthorized.exception.ts","../src/exception/http-exceptions/forbidden.exception.ts","../src/exception/http-exceptions/not-founded.exception.ts","../src/exception/http-exceptions/method-not-allowed.exception.ts","../src/exception/http-exceptions/not-acceptable.exception.ts","../src/exception/http-exceptions/proxy-authentication-required.exception.ts","../src/exception/http-exceptions/request-timeout.exception.ts","../src/exception/http-exceptions/conflict.exception.ts","../src/exception/http-exceptions/precondition-failed.exception.ts","../src/exception/http-exceptions/content-too-large.exception.ts","../src/exception/http-exceptions/uri-too-long.exception.ts","../src/exception/http-exceptions/unsupported-media-type.exception.ts","../src/exception/http-exceptions/im-a-teapot.exception.ts","../src/exception/http-exceptions/too-many-requests.exception.ts","../src/exception/http-exceptions/internal-server-error.exception.ts","../src/exception/http-exceptions/not-implemented.exception.ts","../src/exception/http-exceptions/bad-gateway.exception.ts","../src/exception/http-exceptions/service-unavailable.exception.ts","../src/exception/http-exceptions/gateway-timeout.exception.ts"],"mappings":";;;;;;;;;KAAY,OAAA,SAAgB,OAAA;;;UCKX,aAAA;EAAA,CACd,GAAA,EAAK,mBAAA,EAAqB,IAAA,EAAM,OAAA,GAAU,UAAA;EAC3C,qBAAA;AAAA;;;UCFQ,wBAAA;EACR,IAAA;AAAA;AAAA,iBAGc,iBAAA,CAAkB,WAAA,EAAa,aAAA,IAAiB,OAAA,GAAU,wBAAA,GAA2B,aAAA;;;cCN/F,kBAAA;AAAA,cAEO,oBAAA;EAAA,UACD,kBAAA,GAAmB,qBAAA;cAEjB,QAAA,EAAU,qBAAA;EAAA,IAIlB,IAAA,CAAA;EAAA,IAIA,MAAA,CAAA,GAAU,qBAAA;EAAA,IAIV,QAAA,CAAA;AAAA;;;cCdO,qBAAA;EAAA,SAMO,UAAA,EAAY,aAAA;EAAA,SALrB,IAAA;EACT,MAAA;EACA,OAAA,EAAS,oBAAA;cAGS,UAAA,EAAY,aAAA;EAMxB,OAAA,CAAQ,OAAA,EAAS,mBAAA,EAAqB,IAAA,EAAM,OAAA,GAAU,OAAA;AAAA;;;UCVpD,gCAAA;EACR,YAAA,EAAc,yBAAA;EACd,KAAA;AAAA;AAAA,KAGU,+BAAA;AAAA,cAEC,yBAAA;EACX,IAAA,GAAO,gCAAA;EAEP,MAAA,EAAQ,+BAAA;EACR,OAAA,EAAS,gBAAA;EACT,SAAA,EAAW,qBAAA;EAEX,OAAA;cAGE,OAAA,EAAS,gBAAA,EACT,WAAA,GAAa,aAAA,IACb,OAAA;IACE,IAAA,GAAO,gCAAA;EAAA;EAAA,QASH,iBAAA;EAAA,QAWM,GAAA;EA2CR,OAAA,CAAA,GAAW,OAAA;EAgBjB,IA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2C,OAAA,GAAU,uBAAA;AAAA;;;cCDtD,uBAAA,SAAgC,gBAAA;cAC/B,OAAA,WAAqC,OAAA,GAAU,uBAAA;AAAA;;;cCAhD,mBAAA,SAA4B,gBAAA;cAC3B,OAAA,WAAiC,OAAA,GAAU,uBAAA;AAAA;;;cCD5C,2BAAA,SAAoC,gBAAA;cACnC,OAAA,WAAyC,OAAA,GAAU,uBAAA;AAAA;;;cCFpD,uBAAA,SAAgC,gBAAA;cAC/B,OAAA,WAAqC,OAAA,GAAU,uBAAA;AAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/middleware/types/keq-next.ts","../src/middleware/types/keq-middleware.ts","../src/middleware/utils/compose-middleware.ts","../src/context/middleware-context.ts","../src/orchestrator/executor.ts","../src/orchestrator/orchestrator.ts","../src/request-init/types/keq-body-init.ts","../src/request-init/types/keq-request-method.ts","../src/request-init/request-init.ts","../src/context/orchestrator-context.ts","../src/context/shared-context.ts","../src/context/types/keq-context-emitter.ts","../src/middlewares/timeout-middleware/index.ts","../src/middlewares/flow-control-middleware/types/keq-flow-control.ts","../src/request/types/keq-query-value.ts","../src/request/types/keq-param-value.ts","../src/request/types/api-schema/operation.ts","../src/request/types/api-schema/api-schema.ts","../src/types/literal-keys.ts","../src/types/string-index-value-of.ts","../src/types/enabled-if-string-index.ts","../src/types/loose-nested-like.ts","../src/types/override.ts","../src/request/types/api-schema/default-operation.ts","../src/request/types/api-schema/extract-method-operations.ts","../src/request/types/content-type.ts","../src/request/types/keq-attachable-file.ts","../src/request/types/keq-query-options.ts","../src/request/types/server-sent-event.ts","../src/request/keq.ts","../src/context/types/keq-context-options/keq-resolve-with-mode.ts","../src/context/types/keq-context-options/keq-retry-options.ts","../src/context/types/keq-context-options/keq-middleware-options.ts","../src/context/types/keq-context-options/keq-context-options.ts","../src/context/types/keq-global.ts","../src/context/types/keq-context-data.ts","../src/context/types/keq-context.ts","../src/context/execution-context.ts","../src/context/utils/create-proxy-response.ts","../src/request/core.ts","../src/router/types/keq-route.ts","../src/router/utils/compose-route.ts","../src/router/types/keq-route-pattern.ts","../src/router/keq-router.ts","../src/router/keq-middleware-applicator.ts","../src/request/request.ts","../src/request/create-request.ts","../src/exception/exception.ts","../src/exception/type.exception.ts","../src/exception/abort.exception.ts","../src/exception/timeout.exception.ts","../src/exception/http-exceptions/request.exception.ts","../src/exception/http-exceptions/bad-request.exception.ts","../src/exception/http-exceptions/unauthorized.exception.ts","../src/exception/http-exceptions/forbidden.exception.ts","../src/exception/http-exceptions/not-founded.exception.ts","../src/exception/http-exceptions/method-not-allowed.exception.ts","../src/exception/http-exceptions/not-acceptable.exception.ts","../src/exception/http-exceptions/proxy-authentication-required.exception.ts","../src/exception/http-exceptions/request-timeout.exception.ts","../src/exception/http-exceptions/conflict.exception.ts","../src/exception/http-exceptions/precondition-failed.exception.ts","../src/exception/http-exceptions/content-too-large.exception.ts","../src/exception/http-exceptions/uri-too-long.exception.ts","../src/exception/http-exceptions/unsupported-media-type.exception.ts","../src/exception/http-exceptions/im-a-teapot.exception.ts","../src/exception/http-exceptions/too-many-requests.exception.ts","../src/exception/http-exceptions/internal-server-error.exception.ts","../src/exception/http-exceptions/not-implemented.exception.ts","../src/exception/http-exceptions/bad-gateway.exception.ts","../src/exception/http-exceptions/service-unavailable.exception.ts","../src/exception/http-exceptions/gateway-timeout.exception.ts"],"mappings":";;;;;;;;;KAAY,OAAA,SAAgB,OAAA;;;UCKX,aAAA;EAAA,CACd,GAAA,EAAK,mBAAA,EAAqB,IAAA,EAAM,OAAA,GAAU,UAAA;EAC3C,qBAAA;AAAA;;;UCFQ,wBAAA;EACR,IAAA;AAAA;AAAA,iBAGc,iBAAA,CAAkB,WAAA,EAAa,aAAA,IAAiB,OAAA,GAAU,wBAAA,GAA2B,aAAA;;;cCN/F,kBAAA;AAAA,cAEO,oBAAA;EAAA,UACD,kBAAA,GAAmB,qBAAA;cAEjB,QAAA,EAAU,qBAAA;EAAA,IAIlB,IAAA,CAAA;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cAC3B,OAAA,WAAkC,OAAA,GAAU,uBAAA;AAAA;;;cCF7C,6BAAA,SAAsC,gBAAA;cACrC,OAAA,WAA4C,OAAA,GAAU,uBAAA;AAAA;;;cCAvD,kBAAA,SAA2B,gBAAA;cAC1B,OAAA,WAAkC,OAAA,GAAU,uBAAA;AAAA;;;cCD7C,wBAAA,SAAiC,gBAAA;cAChC,OAAA,WAAuC,OAAA,GAAU,uBAAA;AAAA;;;cCFlD,4BAAA,SAAqC,gBAAA;cACpC,OAAA,WAA2C,OAAA,GAAU,uBAAA;AAAA;;;cCDtD,uBAAA,SAAgC,gBAAA;cAC/B,OAAA,WAAqC,OAAA,GAAU,uBAAA;AAAA;;;cCAhD,mBAAA,SAA4B,gBAAA;cAC3B,OAAA,WAAiC,OAAA,GAAU,uBAAA;AAAA;;;cCD5C,2BAAA,SAAoC,gBAAA;cACnC,OAAA,WAAyC,OAAA,GAAU,uBAAA;AAAA;;;cCFpD,uBAAA,SAAgC,gBAAA;cAC/B,OAAA,WAAqC,OAAA,GAAU,uBAAA;AAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -159,6 +159,8 @@ declare class KeqSharedContext implements KeqContext {
|
|
|
159
159
|
* The unique identifier of the request's location in the code
|
|
160
160
|
*/
|
|
161
161
|
get locationId(): string | undefined;
|
|
162
|
+
/** @deprecated Use `locationId` instead */
|
|
163
|
+
get identifier(): string | undefined;
|
|
162
164
|
get request(): KeqRequestInit;
|
|
163
165
|
get global(): KeqGlobal;
|
|
164
166
|
get emitter(): KeqContextEmitter;
|
|
@@ -206,7 +208,7 @@ interface KeqTimeoutOptions {
|
|
|
206
208
|
//#endregion
|
|
207
209
|
//#region src/middlewares/flow-control-middleware/types/keq-flow-control.d.ts
|
|
208
210
|
interface KeqFlowControlOptions {
|
|
209
|
-
mode: 'abort' | 'serial' | 'concurrent';
|
|
211
|
+
mode: 'abort' | 'serial' | 'concurrent' | 'mutex';
|
|
210
212
|
concurrencyLimit?: number;
|
|
211
213
|
signal: string | ((ctx: KeqExecutionContext) => string);
|
|
212
214
|
}
|
|
@@ -536,6 +538,7 @@ declare class Keq<OP extends KeqOperation = KeqDefaultOperation, RES_BODY extend
|
|
|
536
538
|
flowControl(mode: 'concurrent', limit: number, signal?: KeqFlowControlSignal): this;
|
|
537
539
|
flowControl(mode: 'serial', signal?: KeqFlowControlSignal): this;
|
|
538
540
|
flowControl(mode: 'abort', signal?: KeqFlowControlSignal): this;
|
|
541
|
+
flowControl(mode: 'mutex', signal?: KeqFlowControlSignal): this;
|
|
539
542
|
timeout(milliseconds: number): this;
|
|
540
543
|
resolveWith(m: 'response'): Keq<Override<OP, {
|
|
541
544
|
responseBody: Response;
|
|
@@ -569,12 +572,6 @@ interface KeqRetryOptions {
|
|
|
569
572
|
on?: KeqRetryOn;
|
|
570
573
|
}
|
|
571
574
|
//#endregion
|
|
572
|
-
//#region src/context/types/keq-context-options/keq-module-options.d.ts
|
|
573
|
-
interface KeqModuleOptions {
|
|
574
|
-
name: string;
|
|
575
|
-
pathname: string;
|
|
576
|
-
}
|
|
577
|
-
//#endregion
|
|
578
575
|
//#region src/context/types/keq-context-options/keq-middleware-options.d.ts
|
|
579
576
|
interface KeqMiddlewareOptions<OP extends KeqOperation> {
|
|
580
577
|
/**
|
|
@@ -589,7 +586,6 @@ interface KeqMiddlewareOptions<OP extends KeqOperation> {
|
|
|
589
586
|
*/
|
|
590
587
|
resolveWith(value: KeqResolveWithMode): Keq<OP>;
|
|
591
588
|
retry(value: KeqRetryOptions): Keq<OP>;
|
|
592
|
-
module(value: KeqModuleOptions): Keq<OP>;
|
|
593
589
|
flowControl(value: KeqFlowControlOptions): Keq<OP>;
|
|
594
590
|
timeout(value: KeqTimeoutOptions): Keq<OP>;
|
|
595
591
|
}
|
|
@@ -608,6 +604,7 @@ interface KeqGlobalCore {
|
|
|
608
604
|
serialFlowControl?: Record<string, queueAsPromised<{
|
|
609
605
|
next: KeqNext;
|
|
610
606
|
}, void>>;
|
|
607
|
+
mutexFlowControl?: Set<string>;
|
|
611
608
|
}
|
|
612
609
|
interface KeqGlobal {
|
|
613
610
|
core?: KeqGlobalCore;
|
|
@@ -706,6 +703,8 @@ declare class Core<OP extends KeqOperation = KeqDefaultOperation, RES_BODY exten
|
|
|
706
703
|
private run;
|
|
707
704
|
private __execute__;
|
|
708
705
|
fire(): void;
|
|
706
|
+
/** @deprecated Await the Keq instance directly or use `.fire()` for fire-and-forget. */
|
|
707
|
+
end(): Promise<RES_BODY>;
|
|
709
708
|
then<TResult1 = RES_BODY, TResult2 = never>(onfulfilled?: ((value: RES_BODY) => TResult1 | PromiseLike<TResult1>) | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null): Promise<TResult1 | TResult2>;
|
|
710
709
|
}
|
|
711
710
|
//#endregion
|
|
@@ -718,7 +717,17 @@ interface KeqRoute {
|
|
|
718
717
|
//#region src/router/utils/compose-route.d.ts
|
|
719
718
|
declare function composeRoute(routes: KeqRoute[]): KeqRoute;
|
|
720
719
|
//#endregion
|
|
720
|
+
//#region src/router/types/keq-route-pattern.d.ts
|
|
721
|
+
interface KeqRoutePattern {
|
|
722
|
+
host?: string;
|
|
723
|
+
method?: string;
|
|
724
|
+
pathname?: string;
|
|
725
|
+
}
|
|
726
|
+
//#endregion
|
|
721
727
|
//#region src/router/keq-router.d.ts
|
|
728
|
+
/**
|
|
729
|
+
* @deprecated Use `request.apply(...middlewares).forRoutes(...)` instead.
|
|
730
|
+
*/
|
|
722
731
|
declare class KeqRouter {
|
|
723
732
|
private readonly middlewares;
|
|
724
733
|
constructor(middlewares?: KeqMiddleware[]);
|
|
@@ -733,6 +742,9 @@ declare class KeqRouter {
|
|
|
733
742
|
pathname(pathname: string, middleware: KeqMiddleware, ...additionalMiddlewares: KeqMiddleware[]): this;
|
|
734
743
|
location(middleware: KeqMiddleware[]): this;
|
|
735
744
|
location(middleware: KeqMiddleware, ...additionalMiddlewares: KeqMiddleware[]): this;
|
|
745
|
+
/**
|
|
746
|
+
* @deprecated This method exists solely for backward compatibility with v2.
|
|
747
|
+
*/
|
|
736
748
|
module(moduleName: string, middleware: KeqMiddleware[]): this;
|
|
737
749
|
module(moduleName: string, middleware: KeqMiddleware, ...additionalMiddlewares: KeqMiddleware[]): this;
|
|
738
750
|
static route(route: KeqRoute, middleware: KeqMiddleware[]): KeqMiddleware;
|
|
@@ -745,18 +757,34 @@ declare class KeqRouter {
|
|
|
745
757
|
static pathname(pathname: string, middleware: KeqMiddleware, ...additionalMiddlewares: KeqMiddleware[]): KeqMiddleware;
|
|
746
758
|
static location(middleware: KeqMiddleware[]): KeqMiddleware;
|
|
747
759
|
static location(middleware: KeqMiddleware, ...additionalMiddlewares: KeqMiddleware[]): KeqMiddleware;
|
|
760
|
+
/**
|
|
761
|
+
* @deprecated This method exists solely for backward compatibility with v2.
|
|
762
|
+
*/
|
|
748
763
|
static module(moduleName: string, middleware: KeqMiddleware[]): KeqMiddleware;
|
|
749
764
|
static module(moduleName: string, middleware: KeqMiddleware, ...additionalMiddlewares: KeqMiddleware[]): KeqMiddleware;
|
|
750
765
|
}
|
|
751
766
|
//#endregion
|
|
767
|
+
//#region src/router/keq-middleware-applicator.d.ts
|
|
768
|
+
type KeqRouteTarget = KeqRoutePattern | KeqRoute;
|
|
769
|
+
declare class KeqMiddlewareApplicator<TReturn> {
|
|
770
|
+
private readonly middlewares;
|
|
771
|
+
private readonly registeredMiddlewares;
|
|
772
|
+
private readonly returnValue;
|
|
773
|
+
private readonly excludedTargets;
|
|
774
|
+
constructor(middlewares: KeqMiddleware[], registeredMiddlewares: KeqMiddleware[], returnValue: TReturn);
|
|
775
|
+
exclude(...routes: KeqRouteTarget[]): this;
|
|
776
|
+
forRoutes(...routes: KeqRouteTarget[]): TReturn;
|
|
777
|
+
forAllRoutes(): TReturn;
|
|
778
|
+
}
|
|
779
|
+
//#endregion
|
|
752
780
|
//#region src/request/request.d.ts
|
|
753
781
|
interface KeqRequestOptions {
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
782
|
+
middlewares?: KeqMiddleware[];
|
|
783
|
+
terminalMiddlewares?: KeqMiddleware[];
|
|
784
|
+
baseOrigin?: string;
|
|
785
|
+
qs?: KeqQueryOptions;
|
|
786
|
+
}
|
|
787
|
+
interface KeqRequestForkOptions {
|
|
760
788
|
baseOrigin?: string;
|
|
761
789
|
qs?: KeqQueryOptions;
|
|
762
790
|
}
|
|
@@ -775,10 +803,12 @@ declare class KeqRequest<SCHEMA extends KeqApiSchema = KeqApiSchema> {
|
|
|
775
803
|
* @description 跨请求共享数据,用于实现 flowControl的功能
|
|
776
804
|
*/
|
|
777
805
|
readonly global: KeqGlobal;
|
|
778
|
-
readonly
|
|
779
|
-
readonly
|
|
806
|
+
readonly middlewares: KeqMiddleware[];
|
|
807
|
+
private readonly __terminalMiddlewares__;
|
|
808
|
+
private __parent__?;
|
|
780
809
|
constructor(options?: KeqRequestOptions);
|
|
781
810
|
private __formatUrl__;
|
|
811
|
+
private resolveMiddlewares;
|
|
782
812
|
private __fetch__;
|
|
783
813
|
fetch<P extends keyof SCHEMA, M extends KeqRequestMethod>(url: P, init: KeqRequestFetchOptions<M>): Keq<Exclude<SCHEMA[P][M], undefined>>;
|
|
784
814
|
fetch<T = unknown>(url: string | URL, init: KeqRequestFetchOptions): Keq<KeqDefaultOperation<{
|
|
@@ -817,7 +847,17 @@ declare class KeqRequest<SCHEMA extends KeqApiSchema = KeqApiSchema> {
|
|
|
817
847
|
responseBody: T;
|
|
818
848
|
}>>;
|
|
819
849
|
use(firstMiddleware: KeqMiddleware, ...middleware: KeqMiddleware[]): this;
|
|
850
|
+
apply(middleware: KeqMiddleware[]): KeqMiddlewareApplicator<this>;
|
|
851
|
+
apply(middleware: KeqMiddleware, ...additionalMiddlewares: KeqMiddleware[]): KeqMiddlewareApplicator<this>;
|
|
852
|
+
/**
|
|
853
|
+
* @deprecated Use `request.apply(...middlewares).forRoutes(...)` instead.
|
|
854
|
+
*/
|
|
820
855
|
useRouter(): KeqRouter;
|
|
856
|
+
fork(options?: KeqRequestForkOptions): KeqRequest;
|
|
857
|
+
inherit(parent: KeqRequest): this;
|
|
858
|
+
adopt(child: KeqRequest): this;
|
|
859
|
+
/** @deprecated Use `middlewares` instead */
|
|
860
|
+
get preMiddlewares(): KeqMiddleware[];
|
|
821
861
|
on<K extends keyof KeqEvents>(event: K, listener: (data: KeqEvents[K]) => void): this;
|
|
822
862
|
}
|
|
823
863
|
declare const request: KeqRequest<KeqApiSchema>;
|
|
@@ -855,8 +895,12 @@ interface RequestExceptionOptions {
|
|
|
855
895
|
}
|
|
856
896
|
declare class RequestException extends Exception {
|
|
857
897
|
statusCode: number | string;
|
|
858
|
-
|
|
898
|
+
fatal: boolean;
|
|
859
899
|
response?: Response;
|
|
900
|
+
/** @deprecated Use `fatal` instead. `retry === true` is equivalent to `fatal === false`. */
|
|
901
|
+
get retry(): boolean;
|
|
902
|
+
/** @deprecated Pass `RequestExceptionOptions` instead. `retry: true` maps to `{ fatal: false }`. */
|
|
903
|
+
constructor(statusCode: number | string, message: string, retry: boolean);
|
|
860
904
|
constructor(statusCode: number | string, message?: string, options?: RequestExceptionOptions);
|
|
861
905
|
}
|
|
862
906
|
//#endregion
|
|
@@ -960,5 +1004,5 @@ declare class GatewayTimeoutException extends RequestException {
|
|
|
960
1004
|
constructor(message?: string, options?: RequestExceptionOptions);
|
|
961
1005
|
}
|
|
962
1006
|
//#endregion
|
|
963
|
-
export { AbortException, BadGatewayException, BadRequestException, ConflictException, ContentTooLargeException, Exception, ForbiddenException, GatewayTimeoutException, ImATeapotException, InternalServerErrorException, Keq, type KeqApiSchema, type KeqBodyInit, type KeqContext, type KeqContextData, type KeqContextEmitter, type KeqContextOptions, type KeqDefaultOperation, type KeqEvents, KeqExecutionContext, type KeqGlobal, type KeqGlobalCore, type KeqMiddleware, KeqMiddlewareExecutor, type KeqMiddlewareOptions, KeqMiddlewareOrchestrator, type KeqNext, type KeqOperation, type KeqOptions, type KeqPathParameterInit, type KeqQueryInit, type KeqQueryOptions, KeqRequest, type KeqRetryDelay, type KeqRetryOn, type KeqRoute, KeqSharedContext, type KeqSharedContextOptions, MethodNotAllowedException, NotAcceptableException, NotFoundedException, NotImplementedException, PreconditionFailedException, ProxyAuthenticationRequiredException, RequestException, type RequestExceptionOptions, RequestTimeoutException, type ServerSentEvent, ServiceUnavailableException, TimeoutException, TooManyRequestsException, TypeException, UnauthorizedException, UnsupportedMediaTypeException, UriTooLongException, composeMiddleware, composeRoute, createProxyResponse, createRequest, request };
|
|
1007
|
+
export { AbortException, BadGatewayException, BadRequestException, ConflictException, ContentTooLargeException, Exception, ForbiddenException, GatewayTimeoutException, ImATeapotException, InternalServerErrorException, Keq, type KeqApiSchema, type KeqBodyInit, type KeqContext, type KeqContextData, type KeqContextEmitter, type KeqContextOptions, type KeqDefaultOperation, type KeqEvents, KeqExecutionContext, type KeqGlobal, type KeqGlobalCore, type KeqMiddleware, KeqMiddlewareApplicator, KeqMiddlewareExecutor, type KeqMiddlewareOptions, KeqMiddlewareOrchestrator, type KeqNext, type KeqOperation, type KeqOptions, type KeqPathParameterInit, type KeqQueryInit, type KeqQueryOptions, KeqRequest, type KeqRequestForkOptions, type KeqRetryDelay, type KeqRetryOn, type KeqRoute, type KeqRoutePattern, type KeqRouteTarget, KeqSharedContext, type KeqSharedContextOptions, MethodNotAllowedException, NotAcceptableException, NotFoundedException, NotImplementedException, PreconditionFailedException, ProxyAuthenticationRequiredException, RequestException, type RequestExceptionOptions, RequestTimeoutException, type ServerSentEvent, ServiceUnavailableException, TimeoutException, TooManyRequestsException, TypeException, UnauthorizedException, UnsupportedMediaTypeException, UriTooLongException, composeMiddleware, composeRoute, createProxyResponse, createRequest, request };
|
|
964
1008
|
//# sourceMappingURL=index.d.ts.map
|