Socket
Socket
Sign inDemoInstall

proxy-agent

Package Overview
Dependencies
42
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.2.0 to 6.2.1

11

./dist/index.js

@@ -89,3 +89,10 @@ "use strict";

const { secureEndpoint } = opts;
const protocol = secureEndpoint ? 'https:' : 'http:';
const isWebSocket = req.getHeader('upgrade') === 'websocket';
const protocol = secureEndpoint
? isWebSocket
? 'wss:'
: 'https:'
: isWebSocket
? 'ws:'
: 'http:';
const host = req.getHeader('host');

@@ -109,3 +116,3 @@ const url = new URL(req.path, `${protocol}//${host}`).href;

}
const ctor = exports.proxies[proxyProto][secureEndpoint ? 1 : 0];
const ctor = exports.proxies[proxyProto][secureEndpoint || isWebSocket ? 1 : 0];
// @ts-expect-error meh…

@@ -112,0 +119,0 @@ agent = new ctor(proxy, this.connectOpts);

@@ -89,3 +89,10 @@ "use strict";

const { secureEndpoint } = opts;
const protocol = secureEndpoint ? 'https:' : 'http:';
const isWebSocket = req.getHeader('upgrade') === 'websocket';
const protocol = secureEndpoint
? isWebSocket
? 'wss:'
: 'https:'
: isWebSocket
? 'ws:'
: 'http:';
const host = req.getHeader('host');

@@ -109,3 +116,3 @@ const url = new URL(req.path, `${protocol}//${host}`).href;

}
const ctor = exports.proxies[proxyProto][secureEndpoint ? 1 : 0];
const ctor = exports.proxies[proxyProto][secureEndpoint || isWebSocket ? 1 : 0];
// @ts-expect-error meh…

@@ -112,0 +119,0 @@ agent = new ctor(proxy, this.connectOpts);

16

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

@@ -29,8 +29,8 @@ "main": "./dist/index.js",

"dependencies": {
"agent-base": "^7.0.1",
"agent-base": "^7.0.2",
"debug": "^4.3.4",
"http-proxy-agent": "^6.0.1",
"https-proxy-agent": "^6.1.0",
"http-proxy-agent": "^7.0.0",
"https-proxy-agent": "^7.0.0",
"lru-cache": "^7.14.1",
"pac-proxy-agent": "^6.0.2",
"pac-proxy-agent": "^6.0.3",
"proxy-from-env": "^1.1.0",

@@ -45,3 +45,4 @@ "socks-proxy-agent": "^8.0.1"

"@types/proxy-from-env": "^1.0.1",
"async-listen": "^2.1.0",
"@types/ws": "^8.5.4",
"async-listen": "^3.0.0",
"jest": "^29.5.0",

@@ -51,3 +52,4 @@ "socksv5": "github:TooTallNate/socksv5#fix/dstSock-close-event",

"typescript": "^5.0.4",
"proxy": "2.0.1",
"ws": "^8.13.0",
"proxy": "2.1.1",
"tsconfig": "0.0.0"

@@ -54,0 +56,0 @@ },

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc