@moonbase.sh/vue 0.1.69 → 0.1.73
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.d.cts +27 -15
- package/dist/index.d.ts +27 -15
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -397,7 +397,7 @@ function useAuth() {
|
|
|
397
397
|
setPassword: async (currentPassword, newPassword) => {
|
|
398
398
|
if (!storefront.currentUser.value)
|
|
399
399
|
throw new Error("No user loaded");
|
|
400
|
-
await storefront.client.identity.setPassword(
|
|
400
|
+
await storefront.client.identity.setPassword(currentPassword, newPassword);
|
|
401
401
|
},
|
|
402
402
|
forgotPassword: async (email) => {
|
|
403
403
|
await storefront.client.identity.forgotPassword(email);
|
package/dist/index.d.cts
CHANGED
|
@@ -117,7 +117,7 @@ declare function useVoucher(): {
|
|
|
117
117
|
type: "product";
|
|
118
118
|
id: string;
|
|
119
119
|
name: string;
|
|
120
|
-
iconUrl: string;
|
|
120
|
+
iconUrl: string | null;
|
|
121
121
|
tagline: string;
|
|
122
122
|
owned: boolean;
|
|
123
123
|
defaultVariation?: {
|
|
@@ -166,13 +166,15 @@ declare function useVoucher(): {
|
|
|
166
166
|
type: "bundle";
|
|
167
167
|
id: string;
|
|
168
168
|
name: string;
|
|
169
|
-
iconUrl: string;
|
|
169
|
+
iconUrl: string | null;
|
|
170
170
|
tagline: string;
|
|
171
|
-
|
|
171
|
+
owned: boolean;
|
|
172
|
+
partial: boolean;
|
|
173
|
+
products: ({
|
|
172
174
|
type: "product";
|
|
173
175
|
id: string;
|
|
174
176
|
name: string;
|
|
175
|
-
iconUrl: string;
|
|
177
|
+
iconUrl: string | null;
|
|
176
178
|
tagline: string;
|
|
177
179
|
owned: boolean;
|
|
178
180
|
defaultVariation?: {
|
|
@@ -213,7 +215,9 @@ declare function useVoucher(): {
|
|
|
213
215
|
description?: string | undefined;
|
|
214
216
|
} | undefined;
|
|
215
217
|
}[] | undefined;
|
|
216
|
-
}
|
|
218
|
+
} & {
|
|
219
|
+
included: boolean;
|
|
220
|
+
})[];
|
|
217
221
|
defaultVariation?: {
|
|
218
222
|
id: string;
|
|
219
223
|
name: string;
|
|
@@ -267,7 +271,7 @@ declare function useVoucher(): {
|
|
|
267
271
|
type: "product";
|
|
268
272
|
id: string;
|
|
269
273
|
name: string;
|
|
270
|
-
iconUrl: string;
|
|
274
|
+
iconUrl: string | null;
|
|
271
275
|
tagline: string;
|
|
272
276
|
owned: boolean;
|
|
273
277
|
defaultVariation?: {
|
|
@@ -316,13 +320,15 @@ declare function useVoucher(): {
|
|
|
316
320
|
type: "bundle";
|
|
317
321
|
id: string;
|
|
318
322
|
name: string;
|
|
319
|
-
iconUrl: string;
|
|
323
|
+
iconUrl: string | null;
|
|
320
324
|
tagline: string;
|
|
321
|
-
|
|
325
|
+
owned: boolean;
|
|
326
|
+
partial: boolean;
|
|
327
|
+
products: ({
|
|
322
328
|
type: "product";
|
|
323
329
|
id: string;
|
|
324
330
|
name: string;
|
|
325
|
-
iconUrl: string;
|
|
331
|
+
iconUrl: string | null;
|
|
326
332
|
tagline: string;
|
|
327
333
|
owned: boolean;
|
|
328
334
|
defaultVariation?: {
|
|
@@ -363,7 +369,9 @@ declare function useVoucher(): {
|
|
|
363
369
|
description?: string | undefined;
|
|
364
370
|
} | undefined;
|
|
365
371
|
}[] | undefined;
|
|
366
|
-
}
|
|
372
|
+
} & {
|
|
373
|
+
included: boolean;
|
|
374
|
+
})[];
|
|
367
375
|
defaultVariation?: {
|
|
368
376
|
id: string;
|
|
369
377
|
name: string;
|
|
@@ -440,7 +448,7 @@ declare function useCart(): {
|
|
|
440
448
|
id: string;
|
|
441
449
|
name: string;
|
|
442
450
|
tagline: string;
|
|
443
|
-
iconUrl: string;
|
|
451
|
+
iconUrl: string | null;
|
|
444
452
|
owned: boolean;
|
|
445
453
|
defaultVariation?: {
|
|
446
454
|
id: string;
|
|
@@ -512,13 +520,15 @@ declare function useCart(): {
|
|
|
512
520
|
id: string;
|
|
513
521
|
name: string;
|
|
514
522
|
tagline: string;
|
|
515
|
-
iconUrl: string;
|
|
516
|
-
|
|
523
|
+
iconUrl: string | null;
|
|
524
|
+
owned: boolean;
|
|
525
|
+
partial: boolean;
|
|
526
|
+
products: ({
|
|
517
527
|
type: "product";
|
|
518
528
|
id: string;
|
|
519
529
|
name: string;
|
|
520
530
|
tagline: string;
|
|
521
|
-
iconUrl: string;
|
|
531
|
+
iconUrl: string | null;
|
|
522
532
|
owned: boolean;
|
|
523
533
|
defaultVariation?: {
|
|
524
534
|
id: string;
|
|
@@ -558,7 +568,9 @@ declare function useCart(): {
|
|
|
558
568
|
description?: string | undefined;
|
|
559
569
|
} | undefined;
|
|
560
570
|
}[] | undefined;
|
|
561
|
-
}
|
|
571
|
+
} & {
|
|
572
|
+
included: boolean;
|
|
573
|
+
})[];
|
|
562
574
|
defaultVariation?: {
|
|
563
575
|
id: string;
|
|
564
576
|
price: Record<string, number>;
|
package/dist/index.d.ts
CHANGED
|
@@ -117,7 +117,7 @@ declare function useVoucher(): {
|
|
|
117
117
|
type: "product";
|
|
118
118
|
id: string;
|
|
119
119
|
name: string;
|
|
120
|
-
iconUrl: string;
|
|
120
|
+
iconUrl: string | null;
|
|
121
121
|
tagline: string;
|
|
122
122
|
owned: boolean;
|
|
123
123
|
defaultVariation?: {
|
|
@@ -166,13 +166,15 @@ declare function useVoucher(): {
|
|
|
166
166
|
type: "bundle";
|
|
167
167
|
id: string;
|
|
168
168
|
name: string;
|
|
169
|
-
iconUrl: string;
|
|
169
|
+
iconUrl: string | null;
|
|
170
170
|
tagline: string;
|
|
171
|
-
|
|
171
|
+
owned: boolean;
|
|
172
|
+
partial: boolean;
|
|
173
|
+
products: ({
|
|
172
174
|
type: "product";
|
|
173
175
|
id: string;
|
|
174
176
|
name: string;
|
|
175
|
-
iconUrl: string;
|
|
177
|
+
iconUrl: string | null;
|
|
176
178
|
tagline: string;
|
|
177
179
|
owned: boolean;
|
|
178
180
|
defaultVariation?: {
|
|
@@ -213,7 +215,9 @@ declare function useVoucher(): {
|
|
|
213
215
|
description?: string | undefined;
|
|
214
216
|
} | undefined;
|
|
215
217
|
}[] | undefined;
|
|
216
|
-
}
|
|
218
|
+
} & {
|
|
219
|
+
included: boolean;
|
|
220
|
+
})[];
|
|
217
221
|
defaultVariation?: {
|
|
218
222
|
id: string;
|
|
219
223
|
name: string;
|
|
@@ -267,7 +271,7 @@ declare function useVoucher(): {
|
|
|
267
271
|
type: "product";
|
|
268
272
|
id: string;
|
|
269
273
|
name: string;
|
|
270
|
-
iconUrl: string;
|
|
274
|
+
iconUrl: string | null;
|
|
271
275
|
tagline: string;
|
|
272
276
|
owned: boolean;
|
|
273
277
|
defaultVariation?: {
|
|
@@ -316,13 +320,15 @@ declare function useVoucher(): {
|
|
|
316
320
|
type: "bundle";
|
|
317
321
|
id: string;
|
|
318
322
|
name: string;
|
|
319
|
-
iconUrl: string;
|
|
323
|
+
iconUrl: string | null;
|
|
320
324
|
tagline: string;
|
|
321
|
-
|
|
325
|
+
owned: boolean;
|
|
326
|
+
partial: boolean;
|
|
327
|
+
products: ({
|
|
322
328
|
type: "product";
|
|
323
329
|
id: string;
|
|
324
330
|
name: string;
|
|
325
|
-
iconUrl: string;
|
|
331
|
+
iconUrl: string | null;
|
|
326
332
|
tagline: string;
|
|
327
333
|
owned: boolean;
|
|
328
334
|
defaultVariation?: {
|
|
@@ -363,7 +369,9 @@ declare function useVoucher(): {
|
|
|
363
369
|
description?: string | undefined;
|
|
364
370
|
} | undefined;
|
|
365
371
|
}[] | undefined;
|
|
366
|
-
}
|
|
372
|
+
} & {
|
|
373
|
+
included: boolean;
|
|
374
|
+
})[];
|
|
367
375
|
defaultVariation?: {
|
|
368
376
|
id: string;
|
|
369
377
|
name: string;
|
|
@@ -440,7 +448,7 @@ declare function useCart(): {
|
|
|
440
448
|
id: string;
|
|
441
449
|
name: string;
|
|
442
450
|
tagline: string;
|
|
443
|
-
iconUrl: string;
|
|
451
|
+
iconUrl: string | null;
|
|
444
452
|
owned: boolean;
|
|
445
453
|
defaultVariation?: {
|
|
446
454
|
id: string;
|
|
@@ -512,13 +520,15 @@ declare function useCart(): {
|
|
|
512
520
|
id: string;
|
|
513
521
|
name: string;
|
|
514
522
|
tagline: string;
|
|
515
|
-
iconUrl: string;
|
|
516
|
-
|
|
523
|
+
iconUrl: string | null;
|
|
524
|
+
owned: boolean;
|
|
525
|
+
partial: boolean;
|
|
526
|
+
products: ({
|
|
517
527
|
type: "product";
|
|
518
528
|
id: string;
|
|
519
529
|
name: string;
|
|
520
530
|
tagline: string;
|
|
521
|
-
iconUrl: string;
|
|
531
|
+
iconUrl: string | null;
|
|
522
532
|
owned: boolean;
|
|
523
533
|
defaultVariation?: {
|
|
524
534
|
id: string;
|
|
@@ -558,7 +568,9 @@ declare function useCart(): {
|
|
|
558
568
|
description?: string | undefined;
|
|
559
569
|
} | undefined;
|
|
560
570
|
}[] | undefined;
|
|
561
|
-
}
|
|
571
|
+
} & {
|
|
572
|
+
included: boolean;
|
|
573
|
+
})[];
|
|
562
574
|
defaultVariation?: {
|
|
563
575
|
id: string;
|
|
564
576
|
price: Record<string, number>;
|
package/dist/index.js
CHANGED
|
@@ -363,7 +363,7 @@ function useAuth() {
|
|
|
363
363
|
setPassword: async (currentPassword, newPassword) => {
|
|
364
364
|
if (!storefront.currentUser.value)
|
|
365
365
|
throw new Error("No user loaded");
|
|
366
|
-
await storefront.client.identity.setPassword(
|
|
366
|
+
await storefront.client.identity.setPassword(currentPassword, newPassword);
|
|
367
367
|
},
|
|
368
368
|
forgotPassword: async (email) => {
|
|
369
369
|
await storefront.client.identity.forgotPassword(email);
|
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.73",
|
|
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",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@vue/devtools-api": "^6.5.1",
|
|
20
20
|
"uuid": "^9.0.1",
|
|
21
|
-
"@moonbase.sh/api-client": "0.1.
|
|
21
|
+
"@moonbase.sh/api-client": "0.1.73"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@types/uuid": "^9.0.7",
|