@moonbase.sh/vue 0.2.109 → 0.2.112
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.js +3 -3
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -39,9 +39,9 @@ var import_storefront_api6 = require("@moonbase.sh/storefront-api");
|
|
|
39
39
|
var import_vue12 = require("vue");
|
|
40
40
|
|
|
41
41
|
// src/context.ts
|
|
42
|
+
var import_storefront_api2 = require("@moonbase.sh/storefront-api");
|
|
42
43
|
var import_uuid = require("uuid");
|
|
43
44
|
var import_vue = require("vue");
|
|
44
|
-
var import_storefront_api2 = require("@moonbase.sh/storefront-api");
|
|
45
45
|
|
|
46
46
|
// src/symbols.ts
|
|
47
47
|
var storefrontKey = Symbol("storefront");
|
package/dist/index.js
CHANGED
|
@@ -3,9 +3,9 @@ import { MoonbaseClient } from "@moonbase.sh/storefront-api";
|
|
|
3
3
|
import { ref as ref3 } from "vue";
|
|
4
4
|
|
|
5
5
|
// src/context.ts
|
|
6
|
+
import { NotAuthenticatedError, NotFoundError, OrderStatus } from "@moonbase.sh/storefront-api";
|
|
6
7
|
import { v4 as uuidv4 } from "uuid";
|
|
7
8
|
import { ref, watch } from "vue";
|
|
8
|
-
import { NotAuthenticatedError, NotFoundError, OrderStatus } from "@moonbase.sh/storefront-api";
|
|
9
9
|
|
|
10
10
|
// src/symbols.ts
|
|
11
11
|
var storefrontKey = Symbol("storefront");
|
|
@@ -520,7 +520,7 @@ function useVoucher(context) {
|
|
|
520
520
|
|
|
521
521
|
// src/composables/useCart.ts
|
|
522
522
|
import { computed as computed6, inject as inject8, unref } from "vue";
|
|
523
|
-
import { MoonbaseError
|
|
523
|
+
import { MoonbaseError } from "@moonbase.sh/storefront-api";
|
|
524
524
|
function useCart(context) {
|
|
525
525
|
const storefront = context != null ? context : inject8(storefrontKey);
|
|
526
526
|
if (!storefront)
|
|
@@ -608,7 +608,7 @@ function useCart(context) {
|
|
|
608
608
|
};
|
|
609
609
|
storefront.currentOrder.value.items.push(lineItem);
|
|
610
610
|
} else {
|
|
611
|
-
throw new
|
|
611
|
+
throw new MoonbaseError("Invalid input", `Could not handle item of type '${item.type}'`);
|
|
612
612
|
}
|
|
613
613
|
} else {
|
|
614
614
|
lineItem.quantity += 1;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moonbase.sh/vue",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.112",
|
|
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.2.
|
|
22
|
+
"@moonbase.sh/storefront-api": "0.2.112"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/uuid": "^9.0.8",
|