cf-workers-query
Advanced tools
Comparing version 0.3.3 to 0.3.4
@@ -0,1 +1,12 @@ | ||
## 0.3.4 (2024-07-25) | ||
### 🩹 Fixes | ||
- **hono:** import create-query ([791a622](https://github.com/anymaniax/cf-workers-query/commit/791a622)) | ||
### ❤️ Thank You | ||
- Victor Bury | ||
## 0.3.3 (2024-07-25) | ||
@@ -2,0 +13,0 @@ |
{ | ||
"name": "cf-workers-query", | ||
"version": "0.3.3", | ||
"version": "0.3.4", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "Automatically cache and revalidate data in Cloudflare Workers. Using the Cache API and Execution Context", |
@@ -5,7 +5,7 @@ "use strict"; | ||
const tslib_1 = require("tslib"); | ||
const source_1 = require("@cf-workers-query/source"); | ||
const create_query_1 = require("./create-query"); | ||
const cache = (_a) => { | ||
var { cacheKey } = _a, options = tslib_1.__rest(_a, ["cacheKey"]); | ||
return (ctx, next) => tslib_1.__awaiter(void 0, void 0, void 0, function* () { | ||
const { data: response } = yield (0, source_1.createQuery)(Object.assign(Object.assign({}, options), { queryKey: typeof cacheKey === 'function' ? cacheKey(ctx) : cacheKey, queryFn: () => tslib_1.__awaiter(void 0, void 0, void 0, function* () { | ||
const { data: response } = yield (0, create_query_1.createQuery)(Object.assign(Object.assign({}, options), { queryKey: typeof cacheKey === 'function' ? cacheKey(ctx) : cacheKey, queryFn: () => tslib_1.__awaiter(void 0, void 0, void 0, function* () { | ||
yield next(); | ||
@@ -12,0 +12,0 @@ return ctx.res; |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
28194
0