You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a validation library I would suggest not to throw errors. IMHO doing so is a highly opinionated assumption.
Developers using this lib should decide what to do upon an invalid value, either throwing an error, providing a more detailed explanation of the issue in the context of the app or whatever makes sense to them.
Excellent work BTW, I would probably contribute adding new banks like Wilobank.
I think getAssociatedBank, getBankCode y getBranch should start with:
if (!isValid(cbu)) throw new Error('CBU is not valid);
The text was updated successfully, but these errors were encountered: