Skip to content

Commit

Permalink
feat: exports undici
Browse files Browse the repository at this point in the history
  • Loading branch information
killagu committed Dec 4, 2024
1 parent 104664d commit e06e7e9
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 @@ -223,11 +223,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

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
} 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

0 comments on commit e06e7e9

Please sign in to comment.