Skip to content

Commit 6b77cf1

Browse files
authored
Merge pull request #84 from artemmolotov/patch-1
Fix the use of the "socks-proxy-agent" >=6.2.0
2 parents d5febe0 + 7f4263a commit 6b77cf1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/options.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const HttpProxyAgent = require("http-proxy-agent");
22
const HttpsProxyAgent = require("https-proxy-agent");
3-
const SocksProxyAgent = require("socks-proxy-agent");
3+
const { SocksProxyAgent } = require("socks-proxy-agent");
44

55
// Set some extra headers because Puppeteer doesn't capture all request headers
66
// Related: https://github.com/puppeteer/puppeteer/issues/5364
@@ -36,4 +36,4 @@ const setAgent = (proxy) => {
3636
};
3737
};
3838

39-
module.exports = {setHeaders, setAgent};
39+
module.exports = {setHeaders, setAgent};

0 commit comments

Comments
 (0)