| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
Hi @PNHD!
Thanks for the PR. The code looks good. I’m on holidays, I’ll release in a week once I’m back.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Pull Request Details
Related Issue
Addresses #77.
Importing https-localhost currently installs a process-wide uncaughtException handler even when the package is only used as a module. That changes application-level error handling and can hide the original stack-trace behavior.
This change scopes the existing handler to the CLI path (require.main === module) so the CLI keeps its friendly EACCES / EADDRINUSE messages while library consumers no longer get a global process listener as a side effect of require("https-localhost").
A regression test re-imports the module after clearing the require cache and verifies that the uncaughtException listener count does not change.
Types of changes
Checklist