@mablhq/mabl-cli 2.19.13 → 2.20.7
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/README.md +2 -2
- package/api/mablApiClient.js +2 -2
- package/commands/tests/tests_cmds/run-cloud.js +1 -1
- package/core/execution/PostmanUtils.js +53 -0
- package/core/execution/VariableUtils.js +144 -0
- package/execution/index.js +1 -1
- package/mablscript/steps/IfConditionStep.js +3 -1
- package/package.json +1 -1
- package/util/pureUtil.js +10 -1
|
@@ -56,7 +56,9 @@ class IfConditionStep extends MablStep_1.MablStep {
|
|
|
56
56
|
return result;
|
|
57
57
|
}
|
|
58
58
|
toYamlConditionDetails() {
|
|
59
|
-
const details = {
|
|
59
|
+
const details = {
|
|
60
|
+
...super.annotationsAsYml(),
|
|
61
|
+
};
|
|
60
62
|
if (this.conditionAction) {
|
|
61
63
|
details.condition =
|
|
62
64
|
AssertStep_1.fieldToAssertionStep[this.conditionAction.conditionAttribute];
|
package/package.json
CHANGED
package/util/pureUtil.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.getCaseInsensitiveProperty = exports.extractKeyCountsFromArgs = exports.getCliName = exports.getCliVersion = exports.stringifyIfPresent = exports.stringify = exports.isRejectedPromise = exports.isFulfilledPromise = exports.isWholeNumber = exports.isString = exports.isNullish = exports.isDefined = void 0;
|
|
26
|
+
exports.traverseAndReplaceStrings = exports.getCaseInsensitiveProperty = exports.extractKeyCountsFromArgs = exports.getCliName = exports.getCliVersion = exports.stringifyIfPresent = exports.stringify = exports.isRejectedPromise = exports.isFulfilledPromise = exports.isWholeNumber = exports.isString = exports.isNullish = exports.isDefined = void 0;
|
|
27
27
|
const fs = __importStar(require("fs"));
|
|
28
28
|
const path = __importStar(require("path"));
|
|
29
29
|
const possibleCliPackagePaths = Object.freeze([
|
|
@@ -144,3 +144,12 @@ function getCaseInsensitiveProperty(obj, key) {
|
|
|
144
144
|
return undefined;
|
|
145
145
|
}
|
|
146
146
|
exports.getCaseInsensitiveProperty = getCaseInsensitiveProperty;
|
|
147
|
+
function traverseAndReplaceStrings(obj, replace) {
|
|
148
|
+
return JSON.parse(JSON.stringify(obj, (_key, value) => {
|
|
149
|
+
if (typeof value === 'string') {
|
|
150
|
+
return replace(value);
|
|
151
|
+
}
|
|
152
|
+
return value;
|
|
153
|
+
}));
|
|
154
|
+
}
|
|
155
|
+
exports.traverseAndReplaceStrings = traverseAndReplaceStrings;
|