Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove extract-domain dependency #105

Merged
merged 1 commit into from
May 9, 2018
Merged

Remove extract-domain dependency #105

merged 1 commit into from
May 9, 2018

Conversation

Kikobeats
Copy link
Member

@Kikobeats Kikobeats commented May 7, 2018

do the same using native URL and strip www

I note we can remove this dependency after read normalize-url implementation:
https://github.com/sindresorhus/normalize-url/blob/master/index.js#L118

Also I added https://xn--vi8hl0c.ws/ into tests urls to keep in mind we don't convert from IDN to unicode:

https://github.com/sindresorhus/normalize-url/blob/master/index.js#L112

This could be done adding punycode or similar dependency, but it's a little heavy (https://bundlephobia.com/[email protected]) so I want investigate and found a workaround first

do the same using native `URL` and strip www
@Kikobeats Kikobeats requested a review from breadadams May 7, 2018 11:49
@Kikobeats
Copy link
Member Author

Better move punycode stuff into a separate issue: #106

@Kikobeats Kikobeats merged commit 03a28a5 into master May 9, 2018
@Kikobeats Kikobeats deleted the get-domain branch May 9, 2018 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant