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

package info (click to toggle)
node-jsdom 20.0.3%2B~cs124.18.21-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 31,216 kB
  • sloc: javascript: 103,061; xml: 32,816; python: 26; makefile: 12; sh: 11
file content (18 lines) | stat: -rw-r--r-- 714 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: fir for node-https-proxy-agent >= 7
Author: Yadd <yadd@debian.org>
Forwarded: not-needed
Last-Update: 2023-11-23

--- a/lib/jsdom/living/helpers/agent-factory.js
+++ b/lib/jsdom/living/helpers/agent-factory.js
@@ -2,8 +2,8 @@
 const http = require("http");
 const https = require("https");
 const { parse: parseURLToNodeOptions } = require("url");
-const HttpProxyAgent = require("http-proxy-agent");
-const HttpsProxyAgent = require("https-proxy-agent");
+const {HttpProxyAgent} = require("http-proxy-agent");
+const {HttpsProxyAgent} = require("https-proxy-agent");
 
 module.exports = function agentFactory(proxy, rejectUnauthorized) {
   const agentOpts = { keepAlive: true, rejectUnauthorized };