Comparing version
const logAF = function logAF(...args) { | ||
const error = new Error(); | ||
if (error.stack) { | ||
const start = error.stack.lastIndexOf`/` + 1; | ||
const end = error.stack.indexOf(')', start); | ||
args.unshift(`@${error.stack.slice(start, end)}:`); | ||
} | ||
Promise.all(args).then(toLog => console.log(...toLog)); | ||
@@ -3,0 +9,0 @@ }; |
@@ -6,3 +6,3 @@ { | ||
"license": "MIT", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"homepage": "https://github.com/AsyncAF/AsyncAF#readme", | ||
@@ -9,0 +9,0 @@ "bugs": { |
4001
5.96%9
28.57%34
21.43%