Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: exports undici #554

Merged
merged 2 commits into from
Dec 4, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
6 changes: 3 additions & 3 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({
fetch: fetchMeta,
error: e,
error: e,n

Check failure on line 228 in src/fetch.ts

View workflow job for this annotation

GitHub Actions / Node.js / Test (ubuntu-latest, 18.19.0)

A space is required after ','

Check failure on line 228 in src/fetch.ts

View workflow job for this annotation

GitHub Actions / Node.js / Test (ubuntu-latest, 18.19.0)

Missing trailing comma

Check failure on line 228 in src/fetch.ts

View workflow job for this annotation

GitHub Actions / Node.js / Test (macos-latest, 18.19.0)

A space is required after ','

Check failure on line 228 in src/fetch.ts

View workflow job for this annotation

GitHub Actions / Node.js / Test (macos-latest, 18.19.0)

Missing trailing comma

Check failure on line 228 in src/fetch.ts

View workflow job for this annotation

GitHub Actions / Node.js / Test (macos-latest, 20)

A space is required after ','

Check failure on line 228 in src/fetch.ts

View workflow job for this annotation

GitHub Actions / Node.js / Test (macos-latest, 20)

Missing trailing comma

Check failure on line 228 in src/fetch.ts

View workflow job for this annotation

GitHub Actions / Node.js / Test (macos-latest, 22)

A space is required after ','

Check failure on line 228 in src/fetch.ts

View workflow job for this annotation

GitHub Actions / Node.js / Test (macos-latest, 22)

Missing trailing comma

Check failure on line 228 in src/fetch.ts

View workflow job for this annotation

GitHub Actions / Node.js / Test (macos-latest, 18)

A space is required after ','

Check failure on line 228 in src/fetch.ts

View workflow job for this annotation

GitHub Actions / Node.js / Test (macos-latest, 18)

Missing trailing comma

Check failure on line 228 in src/fetch.ts

View workflow job for this annotation

GitHub Actions / Node.js / Test (ubuntu-latest, 20)

A space is required after ','

Check failure on line 228 in src/fetch.ts

View workflow job for this annotation

GitHub Actions / Node.js / Test (ubuntu-latest, 20)

Missing trailing comma

Check failure on line 228 in src/fetch.ts

View workflow job for this annotation

GitHub Actions / Node.js / Test (macos-latest, 23)

A space is required after ','

Check failure on line 228 in src/fetch.ts

View workflow job for this annotation

GitHub Actions / Node.js / Test (macos-latest, 23)

Missing trailing comma

Check failure on line 228 in src/fetch.ts

View workflow job for this annotation

GitHub Actions / Node.js / Test (ubuntu-latest, 23)

A space is required after ','

Check failure on line 228 in src/fetch.ts

View workflow job for this annotation

GitHub Actions / Node.js / Test (ubuntu-latest, 23)

Missing trailing comma

Check failure on line 228 in src/fetch.ts

View workflow job for this annotation

GitHub Actions / Node.js / Test (windows-latest, 18.19.0)

A space is required after ','

Check failure on line 228 in src/fetch.ts

View workflow job for this annotation

GitHub Actions / Node.js / Test (windows-latest, 18.19.0)

Missing trailing comma

Check failure on line 228 in src/fetch.ts

View workflow job for this annotation

GitHub Actions / Node.js / Test (windows-latest, 23)

A space is required after ','

Check failure on line 228 in src/fetch.ts

View workflow job for this annotation

GitHub Actions / Node.js / Test (windows-latest, 23)

Missing trailing comma

Check failure on line 228 in src/fetch.ts

View workflow job for this annotation

GitHub Actions / Node.js / Test (ubuntu-latest, 18)

A space is required after ','

Check failure on line 228 in src/fetch.ts

View workflow job for this annotation

GitHub Actions / Node.js / Test (ubuntu-latest, 18)

Missing trailing comma

Check failure on line 228 in src/fetch.ts

View workflow job for this annotation

GitHub Actions / Node.js / Test (ubuntu-latest, 22)

A space is required after ','

Check failure on line 228 in src/fetch.ts

View workflow job for this annotation

GitHub Actions / Node.js / Test (ubuntu-latest, 22)

Missing trailing comma

Check failure on line 228 in src/fetch.ts

View workflow job for this annotation

GitHub Actions / Node.js / Test (windows-latest, 18)

A space is required after ','

Check failure on line 228 in src/fetch.ts

View workflow job for this annotation

GitHub Actions / Node.js / Test (windows-latest, 18)

Missing trailing comma

Check failure on line 228 in src/fetch.ts

View workflow job for this annotation

GitHub Actions / Node.js / Test (windows-latest, 20)

A space is required after ','

Check failure on line 228 in src/fetch.ts

View workflow job for this annotation

GitHub Actions / Node.js / Test (windows-latest, 20)

Missing trailing comma

Check failure on line 228 in src/fetch.ts

View workflow job for this annotation

GitHub Actions / Node.js / Test (windows-latest, 22)

A space is required after ','

Check failure on line 228 in src/fetch.ts

View workflow job for this annotation

GitHub Actions / Node.js / Test (windows-latest, 22)

Missing trailing comma
killagu marked this conversation as resolved.
Show resolved Hide resolved
} 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 @@ -44,7 +44,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
Loading