safe-memory-cache
Advanced tools
+2
-2
@@ -29,3 +29,3 @@ function createMem(number, limit) { | ||
| set: function set(key, value) { | ||
| if (!(key in this.buckets[0])) { | ||
| if (!(this.buckets[0].has(key))) { | ||
| this.size++; | ||
@@ -41,3 +41,3 @@ if (this.max && this.size >= Math.ceil(this.max / this.buckets.length)) { | ||
| for (var i = 0; i < this.buckets.length; i++) { | ||
| if (key in this.buckets[i]) { | ||
| if (this.buckets[i].has(key)) { | ||
| //todo: this should be configurable | ||
@@ -44,0 +44,0 @@ if (i) { |
+1
-1
| { | ||
| "name": "safe-memory-cache", | ||
| "version": "1.2.1", | ||
| "version": "1.2.3", | ||
| "description": "Secure and size-limited in-memory cache for Node.js and browsers", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
11579
0.03%0
-100%