@sap-ux/axios-extension 0.13.3 → 0.14.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.
@@ -164,9 +164,9 @@ function attachConnectionHandler(provider) {
164
164
  return response;
165
165
  }
166
166
  }, (error) => {
167
- var _a;
167
+ var _a, _b;
168
168
  // remember xsrf token if provided even on error
169
- if ((_a = error.response.headers) === null || _a === void 0 ? void 0 : _a[CSRF.ResponseHeaderName]) {
169
+ if ((_b = (_a = error.response) === null || _a === void 0 ? void 0 : _a.headers) === null || _b === void 0 ? void 0 : _b[CSRF.ResponseHeaderName]) {
170
170
  provider.defaults.headers.common[CSRF.RequestHeaderName] =
171
171
  error.response.headers[CSRF.ResponseHeaderName];
172
172
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sap-ux/axios-extension",
3
- "version": "0.13.3",
3
+ "version": "0.14.0",
4
4
  "description": "Extension of the Axios module adding convinience methods to interact with SAP systems especially with OData services.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -15,7 +15,7 @@
15
15
  "main": "dist/index.js",
16
16
  "dependencies": {
17
17
  "@sap-ux/btp-utils": "0.11.3",
18
- "@sap-ux/logger": "0.3.2",
18
+ "@sap-ux/logger": "0.3.3",
19
19
  "axios": "0.24.0",
20
20
  "detect-content-type": "1.2.0",
21
21
  "fast-xml-parser": "3.12.20",