Skip to content

Commit c3c405e

Browse files
authoredJan 8, 2024
fix: URL types were missing (#268)
1 parent b133295 commit c3c405e

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed
 

‎.changeset/neat-rules-brake.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"http-proxy-agent": patch
3+
"https-proxy-agent": patch
4+
---
5+
6+
Add missing `URL` type import

‎packages/http-proxy-agent/src/index.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ import * as tls from 'tls';
33
import * as http from 'http';
44
import createDebug from 'debug';
55
import { once } from 'events';
6-
import type { OutgoingHttpHeaders } from 'http';
76
import { Agent, AgentConnectOpts } from 'agent-base';
7+
import { URL } from 'node:url';
8+
import type { OutgoingHttpHeaders } from 'http';
89

910
const debug = createDebug('http-proxy-agent');
1011

‎packages/https-proxy-agent/src/index.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ import * as tls from 'tls';
33
import * as http from 'http';
44
import assert from 'assert';
55
import createDebug from 'debug';
6-
import type { OutgoingHttpHeaders } from 'http';
76
import { Agent, AgentConnectOpts } from 'agent-base';
7+
import { URL } from 'node:url';
88
import { parseProxyResponse } from './parse-proxy-response';
9+
import type { OutgoingHttpHeaders } from 'http';
910

1011
const debug = createDebug('https-proxy-agent');
1112

1 commit comments

Comments
 (1)

vercel[bot] commented on Jan 8, 2024

@vercel[bot]
Please sign in to comment.