Open
Description
Current Behavior
From the documentation:
emailSpellChecker.run({
domains: [...emailSpellChecker.POPULAR_DOMAINS, 'customdomain.com'], // replaces existing domains
secondLevelDomains: ['domain', 'yetanotherdomain'], // replaces existing SLDs
topLevelDomains: ['com.au', 'ru'], // replaces existing TLDs
});
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
- Run snippet provided by readme
Environment
- Version: 1.11.0
- Platform: Linux
- Node.js Version: v16.13.1
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.