@authhero/cloudflare-adapter 2.34.0 → 2.34.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.
|
@@ -20,6 +20,12 @@ export interface CloudflareCacheConfig {
|
|
|
20
20
|
* Key prefix to namespace cache entries (optional)
|
|
21
21
|
*/
|
|
22
22
|
keyPrefix?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Milliseconds to wait for `cache.match()` before treating the lookup as a
|
|
25
|
+
* miss. Cloudflare's Cache API can occasionally stall for seconds; without
|
|
26
|
+
* a bound we'd block the whole request. Default 200ms. Set to 0 to disable.
|
|
27
|
+
*/
|
|
28
|
+
getTimeoutMs?: number;
|
|
23
29
|
}
|
|
24
30
|
/**
|
|
25
31
|
* Cloudflare Cache API implementation of CacheAdapter
|
|
@@ -32,6 +38,7 @@ export declare class CloudflareCache implements CacheAdapter {
|
|
|
32
38
|
private getCache;
|
|
33
39
|
private getKey;
|
|
34
40
|
private createRequest;
|
|
41
|
+
private matchWithTimeout;
|
|
35
42
|
get<T = any>(key: string): Promise<T | null>;
|
|
36
43
|
set<T = any>(key: string, value: T, ttlSeconds?: number): Promise<void>;
|
|
37
44
|
delete(key: string): Promise<boolean>;
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"type": "git",
|
|
12
12
|
"url": "https://github.com/markusahlstrand/authhero"
|
|
13
13
|
},
|
|
14
|
-
"version": "2.34.
|
|
14
|
+
"version": "2.34.2",
|
|
15
15
|
"files": [
|
|
16
16
|
"dist"
|
|
17
17
|
],
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
"hono": "^4.12.23",
|
|
33
33
|
"kysely": "^0.29.2",
|
|
34
34
|
"msw": "^2.14.6",
|
|
35
|
+
"rollup": "^4.54.0",
|
|
35
36
|
"rollup-plugin-dts": "^6.4.1",
|
|
36
37
|
"typescript": "^5.9.3",
|
|
37
38
|
"vite": "^8.0.14",
|
|
@@ -45,7 +46,7 @@
|
|
|
45
46
|
"nanoid": "^5.1.11",
|
|
46
47
|
"wretch": "^3.0.8",
|
|
47
48
|
"@authhero/adapter-interfaces": "3.1.1",
|
|
48
|
-
"@authhero/kysely-adapter": "11.8.
|
|
49
|
+
"@authhero/kysely-adapter": "11.8.9"
|
|
49
50
|
},
|
|
50
51
|
"scripts": {
|
|
51
52
|
"build": "vite build && tsc -p tsconfig.types.json && rollup -c rollup.dts.config.mjs",
|