New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cf-workers-query

Package Overview
Dependencies
Maintainers
0
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cf-workers-query - npm Package Compare versions

Comparing version 0.3.3 to 0.3.4

11

CHANGELOG.md

@@ -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 @@

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc