@moonbase.sh/vue 0.1.37 → 0.1.38

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
@@ -273,7 +273,7 @@ function useCart() {
273
273
  returnUrl: absoluteReturnUrl
274
274
  });
275
275
  storefront.currentOrder.value = updatedOrder;
276
- if (updatedOrder.checkoutUrl)
276
+ if (updatedOrder.checkoutUrl && (window == null ? void 0 : window.location))
277
277
  window.location.href = updatedOrder.checkoutUrl;
278
278
  else
279
279
  throw new Error("No checkout URL found");
package/dist/index.js CHANGED
@@ -241,7 +241,7 @@ function useCart() {
241
241
  returnUrl: absoluteReturnUrl
242
242
  });
243
243
  storefront.currentOrder.value = updatedOrder;
244
- if (updatedOrder.checkoutUrl)
244
+ if (updatedOrder.checkoutUrl && (window == null ? void 0 : window.location))
245
245
  window.location.href = updatedOrder.checkoutUrl;
246
246
  else
247
247
  throw new Error("No checkout URL found");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@moonbase.sh/vue",
3
3
  "type": "module",
4
- "version": "0.1.37",
4
+ "version": "0.1.38",
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.37"
18
+ "@moonbase.sh/api-client": "0.1.38"
19
19
  },
20
20
  "peerDependencies": {
21
21
  "vue": "^3.2.0"