Comparing version 0.0.21 to 0.0.22
@@ -105,3 +105,12 @@ "use strict"; | ||
Debug.formatArgs.call(self, this, timer, stack, args); | ||
const logFn = this || Debug.log; | ||
const logFn = (this === Debug.log || | ||
this === Debug.fatal || | ||
this === Debug.error || | ||
this === Debug.info || | ||
this === Debug.warn || | ||
this === Debug.debug || | ||
this === Debug.trace || | ||
this === Debug.time || | ||
this === Debug.end || | ||
this === Debug.timeEnd) ? this : Debug.log; | ||
logFn.apply(self, args); | ||
@@ -133,3 +142,3 @@ return hrt; | ||
Debug.instances.push(debug); | ||
return debug.log; | ||
return debug; | ||
} | ||
@@ -136,0 +145,0 @@ exports.Debug = Debug; |
{ | ||
"name": "exer", | ||
"version": "0.0.21", | ||
"version": "0.0.22", | ||
"description": "Utils in TypeScript, Debug, NanoTimer ...", | ||
@@ -42,3 +42,3 @@ "author": "kbajalc@gmail.com", | ||
"@types/lodash": "^4.14.123", | ||
"@types/node": "^10.12.30", | ||
"@types/node": "^10.14.5", | ||
"@types/uuid": "^3.4.4", | ||
@@ -45,0 +45,0 @@ "lodash": "^4.17.11", |
Sorry, the diff of this file is not supported yet
113696
1728