@shopgate/pwa-common-commerce 7.31.5-beta.1 → 7.31.5-beta.2

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.
@@ -1,6 +1,6 @@
1
1
  /**
2
- * Check if tax line should be shown
3
- * @param {Object} cartConfig cartConfig
2
+ * Check if shipping line should be shown
3
+ * @param {Object} cartConfig shippingConfig
4
4
  * @param {Object} tax tax
5
5
  * @returns {Object|null}
6
6
  */
@@ -153,10 +153,10 @@ export default function cart(subscribe) {
153
153
  message,
154
154
  handled,
155
155
  code,
156
- translated
156
+ additionalParams,
157
+ translated,
158
+ context
157
159
  } = errors[0];
158
- const context = errors[0].context || errors[0].pipeline;
159
- const additionalParams = errors[0].additionalParams || errors[0].messageParams || {};
160
160
 
161
161
  // Some errors are already handled automatically before
162
162
  if (handled) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopgate/pwa-common-commerce",
3
- "version": "7.31.5-beta.1",
3
+ "version": "7.31.5-beta.2",
4
4
  "description": "Commerce library for the Shopgate Connect PWA.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Shopgate <support@shopgate.com>",
@@ -20,8 +20,8 @@
20
20
  "reselect": "^4.1.8"
21
21
  },
22
22
  "devDependencies": {
23
- "@shopgate/pwa-common": "7.31.5-beta.1",
24
- "@shopgate/pwa-core": "7.31.5-beta.1",
23
+ "@shopgate/pwa-common": "7.31.5-beta.2",
24
+ "@shopgate/pwa-core": "7.31.5-beta.2",
25
25
  "@types/lodash": "^4.17.24",
26
26
  "lodash": "^4.17.23",
27
27
  "react": "^17.0.2",