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

proxy-agent

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

proxy-agent - npm Package Compare versions

Comparing version 6.3.0 to 6.3.1

5

./dist/index.js

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

const https = __importStar(require("https"));
const url_1 = require("url");
const lru_cache_1 = __importDefault(require("lru-cache"));

@@ -99,3 +100,3 @@ const agent_base_1 = require("agent-base");

const host = req.getHeader('host');
const url = new URL(req.path, `${protocol}//${host}`).href;
const url = new url_1.URL(req.path, `${protocol}//${host}`).href;
const proxy = this.getProxyForUrl(url);

@@ -112,3 +113,3 @@ if (!proxy) {

if (!agent) {
const proxyUrl = new URL(proxy);
const proxyUrl = new url_1.URL(proxy);
const proxyProto = proxyUrl.protocol.replace(':', '');

@@ -115,0 +116,0 @@ if (!isValidProtocol(proxyProto)) {

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

const https = __importStar(require("https"));
const url_1 = require("url");
const lru_cache_1 = __importDefault(require("lru-cache"));

@@ -99,3 +100,3 @@ const agent_base_1 = require("agent-base");

const host = req.getHeader('host');
const url = new URL(req.path, `${protocol}//${host}`).href;
const url = new url_1.URL(req.path, `${protocol}//${host}`).href;
const proxy = this.getProxyForUrl(url);

@@ -112,3 +113,3 @@ if (!proxy) {

if (!agent) {
const proxyUrl = new URL(proxy);
const proxyUrl = new url_1.URL(proxy);
const proxyProto = proxyUrl.protocol.replace(':', '');

@@ -115,0 +116,0 @@ if (!isValidProtocol(proxyProto)) {

8

package.json
{
"name": "proxy-agent",
"version": "6.3.0",
"version": "6.3.1",
"description": "Maps proxy protocols to `http.Agent` implementations",

@@ -32,7 +32,7 @@ "main": "./dist/index.js",

"http-proxy-agent": "^7.0.0",
"https-proxy-agent": "^7.0.0",
"https-proxy-agent": "^7.0.2",
"lru-cache": "^7.14.1",
"pac-proxy-agent": "^7.0.0",
"pac-proxy-agent": "^7.0.1",
"proxy-from-env": "^1.1.0",
"socks-proxy-agent": "^8.0.1"
"socks-proxy-agent": "^8.0.2"
},

@@ -39,0 +39,0 @@ "devDependencies": {

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