Skip to content
Merged
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
4 changes: 2 additions & 2 deletions src/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,11 +223,11 @@
res = await UndiciFetch(input, init);
});
} catch (e: any) {
channels.response.publish({
channels.fetchResponse.publish({

Check warning on line 226 in src/fetch.ts

View check run for this annotation

Codecov / codecov/patch

src/fetch.ts#L226

Added line #L226 was not covered by tests
fetch: fetchMeta,
error: e,
} as FetchResponseDiagnosticsMessage);
channels.fetchResponse.publish({
channels.response.publish({

Check warning on line 230 in src/fetch.ts

View check run for this annotation

Codecov / codecov/patch

src/fetch.ts#L230

Added line #L230 was not covered by tests
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 @@ -44,7 +44,8 @@ export {
MockAgent, ProxyAgent, Agent, Dispatcher,
setGlobalDispatcher, getGlobalDispatcher,
Request, RequestInfo, RequestInit,
Response,
Response, BodyInit, ResponseInit,
Headers, FormData,
} from 'undici';
// HttpClient2 is keep compatible with urllib@2 HttpClient2
export {
Expand Down
Loading