https-proxy-agent
Advanced tools
Comparing version 7.0.3 to 7.0.4
@@ -35,3 +35,3 @@ "use strict"; | ||
const agent_base_1 = require("agent-base"); | ||
const node_url_1 = require("node:url"); | ||
const url_1 = require("url"); | ||
const parse_proxy_response_1 = require("./parse-proxy-response"); | ||
@@ -55,3 +55,3 @@ const debug = (0, debug_1.default)('https-proxy-agent'); | ||
this.options = { path: undefined }; | ||
this.proxy = typeof proxy === 'string' ? new node_url_1.URL(proxy) : proxy; | ||
this.proxy = typeof proxy === 'string' ? new url_1.URL(proxy) : proxy; | ||
this.proxyHeaders = opts?.headers ?? {}; | ||
@@ -58,0 +58,0 @@ debug('Creating new HttpsProxyAgent instance: %o', this.proxy.href); |
@@ -9,3 +9,3 @@ /// <reference types="node" /> | ||
import { Agent, AgentConnectOpts } from 'agent-base'; | ||
import { URL } from 'node:url'; | ||
import { URL } from 'url'; | ||
import type { OutgoingHttpHeaders } from 'http'; | ||
@@ -12,0 +12,0 @@ type Protocol<T> = T extends `${infer Protocol}:${infer _}` ? Protocol : never; |
@@ -35,3 +35,3 @@ "use strict"; | ||
const agent_base_1 = require("agent-base"); | ||
const node_url_1 = require("node:url"); | ||
const url_1 = require("url"); | ||
const parse_proxy_response_1 = require("./parse-proxy-response"); | ||
@@ -55,3 +55,3 @@ const debug = (0, debug_1.default)('https-proxy-agent'); | ||
this.options = { path: undefined }; | ||
this.proxy = typeof proxy === 'string' ? new node_url_1.URL(proxy) : proxy; | ||
this.proxy = typeof proxy === 'string' ? new url_1.URL(proxy) : proxy; | ||
this.proxyHeaders = opts?.headers ?? {}; | ||
@@ -58,0 +58,0 @@ debug('Creating new HttpsProxyAgent instance: %o', this.proxy.href); |
{ | ||
"name": "https-proxy-agent", | ||
"version": "7.0.3", | ||
"version": "7.0.4", | ||
"description": "An HTTP(s) proxy `http.Agent` implementation for HTTPS", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
35256