@vizamodo/edge-cache-core 0.3.29 → 0.3.30

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.
@@ -4,7 +4,7 @@ export type WrappedResult<T> = {
4
4
  readonly expiresAt: string | undefined;
5
5
  };
6
6
  export declare function wrapResult<T>(value: T, expiresAt?: string): WrappedResult<T>;
7
- export declare function getCachedOrFetch<T>(key: string, fetcher: () => Promise<T>, options: {
7
+ export declare function getCachedOrFetch<T>(key: string, fetcher: () => Promise<T | WrappedResult<T>>, options: {
8
8
  ttlSec: number;
9
9
  forceRefresh?: boolean;
10
10
  }): Promise<T>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vizamodo/edge-cache-core",
3
- "version": "0.3.29",
3
+ "version": "0.3.30",
4
4
  "description": "Edge cache primitives for Cloudflare Workers (L1 memory + L2 edge cache)",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",