Comparing version 1.3.0 to 1.4.0
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": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4001
9
34