Skip to content

Commit

Permalink
Merge pull request #84 from artemmolotov/patch-1
Browse files Browse the repository at this point in the history
Fix the use of the "socks-proxy-agent" >=6.2.0
  • Loading branch information
Cuadrix authored Nov 3, 2022
2 parents d5febe0 + 7f4263a commit 6b77cf1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/options.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const HttpProxyAgent = require("http-proxy-agent");
const HttpsProxyAgent = require("https-proxy-agent");
const SocksProxyAgent = require("socks-proxy-agent");
const { SocksProxyAgent } = require("socks-proxy-agent");

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

module.exports = {setHeaders, setAgent};
module.exports = {setHeaders, setAgent};

0 comments on commit 6b77cf1

Please sign in to comment.