@nxtedition/lib 21.8.4 → 21.8.5

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/http.js +3 -4
  2. package/package.json +1 -1
package/http.js CHANGED
@@ -414,7 +414,7 @@ export class ServerResponse extends http.ServerResponse {
414
414
  }
415
415
 
416
416
  if (this.#timing.headers === -1) {
417
- this.#timing.headers = this.#timing.data
417
+ this.#timing.headers = this.#timing.end
418
418
  }
419
419
  }
420
420
 
@@ -484,7 +484,7 @@ export class Http2ServerResponse extends http2.Http2ServerResponse {
484
484
  }
485
485
 
486
486
  if (this.#timing.headers === -1) {
487
- this.#timing.headers = this.#timing.data
487
+ this.#timing.headers = this.#timing.end
488
488
  }
489
489
  }
490
490
 
@@ -494,8 +494,7 @@ export class Http2ServerResponse extends http2.Http2ServerResponse {
494
494
  destroy(err) {
495
495
  if (!this.destroyed) {
496
496
  if (this.#timing.end === -1) {
497
- this.#timing.end = performance.now() - this.#now
498
- this.#now += this.#timing.end
497
+ this.#timing.end = performance.now() - this.#created
499
498
  }
500
499
  }
501
500
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/lib",
3
- "version": "21.8.4",
3
+ "version": "21.8.5",
4
4
  "license": "MIT",
5
5
  "author": "Robert Nagy <robert.nagy@boffins.se>",
6
6
  "type": "module",