@nxtedition/nxt-undici 6.3.13 → 6.3.15

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.
@@ -30,6 +30,8 @@ class Handler extends DecoratorHandler {
30
30
  }
31
31
 
32
32
  this.#created = performance.now()
33
+
34
+ this.#logger.debug('upstream request queued')
33
35
  }
34
36
 
35
37
  onConnect(abort) {
@@ -351,6 +351,7 @@ class Handler extends DecoratorHandler {
351
351
  'EAI_AGAIN',
352
352
  'ENODATA',
353
353
  'UND_ERR_CONNECT_TIMEOUT',
354
+ 'UND_ERR_SOCKET',
354
355
  ].includes(err.code)
355
356
  ) {
356
357
  return tp.setTimeout(Math.min(10e3, retryCount * 1e3), true, {
package/lib/utils.js CHANGED
@@ -380,9 +380,6 @@ export function decorateError(err, opts, { statusCode, headers, trailers, body }
380
380
  origin: opts.origin,
381
381
  method: opts?.method,
382
382
  headers: opts?.headers,
383
- body:
384
- // TODO (fix): JSON.stringify POJO
385
- typeof opts?.body !== 'string' || opts.body.length > 1024 ? undefined : opts.body,
386
383
  }
387
384
 
388
385
  if (Array.isArray(body) && body.every((x) => Buffer.isBuffer(x))) {
@@ -402,8 +399,6 @@ export function decorateError(err, opts, { statusCode, headers, trailers, body }
402
399
  err.res = {
403
400
  headers,
404
401
  trailers,
405
- // TODO (fix): JSON.stringify POJO
406
- body: typeof body !== 'string' || body.length < 1024 ? undefined : body,
407
402
  statusCode,
408
403
  }
409
404
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/nxt-undici",
3
- "version": "6.3.13",
3
+ "version": "6.3.15",
4
4
  "license": "MIT",
5
5
  "author": "Robert Nagy <robert.nagy@boffins.se>",
6
6
  "main": "lib/index.js",