@mablhq/mabl-cli 1.50.4 → 1.50.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.
|
@@ -6,7 +6,7 @@ const util_1 = require("../../commandUtil/util");
|
|
|
6
6
|
const constants_1 = require("../../constants");
|
|
7
7
|
const pureUtil_1 = require("../../../util/pureUtil");
|
|
8
8
|
const utils_1 = require("../utils");
|
|
9
|
-
const
|
|
9
|
+
const domUtil_1 = require("../../../domUtil");
|
|
10
10
|
exports.command = `update <${constants_1.CommandArgId}> <${constants_1.CommandArgInput}>`;
|
|
11
11
|
exports.describe = 'Update a mabl DataTable';
|
|
12
12
|
exports.builder = (yargs) => {
|
|
@@ -70,7 +70,7 @@ function buildUpdateRequest(scenarios, dataTable) {
|
|
|
70
70
|
throw Error('All scenarios must have the same number of variables.');
|
|
71
71
|
}
|
|
72
72
|
(_c = scenario.variables) === null || _c === void 0 ? void 0 : _c.forEach((variable, index) => {
|
|
73
|
-
if (!(0,
|
|
73
|
+
if (!(0, domUtil_1.isValidUserVariableName)(variable.name)) {
|
|
74
74
|
throw Error(`Invalid variable name: ${variable.name}. Variable names must start with a letter or underscore (_) followed by letters, numbers, and underscores and cannot be "user", "web", or "mail"`);
|
|
75
75
|
}
|
|
76
76
|
if (variable.name !== validationVariables[index].name) {
|