summaryrefslogtreecommitdiffstats
path: root/debian/patches/fix-for-proxy-2.patch
blob: 67c76874970ff8801e6636dabbcc2f665227884a (plain)
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
26
27
Description: fix for node-proxy >= 2
Author: Yadd <yadd@debian.org>
Forwarded: not-needed
Last-Update: 2023-11-23

--- a/test/proxy-agent.js
+++ b/test/proxy-agent.js
@@ -10,7 +10,7 @@
 const Pool = require('../lib/pool')
 const { createServer } = require('http')
 const https = require('https')
-const proxy = require('proxy')
+const proxy = require('proxy').createProxy
 
 test('should throw error when no uri is provided', (t) => {
   t.plan(2)
--- a/test/proxy.js
+++ b/test/proxy.js
@@ -3,7 +3,7 @@
 const { test } = require('tap')
 const { Client, Pool } = require('..')
 const { createServer } = require('http')
-const proxy = require('proxy')
+const proxy = require('proxy').createProxy
 
 test('connect through proxy', async (t) => {
   t.plan(3)