Skip to content

Commit

Permalink
feat: export undici
Browse files Browse the repository at this point in the history
  • Loading branch information
killagu committed Dec 4, 2024
1 parent b1e131f commit d3db87a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,11 +224,11 @@ export class FetchFactory {
res = await UndiciFetch(input, init);
});
} catch (e: any) {
channels.response.publish({
channels.fetchResponse.publish({
fetch: fetchMeta,
error: e,
error: e,n
} as FetchResponseDiagnosticsMessage);
channels.fetchResponse.publish({
channels.response.publish({
request: reqMeta,
response: urllibResponse,
error: e,
Expand Down
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ export {
MockAgent, ProxyAgent, Agent, Dispatcher,
setGlobalDispatcher, getGlobalDispatcher,
Request, RequestInfo, RequestInit,
Response,
Response, BodyInit, ResponseInit,
Headers, FormData, File,
} from 'undici';
// HttpClient2 is keep compatible with urllib@2 HttpClient2
export {
Expand Down

0 comments on commit d3db87a

Please sign in to comment.