@authhero/proxy 0.10.13 → 0.10.15
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 +2 -0
- package/dist/proxy.mjs +726 -662
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/data-plane/cache-adapter-cache.d.ts +1 -0
- package/dist/types/data-plane/cache.d.ts +1 -0
- package/dist/types/data-plane/handlers/http.d.ts +7 -2
- package/package.json +1 -1
package/dist/proxy.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ interface HostCacheOptions {
|
|
|
32
32
|
negativeTtlMs?: number;
|
|
33
33
|
maxEntries?: number;
|
|
34
34
|
waitUntil?: (promise: Promise<unknown>) => void;
|
|
35
|
+
upstreamTimeoutMs?: number;
|
|
35
36
|
}
|
|
36
37
|
declare function createInMemoryHostCache(data: ProxyDataAdapter, ttlMs: number, maxEntries?: number): HostResolverCache;
|
|
37
38
|
declare function createInMemoryHostCache(data: ProxyDataAdapter, options: HostCacheOptions): HostResolverCache;
|
|
@@ -121,6 +122,7 @@ interface CacheAdapterHostCacheOptions {
|
|
|
121
122
|
waitUntil?: (promise: Promise<unknown>) => void;
|
|
122
123
|
cacheReadTimeoutMs?: number;
|
|
123
124
|
cacheWriteTimeoutMs?: number;
|
|
125
|
+
upstreamTimeoutMs?: number;
|
|
124
126
|
}
|
|
125
127
|
/**
|
|
126
128
|
* Wraps an upstream `HostResolverCache` with a generic `CacheAdapter` layer.
|