Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

safe-memory-cache

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

safe-memory-cache - npm Package Compare versions

Comparing version
1.2.0
to
1.2.1
+3
-3
map.js

@@ -35,3 +35,3 @@ function createMem(number, limit) {

}
this.buckets[0][key] = value
this.buckets[0].set(key, value)
return value

@@ -45,5 +45,5 @@ },

//put a reference in the newest bucket
return this.set(key,this.buckets[i][key])
return this.set(key,this.buckets[i].get(key))
}
return this.buckets[i][key]
return this.buckets[i].get(key)
}

@@ -50,0 +50,0 @@ }

{
"name": "safe-memory-cache",
"version": "1.2.0",
"version": "1.2.1",
"description": "Secure and size-limited in-memory cache for Node.js and browsers",

@@ -5,0 +5,0 @@ "main": "index.js",