Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

flat-cache

Package Overview
Dependencies
Maintainers
1
Versions
36
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.1 to 6.1.2

6

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

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