@moonbase.sh/vue 0.1.30 → 0.1.31
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 +4 -0
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -0
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -267,6 +267,10 @@ function useAuth() {
|
|
|
267
267
|
const _ = storefront.updateStorefront();
|
|
268
268
|
return user;
|
|
269
269
|
},
|
|
270
|
+
signOut: () => {
|
|
271
|
+
storefront.client.tokenStore.setUser(null);
|
|
272
|
+
storefront.currentUser.value = null;
|
|
273
|
+
},
|
|
270
274
|
update: async (name, email, emailConfirmationToken) => {
|
|
271
275
|
const result = await storefront.client.identity.update(name, email, emailConfirmationToken);
|
|
272
276
|
if (storefront.currentUser.value)
|
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -234,6 +234,10 @@ function useAuth() {
|
|
|
234
234
|
const _ = storefront.updateStorefront();
|
|
235
235
|
return user;
|
|
236
236
|
},
|
|
237
|
+
signOut: () => {
|
|
238
|
+
storefront.client.tokenStore.setUser(null);
|
|
239
|
+
storefront.currentUser.value = null;
|
|
240
|
+
},
|
|
237
241
|
update: async (name, email, emailConfirmationToken) => {
|
|
238
242
|
const result = await storefront.client.identity.update(name, email, emailConfirmationToken);
|
|
239
243
|
if (storefront.currentUser.value)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moonbase.sh/vue",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.31",
|
|
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",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@vue/devtools-api": "^6.5.0",
|
|
17
17
|
"uuid": "^9.0.0",
|
|
18
|
-
"@moonbase.sh/api-client": "0.1.
|
|
18
|
+
"@moonbase.sh/api-client": "0.1.31"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"vue": "^3.2.0"
|