Skip to content

Commit d3db87a

Browse files
committed
feat: export undici
1 parent b1e131f commit d3db87a

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/fetch.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,11 +224,11 @@ export class FetchFactory {
224224
res = await UndiciFetch(input, init);
225225
});
226226
} catch (e: any) {
227-
channels.response.publish({
227+
channels.fetchResponse.publish({
228228
fetch: fetchMeta,
229-
error: e,
229+
error: e,n
230230
} as FetchResponseDiagnosticsMessage);
231-
channels.fetchResponse.publish({
231+
channels.response.publish({
232232
request: reqMeta,
233233
response: urllibResponse,
234234
error: e,

src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ export {
4040
MockAgent, ProxyAgent, Agent, Dispatcher,
4141
setGlobalDispatcher, getGlobalDispatcher,
4242
Request, RequestInfo, RequestInit,
43-
Response,
43+
Response, BodyInit, ResponseInit,
44+
Headers, FormData, File,
4445
} from 'undici';
4546
// HttpClient2 is keep compatible with urllib@2 HttpClient2
4647
export {

0 commit comments

Comments
 (0)