stack-sites
Advanced tools
Comparing version 1.0.0 to 1.1.0
{ | ||
"name": "stack-sites", | ||
"description": "Returns current stack as call sites", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"author": "Gleb Bahmutov <gleb.bahmutov@gmail.com>", | ||
@@ -6,0 +6,0 @@ "bugs": "https://github.com/bahmutov/stack-sites/issues", |
@@ -25,4 +25,6 @@ # stack-sites | ||
const caller = sites[2] | ||
console.log('I got called from %s line %d column %d', | ||
caller.filename, caller.line, caller.column | ||
console.log('I got called from %s in %s line %d column %d', | ||
caller.functionName, | ||
caller.filename, | ||
caller.line, caller.column | ||
) | ||
@@ -29,0 +31,0 @@ } |
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
6064
88