@sap-ux/odata-service-inquirer 2.9.5 → 2.9.8
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.
|
@@ -64,6 +64,9 @@ function getAbapOnPremSystemQuestions(systemNamePromptOptions, connectionValidat
|
|
|
64
64
|
if (prevAnswers?.[systemUrlPromptName]) {
|
|
65
65
|
const existingBackend = (0, utils_1.isBackendSystemKeyExisting)(utils_1.PromptState.backendSystemsCache, prevAnswers[systemUrlPromptName], client);
|
|
66
66
|
if (existingBackend) {
|
|
67
|
+
// Prevents further prompts by setting the client to invalid
|
|
68
|
+
// This is a temp workaround until multiple systems with the same url/client key is supported
|
|
69
|
+
sapClientRef.isValid = false;
|
|
67
70
|
return (0, i18n_1.t)('prompts.validationMessages.backendSystemExistsWarning', {
|
|
68
71
|
backendName: existingBackend.name
|
|
69
72
|
});
|
|
@@ -31,7 +31,7 @@ function getCredentialsPrompts(connectionValidator, promptNamespace, sapClient)
|
|
|
31
31
|
{
|
|
32
32
|
when: async () => {
|
|
33
33
|
authRequired = await connectionValidator.isAuthRequired();
|
|
34
|
-
return connectionValidator.systemAuthType === 'basic' && authRequired;
|
|
34
|
+
return (connectionValidator.systemAuthType === 'basic' && authRequired && (!sapClient || sapClient.isValid));
|
|
35
35
|
},
|
|
36
36
|
type: 'input',
|
|
37
37
|
name: usernamePromptName,
|
|
@@ -43,7 +43,7 @@ function getCredentialsPrompts(connectionValidator, promptNamespace, sapClient)
|
|
|
43
43
|
validate: (user) => user?.length > 0
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
|
-
when: () => !!(connectionValidator.systemAuthType === 'basic' && authRequired),
|
|
46
|
+
when: () => !!(connectionValidator.systemAuthType === 'basic' && authRequired && (!sapClient || sapClient.isValid)),
|
|
47
47
|
type: 'password',
|
|
48
48
|
guiOptions: {
|
|
49
49
|
mandatory: true,
|
|
@@ -58,7 +58,7 @@ function getCredentialsPrompts(connectionValidator, promptNamespace, sapClient)
|
|
|
58
58
|
if (!(connectionValidator.validatedUrl &&
|
|
59
59
|
answers?.[usernamePromptName] &&
|
|
60
60
|
password &&
|
|
61
|
-
(sapClient
|
|
61
|
+
(!sapClient || sapClient.isValid))) {
|
|
62
62
|
return false;
|
|
63
63
|
}
|
|
64
64
|
// We may have a previously selected system
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-ux/odata-service-inquirer",
|
|
3
3
|
"description": "Prompts module that can prompt users for inputs required for odata service writing",
|
|
4
|
-
"version": "2.9.
|
|
4
|
+
"version": "2.9.8",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -29,16 +29,16 @@
|
|
|
29
29
|
"i18next": "25.3.0",
|
|
30
30
|
"inquirer-autocomplete-prompt": "2.0.1",
|
|
31
31
|
"os-name": "4.0.1",
|
|
32
|
-
"@sap-ux/axios-extension": "1.23.
|
|
32
|
+
"@sap-ux/axios-extension": "1.23.1",
|
|
33
33
|
"@sap-ux/btp-utils": "1.1.4",
|
|
34
|
-
"@sap-ux/fiori-generator-shared": "0.13.
|
|
34
|
+
"@sap-ux/fiori-generator-shared": "0.13.27",
|
|
35
35
|
"@sap-ux/guided-answers-helper": "0.4.0",
|
|
36
|
-
"@sap-ux/telemetry": "0.6.
|
|
37
|
-
"@sap-ux/inquirer-common": "0.8.
|
|
36
|
+
"@sap-ux/telemetry": "0.6.32",
|
|
37
|
+
"@sap-ux/inquirer-common": "0.8.6",
|
|
38
38
|
"@sap-ux/logger": "0.7.0",
|
|
39
39
|
"@sap-ux/nodejs-utils": "0.2.7",
|
|
40
|
-
"@sap-ux/project-access": "1.32.
|
|
41
|
-
"@sap-ux/project-input-validator": "0.6.
|
|
40
|
+
"@sap-ux/project-access": "1.32.6",
|
|
41
|
+
"@sap-ux/project-input-validator": "0.6.28",
|
|
42
42
|
"@sap-ux/store": "1.2.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
@@ -48,12 +48,12 @@
|
|
|
48
48
|
"@types/inquirer": "8.2.6",
|
|
49
49
|
"@types/lodash": "4.14.202",
|
|
50
50
|
"jest-extended": "6.0.0",
|
|
51
|
-
"@sap-ux/fiori-generator-shared": "0.13.
|
|
52
|
-
"@sap-ux/fiori-elements-writer": "2.7.
|
|
53
|
-
"@sap-ux/fiori-freestyle-writer": "2.4.
|
|
54
|
-
"@sap-ux/feature-toggle": "0.3.
|
|
55
|
-
"@sap-ux/odata-service-writer": "0.27.
|
|
56
|
-
"@sap-ux/cap-config-writer": "0.12.
|
|
51
|
+
"@sap-ux/fiori-generator-shared": "0.13.27",
|
|
52
|
+
"@sap-ux/fiori-elements-writer": "2.7.29",
|
|
53
|
+
"@sap-ux/fiori-freestyle-writer": "2.4.55",
|
|
54
|
+
"@sap-ux/feature-toggle": "0.3.3",
|
|
55
|
+
"@sap-ux/odata-service-writer": "0.27.27",
|
|
56
|
+
"@sap-ux/cap-config-writer": "0.12.18"
|
|
57
57
|
},
|
|
58
58
|
"engines": {
|
|
59
59
|
"node": ">=20.x"
|