@ideco/koa-logger
Advanced tools
Comparing version 3.2.3 to 3.2.4
@@ -140,12 +140,7 @@ 'use strict'; | ||
/** | ||
* Show the response time in a human readable format. | ||
* In milliseconds if less than 10 seconds, | ||
* in seconds otherwise. | ||
* Show the response time in ms | ||
*/ | ||
function time(start) { | ||
const delta = Date.now() - start; | ||
return humanize( | ||
delta < 10000 ? delta + 'ms' : Math.round(delta / 1000) + 's', | ||
{ delimiter: '' } | ||
); | ||
return delta + 'ms'; | ||
} |
{ | ||
"name": "@ideco/koa-logger", | ||
"description": "Logging middleware for koa", | ||
"version": "3.2.3", | ||
"version": "3.2.4", | ||
"publishConfig": { | ||
@@ -6,0 +6,0 @@ "access": "public" |
9322
128