@scayle/storefront-nuxt 8.8.2 → 8.9.0
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @scayle/storefront-nuxt
|
|
2
2
|
|
|
3
|
+
## 8.9.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Update `ExistingItemHandling` names due to update to newest `@scayle/storefront-core` version.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
**Dependencies**
|
|
12
|
+
|
|
13
|
+
- Updated dependency to @scayle/storefront-core@8.6.0
|
|
14
|
+
|
|
3
15
|
## 8.8.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -14,7 +14,7 @@ type UseBasketBaseReturn = Omit<Awaited<UseRpcReturn<'getBasket'>>, 'data'> & {
|
|
|
14
14
|
addItem: (item: AddOrUpdateItemType & {
|
|
15
15
|
existingItemHandling?: ExistingItemHandling;
|
|
16
16
|
}) => Promise<void>;
|
|
17
|
-
addItems: (items: AddOrUpdateItemType[], existingItemHandling?: typeof ExistingItemHandling.
|
|
17
|
+
addItems: (items: AddOrUpdateItemType[], existingItemHandling?: typeof ExistingItemHandling.ADD_QUANTITY_TO_EXISTING) => Promise<void>;
|
|
18
18
|
mergeBaskets: (args: {
|
|
19
19
|
fromBasketKey: string;
|
|
20
20
|
toBasketKey: string;
|
|
@@ -76,7 +76,7 @@ export function useBasket({
|
|
|
76
76
|
handleFetchError(error2);
|
|
77
77
|
}
|
|
78
78
|
};
|
|
79
|
-
const addItems = async (items2, existingItemHandling = ExistingItemHandling.
|
|
79
|
+
const addItems = async (items2, existingItemHandling = ExistingItemHandling.ADD_QUANTITY_TO_EXISTING) => {
|
|
80
80
|
try {
|
|
81
81
|
const { basket, errors: basketErrors } = await addItemsToBasketRpc({
|
|
82
82
|
items: items2,
|
|
@@ -92,7 +92,7 @@ export function useBasket({
|
|
|
92
92
|
const handleBasketError = (basketErrors) => {
|
|
93
93
|
if (wasAddedWithReducedQuantity(basketErrors)) {
|
|
94
94
|
throw new Error("Item was added with reduced quantity", {
|
|
95
|
-
cause: AddToBasketFailureKind.
|
|
95
|
+
cause: AddToBasketFailureKind.ITEM_ADDED_WITH_REDUCED_QUANTITY
|
|
96
96
|
});
|
|
97
97
|
}
|
|
98
98
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scayle/storefront-nuxt",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "8.
|
|
4
|
+
"version": "8.9.0",
|
|
5
5
|
"description": "Nuxt integration for the SCAYLE Commerce Engine and Storefront API",
|
|
6
6
|
"author": "SCAYLE Commerce Engine",
|
|
7
7
|
"license": "MIT",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"dependencies": {
|
|
73
73
|
"@opentelemetry/api": "^1.9.0",
|
|
74
74
|
"@scayle/h3-session": "0.6.0",
|
|
75
|
-
"@scayle/storefront-core": "8.
|
|
75
|
+
"@scayle/storefront-core": "8.6.0",
|
|
76
76
|
"@scayle/unstorage-compression-driver": "^0.2.3",
|
|
77
77
|
"@vueuse/core": "12.5.0",
|
|
78
78
|
"consola": "^3.2.3",
|