@lucaapp/service-utils 1.14.0 → 1.14.1

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.
@@ -133,7 +133,8 @@ class ServiceIdentity {
133
133
  this.axiosClient = axios_1.default.create({ proxy: false });
134
134
  if (!debug) {
135
135
  this.axiosClient.interceptors.response.use(response => response, error => {
136
- if (error.config.headers.contains(JWT_HEADER_NAME)) {
136
+ if (Array.isArray(error?.config?.headers) &&
137
+ error.config.headers.contains(JWT_HEADER_NAME)) {
137
138
  delete error.config.headers[JWT_HEADER_NAME];
138
139
  }
139
140
  return Promise.reject(error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lucaapp/service-utils",
3
- "version": "1.14.0",
3
+ "version": "1.14.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [