@klnap/next-proxy-chain 1.2.0 → 3.0.0
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 +18 -0
- package/README.md +277 -219
- package/dist/index.cjs +513 -440
- package/dist/index.d.cts +96 -189
- package/dist/index.d.ts +96 -189
- package/dist/index.js +512 -431
- package/docs/api.md +190 -0
- package/docs/concepts.md +88 -0
- package/docs/guides.md +210 -0
- package/docs/security.md +104 -0
- package/llms.txt +17 -0
- package/package.json +19 -18
package/dist/index.d.ts
CHANGED
|
@@ -1,80 +1,102 @@
|
|
|
1
1
|
import { NextRequest, NextFetchEvent, NextResponse } from 'next/server';
|
|
2
|
+
import { NextRequest as NextRequest$1, NextResponse as NextResponse$1 } from 'next/server.js';
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
type RequestMetadata = {
|
|
5
|
+
readonly requestId: string;
|
|
6
|
+
readonly startedAt: number;
|
|
7
|
+
readonly elapsedMs: number;
|
|
8
|
+
readonly originalUrl: string;
|
|
9
|
+
readonly originalPathname: string;
|
|
10
|
+
readonly originalHostname: string;
|
|
11
|
+
};
|
|
12
|
+
type ApplicationContext<TContext extends object> = string extends keyof TContext ? never : Omit<Partial<TContext>, keyof RequestMetadata | "signal">;
|
|
13
|
+
type HandlerContext<TContext extends object = object> = RequestMetadata & ApplicationContext<TContext> & {
|
|
14
|
+
readonly signal: AbortSignal;
|
|
15
|
+
};
|
|
7
16
|
|
|
8
|
-
type DebugLevel = false | true |
|
|
9
|
-
type SkipReason =
|
|
17
|
+
type DebugLevel = false | true | "compact" | "detailed" | "verbose";
|
|
18
|
+
type SkipReason = "include-mismatch" | "exclude-match" | "when-false";
|
|
10
19
|
type HandlerDiagnosticDetails = {
|
|
11
20
|
include?: readonly string[];
|
|
12
|
-
includeResult?:
|
|
21
|
+
includeResult?: "matched" | "mismatch";
|
|
13
22
|
exclude?: readonly string[];
|
|
14
|
-
excludeResult?:
|
|
15
|
-
when?:
|
|
23
|
+
excludeResult?: "not-matched" | "matched";
|
|
24
|
+
when?: "matched" | "false" | "not-evaluated";
|
|
16
25
|
timeoutMs?: number;
|
|
17
|
-
timeoutSource?:
|
|
26
|
+
timeoutSource?: "handler" | "chain";
|
|
18
27
|
};
|
|
19
28
|
type NamedHandler = {
|
|
20
29
|
name: string;
|
|
21
30
|
details?: HandlerDiagnosticDetails;
|
|
22
31
|
};
|
|
23
32
|
type HandlerTrace = (NamedHandler & {
|
|
24
|
-
outcome:
|
|
25
|
-
source:
|
|
33
|
+
outcome: "continue";
|
|
34
|
+
source: "undefined" | "NextResponse.next()";
|
|
26
35
|
durationMs: number;
|
|
27
36
|
}) | (NamedHandler & {
|
|
28
|
-
outcome:
|
|
37
|
+
outcome: "rewrite";
|
|
29
38
|
durationMs: number;
|
|
30
39
|
destination: string;
|
|
31
40
|
final: boolean;
|
|
32
41
|
}) | (NamedHandler & {
|
|
33
|
-
outcome:
|
|
42
|
+
outcome: "redirect";
|
|
34
43
|
durationMs: number;
|
|
35
44
|
status: number;
|
|
36
45
|
destination?: string;
|
|
37
46
|
}) | (NamedHandler & {
|
|
38
|
-
outcome:
|
|
47
|
+
outcome: "response";
|
|
39
48
|
durationMs: number;
|
|
40
49
|
status: number;
|
|
41
50
|
}) | (NamedHandler & {
|
|
42
|
-
outcome:
|
|
51
|
+
outcome: "skipped";
|
|
43
52
|
reason: SkipReason;
|
|
44
53
|
}) | (NamedHandler & {
|
|
45
|
-
outcome:
|
|
54
|
+
outcome: "not-reached";
|
|
46
55
|
}) | (NamedHandler & {
|
|
47
|
-
outcome:
|
|
56
|
+
outcome: "recovered";
|
|
48
57
|
durationMs: number;
|
|
49
|
-
recovery:
|
|
50
|
-
policy:
|
|
58
|
+
recovery: "continue" | "rewrite" | "redirect" | "response";
|
|
59
|
+
policy: "handler" | "chain";
|
|
51
60
|
}) | (NamedHandler & {
|
|
52
|
-
outcome:
|
|
61
|
+
outcome: "failed" | "timeout";
|
|
53
62
|
durationMs: number;
|
|
54
|
-
policy:
|
|
63
|
+
policy: "none" | "handler" | "chain";
|
|
64
|
+
phase?: "when" | "handler" | "result" | "recovery";
|
|
65
|
+
recovery?: "response";
|
|
66
|
+
timeoutMs?: number;
|
|
67
|
+
}) | (NamedHandler & {
|
|
68
|
+
outcome: "request-cancelled";
|
|
69
|
+
durationMs: number;
|
|
70
|
+
phase: "before-handler" | "when" | "handler";
|
|
71
|
+
policy: "none" | "handler" | "chain";
|
|
72
|
+
recovery?: "response";
|
|
55
73
|
});
|
|
56
74
|
type ChainOutcome = {
|
|
57
|
-
type:
|
|
75
|
+
type: "next";
|
|
58
76
|
} | {
|
|
59
|
-
type:
|
|
77
|
+
type: "rewrite";
|
|
60
78
|
destination: string;
|
|
61
79
|
} | {
|
|
62
|
-
type:
|
|
80
|
+
type: "redirect";
|
|
63
81
|
status: number;
|
|
64
82
|
destination?: string;
|
|
65
83
|
} | {
|
|
66
|
-
type:
|
|
84
|
+
type: "response";
|
|
67
85
|
status: number;
|
|
68
86
|
} | {
|
|
69
|
-
type:
|
|
87
|
+
type: "error";
|
|
70
88
|
status: number;
|
|
71
|
-
classification:
|
|
89
|
+
classification: "handler" | "engine";
|
|
72
90
|
} | {
|
|
73
|
-
type:
|
|
91
|
+
type: "timeout";
|
|
74
92
|
status: number;
|
|
75
93
|
timeoutMs: number;
|
|
94
|
+
} | {
|
|
95
|
+
type: "request-cancelled";
|
|
76
96
|
};
|
|
77
97
|
type ChainTrace = {
|
|
98
|
+
requestId: string;
|
|
99
|
+
startedAt: number;
|
|
78
100
|
method: string;
|
|
79
101
|
pathname?: string;
|
|
80
102
|
durationMs: number;
|
|
@@ -82,40 +104,8 @@ type ChainTrace = {
|
|
|
82
104
|
handlers: readonly HandlerTrace[];
|
|
83
105
|
};
|
|
84
106
|
type TraceCallback = (trace: ChainTrace) => void | Promise<void>;
|
|
85
|
-
type HandlerWhen<TContext =
|
|
86
|
-
type HandlerDebugOptions<TContext = ProxyContext> = {
|
|
87
|
-
name?: string;
|
|
88
|
-
debug?: DebugLevel;
|
|
89
|
-
timeout?: number;
|
|
90
|
-
onError?: OnErrorHandler<TContext>;
|
|
91
|
-
rules?: {
|
|
92
|
-
include?: RouteScopeList;
|
|
93
|
-
exclude?: RouteScopeList;
|
|
94
|
-
when?: HandlerWhen<TContext>;
|
|
95
|
-
};
|
|
96
|
-
handler: (request: NextRequest, event: NextFetchEvent, context: TContext) => Response | NextResult | undefined | void | Promise<Response | NextResult | undefined | void>;
|
|
97
|
-
};
|
|
107
|
+
type HandlerWhen<TContext extends object = object> = (request: NextRequest, event: NextFetchEvent, context: HandlerContext<TContext>) => boolean | Promise<boolean>;
|
|
98
108
|
|
|
99
|
-
/**
|
|
100
|
-
* Configuration options for chain continuation.
|
|
101
|
-
*/
|
|
102
|
-
type NextOptions = {
|
|
103
|
-
/** Request header overrides visible to downstream rules and handlers. */
|
|
104
|
-
request?: HeadersInit;
|
|
105
|
-
/** Response headers merged into the final outgoing response. `set-cookie` is extracted as cookies. */
|
|
106
|
-
headers?: HeadersInit;
|
|
107
|
-
};
|
|
108
|
-
/**
|
|
109
|
-
* Continuation token indicating the pipeline should proceed to subsequent rules.
|
|
110
|
-
*/
|
|
111
|
-
type NextResult = NextOptions & {
|
|
112
|
-
readonly [NEXT]: true;
|
|
113
|
-
};
|
|
114
|
-
/**
|
|
115
|
-
* Shared state for an individual request pipeline execution.
|
|
116
|
-
* Backed by Map to eliminate prototype-pollution risks.
|
|
117
|
-
*/
|
|
118
|
-
type ProxyContext = Map<string, unknown>;
|
|
119
109
|
type PathMatcher = RegExp | string;
|
|
120
110
|
type HostMatcher = string | RegExp | readonly (string | RegExp)[];
|
|
121
111
|
/**
|
|
@@ -132,9 +122,10 @@ type RouteScopeList = RouteScopeInput | RouteScopeInput[];
|
|
|
132
122
|
/** Compiled route scope evaluated during request execution. */
|
|
133
123
|
type CompiledScope = {
|
|
134
124
|
host?: RegExp;
|
|
135
|
-
|
|
125
|
+
/** Independent alternatives with OR semantics; each keeps its own flags. */
|
|
126
|
+
path?: RegExp[];
|
|
136
127
|
};
|
|
137
|
-
interface
|
|
128
|
+
interface BaseHandlerRule<TFn, TContext extends object = object> {
|
|
138
129
|
run: TFn;
|
|
139
130
|
include?: CompiledScope[];
|
|
140
131
|
exclude?: CompiledScope[];
|
|
@@ -148,61 +139,52 @@ interface BaseProxyRule<TFn, TContext = ProxyContext> {
|
|
|
148
139
|
exclude?: RouteScopeList;
|
|
149
140
|
};
|
|
150
141
|
}
|
|
151
|
-
type ProxyPathFilter = {
|
|
152
|
-
include?: RouteScopeList;
|
|
153
|
-
exclude?: RouteScopeList;
|
|
154
|
-
name?: string;
|
|
155
|
-
};
|
|
156
142
|
/**
|
|
157
|
-
*
|
|
158
|
-
* Chain entries match on it as an object, which keeps handler parameters contextually typed.
|
|
143
|
+
* A chain handler callback uses `(request, event, context)`. Native Next.js `(request, event)` handlers also work.
|
|
159
144
|
*/
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
|
|
163
|
-
readonly [CONTEXT_BRAND]: TContext;
|
|
164
|
-
};
|
|
165
|
-
/**
|
|
166
|
-
* A native Next.js proxy handler: `(request, event)`. Use it in chain() without any wrapper.
|
|
167
|
-
*/
|
|
168
|
-
type NativeProxy<TContext = ProxyContext> = (req: NextRequest, event: NextFetchEvent,
|
|
169
|
-
/** Request context from createContext. Next.js never passes it; chain() does, as the third argument. */
|
|
170
|
-
context: TContext) => NextResponse | Response | NextResult | undefined | void | Promise<NextResponse | Response | NextResult | undefined | void>;
|
|
145
|
+
type NativeProxy<TContext extends object = object> = (request: NextRequest, event: NextFetchEvent,
|
|
146
|
+
/** Request context added by chain(); Next.js continues to pass its native event unchanged. */
|
|
147
|
+
context: HandlerContext<TContext>) => NextResponse | Response | undefined | void | Promise<NextResponse | Response | undefined | void>;
|
|
171
148
|
/**
|
|
172
149
|
* A single proxy execution function.
|
|
173
150
|
*/
|
|
174
|
-
type
|
|
175
|
-
type
|
|
176
|
-
type
|
|
177
|
-
type Entry<TContext = ProxyContext> = ProxyFn<TContext> | ProxyRule<TContext>;
|
|
178
|
-
type MergeStrategy = 'last-write-wins' | 'first-write-wins' | ((key: string, existing: string, incoming: string) => string | null);
|
|
151
|
+
type HandlerFn<TContext extends object = object> = (request: NextRequest, context: HandlerContext<TContext>, event: NextFetchEvent) => NextResponse | Response | undefined | void | Promise<NextResponse | Response | undefined | void>;
|
|
152
|
+
type HandlerRule<TContext extends object = object> = BaseHandlerRule<HandlerFn<TContext>, TContext>;
|
|
153
|
+
type MergeStrategy = "last-write-wins" | "first-write-wins" | ((key: string, existing: string, incoming: string) => string | null);
|
|
179
154
|
interface ChainLogger {
|
|
180
155
|
debug: (metaOrMsg: unknown, maybeMsg?: string) => void;
|
|
181
156
|
info: (metaOrMsg: unknown, maybeMsg?: string) => void;
|
|
182
157
|
warn: (metaOrMsg: unknown, maybeMsg?: string) => void;
|
|
183
158
|
error: (metaOrMsg: unknown, maybeMsg?: string) => void;
|
|
184
159
|
}
|
|
185
|
-
interface RequestHeaderPolicy {
|
|
186
|
-
blocked?: readonly string[];
|
|
187
|
-
allowed?: readonly string[];
|
|
188
|
-
}
|
|
189
160
|
/**
|
|
190
161
|
* Value returned from `onError`.
|
|
191
162
|
*
|
|
192
163
|
* - `Response` — stop the pipeline and return it
|
|
193
|
-
* - `
|
|
164
|
+
* - `NextResponse.next()` — continue after an ordinary rule error only
|
|
194
165
|
* - `undefined` / `void` / `null` — fail closed (`500`)
|
|
195
166
|
*/
|
|
196
|
-
type OnErrorResult = NextResponse | Response |
|
|
197
|
-
type OnErrorHandler<TContext =
|
|
167
|
+
type OnErrorResult = NextResponse | Response | undefined | void | null;
|
|
168
|
+
type OnErrorHandler<TContext extends object = object> = (error: unknown,
|
|
198
169
|
/**
|
|
199
170
|
* 0-based index of the rule that threw.
|
|
200
|
-
* `-1` means the error originated in the pipeline engine
|
|
171
|
+
* `-1` means the error originated in the pipeline engine.
|
|
201
172
|
* Engine-level errors cannot continue; only a `Response` is honored.
|
|
202
173
|
*/
|
|
203
|
-
ruleIndex: number,
|
|
204
|
-
|
|
205
|
-
|
|
174
|
+
ruleIndex: number, request: NextRequest, context: HandlerContext<TContext>) => OnErrorResult | Promise<OnErrorResult>;
|
|
175
|
+
type HandlerConfig<TContext extends object = object> = {
|
|
176
|
+
name: string;
|
|
177
|
+
rules?: {
|
|
178
|
+
include?: RouteScopeList;
|
|
179
|
+
exclude?: RouteScopeList;
|
|
180
|
+
when?: HandlerWhen<TContext>;
|
|
181
|
+
};
|
|
182
|
+
timeout?: number;
|
|
183
|
+
debug?: DebugLevel;
|
|
184
|
+
onError?: OnErrorHandler<TContext>;
|
|
185
|
+
handle: NativeProxy<TContext>;
|
|
186
|
+
};
|
|
187
|
+
interface ChainConfig<TContext extends object = object> {
|
|
206
188
|
cookieMergeStrategy: MergeStrategy;
|
|
207
189
|
/**
|
|
208
190
|
* How conflicting **response** headers from different rules are resolved.
|
|
@@ -214,109 +196,34 @@ interface ChainConfig<TContext = ProxyContext> {
|
|
|
214
196
|
logger: ChainLogger;
|
|
215
197
|
onTrace?: TraceCallback;
|
|
216
198
|
tracePath?: boolean;
|
|
217
|
-
/** Maximum
|
|
218
|
-
|
|
219
|
-
requestHeaderPolicy: RequestHeaderPolicy;
|
|
199
|
+
/** Maximum execution time per handler, including its predicate, in milliseconds. 0 disables timeout. */
|
|
200
|
+
timeout: number;
|
|
220
201
|
/** Throw an error on startup if the runtime platform does not support request header overrides. */
|
|
221
202
|
strictOverrideCheck?: boolean;
|
|
222
|
-
/**
|
|
223
|
-
* Request header name that prefixes rewrites with a physical host folder
|
|
224
|
-
* (multi-tenant `app/(sites)/shop` layouts). Unset = disabled.
|
|
225
|
-
*/
|
|
226
|
-
hostFolderHeader?: string;
|
|
227
203
|
}
|
|
228
|
-
type
|
|
204
|
+
type ChainOptions<TContext extends object = object> = Partial<ChainConfig<TContext>>;
|
|
229
205
|
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
* @param options - Optional request and response header mutations.
|
|
234
|
-
* @returns NextResult token indicating pipeline continuation.
|
|
235
|
-
*/
|
|
236
|
-
declare function next(options?: NextOptions): NextResult;
|
|
237
|
-
/**
|
|
238
|
-
* Type guard verifying whether a returned value is a proxy continuation token.
|
|
239
|
-
*
|
|
240
|
-
* @param value - Value to test.
|
|
241
|
-
* @returns True if value is a NextResult continuation token.
|
|
242
|
-
*/
|
|
243
|
-
declare function isNextResult(value: unknown): value is NextResult;
|
|
206
|
+
type ProxyHandler = (req: NextRequest$1, event: NextFetchEvent) => Promise<NextResponse$1 | Response>;
|
|
207
|
+
/** Internal executor for the public chain() composition helper. */
|
|
208
|
+
declare function executeChain<TContext extends object = object>(options: ChainOptions<TContext>, entries: HandlerRule<TContext>[]): ProxyHandler;
|
|
244
209
|
|
|
210
|
+
/** One entry of chain(): a native handler or configured handler. */
|
|
211
|
+
type ChainEntry<TContext extends object = object> = NativeProxy<TContext> | HandlerConfig<TContext>;
|
|
245
212
|
/**
|
|
246
|
-
*
|
|
247
|
-
*
|
|
248
|
-
* @example
|
|
249
|
-
* const authRule = defineProxy("auth", async (req, ctx) => next())
|
|
250
|
-
* const scopedAuthRule = authRule({ include: path("/admin/*") })
|
|
251
|
-
*/
|
|
252
|
-
declare function defineProxy<TContext = ProxyContext>(run: ProxyFn<TContext>): DefinedProxy<TContext>;
|
|
253
|
-
declare function defineProxy<TContext = ProxyContext>(name: string, run: ProxyFn<TContext>): DefinedProxy<TContext>;
|
|
254
|
-
type ProxyHandler = (req: NextRequest, event: NextFetchEvent) => Promise<NextResponse | Response>;
|
|
255
|
-
/**
|
|
256
|
-
* Composes independent proxy rules into a single pipeline for Next.js 15 (middleware.ts) and Next.js 16 (proxy.ts).
|
|
213
|
+
* Composes native Next.js proxy handlers and configured handlers into one proxy.
|
|
257
214
|
*
|
|
258
|
-
*
|
|
215
|
+
* - A plain function receives native `(request, event)` arguments plus context as a third argument.
|
|
216
|
+
* - A configured handler receives `(request, event, context)`.
|
|
217
|
+
* - `rules.include` and `rules.exclude` scope configured handlers to paths or hosts.
|
|
259
218
|
*
|
|
260
219
|
* @example
|
|
261
|
-
* export default
|
|
262
|
-
* requestIdRule,
|
|
263
|
-
* authRule({ include: path("/dashboard/*") }),
|
|
264
|
-
* i18nRule,
|
|
265
|
-
* ])
|
|
220
|
+
* export default chain([intlProxy, { name: 'auth', rules: { include: '/dashboard/**' }, handle: authProxy }])
|
|
266
221
|
*/
|
|
267
|
-
|
|
268
|
-
declare function proxyChain(entries: Entry<ProxyContext>[]): ProxyHandler;
|
|
269
|
-
declare function proxyChain(options: ProxyChainOptions<ProxyContext>, entries: Entry<ProxyContext>[]): ProxyHandler;
|
|
270
|
-
declare function proxyChain<TContext>(options: ProxyChainOptions<TContext> & {
|
|
271
|
-
createContext: (req: NextRequest, event: NextFetchEvent) => TContext;
|
|
272
|
-
}, entries: Entry<TContext>[]): ProxyHandler;
|
|
273
|
-
|
|
274
|
-
/** Scope for a tuple entry: `[handler, scope]`. A string, RegExp, or array is shorthand for `include`. */
|
|
275
|
-
type ChainScope = Omit<ProxyPathFilter, 'name'> | PathMatcher | readonly PathMatcher[];
|
|
276
|
-
/** One entry of chain(): a native handler, a defineProxy() rule, a rule object, or a scoped tuple. */
|
|
277
|
-
type ChainEntry<TContext = ProxyContext> = NativeProxy<TContext> | ContextRuleEntry<TContext> | ProxyRule<TContext> | readonly [NativeProxy<TContext> | ContextRuleEntry<TContext>, ChainScope];
|
|
278
|
-
/**
|
|
279
|
-
* Composes native Next.js proxy handlers and optional rules into one proxy.
|
|
280
|
-
*
|
|
281
|
-
* - A plain function receives `(request, event)`, exactly like a native `proxy.ts` export.
|
|
282
|
-
* - A `defineProxy()` rule receives `(request, context, event)`.
|
|
283
|
-
* - `[handler, scope]` runs the handler only for matching paths or hosts.
|
|
284
|
-
*
|
|
285
|
-
* @example
|
|
286
|
-
* export default chain([intlProxy, [authProxy, { include: '/dashboard/**' }]])
|
|
287
|
-
*/
|
|
288
|
-
declare function chain(entries: readonly ChainEntry<ProxyContext>[], options?: ProxyChainOptions<ProxyContext>): ReturnType<typeof proxyChain>;
|
|
289
|
-
declare function chain<TContext>(entries: readonly ChainEntry<TContext>[], options: ProxyChainOptions<TContext> & {
|
|
290
|
-
createContext: (req: NextRequest, event: NextFetchEvent) => TContext;
|
|
291
|
-
}): ReturnType<typeof proxyChain>;
|
|
222
|
+
declare function chain<TContext extends object = object>(entries: readonly ChainEntry<TContext>[], options?: ChainOptions<TContext>): ReturnType<typeof executeChain>;
|
|
292
223
|
|
|
293
224
|
/**
|
|
294
225
|
* Defines a native-signature handler with optional chain rules and local settings.
|
|
295
226
|
*/
|
|
296
|
-
declare function defineHandler<TContext =
|
|
297
|
-
|
|
298
|
-
/**
|
|
299
|
-
* Creates an isolated per-request context instance.
|
|
300
|
-
* Backed by Map to eliminate prototype pollution risks.
|
|
301
|
-
*/
|
|
302
|
-
declare function createProxyContext(): ProxyContext;
|
|
303
|
-
|
|
304
|
-
/**
|
|
305
|
-
* Builds a compiled Host matcher RegExp from domain names, `*.example.com` wildcards, or regex patterns.
|
|
306
|
-
*/
|
|
307
|
-
declare function host(matcher: HostMatcher): RegExp;
|
|
308
|
-
/**
|
|
309
|
-
* Compiles a path pattern (glob string, param pattern, or RegExp) into a stateless regular expression.
|
|
310
|
-
*
|
|
311
|
-
* - `*` — exactly one path segment
|
|
312
|
-
* - `**` — zero or more subsequent segments
|
|
313
|
-
*/
|
|
314
|
-
declare function path(pattern: string | RegExp): RegExp;
|
|
315
|
-
|
|
316
|
-
declare class RuleTimeoutError extends Error {
|
|
317
|
-
readonly ruleName: string;
|
|
318
|
-
readonly timeoutMs: number;
|
|
319
|
-
constructor(ruleName: string, timeoutMs: number);
|
|
320
|
-
}
|
|
227
|
+
declare function defineHandler<TContext extends object = object>(options: HandlerConfig<TContext>): HandlerConfig<TContext>;
|
|
321
228
|
|
|
322
|
-
export { type ChainEntry, type ChainLogger, type
|
|
229
|
+
export { type ChainEntry, type ChainLogger, type ChainOptions, type ChainOutcome, type ChainTrace, type DebugLevel, type HandlerConfig, type HandlerContext, type HandlerDiagnosticDetails, type HandlerTrace, type HandlerWhen, type HostMatcher, type MergeStrategy, type NativeProxy, type OnErrorHandler, type OnErrorResult, type PathMatcher, type RequestMetadata, type SkipReason, type TraceCallback, chain, defineHandler };
|