@nxtedition/nxt-undici 2.0.53 → 2.0.55

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.
@@ -92,7 +92,7 @@ class CacheStore {
92
92
  this.maxEntrySize = maxEntrySize
93
93
  this.cache = new LRUCache({
94
94
  maxSize,
95
- sizeCalculation: (value) => value.body.byteLength,
95
+ sizeCalculation: (value) => value.size,
96
96
  })
97
97
  }
98
98
 
@@ -217,6 +217,7 @@ export function isConnectionError(err) {
217
217
  err.code === 'EHOSTDOWN' ||
218
218
  err.code === 'EHOSTUNREACH' ||
219
219
  err.code === 'EPIPE' ||
220
+ err.code === 'ETIMEDOUT' ||
220
221
  err.message === 'other side closed' ||
221
222
  statusCode === 420 ||
222
223
  statusCode === 429 ||
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/nxt-undici",
3
- "version": "2.0.53",
3
+ "version": "2.0.55",
4
4
  "license": "MIT",
5
5
  "author": "Robert Nagy <robert.nagy@boffins.se>",
6
6
  "main": "lib/index.js",
@@ -13,21 +13,21 @@
13
13
  "cacheable-lookup": "^7.0.0",
14
14
  "http-errors": "^2.0.0",
15
15
  "lru-cache": "^10.2.0",
16
- "undici": "^6.16.1"
16
+ "undici": "^6.18.0"
17
17
  },
18
18
  "devDependencies": {
19
- "@types/node": "^20.12.11",
19
+ "@types/node": "^20.12.12",
20
20
  "eslint": "^8.0.0",
21
21
  "eslint-config-prettier": "^9.1.0",
22
22
  "eslint-config-standard": "^17.0.0",
23
23
  "eslint-plugin-import": "^2.29.1",
24
- "eslint-plugin-n": "^17.6.0",
24
+ "eslint-plugin-n": "^17.7.0",
25
25
  "eslint-plugin-promise": "^6.1.1",
26
26
  "husky": "^9.0.11",
27
27
  "lint-staged": "^15.2.2",
28
28
  "pinst": "^3.0.0",
29
29
  "prettier": "^3.2.5",
30
- "tap": "^18.7.2"
30
+ "tap": "^18.8.0"
31
31
  },
32
32
  "scripts": {
33
33
  "prepare": "husky install",