We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is.
Describe the solution you'd like Solution in signale.js
get filename() { const _ = Error.prepareStackTrace; Error.prepareStackTrace = (error, stack) => stack; const {stack} = new Error(); Error.prepareStackTrace = _; const callers = stack.map(x => x.getFileName()); const callersAndLines = stack.map( x => ({"filename": x.getFileName(), "line": x.getLineNumber()})); const firstExternalFilePath = callers.find(x => { return x !== callers[0]; }); const filenameAndLine = callersAndLines.find( x => { return x.filename !== callers[0]; }); return firstExternalFilePath ? `${path.basename(filenameAndLine.filename)} - Line: ${filenameAndLine.line}` : 'anonymous'; }
Additional context Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered:
Implemented in => #112
Sorry, something went wrong.
No branches or pull requests
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is.
Describe the solution you'd like
Solution in signale.js
Additional context
![image](https://user-images.githubusercontent.com/1771743/91359253-98220d80-e7ca-11ea-9469-a2dfdfbe9fff.png)
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: