@moonbase.sh/vue 0.3.19 → 0.3.21
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 +2 -1
- package/dist/index.d.cts +125 -125
- package/dist/index.d.ts +125 -125
- package/dist/index.js +2 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -178,7 +178,7 @@ var _StorefrontContextImpl = class _StorefrontContextImpl {
|
|
|
178
178
|
});
|
|
179
179
|
this.loadedStorefront = stateFactory(`${_StorefrontContextImpl.storefrontKey}_loaded`, false);
|
|
180
180
|
}
|
|
181
|
-
if (this.client.tokenStore.
|
|
181
|
+
if (this.client.tokenStore.user) {
|
|
182
182
|
this.currentUser.value = schemas2.identity.userSchema.parse(this.client.tokenStore.user);
|
|
183
183
|
}
|
|
184
184
|
this.updateStorefront();
|
|
@@ -201,6 +201,7 @@ var _StorefrontContextImpl = class _StorefrontContextImpl {
|
|
|
201
201
|
const order = e.detail.order;
|
|
202
202
|
if (order.id === this.currentOrder.value.id)
|
|
203
203
|
this.resetOrder();
|
|
204
|
+
this.updateUser();
|
|
204
205
|
});
|
|
205
206
|
}
|
|
206
207
|
get loadedStorefrontPromise() {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moonbase.sh/vue",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.21",
|
|
5
5
|
"description": "Package to let you build vue.js storefronts with Moonbase.sh as payment and delivery provider",
|
|
6
6
|
"author": "Tobias Lønnerød Madsen <m@dsen.tv>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"@vue/devtools-api": "^6.6.3",
|
|
20
20
|
"uuid": "^9.0.1",
|
|
21
21
|
"zod": "^3.23.8",
|
|
22
|
-
"@moonbase.sh/storefront-api": "0.3.
|
|
22
|
+
"@moonbase.sh/storefront-api": "0.3.21"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/uuid": "^9.0.8",
|