@sap-ux/cf-deploy-config-inquirer 0.3.14 → 0.3.16
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.
|
@@ -80,9 +80,10 @@ function validateMtaId(input, previousAnswers) {
|
|
|
80
80
|
return (0, i18n_1.t)('errors.noMtaIdError');
|
|
81
81
|
}
|
|
82
82
|
if (input.length > 100) {
|
|
83
|
-
return (0, i18n_1.t)('errors.
|
|
83
|
+
return (0, i18n_1.t)('errors.mtaIdLengthError');
|
|
84
84
|
}
|
|
85
|
-
|
|
85
|
+
// The MTA ID must start with a letter (a–z, A–Z). After the first character, any combination of letters, numbers, underscores (_), hyphens (-), or dots (.) is allowed.
|
|
86
|
+
const idPattern = /^[a-zA-Z][a-zA-Z0-9_\-.]*$/;
|
|
86
87
|
if (!idPattern.exec(input)) {
|
|
87
88
|
return (0, i18n_1.t)('errors.invalidMtaIdError');
|
|
88
89
|
}
|
|
@@ -34,7 +34,8 @@
|
|
|
34
34
|
"destinationNameLengthError": "Destination name cannot contain more than 200 characters",
|
|
35
35
|
"folderDoesNotExistError": "Folder path does not exist: {{- filePath}}",
|
|
36
36
|
"noMtaIdError": "MTA ID cannot be empty",
|
|
37
|
-
"
|
|
37
|
+
"mtaIdLengthError": "The MTA ID must not exceed 100 characters.",
|
|
38
|
+
"invalidMtaIdError": "The MTA ID must only contain letters, numbers, dashes, periods, and underscores. It cannot contain spaces or begin with a number.",
|
|
38
39
|
"mtaIdAlreadyExistError": "A folder with the same name already exists at {{- mtaPath}}",
|
|
39
40
|
"abapEnvsUnavailable": "ABAP environments are unavailable",
|
|
40
41
|
"errorScpAbapSourceDiscoveryCheckLog": "Check the Application Wizard console output view for details.",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-ux/cf-deploy-config-inquirer",
|
|
3
3
|
"description": "Prompts module that can provide prompts for cf deployment config writer",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.16",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"i18next": "23.5.1",
|
|
23
23
|
"inquirer-autocomplete-prompt": "2.0.1",
|
|
24
|
-
"@sap-ux/inquirer-common": "0.7.
|
|
24
|
+
"@sap-ux/inquirer-common": "0.7.14",
|
|
25
25
|
"@sap-ux/btp-utils": "1.1.0",
|
|
26
26
|
"@sap-ux/logger": "0.7.0"
|
|
27
27
|
},
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@types/inquirer-autocomplete-prompt": "2.0.1",
|
|
31
31
|
"@types/inquirer": "8.2.6",
|
|
32
32
|
"inquirer": "8.2.6",
|
|
33
|
-
"@sap-ux/project-input-validator": "0.6.
|
|
33
|
+
"@sap-ux/project-input-validator": "0.6.4"
|
|
34
34
|
},
|
|
35
35
|
"engines": {
|
|
36
36
|
"node": ">=20.x"
|