flat-cache
Advanced tools
+2
-1
@@ -251,6 +251,7 @@ "use strict"; | ||
| /** | ||
| * Returns an array with all the items in the cache { key, value, ttl } | ||
| * Returns an array with all the items in the cache { key, value, expires } | ||
| * @method items | ||
| * @returns {Array} | ||
| */ | ||
| // biome-ignore lint/suspicious/noExplicitAny: cache items can store any value | ||
| get items() { | ||
@@ -257,0 +258,0 @@ return [...this._cache.items]; |
+3
-3
@@ -113,11 +113,11 @@ import { CacheableMemory } from 'cacheable'; | ||
| /** | ||
| * Returns an array with all the items in the cache { key, value, ttl } | ||
| * Returns an array with all the items in the cache { key, value, expires } | ||
| * @method items | ||
| * @returns {Array} | ||
| */ | ||
| get items(): { | ||
| get items(): Array<{ | ||
| key: string; | ||
| value: any; | ||
| expires?: number; | ||
| }[]; | ||
| }>; | ||
| /** | ||
@@ -124,0 +124,0 @@ * Returns the path to the file where the cache is persisted |
+3
-3
@@ -113,11 +113,11 @@ import { CacheableMemory } from 'cacheable'; | ||
| /** | ||
| * Returns an array with all the items in the cache { key, value, ttl } | ||
| * Returns an array with all the items in the cache { key, value, expires } | ||
| * @method items | ||
| * @returns {Array} | ||
| */ | ||
| get items(): { | ||
| get items(): Array<{ | ||
| key: string; | ||
| value: any; | ||
| expires?: number; | ||
| }[]; | ||
| }>; | ||
| /** | ||
@@ -124,0 +124,0 @@ * Returns the path to the file where the cache is persisted |
+2
-1
@@ -211,6 +211,7 @@ // src/index.ts | ||
| /** | ||
| * Returns an array with all the items in the cache { key, value, ttl } | ||
| * Returns an array with all the items in the cache { key, value, expires } | ||
| * @method items | ||
| * @returns {Array} | ||
| */ | ||
| // biome-ignore lint/suspicious/noExplicitAny: cache items can store any value | ||
| get items() { | ||
@@ -217,0 +218,0 @@ return [...this._cache.items]; |
+9
-8
| { | ||
| "name": "flat-cache", | ||
| "version": "6.1.13", | ||
| "version": "6.1.14", | ||
| "description": "A simple key/value storage using files to persist the data", | ||
@@ -55,5 +55,5 @@ "type": "module", | ||
| "devDependencies": { | ||
| "@biomejs/biome": "^2.2.0", | ||
| "@faker-js/faker": "^9.9.0", | ||
| "@types/node": "^24.3.0", | ||
| "@biomejs/biome": "^2.2.4", | ||
| "@faker-js/faker": "^10.0.0", | ||
| "@types/node": "^24.5.0", | ||
| "@vitest/coverage-v8": "^3.2.4", | ||
@@ -67,4 +67,4 @@ "rimraf": "^6.0.1", | ||
| "flatted": "^3.3.3", | ||
| "hookified": "^1.11.0", | ||
| "cacheable": "^1.10.4" | ||
| "hookified": "^1.12.0", | ||
| "cacheable": "^2.0.1" | ||
| }, | ||
@@ -78,6 +78,7 @@ "files": [ | ||
| "prepublish": "pnpm build", | ||
| "test": "biome check --write && vitest run --coverage", | ||
| "test:ci": "biome check && vitest run --coverage", | ||
| "lint": "biome check --write --error-on-warnings", | ||
| "test": "pnpm lint && vitest run --coverage", | ||
| "test:ci": "biome check --error-on-warnings && vitest run --coverage", | ||
| "clean": "rimraf ./dist ./coverage ./node_modules" | ||
| } | ||
| } |
56801
0.45%1154
0.17%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
Updated
Updated