Skip to content

Commit cb0679f

Browse files
committed
fix: prevent timeouts on Node 19+
Closes #362
1 parent 943c349 commit cb0679f

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": patch
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
@@ -76,6 +76,7 @@ function parseUrlAndOptions(urlStr: string, baseOptions: RequestOptions) {
7676
protocol: url.protocol,
7777
hostname,
7878
path: `${url.pathname || ""}${url.search || ""}`,
79+
agent: false,
7980
};
8081
if (url.port !== "") {
8182
options.port = Number(url.port);

0 commit comments

Comments
 (0)