support HTTP_PROXY environment
Thank you for your first contribution. Could you please provide a bit more details, what is that you're trying to accomplish, is there an underlying issue here we can follow for more details?
somewhere cannot direct access github.com. when using a proxy, Failed to fetch diff. the reason is this react native cli do not use system env HTTP_PROXY to create proxy.
Thanks.
I think that there are a few more factors beyond HTTP_PROXY that we should factor in and unfortunately, node-fetch has no support for it out of the box.
request, on the other hand, does have built-in support for various env variables.
I think it would be quite trivial to change to request, given that we're just using it to fetch a JSON and do not even take advantage of any other library specific features.
What do you think?
request is too big: https://packagephobia.com/result?p=request
Let's stick to custom implementation, as in the PR.
There hasn't been any activity on this pull request in the past 3 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 7 days.