@moonbase.sh/vue 0.1.45 → 0.1.46

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
@@ -256,7 +256,7 @@ function useCart() {
256
256
  variation != null ? variation : variation = item.defaultVariation;
257
257
  if (!variation)
258
258
  throw new Error("Added item does not have a default variation, and none have been specified");
259
- const id = `b/${item.id}/${variation.id}`;
259
+ const id = `${item.type === "bundle" ? "b" : "p"}/${item.id}/${variation.id}`;
260
260
  let lineItem = storefront.currentOrder.value.items.find((i) => i.id === id);
261
261
  if (!lineItem) {
262
262
  if (item.type === "bundle") {
package/dist/index.js CHANGED
@@ -224,7 +224,7 @@ function useCart() {
224
224
  variation != null ? variation : variation = item.defaultVariation;
225
225
  if (!variation)
226
226
  throw new Error("Added item does not have a default variation, and none have been specified");
227
- const id = `b/${item.id}/${variation.id}`;
227
+ const id = `${item.type === "bundle" ? "b" : "p"}/${item.id}/${variation.id}`;
228
228
  let lineItem = storefront.currentOrder.value.items.find((i) => i.id === id);
229
229
  if (!lineItem) {
230
230
  if (item.type === "bundle") {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@moonbase.sh/vue",
3
3
  "type": "module",
4
- "version": "0.1.45",
4
+ "version": "0.1.46",
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.45"
21
+ "@moonbase.sh/api-client": "0.1.46"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@types/uuid": "^9.0.7",