Open faelsoto opened 1 year ago
Hey @faelsoto! Glad you are enjoying using the package and sorry you had issues.
Just fixed the code snippet. We were just missing passing an email to the code snippet. Here is the fix: https://github.com/ZooTools/email-spell-checker/blob/main/README.md#adding-your-own-domains
I think overrides global makes sense in case you just want to have custom ones. You can simply import the constant file POPULAR_TLDS
and append that to your custom list.
What is missing is that we don't expose the default secondLevelDomains
. Would it that be enough if you were having that? Also what's your use case?
Current Behavior
From the documentation:
Running this snippet throws an
Uncaught TypeError: opts.email is undefined
exception.Expected Behavior
A snippet provided in the readme shouldn't fail. Also, the domains, second level domains and top level domains list gets updated globally?
Steps to Reproduce the Problem
Environment
We've been using mailcheck but as you already know, it is quite outdated. So I thank your for this project, it was way overdue. The thing that I'm wondering is if it would not be best to let the config be overwritten globally, just as Mailcheck used to do it. If that's not the original idea that's fine, but maybe the docs should reflect it by not including a snippet that won't work.