A big commit with a bunch of node modules so I could run puppeteer for Walmart. Added some todos and Headway's templates.
This commit is contained in:
5
Scripts/node_modules/https-proxy-agent/dist/index.js
generated
vendored
5
Scripts/node_modules/https-proxy-agent/dist/index.js
generated
vendored
@ -32,6 +32,7 @@ const tls = __importStar(require("tls"));
|
||||
const assert_1 = __importDefault(require("assert"));
|
||||
const debug_1 = __importDefault(require("debug"));
|
||||
const agent_base_1 = require("agent-base");
|
||||
const url_1 = require("url");
|
||||
const parse_proxy_response_1 = require("./parse-proxy-response");
|
||||
const debug = (0, debug_1.default)('https-proxy-agent');
|
||||
/**
|
||||
@ -50,7 +51,7 @@ class HttpsProxyAgent extends agent_base_1.Agent {
|
||||
constructor(proxy, opts) {
|
||||
super(opts);
|
||||
this.options = { path: undefined };
|
||||
this.proxy = typeof proxy === 'string' ? new URL(proxy) : proxy;
|
||||
this.proxy = typeof proxy === 'string' ? new url_1.URL(proxy) : proxy;
|
||||
this.proxyHeaders = opts?.headers ?? {};
|
||||
debug('Creating new HttpsProxyAgent instance: %o', this.proxy.href);
|
||||
// Trim off the brackets from IPv6 addresses
|
||||
@ -84,7 +85,7 @@ class HttpsProxyAgent extends agent_base_1.Agent {
|
||||
const servername = this.connectOpts.servername || this.connectOpts.host;
|
||||
socket = tls.connect({
|
||||
...this.connectOpts,
|
||||
servername: servername && net.isIP(servername) ? undefined : servername
|
||||
servername: servername && net.isIP(servername) ? undefined : servername,
|
||||
});
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user