@daffodil/cart 0.62.3 → 0.62.4
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/driver/in-memory/package.json +1 -1
- package/driver/magento/package.json +1 -1
- package/driver/magento/testing/package.json +1 -1
- package/driver/package.json +1 -1
- package/driver/testing/package.json +1 -1
- package/esm2020/driver/magento/cart.service.mjs +4 -4
- package/fesm2015/daffodil-cart-driver-magento.mjs +1 -1
- package/fesm2015/daffodil-cart-driver-magento.mjs.map +1 -1
- package/fesm2020/daffodil-cart-driver-magento.mjs +1 -1
- package/fesm2020/daffodil-cart-driver-magento.mjs.map +1 -1
- package/package.json +1 -1
- package/routing/package.json +1 -1
- package/state/package.json +1 -1
- package/state/testing/package.json +1 -1
- package/testing/package.json +1 -1
|
@@ -1510,7 +1510,7 @@ class DaffMagentoCartService {
|
|
|
1510
1510
|
: throwError(() => resp.errors.filter((err) => !err.recoverable)[0])));
|
|
1511
1511
|
}
|
|
1512
1512
|
create() {
|
|
1513
|
-
return this.mutationQueue.mutate({ mutation: createCart }).pipe(map(result => ({ id: result.data.createEmptyCart })));
|
|
1513
|
+
return this.mutationQueue.mutate({ mutation: createCart }).pipe(map(result => ({ id: result.data.createEmptyCart })), catchError(err => throwError(() => transformCartMagentoError(err))));
|
|
1514
1514
|
}
|
|
1515
1515
|
addToCart(productId, qty) {
|
|
1516
1516
|
throw new Error('Method is deprecated. Use DaffCartItemServiceInterface#add instead.');
|