@nxtedition/lib 20.3.1 → 20.3.2

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 +2 -7
  2. package/package.json +1 -1
package/http.js CHANGED
@@ -170,7 +170,6 @@ export class ServerResponse extends http.ServerResponse {
170
170
  headers: -1,
171
171
  data: -1,
172
172
  complete: -1,
173
- error: -1,
174
173
  }
175
174
 
176
175
  get timing() {
@@ -216,16 +215,12 @@ export class ServerResponse extends http.ServerResponse {
216
215
  this.#timing.headers = this.#timing.data
217
216
  }
218
217
 
219
- if (this.#timing.complete === -1) {
220
- this.#timing.complete = performance.now() - this.#created
221
- }
222
-
223
218
  return super.end(chunk, encoding, callback)
224
219
  }
225
220
 
226
221
  destroy(err) {
227
- if (err != null && this.#timing.error === -1) {
228
- this.#timing.error = performance.now() - this.#created
222
+ if (this.#timing.complete === -1) {
223
+ this.#timing.complete = performance.now() - this.#created
229
224
  }
230
225
 
231
226
  return super.destroy(err)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/lib",
3
- "version": "20.3.1",
3
+ "version": "20.3.2",
4
4
  "license": "MIT",
5
5
  "author": "Robert Nagy <robert.nagy@boffins.se>",
6
6
  "type": "module",