Open gndelia opened 3 years ago
As of node v11, require('url').parse is deprecated (it works, but it is not recommended to use). See https://nodejs.org/api/url.html#url_url_parse_urlstring_parsequerystring_slashesdenotehost.
require('url').parse
The recommendation is to use the plain object new Url() but I think it works a bit different; plus this method is exposed through metro as a global utility, so perhaps some testing should be done
new Url()
here is the piece of code
As of node v11,
require('url').parse
is deprecated (it works, but it is not recommended to use). See https://nodejs.org/api/url.html#url_url_parse_urlstring_parsequerystring_slashesdenotehost.The recommendation is to use the plain object
new Url()
but I think it works a bit different; plus this method is exposed through metro as a global utility, so perhaps some testing should be donehere is the piece of code