Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions packages/eas-cli/__mocks__/undici.ts

This file was deleted.

16 changes: 6 additions & 10 deletions packages/eas-cli/src/fetch.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
import { env } from 'node:process';
import {
ProxyAgent,
type RequestInfo,
type RequestInit,
type Response,
fetch,
getGlobalDispatcher,
setGlobalDispatcher,
} from 'undici';
import { ProxyAgent, getGlobalDispatcher, setGlobalDispatcher } from 'undici';

export { Agent, Headers, type RequestInfo, type RequestInit, Response } from 'undici';
// Re-export the fetch-related Node globals
export type RequestInfo = globalThis.RequestInfo;
export type RequestInit = globalThis.RequestInit;
export type Response = globalThis.Response;
export const Headers = globalThis.Headers;

export class RequestError extends Error {
constructor(
Expand Down