@moonbase.sh/vue 0.3.38 → 0.4.1

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 CHANGED
@@ -339,7 +339,7 @@ var _StorefrontContextImpl = class _StorefrontContextImpl {
339
339
  }
340
340
  async refreshOrder() {
341
341
  try {
342
- const latestOrder = await this.client.orders.get(this.currentOrder.value.id, this.refreshOrderAbortController.signal);
342
+ const latestOrder = await this.client.orders.get(this.currentOrder.value.id, { abort: this.refreshOrderAbortController.signal });
343
343
  if (latestOrder) {
344
344
  if (latestOrder.status !== import_storefront_api2.OrderStatus.Open) {
345
345
  this.resetOrder();
package/dist/index.d.cts CHANGED
@@ -206,6 +206,24 @@ declare function useCart(context?: StorefrontContext): {
206
206
  quantity: number;
207
207
  productId: string;
208
208
  variationId: string;
209
+ total?: {
210
+ discount: {
211
+ currency: string;
212
+ amount: number;
213
+ };
214
+ original: {
215
+ currency: string;
216
+ amount: number;
217
+ };
218
+ subtotal: {
219
+ currency: string;
220
+ amount: number;
221
+ };
222
+ due: {
223
+ currency: string;
224
+ amount: number;
225
+ };
226
+ } | null | undefined;
209
227
  price?: Record<string, number> | undefined;
210
228
  product?: {
211
229
  id: string;
@@ -271,6 +289,24 @@ declare function useCart(context?: StorefrontContext): {
271
289
  quantity: number;
272
290
  variationId: string;
273
291
  bundleId: string;
292
+ total?: {
293
+ discount: {
294
+ currency: string;
295
+ amount: number;
296
+ };
297
+ original: {
298
+ currency: string;
299
+ amount: number;
300
+ };
301
+ subtotal: {
302
+ currency: string;
303
+ amount: number;
304
+ };
305
+ due: {
306
+ currency: string;
307
+ amount: number;
308
+ };
309
+ } | null | undefined;
274
310
  price?: Record<string, number> | undefined;
275
311
  partial?: boolean | undefined;
276
312
  bundle?: {
package/dist/index.d.ts CHANGED
@@ -206,6 +206,24 @@ declare function useCart(context?: StorefrontContext): {
206
206
  quantity: number;
207
207
  productId: string;
208
208
  variationId: string;
209
+ total?: {
210
+ discount: {
211
+ currency: string;
212
+ amount: number;
213
+ };
214
+ original: {
215
+ currency: string;
216
+ amount: number;
217
+ };
218
+ subtotal: {
219
+ currency: string;
220
+ amount: number;
221
+ };
222
+ due: {
223
+ currency: string;
224
+ amount: number;
225
+ };
226
+ } | null | undefined;
209
227
  price?: Record<string, number> | undefined;
210
228
  product?: {
211
229
  id: string;
@@ -271,6 +289,24 @@ declare function useCart(context?: StorefrontContext): {
271
289
  quantity: number;
272
290
  variationId: string;
273
291
  bundleId: string;
292
+ total?: {
293
+ discount: {
294
+ currency: string;
295
+ amount: number;
296
+ };
297
+ original: {
298
+ currency: string;
299
+ amount: number;
300
+ };
301
+ subtotal: {
302
+ currency: string;
303
+ amount: number;
304
+ };
305
+ due: {
306
+ currency: string;
307
+ amount: number;
308
+ };
309
+ } | null | undefined;
274
310
  price?: Record<string, number> | undefined;
275
311
  partial?: boolean | undefined;
276
312
  bundle?: {
package/dist/index.js CHANGED
@@ -309,7 +309,7 @@ var _StorefrontContextImpl = class _StorefrontContextImpl {
309
309
  }
310
310
  async refreshOrder() {
311
311
  try {
312
- const latestOrder = await this.client.orders.get(this.currentOrder.value.id, this.refreshOrderAbortController.signal);
312
+ const latestOrder = await this.client.orders.get(this.currentOrder.value.id, { abort: this.refreshOrderAbortController.signal });
313
313
  if (latestOrder) {
314
314
  if (latestOrder.status !== OrderStatus.Open) {
315
315
  this.resetOrder();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@moonbase.sh/vue",
3
3
  "type": "module",
4
- "version": "0.3.38",
4
+ "version": "0.4.1",
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.38"
22
+ "@moonbase.sh/storefront-api": "0.4.1"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@types/uuid": "^9.0.8",