@mablhq/mabl-cli 1.20.1 → 1.20.9
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 +6 -4
- package/api/mablApiClient.js +7 -3
- package/api/mablApiClientFactory.js +12 -11
- package/browserLauncher/playwrightBrowserLauncher/playwrightBrowser.js +12 -0
- package/browserLauncher/playwrightBrowserLauncher/playwrightBrowserLauncher.js +2 -6
- package/browserLauncher/playwrightBrowserLauncher/playwrightFrame.js +1 -1
- package/browserLauncher/playwrightBrowserLauncher/playwrightPage.js +0 -2
- package/browserLauncher/types.js +1 -0
- package/execution/index.js +1 -1
- package/mablscript/diffing/diffingUtil.js +9 -9
- package/package.json +2 -2
- package/providers/cliConfigProvider.js +1 -1
- package/util/httpUtil.js +4 -7
|
@@ -63,9 +63,7 @@ function flattenTestFlowsIntoSteps(flows, flowConfig) {
|
|
|
63
63
|
}
|
|
64
64
|
function flattenTestFlowsIntoLineDiffingFormat(flows, flowConfig) {
|
|
65
65
|
const flattenedSteps = flattenTestFlowsIntoSteps(flows, flowConfig);
|
|
66
|
-
const diffingFormat = flattenedSteps
|
|
67
|
-
.map((step) => step.toLineDiffFormat())
|
|
68
|
-
.join('\n');
|
|
66
|
+
const diffingFormat = formatLineDiffString(flattenedSteps.map((step) => step.toLineDiffFormat()).join('\n'));
|
|
69
67
|
return { flattenedSteps, diffingFormat };
|
|
70
68
|
}
|
|
71
69
|
exports.flattenTestFlowsIntoLineDiffingFormat = flattenTestFlowsIntoLineDiffingFormat;
|
|
@@ -112,13 +110,9 @@ exports.diffTests = diffTests;
|
|
|
112
110
|
function diffFlows(flow1, flow2) {
|
|
113
111
|
var _a, _b;
|
|
114
112
|
const flow1Steps = (0, importer_1.parseMablScriptIntoSteps)(flow1);
|
|
115
|
-
const formattedFlow1Steps = flow1Steps
|
|
116
|
-
.map((step) => step.toLineDiffFormat())
|
|
117
|
-
.join('\n');
|
|
113
|
+
const formattedFlow1Steps = formatLineDiffString(flow1Steps.map((step) => step.toLineDiffFormat()).join('\n'));
|
|
118
114
|
const flow2Steps = (0, importer_1.parseMablScriptIntoSteps)(flow2);
|
|
119
|
-
const formattedFlow2Steps = flow2Steps
|
|
120
|
-
.map((step) => step.toLineDiffFormat())
|
|
121
|
-
.join('\n');
|
|
115
|
+
const formattedFlow2Steps = formatLineDiffString(flow2Steps.map((step) => step.toLineDiffFormat()).join('\n'));
|
|
122
116
|
const flattenedDiffs = lineModeDiff(formattedFlow1Steps, formattedFlow2Steps);
|
|
123
117
|
const stepDiffs = convertDiffingFormatIntoDiffingSteps(flattenedDiffs, flow1Steps, flow2Steps);
|
|
124
118
|
const parametersDiff = diffFlowVariables(flow1.parameters, flow2.parameters);
|
|
@@ -144,3 +138,9 @@ function flattenFlowVariables(flowVariables) {
|
|
|
144
138
|
var _a;
|
|
145
139
|
return ((_a = flowVariables === null || flowVariables === void 0 ? void 0 : flowVariables.sort((a, b) => a.name.localeCompare(b.name)).map((parameter) => (0, fast_json_stable_stringify_1.default)(parameter)).join('\n')) !== null && _a !== void 0 ? _a : '');
|
|
146
140
|
}
|
|
141
|
+
function formatLineDiffString(lineDiff) {
|
|
142
|
+
if (!lineDiff) {
|
|
143
|
+
return lineDiff;
|
|
144
|
+
}
|
|
145
|
+
return lineDiff + '\n';
|
|
146
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mablhq/mabl-cli",
|
|
3
|
-
"version": "1.20.
|
|
3
|
+
"version": "1.20.9",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "The official mabl command line interface tool",
|
|
6
6
|
"main": "index.js",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"retry": "0.13.1",
|
|
79
79
|
"sanitize-html": "2.3.3",
|
|
80
80
|
"serve-handler": "6.1.3",
|
|
81
|
-
"socks-proxy-agent": "
|
|
81
|
+
"socks-proxy-agent": "6.1.1",
|
|
82
82
|
"stoppable": "1.1.0",
|
|
83
83
|
"strip-ansi": "6.0.0",
|
|
84
84
|
"tmp-promise": "3.0.2",
|
|
@@ -78,7 +78,7 @@ async function getEncryptionKey() {
|
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
catch (error) {
|
|
81
|
-
loggingProvider_1.logger.warn(`
|
|
81
|
+
loggingProvider_1.logger.warn(`Creating finite login session because login auto-renewal is unsupported on this system.`);
|
|
82
82
|
isKeytarAvailable = false;
|
|
83
83
|
}
|
|
84
84
|
}
|
package/util/httpUtil.js
CHANGED
|
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.maybeGetModifiedAxiosConfigForHttpProxy = exports.proxyUrlToPortConfig = exports.axiosProxyConfig = exports.currentProxyConfig = exports.
|
|
26
|
+
exports.maybeGetModifiedAxiosConfigForHttpProxy = exports.proxyUrlToPortConfig = exports.axiosProxyConfig = exports.currentProxyConfig = exports.EXECUTION_ENGINE_SSL_VERIFY = exports.USER_AGENT_HEADER = exports.USER_AGENT = void 0;
|
|
27
27
|
const cliConfigProvider_1 = require("../providers/cliConfigProvider");
|
|
28
28
|
const https = __importStar(require("https"));
|
|
29
29
|
const pureUtil_1 = require("./pureUtil");
|
|
@@ -31,10 +31,6 @@ 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
|
-
function setAgentSslVerification(agent, verifySsl) {
|
|
35
|
-
agent.options.rejectUnauthorized = verifySsl;
|
|
36
|
-
}
|
|
37
|
-
exports.setAgentSslVerification = setAgentSslVerification;
|
|
38
34
|
async function currentProxyConfig() {
|
|
39
35
|
return axiosProxyConfig((await cliConfigProvider_1.CliConfigProvider.getCliConfig()).http);
|
|
40
36
|
}
|
|
@@ -47,8 +43,9 @@ function axiosProxyConfig(httpConfig) {
|
|
|
47
43
|
},
|
|
48
44
|
};
|
|
49
45
|
if (!httpConfig.sslVerify) {
|
|
50
|
-
config.httpsAgent = new https.Agent(
|
|
51
|
-
|
|
46
|
+
config.httpsAgent = new https.Agent({
|
|
47
|
+
rejectUnauthorized: false,
|
|
48
|
+
});
|
|
52
49
|
}
|
|
53
50
|
if ((_a = httpConfig.proxyHost) === null || _a === void 0 ? void 0 : _a.href) {
|
|
54
51
|
config.proxy = proxyUrlToPortConfig(httpConfig.proxyHost);
|