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

revert: drop node-fetch dependency #320

Merged
merged 1 commit into from
Oct 25, 2024
Merged

revert: drop node-fetch dependency #320

merged 1 commit into from
Oct 25, 2024

Conversation

codebytere
Copy link
Member

This reverts commit 56744cf.

Ref #317

We still need node-fetch for now - we explicitly delete global fetch to support proxies via global-agent:

trop/src/index.ts

Lines 40 to 41 in 439152f

// @ts-ignore - builtin fetch doesn't support global-agent.
delete globalThis.fetch;

And without this trop fails with fetch is not defined

@codebytere codebytere requested a review from a team as a code owner October 25, 2024 14:16
@jkleinsc jkleinsc merged commit 634153f into main Oct 25, 2024
3 checks passed
@jkleinsc jkleinsc deleted the fix-no-fetch branch October 25, 2024 14:23
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

Successfully merging this pull request may close these issues.

3 participants