diff options
| author | 2023-08-06 20:39:40 -0700 | |
|---|---|---|
| committer | 2023-08-06 20:39:40 -0700 | |
| commit | 0665733b0302ac7e743e4c131c7697741fa923a5 (patch) | |
| tree | 2609e7055acbb308ddd52b45393a9b61fdc397bf /src/js/thirdparty/isomorphic-fetch.js | |
| parent | 70c3371b14293e18a5e0470e8b8cd4c04259a606 (diff) | |
| download | bun-0665733b0302ac7e743e4c131c7697741fa923a5.tar.gz bun-0665733b0302ac7e743e4c131c7697741fa923a5.tar.zst bun-0665733b0302ac7e743e4c131c7697741fa923a5.zip | |
Fixes #4029 and fixes #4022 (#4032)
* Fixes #4029 and Fixes #4022
Fixes #4029
Fixes #4022
* Add test for all the fetches
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
Diffstat (limited to 'src/js/thirdparty/isomorphic-fetch.js')
| -rw-r--r-- | src/js/thirdparty/isomorphic-fetch.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/js/thirdparty/isomorphic-fetch.js b/src/js/thirdparty/isomorphic-fetch.js index 7b36684e2..59c8a6d06 100644 --- a/src/js/thirdparty/isomorphic-fetch.js +++ b/src/js/thirdparty/isomorphic-fetch.js @@ -1 +1,5 @@ -export default globalThis.fetch; +const bunFetch = Bun.fetch; +const fetch = (...args) => bunFetch(...args); +fetch.default = fetch; +fetch.fetch = fetch; +export default fetch; |
