From 2656c15f2cf1b217c1c20fef3e4697dbdf390282 Mon Sep 17 00:00:00 2001 From: Denys Bondarenko <58662935+denbon05@users.noreply.github.com> Date: Sun, 3 Nov 2024 10:39:21 +0100 Subject: [PATCH] patch readme (#59) --- README.md | 2 +- lib/models/LightCache.ts | 1 - package-lock.json | 4 ++-- package.json | 4 ++-- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 6b3b97b..7171e05 100644 --- a/README.md +++ b/README.md @@ -127,5 +127,5 @@ while all other routes are ignored by the cache. | Fastify | lcache | | :-----: | :----: | -| 3-4.9 | 1-1.2 | | ^4.10 | 2.x | +| 3-4.9 | 1-1.2 | diff --git a/lib/models/LightCache.ts b/lib/models/LightCache.ts index b78649b..8d38880 100644 --- a/lib/models/LightCache.ts +++ b/lib/models/LightCache.ts @@ -19,7 +19,6 @@ export class LightCache implements ILightCache { this.storage.set(key, { payload }); }; - // ? what about built key on hooks has = (key: string): boolean => this.storage.has(key); reset = (key?: string | string[]): void => { diff --git a/package-lock.json b/package-lock.json index 092640e..c1a8c50 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "fastify-lcache", - "version": "2.2.0", + "version": "2.2.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "fastify-lcache", - "version": "2.2.0", + "version": "2.2.1", "license": "MIT", "dependencies": { "fastify-plugin": "^3.0.1" diff --git a/package.json b/package.json index e88036e..ff87712 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fastify-lcache", - "version": "2.2.0", + "version": "2.2.1", "description": "Light cache plugin for fastify", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -51,4 +51,4 @@ "dependencies": { "fastify-plugin": "^3.0.1" } -} +} \ No newline at end of file