@simpleapps-com/augur-hooks 2026.11.1 → 2026.11.3
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/EXPORTS.md +3 -0
- package/dist/checkout/index.cjs +14 -14
- package/dist/checkout/index.js +1 -1
- package/dist/{chunk-UTDAFIQP.js → chunk-2BTOULIS.js} +45 -10
- package/dist/chunk-2BTOULIS.js.map +1 -0
- package/dist/{chunk-QB7VB5FZ.cjs → chunk-BWBJPKLV.cjs} +46 -11
- package/dist/chunk-BWBJPKLV.cjs.map +1 -0
- package/dist/duration.d.ts +16 -0
- package/dist/duration.d.ts.map +1 -0
- package/dist/hooks/use-checkout-persistence.d.ts +4 -3
- package/dist/hooks/use-checkout-persistence.d.ts.map +1 -1
- package/dist/hooks/use-pagination-prefetch.d.ts +5 -4
- package/dist/hooks/use-pagination-prefetch.d.ts.map +1 -1
- package/dist/index.cjs +66 -41
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +42 -17
- package/dist/index.js.map +1 -1
- package/dist/persistence/create-persister.d.ts.map +1 -1
- package/dist/persistence/use-persistence.d.ts +1 -1
- package/dist/persistence/use-persistence.d.ts.map +1 -1
- package/dist/persistence/use-storage-monitor.d.ts.map +1 -1
- package/dist/rules.d.ts +22 -4
- package/dist/rules.d.ts.map +1 -1
- package/dist/server.cjs +2 -1
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +2 -1
- package/dist/server.js.map +1 -1
- package/dist/types.d.ts +5 -5
- package/dist/types.d.ts.map +1 -1
- package/dist/user-write-clearing.d.ts +28 -0
- package/dist/user-write-clearing.d.ts.map +1 -0
- package/llms.txt +10 -0
- package/package.json +6 -5
- package/dist/chunk-QB7VB5FZ.cjs.map +0 -1
- package/dist/chunk-UTDAFIQP.js.map +0 -1
- package/dist/queries/cache-helper.d.ts +0 -16
- package/dist/queries/cache-helper.d.ts.map +0 -1
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { CacheProvider, CacheTierConfig } from "../types";
|
|
2
|
-
/**
|
|
3
|
-
* Wraps an async function with optional Redis caching.
|
|
4
|
-
*
|
|
5
|
-
* - When `provider` and `tier.redis` are both set, checks Redis before
|
|
6
|
-
* calling `fn`, then caches the result on miss.
|
|
7
|
-
* - When either is missing, calls `fn` directly (no-op passthrough).
|
|
8
|
-
*
|
|
9
|
-
* @param provider Redis-compatible get/set + prefix. Undefined = skip Redis.
|
|
10
|
-
* @param tier Cache tier config. Undefined or missing `redis` = skip Redis.
|
|
11
|
-
* @param methodPath Dot-separated SDK method path (used as cache key segment).
|
|
12
|
-
* @param fn The async function to cache (typically the SDK call).
|
|
13
|
-
* @param keyArgs Values to hash for the cache key (e.g. query params).
|
|
14
|
-
*/
|
|
15
|
-
export declare function withCache<T>(provider: CacheProvider | undefined, tier: CacheTierConfig | undefined, methodPath: string, fn: () => Promise<T>, ...keyArgs: unknown[]): Promise<T>;
|
|
16
|
-
//# sourceMappingURL=cache-helper.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cache-helper.d.ts","sourceRoot":"","sources":["../../src/queries/cache-helper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAG/D;;;;;;;;;;;;GAYG;AACH,wBAAsB,SAAS,CAAC,CAAC,EAC/B,QAAQ,EAAE,aAAa,GAAG,SAAS,EACnC,IAAI,EAAE,eAAe,GAAG,SAAS,EACjC,UAAU,EAAE,MAAM,EAClB,EAAE,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,EACpB,GAAG,OAAO,EAAE,OAAO,EAAE,GACpB,OAAO,CAAC,CAAC,CAAC,CAuBZ"}
|