@moonbase.sh/vue 0.3.6 → 0.3.7

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
@@ -662,6 +662,12 @@ function useCart(context) {
662
662
  }
663
663
  } else {
664
664
  lineItem.quantity += 1;
665
+ if (!lineItem.variation && variation)
666
+ lineItem.variation = variation;
667
+ if (lineItem.type === "Product" && item.type === "product" && !lineItem.product)
668
+ lineItem.product = item;
669
+ if (lineItem.type === "Bundle" && item.type === "bundle" && !lineItem.bundle)
670
+ lineItem.bundle = item;
665
671
  }
666
672
  const _ = storefront.pushOrderContent();
667
673
  return lineItem;
package/dist/index.js CHANGED
@@ -632,6 +632,12 @@ function useCart(context) {
632
632
  }
633
633
  } else {
634
634
  lineItem.quantity += 1;
635
+ if (!lineItem.variation && variation)
636
+ lineItem.variation = variation;
637
+ if (lineItem.type === "Product" && item.type === "product" && !lineItem.product)
638
+ lineItem.product = item;
639
+ if (lineItem.type === "Bundle" && item.type === "bundle" && !lineItem.bundle)
640
+ lineItem.bundle = item;
635
641
  }
636
642
  const _ = storefront.pushOrderContent();
637
643
  return lineItem;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@moonbase.sh/vue",
3
3
  "type": "module",
4
- "version": "0.3.6",
4
+ "version": "0.3.7",
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.6"
22
+ "@moonbase.sh/storefront-api": "0.3.7"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@types/uuid": "^9.0.8",