Consider using `got` in the scripts
Background
We have few scripts that fetch the most recent data: PSL or subscriptions list.
Currently we already have a dependency on got
and scripts/updatepsl.js
already uses got
, but scripts/updateSubscriptions.js
does not (to be precise it was also using, but reverted at some point).
Using of got
can bring some advantages like more convenient Promise API and reducing some dance/complexity (like using http
for URLs on HTTP scheme and HTTPS
).
What to change
Agree in the team on whether we want to use http/https
vs got
across all the scripts.
Make sure the code that is going to be changed is covered with tests.
Change to use the winner lib consistently across the code.