11/**
22 * Disclaimer: modules in _shims aren't intended to be imported by SDK users.
33 */
4- import * as nf from 'node-fetch' ;
5- import * as fd from 'formdata-node' ;
4+ import undici from 'undici' ;
65
76export { type Agent } from 'node:http' ;
8- export { type Readable } from 'node:stream' ;
7+ export { type ReadableStream } from 'node:stream/web ' ;
98export { type ReadStream as FsReadStream } from 'node:fs' ;
10- export { ReadableStream } from 'web-streams-polyfill ' ;
9+ import { Blob } from 'node:buffer ' ;
1110
12- export const fetch : typeof nf . default ;
11+ export const fetch : typeof undici . fetch ;
1312
14- export type Request = nf . Request ;
15- export type RequestInfo = nf . RequestInfo ;
16- export type RequestInit = nf . RequestInit ;
13+ export type Request = undici . Request ;
14+ export type RequestInfo = undici . RequestInfo ;
15+ export type RequestInit = undici . RequestInit ;
1716
18- export type Response = nf . Response ;
19- export type ResponseInit = nf . ResponseInit ;
20- export type ResponseType = nf . ResponseType ;
21- export type BodyInit = nf . BodyInit ;
22- export type Headers = nf . Headers ;
23- export type HeadersInit = nf . HeadersInit ;
17+ export type Response = undici . Response ;
18+ export type ResponseInit = undici . ResponseInit ;
19+ export type ResponseType = undici . ResponseType ;
20+ export type BodyInit = undici . BodyInit ;
21+ export type Headers = undici . Headers ;
22+ export type HeadersInit = undici . HeadersInit ;
2423
2524type EndingType = 'native' | 'transparent' ;
2625export interface BlobPropertyBag {
@@ -34,9 +33,9 @@ export interface FilePropertyBag extends BlobPropertyBag {
3433
3534export type FileFromPathOptions = Omit < FilePropertyBag , 'lastModified' > ;
3635
37- export type FormData = fd . FormData ;
38- export const FormData : typeof fd . FormData ;
39- export type File = fd . File ;
40- export const File : typeof fd . File ;
41- export type Blob = fd . Blob ;
42- export const Blob : typeof fd . Blob ;
36+ export type FormData = undici . FormData ;
37+ export const FormData : typeof undici . FormData ;
38+ export type File = undici . File ;
39+ export const File : typeof undici . File ;
40+ export type Blob = Blob ;
41+ export const Blob : typeof Blob ;
0 commit comments