@autofleet/network 1.2.9-alpha-12 → 1.2.9-alpha-14

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 +2 -2
  2. package/package.json +2 -4
package/index.js CHANGED
@@ -102,8 +102,8 @@ module.exports = class Network {
102
102
  // Support req.reusedSocket
103
103
  // https://code-examples.net/en/q/28a8069
104
104
  logger.warn('ECONNRESET issue, will retry', {
105
- req: error.request,
106
- code: error.code,
105
+ req: error.request._currentRequest._currentUrl,
106
+ method: error.request._currentRequest._options.method,
107
107
  })
108
108
  return axios.request(error.config);
109
109
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autofleet/network",
3
- "version": "1.2.9-alpha-12",
3
+ "version": "1.2.9-alpha-14",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -12,15 +12,13 @@
12
12
  "license": "ISC",
13
13
  "dependencies": {
14
14
  "@autofleet/logger": "^1.2.3",
15
- "@autofleet/node-common": "^1.5.1",
16
15
  "agentkeepalive": "^4.1.4",
17
16
  "axios": "^0.21.1",
18
17
  "axios-cache-adapter": "^2.7.3",
19
18
  "axios-retry": "^3.1.1",
20
19
  "deepmerge": "^3.0.0",
21
20
  "dotenv": "^6.0.0",
22
- "qs": "^6.5.2",
23
- "undici": "^4.4.4"
21
+ "qs": "^6.5.2"
24
22
  },
25
23
  "devDependencies": {
26
24
  "jest": "^27.0.6",