@mablhq/mabl-cli 2.97.6 → 2.97.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/execution/index.js +1 -1
- package/http/MablHttpAgent.js +6 -2
- package/package.json +1 -1
package/http/MablHttpAgent.js
CHANGED
|
@@ -52,8 +52,12 @@ class MablHttpAgent extends agent_base_1.Agent {
|
|
|
52
52
|
const constructorParameters = await MablHttpAgent.getConstructorParameters(config.httpAgent, config.httpsAgent);
|
|
53
53
|
if (config.proxyConfig) {
|
|
54
54
|
const axiosConfig = (0, axiosProxyConfig_1.axiosProxyConfig)(config.proxyConfig);
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
if (axiosConfig.httpAgent) {
|
|
56
|
+
constructorParameters.httpAgent = axiosConfig.httpAgent;
|
|
57
|
+
}
|
|
58
|
+
if (axiosConfig.httpsAgent) {
|
|
59
|
+
constructorParameters.httpsAgent = axiosConfig.httpsAgent;
|
|
60
|
+
}
|
|
57
61
|
}
|
|
58
62
|
return new MablHttpAgent(constructorParameters.httpAgent, constructorParameters.httpsAgent);
|
|
59
63
|
}
|