1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
|
export var fetch = Bun.fetch;
export var Response = globalThis.Response;
export var Headers = globalThis.Headers;
export var Request = globalThis.Request;
export var URLSearchParams = globalThis.URLSearchParams;
export var URL = globalThis.URL;
export class File extends Blob {}
export class FileReader extends EventTarget {
constructor() {
throw new Error("Not implemented yet!");
}
}
export class FormData {
constructor() {
throw new Error("Not implemented yet!");
}
}
function notImplemented() {
throw new Error("Not implemented in bun");
}
export function request() {
throw new Error("Not implemented in bun");
}
export function stream() {
throw new Error("Not implemented in bun");
}
export function pipeline() {
throw new Error("Not implemented in bun");
}
export function connect() {
throw new Error("Not implemented in bun");
}
export function upgrade() {
throw new Error("Not implemented in bun");
}
export class MockClient {
constructor() {
throw new Error("Not implemented in bun");
}
}
export class MockPool {
constructor() {
throw new Error("Not implemented in bun");
}
}
export class MockAgent {
constructor() {
throw new Error("Not implemented in bun");
}
}
export function mockErrors() {
throw new Error("Not implemented in bun");
}
export function Undici() {
throw new Error("Not implemented in bun");
}
Undici.Dispatcher =
Undici.Pool =
Undici.BalancedPool =
Undici.Client =
Undici.buildConnector =
Undici.errors =
Undici.Agent =
Undici.setGlobalDispatcher =
Undici.getGlobalDispatcher =
Undici.request =
Undici.stream =
Undici.pipeline =
Undici.connect =
Undici.upgrade =
Undici.MockClient =
Undici.MockPool =
Undici.MockAgent =
Undici.mockErrors =
notImplemented;
Undici.fetch = fetch;
export default {
fetch,
Response,
Headers,
Request,
URLSearchParams,
URL,
File,
FileReader,
FormData,
request,
stream,
pipeline,
connect,
upgrade,
MockClient,
MockPool,
MockAgent,
mockErrors,
Undici,
};
|