@algolia/cache-in-memory
Advanced tools
Comparing version 4.0.0-beta.9 to 4.0.0-beta.10
@@ -7,3 +7,3 @@ 'use strict'; | ||
/* eslint-disable functional/immutable-data, functional/no-let, functional/prefer-readonly-type */ | ||
let cache = {}; | ||
const cache = {}; | ||
return { | ||
@@ -29,6 +29,2 @@ get(key, defaultValue, events = { | ||
}, | ||
clear() { | ||
cache = {}; | ||
return Promise.resolve(); | ||
}, | ||
}; | ||
@@ -35,0 +31,0 @@ } |
function createInMemoryCache(options = { serializable: true }) { | ||
/* eslint-disable functional/immutable-data, functional/no-let, functional/prefer-readonly-type */ | ||
let cache = {}; | ||
const cache = {}; | ||
return { | ||
@@ -24,6 +24,2 @@ get(key, defaultValue, events = { | ||
}, | ||
clear() { | ||
cache = {}; | ||
return Promise.resolve(); | ||
}, | ||
}; | ||
@@ -30,0 +26,0 @@ } |
{ | ||
"name": "@algolia/cache-in-memory", | ||
"version": "4.0.0-beta.9", | ||
"version": "4.0.0-beta.10", | ||
"private": false, | ||
@@ -16,4 +16,4 @@ "description": "Promise-based cache library using memory.", | ||
"dependencies": { | ||
"@algolia/cache-common": "4.0.0-beta.9" | ||
"@algolia/cache-common": "4.0.0-beta.10" | ||
} | ||
} |
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
3075
62
+ Added@algolia/cache-common@4.0.0-beta.10(transitive)
- Removed@algolia/cache-common@4.0.0-beta.9(transitive)