unfetch
unfetch copied to clipboard
🐕 Bare minimum 500b fetch polyfill.
There is a vulnerability in node-fetch, please considering upgrading of package high priority: https://github.com/developit/unfetch/pull/154 https://nvd.nist.gov/vuln/detail/CVE-2022-0235 https://huntr.dev/bounties/d26ab655-38d6-48b3-be15-f9ad6b6ae6f7/ @developit
node-fetch is now ESM module only, thus this will be a breaking change and will requires at least Node.js 12.20.0. As [suggested][1] by `node-fetch`, async import() function is used to...
I have the case where I'd like to have better control of the version of `node-fetch` used (v3.x beta). If it were a peer dependency I'd be able to do...
If I use Request, I also can set headers, method, etc and work with it. https://developer.mozilla.org/en-US/docs/Web/API/Request
First of all thanks for awesome polyfill @developit. It's brilliant and altogether with preact it makes a perfect match for our product bundle! As for this issue I'm not sure...
Can you please release new version built with typescript 4.4 and new flags enabled?
This should fix snowpack and other loaders that don't expect libraries to do odd things.
Unfetch used to declare it's type as `typeof fetch` which was working well for us. Now it uses a custom type, which gives us errors when we try to pass...
If I try to include this library in a project built with snowpack, I get this error: ``` ReferenceError: self is not defined ``` It is because this file uses...