@based/client
Advanced tools
Comparing version 4.8.6 to 4.8.7
@@ -65,4 +65,7 @@ "use strict"; | ||
try { | ||
const env = client.storageEnvKey; | ||
if (!env) { | ||
return; | ||
} | ||
const prev = localStorage.getItem(key); | ||
const env = client.storageEnvKey; | ||
const stringifiedJson = JSON.stringify(value); | ||
@@ -97,2 +100,5 @@ const encoded = stringifiedJson.length > 70 || key === '@based-authState-' + env | ||
const env = client.storageEnvKey; | ||
if (!env) { | ||
return; | ||
} | ||
try { | ||
@@ -117,2 +123,5 @@ const value = localStorage.getItem(key); | ||
const env = client.storageEnvKey; | ||
if (!env) { | ||
return; | ||
} | ||
try { | ||
@@ -119,0 +128,0 @@ // compress as option! |
@@ -8,2 +8,5 @@ "use strict"; | ||
const env = client.storageEnvKey; | ||
if (!env) { | ||
return; | ||
} | ||
if (isBrowser) { | ||
@@ -20,2 +23,5 @@ key += '-' + env; | ||
const env = client.storageEnvKey; | ||
if (!env) { | ||
return; | ||
} | ||
if (isBrowser) { | ||
@@ -22,0 +28,0 @@ key += '-' + env; |
{ | ||
"name": "@based/client", | ||
"version": "4.8.6", | ||
"version": "4.8.7", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
230203
3313