Skip to content

Commit

Permalink
fix: URL types were missing (#268)
Browse files Browse the repository at this point in the history
  • Loading branch information
rimiti committed Jan 8, 2024
1 parent b133295 commit c3c405e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changeset/neat-rules-brake.md
@@ -0,0 +1,6 @@
---
"http-proxy-agent": patch
"https-proxy-agent": patch
---

Add missing `URL` type import
3 changes: 2 additions & 1 deletion packages/http-proxy-agent/src/index.ts
Expand Up @@ -3,8 +3,9 @@ import * as tls from 'tls';
import * as http from 'http';
import createDebug from 'debug';
import { once } from 'events';
import type { OutgoingHttpHeaders } from 'http';
import { Agent, AgentConnectOpts } from 'agent-base';
import { URL } from 'node:url';
import type { OutgoingHttpHeaders } from 'http';

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

Expand Down
3 changes: 2 additions & 1 deletion packages/https-proxy-agent/src/index.ts
Expand Up @@ -3,9 +3,10 @@ import * as tls from 'tls';
import * as http from 'http';
import assert from 'assert';
import createDebug from 'debug';
import type { OutgoingHttpHeaders } from 'http';
import { Agent, AgentConnectOpts } from 'agent-base';
import { URL } from 'node:url';
import { parseProxyResponse } from './parse-proxy-response';
import type { OutgoingHttpHeaders } from 'http';

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

Expand Down

1 comment on commit c3c405e

@vercel
Copy link

@vercel vercel bot commented on c3c405e Jan 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.