Arnaud Ferrand
Arnaud Ferrand
this PR uses the latest commit for the web browser link
The goal would be to add an HTTP header, "User-Agent", and specify the package version. Ref info here: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent
As now node since version 18 has a `fetch()` function built-in and all browsers have this function, I think it is time to get rid of dependencies. That would lighten...
With the new version passing the parameters (ie, not controlling a mandatory API key parameter) the behaviour is to read the environment variable. in a browser process.env is not defined...
unit tests on fetch wrapper make requests to google/httpbin. Can we improve the unit tests to be isolated and avoid using an internet connection?