@szmarczak/http-timer
Advanced tools
Comparing version 4.0.3 to 4.0.4
@@ -44,3 +44,6 @@ "use strict"; | ||
timings.abort = Date.now(); | ||
timings.phases.total = Date.now() - timings.start; | ||
// Let the `end` response event be responsible for setting the total phase | ||
if (!timings.response) { | ||
timings.phases.total = Date.now() - timings.start; | ||
} | ||
}); | ||
@@ -47,0 +50,0 @@ const onSocket = (socket) => { |
{ | ||
"name": "@szmarczak/http-timer", | ||
"version": "4.0.3", | ||
"version": "4.0.4", | ||
"description": "Timings for HTTP requests", | ||
@@ -5,0 +5,0 @@ "main": "dist/source", |
10128
147