@moonbase.sh/storefront-api 0.3.23 → 0.3.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1070,7 +1070,7 @@ var _TokenStore = class _TokenStore {
|
|
|
1070
1070
|
this.refreshTimeoutId = null;
|
|
1071
1071
|
this.refreshPromise = null;
|
|
1072
1072
|
var _a;
|
|
1073
|
-
this.store = (
|
|
1073
|
+
this.store = (_a = configuration.store) != null ? _a : typeof window !== "undefined" && localStorage ? new LocalStorageStore() : new InMemoryStore();
|
|
1074
1074
|
const storedToken = this.store.get(_TokenStore.storageKey);
|
|
1075
1075
|
if (storedToken) {
|
|
1076
1076
|
this.tokens = {
|
package/dist/index.js
CHANGED
|
@@ -1020,7 +1020,7 @@ var _TokenStore = class _TokenStore {
|
|
|
1020
1020
|
this.refreshTimeoutId = null;
|
|
1021
1021
|
this.refreshPromise = null;
|
|
1022
1022
|
var _a;
|
|
1023
|
-
this.store = (
|
|
1023
|
+
this.store = (_a = configuration.store) != null ? _a : typeof window !== "undefined" && localStorage ? new LocalStorageStore() : new InMemoryStore();
|
|
1024
1024
|
const storedToken = this.store.get(_TokenStore.storageKey);
|
|
1025
1025
|
if (storedToken) {
|
|
1026
1026
|
this.tokens = {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moonbase.sh/storefront-api",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.24",
|
|
5
5
|
"description": "Package to let you build storefronts with Moonbase.sh as payment and delivery provider",
|
|
6
6
|
"author": "Tobias Lønnerød Madsen <m@dsen.tv>",
|
|
7
7
|
"license": "MIT",
|