flat-cache
Advanced tools
Comparing version 6.1.1 to 6.1.2
{ | ||
"name": "flat-cache", | ||
"version": "6.1.1", | ||
"version": "6.1.2", | ||
"description": "A simple key/value storage using files to persist the data", | ||
@@ -55,6 +55,6 @@ "type": "module", | ||
"devDependencies": { | ||
"@types/node": "^22.7.8", | ||
"@types/node": "^22.8.1", | ||
"@vitest/coverage-v8": "^2.1.3", | ||
"rimraf": "^6.0.1", | ||
"tsup": "^8.3.0", | ||
"tsup": "^8.3.5", | ||
"typescript": "^5.6.3", | ||
@@ -61,0 +61,0 @@ "vitest": "^2.1.3", |
@@ -20,3 +20,3 @@ [<img align="center" src="https://cacheable.org/symbol.svg" alt="Cacheable" />](https://github.com/jaredwray/cacheable) | ||
- Only saves the data to disk if the data has changed even when using `persistInterval` or calling `save()` | ||
- Uses `flatted` to parse and stringify the data by default but can be overridden using `parse` and `stringify` in options | ||
- Uses `flatted` to parse and stringify the data by default but can be overridden using `serialize` and `deserialize` in options | ||
- ESM and CommonJS support with TypeScript typings and maintained regularly! | ||
@@ -180,4 +180,4 @@ | ||
const cache = new FlatCache({ | ||
parse: JSON.parse, | ||
stringify: JSON.stringify, | ||
deserialize: JSON.parse, | ||
serialize: JSON.stringify, | ||
}); | ||
@@ -184,0 +184,0 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
51930