Skip to content

Commit 24b6c2f

Browse files
fix: prevent timeouts on Node 19+ (#363)
* fix: prevent timeouts on Node 19+ Closes #362 * Update friendly-bats-shave.md * fix: preserve customizability of HTTP agent --------- Co-authored-by: Yosuke Ota <[email protected]>
1 parent 943c349 commit 24b6c2f

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/friendly-bats-shave.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"eslint-plugin-json-schema-validator": minor
3+
---
4+
5+
prevent timeouts on Node 19+

src/utils/http-client/get-modules/http.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ function parseUrlAndOptions(urlStr: string, baseOptions: RequestOptions) {
7272
? url.hostname.slice(1, -1)
7373
: url.hostname;
7474
const options: RequestOptions = {
75+
agent: false,
7576
...baseOptions,
7677
protocol: url.protocol,
7778
hostname,

0 commit comments

Comments
 (0)