autonomoussoftware / metronome-wallet-mobile

📱💰 Metronome wallet for mobile devices
https://metronome.io
MIT License
13 stars 4 forks source link

url parse() method is deprecated in node #126

Open gndelia opened 3 years ago

gndelia commented 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.

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

here is the piece of code