@mablhq/mabl-cli 1.21.7 → 1.22.1
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/api/mablApiClient.js +72 -53
- package/api/mablApiClientFactory.js +3 -3
- package/browserLauncher/playwrightBrowserLauncher/playwrightBrowserLauncher.js +1 -0
- package/browserLauncher/playwrightBrowserLauncher/playwrightDom.js +77 -39
- package/browserLauncher/playwrightBrowserLauncher/playwrightFrame.js +4 -0
- package/browserLauncher/playwrightBrowserLauncher/playwrightPage.js +1 -1
- package/cli.js +2 -0
- package/commands/config/config_cmds/configKeys.js +12 -1
- package/commands/config/config_cmds/set.js +6 -0
- package/commands/constants.js +3 -2
- package/commands/flows/flows_cmds/export.js +1 -1
- package/commands/internal/internal.js +6 -0
- package/commands/link-agents/link-agents_cmds/list.js +131 -0
- package/commands/link-agents/link-agents_cmds/terminate.js +31 -0
- package/commands/tests/testsUtil.js +18 -2
- package/commands/tests/tests_cmds/export.js +1 -1
- package/core/messaging/messaging.js +11 -1
- package/domUtil/index.js +1 -1
- package/domUtil/index.js.LICENSE.txt +2 -2
- package/env/defaultEnv.js +2 -1
- package/env/dev.js +2 -1
- package/env/env.js +3 -1
- package/env/local.js +2 -1
- package/env/prod.js +2 -1
- package/execution/index.js +1 -1
- package/execution/index.js.LICENSE.txt +2 -2
- package/mablscript/steps/SyntheticStep.js +20 -0
- package/mablscriptFind/index.js +1 -1
- package/mablscriptFind/index.js.LICENSE.txt +2 -2
- package/package.json +1 -1
- package/providers/authenticationProvider.js +1 -1
- package/providers/cliConfigProvider.js +20 -8
- package/resources/mablFind.js +1 -1
- package/util/httpUtil.js +3 -2
package/util/httpUtil.js
CHANGED
|
@@ -31,8 +31,9 @@ const https_proxy_agent_1 = require("https-proxy-agent");
|
|
|
31
31
|
exports.USER_AGENT = `${(0, pureUtil_1.getCliName)()}@${(0, pureUtil_1.getCliVersion)()}`;
|
|
32
32
|
exports.USER_AGENT_HEADER = 'User-Agent';
|
|
33
33
|
exports.EXECUTION_ENGINE_SSL_VERIFY = false;
|
|
34
|
-
async function currentProxyConfig() {
|
|
35
|
-
|
|
34
|
+
async function currentProxyConfig(mode = 'mabl') {
|
|
35
|
+
const httpConfig = (await cliConfigProvider_1.CliConfigProvider.getCliConfig()).http;
|
|
36
|
+
return axiosProxyConfig(mode === 'test' ? httpConfig === null || httpConfig === void 0 ? void 0 : httpConfig.test : httpConfig === null || httpConfig === void 0 ? void 0 : httpConfig.mabl);
|
|
36
37
|
}
|
|
37
38
|
exports.currentProxyConfig = currentProxyConfig;
|
|
38
39
|
function axiosProxyConfig(httpConfig) {
|