@mablhq/mabl-cli 2.53.0 → 2.55.0
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/types.js +6 -1
- package/browserLauncher/index.js +1 -1
- package/commands/config/config_cmds/configKeys.js +1 -6
- package/commands/config/config_cmds/set.js +3 -2
- package/core/execution/ApiTestUtils.js +1 -1
- package/execution/index.js +2 -2
- package/package.json +2 -2
- package/providers/cliConfigProvider.js +1 -1
- package/proxy/index.js +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.isValidProxyMode = exports.proxyModes = exports.validConfigKeyChoices = exports.configKeys = void 0;
|
|
4
4
|
exports.configKeys = Object.freeze({
|
|
5
5
|
browserPath: 'browser.path',
|
|
6
6
|
enableSourceControlMetadataCollection: 'alpha.scm_metadata.enable',
|
|
@@ -17,12 +17,7 @@ exports.proxyModes = [
|
|
|
17
17
|
'all',
|
|
18
18
|
'none',
|
|
19
19
|
];
|
|
20
|
-
exports.proxyTypes = ['legacy', 'current'];
|
|
21
20
|
function isValidProxyMode(value) {
|
|
22
21
|
return exports.proxyModes.indexOf(value) !== -1;
|
|
23
22
|
}
|
|
24
23
|
exports.isValidProxyMode = isValidProxyMode;
|
|
25
|
-
function isValidProxyType(value) {
|
|
26
|
-
return exports.proxyTypes.indexOf(value) !== -1;
|
|
27
|
-
}
|
|
28
|
-
exports.isValidProxyType = isValidProxyType;
|
|
@@ -6,6 +6,7 @@ const mablApiClientFactory_1 = require("../../../api/mablApiClientFactory");
|
|
|
6
6
|
const list_1 = require("./list");
|
|
7
7
|
const loggingProvider_1 = require("../../../providers/logging/loggingProvider");
|
|
8
8
|
const configKeys_1 = require("./configKeys");
|
|
9
|
+
const types_1 = require("../../../api/types");
|
|
9
10
|
exports.configKeyCommandArg = 'config-key';
|
|
10
11
|
const configValue = 'config-value';
|
|
11
12
|
exports.command = `set <${exports.configKeyCommandArg}> <${configValue}>`;
|
|
@@ -56,8 +57,8 @@ async function setConfig(parsed) {
|
|
|
56
57
|
await cliConfigProvider_1.CliConfigProvider.setConfigProperty(key, value);
|
|
57
58
|
break;
|
|
58
59
|
case configKeys_1.configKeys.proxyType:
|
|
59
|
-
if (!(0,
|
|
60
|
-
throw new Error(`Invalid proxy type. The value must be one of ${JSON.stringify(
|
|
60
|
+
if (!(0, types_1.isValidProxyType)(value)) {
|
|
61
|
+
throw new Error(`Invalid proxy type. The value must be one of ${JSON.stringify(types_1.proxyTypes)}`);
|
|
61
62
|
}
|
|
62
63
|
await cliConfigProvider_1.CliConfigProvider.setConfigProperty(key, value);
|
|
63
64
|
break;
|
|
@@ -33,7 +33,7 @@ const RESPONSE_PROPERTIES = {
|
|
|
33
33
|
exports.ASSERT_TARGETS = [
|
|
34
34
|
{ label: 'Header', value: newman_types_1.AssertionTarget.Header },
|
|
35
35
|
{ label: 'Status', value: newman_types_1.AssertionTarget.Status },
|
|
36
|
-
{ label: 'Size', value: newman_types_1.AssertionTarget.Size },
|
|
36
|
+
{ label: 'Size (bytes)', value: newman_types_1.AssertionTarget.Size },
|
|
37
37
|
{ label: 'JSON Body', value: newman_types_1.AssertionTarget.JSONBody },
|
|
38
38
|
{ label: 'Text Body', value: newman_types_1.AssertionTarget.TextBody },
|
|
39
39
|
];
|