Currently the hostname is parsed using default tldts options. In practice we may want to pass options such as allowPrivateDomains when parsing the hostname.
We could, for example, add an optional argument to the URL constructor with the tldts IOptions for tldts.parse. Alternatively we could expose a global that sets the options for all URLs created by the application.
Currently the hostname is parsed using default tldts options. In practice we may want to pass options such as
allowPrivateDomainswhen parsing the hostname.We could, for example, add an optional argument to the
URLconstructor with the tldtsIOptionsfortldts.parse. Alternatively we could expose a global that sets the options for allURLs created by the application.