If I understand correctly, simply running the command npm install --save tldjs --tldjs-update-rules should update the list of tlds globally.
I'm working on a tool that uses tld.js to check validity of email addresses, we have had several customers writing in being unable to sign up with their domains.
In my local dev environment, I saw that tldExists was returning false for a specific domain. After running the above command, the same argument began to return true, so I imagined the list of tlds had been updated successfully.
However the value continues to return false in staging and production. Am I missing something here?
Thanks!
If I understand correctly, simply running the command
npm install --save tldjs --tldjs-update-rulesshould update the list of tlds globally.I'm working on a tool that uses tld.js to check validity of email addresses, we have had several customers writing in being unable to sign up with their domains.
In my local dev environment, I saw that
tldExistswas returning false for a specific domain. After running the above command, the same argument began to return true, so I imagined the list of tlds had been updated successfully.However the value continues to return false in staging and production. Am I missing something here?
Thanks!