@algolia/cache-in-memory
Advanced tools
Comparing version 4.0.0-beta.13 to 4.0.0-beta.14
@@ -6,3 +6,4 @@ 'use strict'; | ||
function createInMemoryCache(options = { serializable: true }) { | ||
const cache = {}; | ||
// eslint-disable-next-line functional/no-let | ||
let cache = {}; | ||
return { | ||
@@ -30,2 +31,6 @@ get(key, defaultValue, events = { | ||
}, | ||
clear() { | ||
cache = {}; | ||
return Promise.resolve(); | ||
}, | ||
}; | ||
@@ -32,0 +37,0 @@ } |
function createInMemoryCache(options = { serializable: true }) { | ||
const cache = {}; | ||
// eslint-disable-next-line functional/no-let | ||
let cache = {}; | ||
return { | ||
@@ -25,2 +26,6 @@ get(key, defaultValue, events = { | ||
}, | ||
clear() { | ||
cache = {}; | ||
return Promise.resolve(); | ||
}, | ||
}; | ||
@@ -27,0 +32,0 @@ } |
{ | ||
"name": "@algolia/cache-in-memory", | ||
"version": "4.0.0-beta.13", | ||
"version": "4.0.0-beta.14", | ||
"private": false, | ||
@@ -16,4 +16,4 @@ "description": "Promise-based cache library using memory.", | ||
"dependencies": { | ||
"@algolia/cache-common": "4.0.0-beta.13" | ||
"@algolia/cache-common": "4.0.0-beta.14" | ||
} | ||
} |
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
3513
77
+ Added@algolia/cache-common@4.0.0-beta.14(transitive)
- Removed@algolia/cache-common@4.0.0-beta.13(transitive)