@nxtedition/nxt-undici 7.3.22 → 7.3.23

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.
@@ -127,7 +127,7 @@ class Handler extends DecoratorHandler {
127
127
 
128
128
  const data = {
129
129
  ures: {
130
- statusCode: this.#statusCode,
130
+ statusCode: this.#statusCode || undefined,
131
131
  headers: this.#headers,
132
132
  timing: this.#timing,
133
133
  bytesRead: this.#pos,
@@ -70,7 +70,7 @@ class Handler extends DecoratorHandler {
70
70
 
71
71
  super.onError(
72
72
  decorateError(null, this.#opts, {
73
- statusCode: this.#statusCode,
73
+ statusCode: this.#statusCode || undefined,
74
74
  headers: this.#headers,
75
75
  trailers: this.#trailers,
76
76
  body: this.#body,
@@ -81,7 +81,7 @@ class Handler extends DecoratorHandler {
81
81
  onError(err) {
82
82
  super.onError(
83
83
  decorateError(err, this.#opts, {
84
- statusCode: this.#statusCode,
84
+ statusCode: this.#statusCode || undefined,
85
85
  headers: this.#headers,
86
86
  trailers: this.#trailers,
87
87
  body: null,
@@ -261,7 +261,7 @@ class Handler extends DecoratorHandler {
261
261
  retryPromise = Promise.resolve(
262
262
  this.#opts.retry(
263
263
  decorateError(err, this.#opts, {
264
- statusCode: this.#statusCode,
264
+ statusCode: this.#statusCode || undefined,
265
265
  headers: this.#headers,
266
266
  trailers: this.#trailers,
267
267
  body: this.#body,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/nxt-undici",
3
- "version": "7.3.22",
3
+ "version": "7.3.23",
4
4
  "license": "MIT",
5
5
  "author": "Robert Nagy <robert.nagy@boffins.se>",
6
6
  "main": "lib/index.js",