forked from olcxjas-softworks/LarpixClient
Update gitignore (sorry)
This commit is contained in:
parent
a8f8c4d7ad
commit
cca8b02fea
6604 changed files with 1219661 additions and 4 deletions
24
electron/node_modules/builder-util/out/nodeHttpExecutor.js
generated
vendored
Normal file
24
electron/node_modules/builder-util/out/nodeHttpExecutor.js
generated
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.httpExecutor = exports.NodeHttpExecutor = void 0;
|
||||
const builder_util_runtime_1 = require("builder-util-runtime");
|
||||
const http_1 = require("http");
|
||||
const http_proxy_agent_1 = require("http-proxy-agent");
|
||||
const https = require("https");
|
||||
const https_proxy_agent_1 = require("https-proxy-agent");
|
||||
class NodeHttpExecutor extends builder_util_runtime_1.HttpExecutor {
|
||||
// noinspection JSMethodCanBeStatic
|
||||
// noinspection JSUnusedGlobalSymbols
|
||||
createRequest(options, callback) {
|
||||
if (process.env["https_proxy"] !== undefined && options.protocol === "https:") {
|
||||
options.agent = new https_proxy_agent_1.HttpsProxyAgent(process.env["https_proxy"]);
|
||||
}
|
||||
else if (process.env["http_proxy"] !== undefined && options.protocol === "http:") {
|
||||
options.agent = new http_proxy_agent_1.HttpProxyAgent(process.env["http_proxy"]);
|
||||
}
|
||||
return (options.protocol === "http:" ? http_1.request : https.request)(options, callback);
|
||||
}
|
||||
}
|
||||
exports.NodeHttpExecutor = NodeHttpExecutor;
|
||||
exports.httpExecutor = new NodeHttpExecutor();
|
||||
//# sourceMappingURL=nodeHttpExecutor.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue