@amplitude/ampli
Version:
Amplitude CLI
10 lines (9 loc) • 473 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.createHttpProxyAgent = void 0;
const https_proxy_agent_1 = require("https-proxy-agent");
function createHttpProxyAgent() {
const proxyUrl = process.env.https_proxy || process.env.HTTPS_PROXY || process.env.http_proxy || process.env.HTTP_PROXY;
return proxyUrl ? new https_proxy_agent_1.HttpsProxyAgent(proxyUrl) : undefined;
}
exports.createHttpProxyAgent = createHttpProxyAgent;