Sign In

flat-cache

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flat-cache - npm Package Compare versions

Comparing version
6.1.13
to
6.1.14
+2
-1
dist/index.cjs

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

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

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

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

{
"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"
}
}