File: fix-for-https-proxy-agent-7.patch

package info (click to toggle)
npm 9.2.0~ds2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 319,232 kB
  • sloc: javascript: 166,352; sh: 194; makefile: 49; perl: 11
file content (25 lines) | stat: -rw-r--r-- 955 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: Yadd <yadd@debian.org>
Date: Sat, 22 Nov 2025 16:19:02 +0100
Subject: fix for node-https-proxy-agent >= 7

Forwarded: not-needed
Last-Update: 2023-11-23
---
 node_modules/make-fetch-happen/lib/agent.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/node_modules/make-fetch-happen/lib/agent.js b/node_modules/make-fetch-happen/lib/agent.js
index dd68492..7d871b5 100644
--- a/node_modules/make-fetch-happen/lib/agent.js
+++ b/node_modules/make-fetch-happen/lib/agent.js
@@ -169,8 +169,8 @@ const getAuth = u =>
 
 const getPath = u => u.pathname + u.search + u.hash
 
-const HttpProxyAgent = require('http-proxy-agent')
-const HttpsProxyAgent = require('https-proxy-agent')
+const {HttpProxyAgent} = require('http-proxy-agent')
+const {HttpsProxyAgent} = require('https-proxy-agent')
 const { SocksProxyAgent } = require('socks-proxy-agent')
 module.exports.getProxy = getProxy
 function getProxy (proxyUrl, opts, isHttps) {