@authhero/proxy 0.5.1 → 0.6.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/dist/proxy.cjs +1 -1
- package/dist/proxy.d.ts +17 -5
- package/dist/proxy.mjs +536 -456
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/app.d.ts +1 -0
- package/dist/types/data-plane/cache-adapter-cache.d.ts +8 -3
- package/dist/types/data-plane/cache-api-cache.d.ts +4 -2
- package/dist/types/data-plane/cache.d.ts +1 -0
- package/dist/types/data-plane/handlers/dispatch-namespace.d.ts +1 -0
- package/dist/types/data-plane/handlers/service-binding.d.ts +1 -0
- package/dist/types/data-plane/router.d.ts +1 -0
- package/dist/types/data-plane/timeout.d.ts +7 -0
- package/package.json +1 -1
|
@@ -10,6 +10,7 @@ export interface ProxyDataPlaneOptions {
|
|
|
10
10
|
resolver?: HostResolverCache;
|
|
11
11
|
registry?: HandlerRegistry;
|
|
12
12
|
bindings?: Record<string, unknown>;
|
|
13
|
+
resolveHostTimeoutMs?: number;
|
|
13
14
|
}
|
|
14
15
|
export declare function createProxyDataPlaneHandler(options: ProxyDataPlaneOptions): (c: Context) => Promise<Response>;
|
|
15
16
|
export declare function createProxyDataPlaneRouter(options: ProxyDataPlaneOptions): Hono;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare class TimeoutError extends Error {
|
|
2
|
+
readonly ms: number;
|
|
3
|
+
constructor(ms: number, label?: string);
|
|
4
|
+
}
|
|
5
|
+
export declare function isTimeoutLike(err: unknown): boolean;
|
|
6
|
+
export declare function withAbortTimeout<T>(ms: number, op: (signal: AbortSignal) => Promise<T>): Promise<T>;
|
|
7
|
+
export declare function withRaceTimeout<T>(p: Promise<T>, ms: number, label?: string): Promise<T>;
|