Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to validate if the global.fetch is the native node fetch or undici fetch ? #4056

Open
sibelius opened this issue Feb 12, 2025 · 3 comments

Comments

@sibelius
Copy link

how to validate if the global.fetch is the native node fetch or undici fetch ?

@sibelius
Copy link
Author

is there a way to import native node fetch explicit instead of from global ?

@metcoder95
Copy link
Member

global.fetch is undici's fetch; just versions can vary between the one bundled in Node and the one available through npm.

@sibelius
Copy link
Author

You can disable native fetch by a flag and use a polyfill to inject another fetch version

Is there a symbol or something to validate this? That fetch is undici and also the version of it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants