From ffc3fa8c5a20b568fab2112ae2d146dee626f825 Mon Sep 17 00:00:00 2001 From: landonsilla Date: Wed, 7 Aug 2024 12:26:02 -0700 Subject: [PATCH] Update index.ts including constuctor opts into super opts --- packages/https-proxy-agent/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/https-proxy-agent/src/index.ts b/packages/https-proxy-agent/src/index.ts index 272f7790..31a757a0 100644 --- a/packages/https-proxy-agent/src/index.ts +++ b/packages/https-proxy-agent/src/index.ts @@ -50,7 +50,7 @@ export class HttpsProxyAgent extends Agent { constructor(proxy: Uri | URL, opts?: HttpsProxyAgentOptions) { super(opts); - this.options = { path: undefined }; + this.options = { path: undefined, ...opts }; this.proxy = typeof proxy === 'string' ? new URL(proxy) : proxy; this.proxyHeaders = opts?.headers ?? {}; debug('Creating new HttpsProxyAgent instance: %o', this.proxy.href);