cross-fetch
cross-fetch copied to clipboard
Universal WHATWG Fetch API for Node, Browsers and React Native.
Hello, We have recently upgraded to the latest version (4.X) of the graphql-request package. Additionally, we are utilizing an older version of GraphQL Yoga v2. During this process, we encountered...
hey, I wanted to give this a quick try and assumed that this works 👉 `index.html` ```html import { fetch } from './node_modules/cross-fetch/dist/browser-ponyfill.js'; console.log(fetch); ``` 1. server it with any...
We're running into issues that are solved by https://github.com/node-fetch/node-fetch/pull/671, which is part of the `node-fetch` 3.0.0 release. I read through https://github.com/lquixada/cross-fetch/issues/118 and understand upgrading `node-fetch` to v3.x+ isn't on the...
parseHeaders(rawHeaders) is called with following value for rawHeaders { "{\n \"cache-control\"": "\"no-cache, no-store, max-age=0, must-revalidate\"," } i believe since this isn't an array, replace is undefined so this statement fails,...
Hi! I'm using tsdav, which itself depends on cross-fetch in a service worker of a webextension, which is bundled with Vite. However, it seems that when the service worker is...
https://github.github.io/fetch/ not working! https://github.com/lquixada/cross-fetch?tab=readme-ov-file#demo--api
This PR updates Node Fetch to 2.6.13, to fix https://github.com/node-fetch/node-fetch/issues/1735 and https://github.com/node-fetch/node-fetch/pull/1765
Whats the difference between Ponyfill and Polyfill? **Polyfill** - checks if functionality is not available and add it: ``` if (!String.prototype.trim) String.prototype.trim = ... ``` **Ponyfill** - just the adds...
`Failed to execute 'fetch' on 'Window': Illegal invocation` error happens when cross-fetch is passed as class field [Playground](https://stackblitz.com/edit/vitejs-vite-ueyzkzgq?file=src%2FApp.tsx&terminal=dev) Note: it will work with "cross-fetch": "3.0.4" ``` import { useEffect, useState...