fix for node-proxy >= 2
authorYadd <yadd@debian.org>
Fri, 8 Nov 2024 04:35:57 +0000 (04:35 +0000)
committerPeter Michael Green <plugwash@raspbian.org>
Fri, 8 Nov 2024 04:35:57 +0000 (04:35 +0000)
Forwarded: not-needed
Last-Update: 2023-11-23

Gbp-Pq: Name fix-for-proxy-2.patch

test/proxy-agent.js
test/proxy.js

index e6b3df3b9e59b285baf476fb67a5bc332ddddeb9..a45a56802f45376749b8dd37695918a43fea60ac 100644 (file)
@@ -10,7 +10,7 @@ const ProxyAgent = require('../lib/proxy-agent')
 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)
index d6d8d42f17d75f78ff60ae707324d4c2da332eac..68582472b81a36c73138101a1f7c23b1a05d758c 100644 (file)
@@ -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)