@equinor/fusion
Advanced tools
Comparing version 0.1.29 to 0.1.30
@@ -22,3 +22,3 @@ export default class LocalStorageProvider { | ||
const localCache = await this.toObjectAsync(); | ||
localCache[key] = value; | ||
this.localCache = Object.assign({}, localCache, { [key]: value }); | ||
await this.persistAsync(); | ||
@@ -29,2 +29,3 @@ } | ||
delete localCache[key]; | ||
this.localCache = Object.assign({}, localCache); | ||
await this.persistAsync(); | ||
@@ -34,2 +35,3 @@ } | ||
localStorage.removeItem(this.baseKey); | ||
this.localCache = {}; | ||
} | ||
@@ -36,0 +38,0 @@ async toObjectAsync() { |
{ | ||
"name": "@equinor/fusion", | ||
"version": "0.1.29", | ||
"version": "0.1.30", | ||
"description": "Everything a Fusion app needs to communicate with the core", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
109193
2511