@mablhq/mabl-cli 1.26.0 → 1.26.5
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/basicApiClient.js +1 -0
- package/api/entities/Browser.js +0 -1
- package/api/mablApiClientFactory.js +5 -4
- package/browserLauncher/playwrightBrowserLauncher/playwrightBrowserLauncher.js +1 -13
- package/commands/browserTypes.js +8 -19
- package/commands/config/config_cmds/configKeys.js +7 -1
- package/commands/config/config_cmds/set.js +6 -0
- package/commands/constants.js +5 -6
- package/commands/tests/testsUtil.js +43 -41
- package/commands/tests/tests_cmds/run-cloud.js +2 -2
- package/commands/tests/tests_cmds/run.js +0 -2
- package/domUtil/index.js +1 -1
- package/execution/index.js +1 -1
- package/mablscriptFind/index.js +1 -1
- package/package.json +4 -3
- package/providers/cliConfigProvider.js +6 -0
- package/resources/mablFind.js +1 -1
- package/util/httpUtil.js +32 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mablhq/mabl-cli",
|
|
3
|
-
"version": "1.26.
|
|
3
|
+
"version": "1.26.5",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "The official mabl command line interface tool",
|
|
6
6
|
"main": "index.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"postinstall": "node ./util/postInstallMessage.js"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@playwright/test": "1.
|
|
28
|
+
"@playwright/test": "1.23.1",
|
|
29
29
|
"@types/fs-extra": "8.1.1",
|
|
30
30
|
"@types/serve-handler": "6.1.0",
|
|
31
31
|
"@types/tmp": "0.2.0",
|
|
@@ -53,6 +53,7 @@
|
|
|
53
53
|
"fs-extra": "8.1.0",
|
|
54
54
|
"git-repo-info": "2.1.1",
|
|
55
55
|
"glob": "7.1.6",
|
|
56
|
+
"hpagent": "1.0.0",
|
|
56
57
|
"https-proxy-agent": "5.0.0",
|
|
57
58
|
"humanize-duration": "3.23.0",
|
|
58
59
|
"inquirer": "7.1.0",
|
|
@@ -68,7 +69,7 @@
|
|
|
68
69
|
"newman": "5.3.2",
|
|
69
70
|
"open": "6.4.0",
|
|
70
71
|
"ora": "4.0.4",
|
|
71
|
-
"playwright-core": "1.
|
|
72
|
+
"playwright-core": "1.23.1",
|
|
72
73
|
"pluralize": "8.0.0",
|
|
73
74
|
"pngjs": "6.0.0",
|
|
74
75
|
"portfinder": "1.0.28",
|
|
@@ -140,6 +140,10 @@ class CliConfigProvider {
|
|
|
140
140
|
const proxyMode = await this.getConfigProperty(configKeys_1.configKeys.proxyMode);
|
|
141
141
|
return (0, configKeys_1.isValidProxyMode)(proxyMode) ? proxyMode : 'mabl';
|
|
142
142
|
}
|
|
143
|
+
static async getProxyType() {
|
|
144
|
+
const proxyType = await this.getConfigProperty(configKeys_1.configKeys.proxyType);
|
|
145
|
+
return (0, configKeys_1.isValidProxyType)(proxyType) ? proxyType : 'legacy';
|
|
146
|
+
}
|
|
143
147
|
static getConfigProperty(key) {
|
|
144
148
|
return getValue(propertyKeyToStoredKey(key));
|
|
145
149
|
}
|
|
@@ -167,8 +171,10 @@ class CliConfigProvider {
|
|
|
167
171
|
accessTokenExpirationTimeMilliseconds: config.get(ACCESS_TOKEN_EXPIRATION_MILLISECONDS_NAME),
|
|
168
172
|
refreshTokenExpirationTimeMilliseconds: config.get(REFRESH_TOKEN_EXPIRATION_MILLISECONDS_NAME),
|
|
169
173
|
};
|
|
174
|
+
const proxyType = await this.getProxyType();
|
|
170
175
|
const httpConfig = {
|
|
171
176
|
sslVerify: httpUtil_1.EXECUTION_ENGINE_SSL_VERIFY,
|
|
177
|
+
proxyType,
|
|
172
178
|
};
|
|
173
179
|
const sslVerifyValue = await this.getConfigProperty(configKeys_1.configKeys.sslVerify);
|
|
174
180
|
if (sslVerifyValue !== undefined) {
|