Skip to content
New issue

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

Feature: onWarning function to log erroneous events #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Feature: onWarning function to log erroneous events #20

wants to merge 1 commit into from

Conversation

brandongregoryscott
Copy link

Resolves #12 Feature request: warnings

Allows a consumer to pass through an onWarning function with the signature (message: string) => void to better describe errors without silently continuing or fatally throwing an error. Additionally, the onWarning can be specified at the requirePeer function level which would override the globally configured function, if it exists.

Would love some feedback on this - not sure how active this package still is, but @AndcultureCode has some JavaScript packages that would benefit from 'optional' peer dependencies and this seems like a great package to help out with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature request: warnings
1 participant