Socket
Socket
Sign inDemoInstall

cacache

Package Overview
Dependencies
37
Maintainers
6
Versions
100
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 16.0.0 to 16.0.1

10

lib/memoization.js

@@ -5,9 +5,7 @@ 'use strict'

const MAX_SIZE = 50 * 1024 * 1024 // 50MB
const MAX_AGE = 3 * 60 * 1000
const MEMOIZED = new LRU({
max: MAX_SIZE,
maxAge: MAX_AGE,
length: (entry, key) => key.startsWith('key:') ? entry.data.length : entry.length,
max: 500,
maxSize: 50 * 1024 * 1024, // 50MB
ttl: 3 * 60 * 1000, // 3 minutes
sizeCalculation: (entry, key) => key.startsWith('key:') ? entry.data.length : entry.length,
})

@@ -14,0 +12,0 @@

8

package.json
{
"name": "cacache",
"version": "16.0.0",
"version": "16.0.1",
"cache-version": {

@@ -53,6 +53,6 @@ "content": "2",

"fs-minipass": "^2.1.0",
"glob": "^7.1.4",
"glob": "^7.2.0",
"infer-owner": "^1.0.4",
"lru-cache": "^6.0.0",
"minipass": "^3.1.1",
"lru-cache": "^7.5.1",
"minipass": "^3.1.6",
"minipass-collect": "^1.0.2",

@@ -59,0 +59,0 @@ "minipass-flush": "^1.0.5",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc