@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.
Files changed (34) hide show
  1. package/api/mablApiClient.js +72 -53
  2. package/api/mablApiClientFactory.js +3 -3
  3. package/browserLauncher/playwrightBrowserLauncher/playwrightBrowserLauncher.js +1 -0
  4. package/browserLauncher/playwrightBrowserLauncher/playwrightDom.js +77 -39
  5. package/browserLauncher/playwrightBrowserLauncher/playwrightFrame.js +4 -0
  6. package/browserLauncher/playwrightBrowserLauncher/playwrightPage.js +1 -1
  7. package/cli.js +2 -0
  8. package/commands/config/config_cmds/configKeys.js +12 -1
  9. package/commands/config/config_cmds/set.js +6 -0
  10. package/commands/constants.js +3 -2
  11. package/commands/flows/flows_cmds/export.js +1 -1
  12. package/commands/internal/internal.js +6 -0
  13. package/commands/link-agents/link-agents_cmds/list.js +131 -0
  14. package/commands/link-agents/link-agents_cmds/terminate.js +31 -0
  15. package/commands/tests/testsUtil.js +18 -2
  16. package/commands/tests/tests_cmds/export.js +1 -1
  17. package/core/messaging/messaging.js +11 -1
  18. package/domUtil/index.js +1 -1
  19. package/domUtil/index.js.LICENSE.txt +2 -2
  20. package/env/defaultEnv.js +2 -1
  21. package/env/dev.js +2 -1
  22. package/env/env.js +3 -1
  23. package/env/local.js +2 -1
  24. package/env/prod.js +2 -1
  25. package/execution/index.js +1 -1
  26. package/execution/index.js.LICENSE.txt +2 -2
  27. package/mablscript/steps/SyntheticStep.js +20 -0
  28. package/mablscriptFind/index.js +1 -1
  29. package/mablscriptFind/index.js.LICENSE.txt +2 -2
  30. package/package.json +1 -1
  31. package/providers/authenticationProvider.js +1 -1
  32. package/providers/cliConfigProvider.js +20 -8
  33. package/resources/mablFind.js +1 -1
  34. 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
- return axiosProxyConfig((await cliConfigProvider_1.CliConfigProvider.getCliConfig()).http);
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) {