Socket
Socket
Sign inDemoInstall

http-proxy-agent

Package Overview
Dependencies
3
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.0.1 to 7.0.2

6

./dist/index.js

@@ -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 debug = (0, debug_1.default)('http-proxy-agent');

@@ -45,3 +45,3 @@ /**

super(opts);
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 ?? {};

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

const base = `${protocol}//${hostname}`;
const url = new node_url_1.URL(req.path, base);
const url = new url_1.URL(req.path, base);
if (opts.port !== 80) {

@@ -76,0 +76,0 @@ url.port = String(opts.port);

@@ -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 debug = (0, debug_1.default)('http-proxy-agent');

@@ -45,3 +45,3 @@ /**

super(opts);
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 ?? {};

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

const base = `${protocol}//${hostname}`;
const url = new node_url_1.URL(req.path, base);
const url = new url_1.URL(req.path, base);
if (opts.port !== 80) {

@@ -76,0 +76,0 @@ url.port = String(opts.port);

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

@@ -35,4 +35,4 @@ "main": "./dist/index.js",

"typescript": "^5.0.4",
"tsconfig": "0.0.0",
"proxy": "2.1.1"
"proxy": "2.1.1",
"tsconfig": "0.0.0"
},

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

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