From 5614b645d284aac96eb26e10299af6ee4cedad6b Mon Sep 17 00:00:00 2001 From: Yadd Date: Fri, 8 Nov 2024 04:35:57 +0000 Subject: [PATCH] fix for node-proxy >= 2 Forwarded: not-needed Last-Update: 2023-11-23 Gbp-Pq: Name fix-for-proxy-2.patch --- test/proxy-agent.js | 2 +- test/proxy.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/proxy-agent.js b/test/proxy-agent.js index e6b3df3..a45a568 100644 --- a/test/proxy-agent.js +++ b/test/proxy-agent.js @@ -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) diff --git a/test/proxy.js b/test/proxy.js index d6d8d42..6858247 100644 --- 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) -- 2.30.2