@autofleet/network 1.3.2 → 1.3.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.
Files changed (2) hide show
  1. package/index.js +5 -2
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -103,11 +103,14 @@ module.exports = class Network {
103
103
  // https://code-examples.net/en/q/28a8069
104
104
  logger.warn('ECONNRESET issue, will retry', {
105
105
  req: error.request._currentRequest._currentUrl,
106
- method: error.request._currentRequest._options.method,
106
+ // method: error.request._currentRequest._options.method,
107
107
  })
108
108
  return axios.request(error.config);
109
109
  }
110
- logger.error('Finish Request with error', { status: error.status, data: error.response && error.response.data });
110
+ logger.error('Finish Request with error', {
111
+ status: error.status,
112
+ data: error.response && error.response.data
113
+ });
111
114
  throw error;
112
115
  });
113
116
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autofleet/network",
3
- "version": "1.3.2",
3
+ "version": "1.3.4",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -11,7 +11,7 @@
11
11
  "author": "Dor Shay",
12
12
  "license": "ISC",
13
13
  "dependencies": {
14
- "@autofleet/logger": "^1.2.4",
14
+ "@autofleet/logger": "^1.2.5",
15
15
  "agentkeepalive": "^4.1.4",
16
16
  "axios": "^0.21.1",
17
17
  "axios-cache-adapter": "^2.7.3",