Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

https-proxy-agent

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

https-proxy-agent - npm Package Compare versions

Comparing version 7.0.2 to 7.0.3

LICENSE

5

./dist/index.js

@@ -35,2 +35,3 @@ "use strict";

const agent_base_1 = require("agent-base");
const node_url_1 = require("node:url");
const parse_proxy_response_1 = require("./parse-proxy-response");

@@ -54,3 +55,3 @@ const debug = (0, debug_1.default)('https-proxy-agent');

this.options = { path: undefined };
this.proxy = typeof proxy === 'string' ? new URL(proxy) : proxy;
this.proxy = typeof proxy === 'string' ? new node_url_1.URL(proxy) : proxy;
this.proxyHeaders = opts?.headers ?? {};

@@ -89,3 +90,3 @@ debug('Creating new HttpsProxyAgent instance: %o', this.proxy.href);

...this.connectOpts,
servername: servername && net.isIP(servername) ? undefined : servername
servername: servername && net.isIP(servername) ? undefined : servername,
});

@@ -92,0 +93,0 @@ }

3

dist/index.d.ts

@@ -8,4 +8,5 @@ /// <reference types="node" />

import * as http from 'http';
import { Agent, AgentConnectOpts } from 'agent-base';
import { URL } from 'node:url';
import type { OutgoingHttpHeaders } from 'http';
import { Agent, AgentConnectOpts } from 'agent-base';
type Protocol<T> = T extends `${infer Protocol}:${infer _}` ? Protocol : never;

@@ -12,0 +13,0 @@ type ConnectOptsMap = {

@@ -35,2 +35,3 @@ "use strict";

const agent_base_1 = require("agent-base");
const node_url_1 = require("node:url");
const parse_proxy_response_1 = require("./parse-proxy-response");

@@ -54,3 +55,3 @@ const debug = (0, debug_1.default)('https-proxy-agent');

this.options = { path: undefined };
this.proxy = typeof proxy === 'string' ? new URL(proxy) : proxy;
this.proxy = typeof proxy === 'string' ? new node_url_1.URL(proxy) : proxy;
this.proxyHeaders = opts?.headers ?? {};

@@ -89,3 +90,3 @@ debug('Creating new HttpsProxyAgent instance: %o', this.proxy.href);

...this.connectOpts,
servername: servername && net.isIP(servername) ? undefined : servername
servername: servername && net.isIP(servername) ? undefined : servername,
});

@@ -92,0 +93,0 @@ }

{
"name": "https-proxy-agent",
"version": "7.0.2",
"version": "7.0.3",
"description": "An HTTP(s) proxy `http.Agent` implementation for HTTPS",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

@@ -70,29 +70,2 @@ https-proxy-agent

License
-------
(The MIT License)
Copyright (c) 2013 Nathan Rajlich &lt;nathan@tootallnate.net&gt;
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
[CONNECT]: http://en.wikipedia.org/wiki/HTTP_tunnel#HTTP_CONNECT_Tunneling

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc