@sap-ux/odata-service-inquirer 0.5.6 → 0.5.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.
@@ -82,14 +82,17 @@ function getUserSystemNameQuestion() {
82
82
  return answers.userSystemName;
83
83
  },
84
84
  validate: async (systemName, answers) => {
85
+ let isValid = false;
85
86
  // Dont validate the suggested default system name
86
87
  if (systemName === defaultSystemName) {
87
- return true;
88
+ isValid = true;
88
89
  }
89
- const validationResult = await (0, validators_1.validateSystemName)(systemName);
90
- if (validationResult === true) {
91
- // Not the default system name, so the user modified
90
+ else {
92
91
  userModifiedSystemName = true;
92
+ isValid = await (0, validators_1.validateSystemName)(systemName);
93
+ }
94
+ if (isValid === true) {
95
+ // Not the default system name, so the user modified
93
96
  const backendSystem = new store_1.BackendSystem({
94
97
  name: systemName,
95
98
  url: answers.systemUrl,
@@ -101,7 +104,7 @@ function getUserSystemNameQuestion() {
101
104
  utils_1.PromptState.odataService.connectedSystem.backendSystem = backendSystem;
102
105
  }
103
106
  }
104
- return validationResult;
107
+ return isValid;
105
108
  }
106
109
  };
107
110
  return newSystemNamePrompt;
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": "0.5.6",
4
+ "version": "0.5.9",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -27,10 +27,10 @@
27
27
  "os-name": "4.0.1",
28
28
  "@sap-ux/axios-extension": "1.16.1",
29
29
  "@sap-ux/btp-utils": "0.15.0",
30
- "@sap-ux/telemetry": "0.5.9",
30
+ "@sap-ux/telemetry": "0.5.11",
31
31
  "@sap-ux/inquirer-common": "0.4.3",
32
32
  "@sap-ux/logger": "0.6.0",
33
- "@sap-ux/project-access": "1.25.7",
33
+ "@sap-ux/project-access": "1.26.0",
34
34
  "@sap-ux/project-input-validator": "0.3.2",
35
35
  "@sap-ux/store": "0.7.0"
36
36
  },