@sap-ux/odata-service-inquirer 0.8.1 → 0.8.3

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.
@@ -36,7 +36,9 @@ const systemSelectionPromptNames = {
36
36
  */
37
37
  async function validateSystemSelection(systemSelection, connectionValidator, requiredOdataVersion) {
38
38
  utils_1.PromptState.reset();
39
- if (systemSelection.type === 'newSystemChoice') {
39
+ if (systemSelection.type === 'newSystemChoice' || systemSelection.type === 'cfAbapEnvService') {
40
+ // Reset the connection state
41
+ connectionValidator.resetConnectionState(true);
40
42
  return true;
41
43
  }
42
44
  let connectValResult = false;
@@ -53,10 +55,6 @@ async function validateSystemSelection(systemSelection, connectionValidator, req
53
55
  }
54
56
  connectValResult = await (0, prompt_helpers_1.connectWithDestination)(systemSelection.system, connectionValidator, requiredOdataVersion);
55
57
  }
56
- else if (systemSelection.type === 'cfAbapEnvService') {
57
- // Reset previous selections connection state
58
- connectionValidator.resetConnectionState(true);
59
- }
60
58
  return connectValResult;
61
59
  }
62
60
  /**
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.8.1",
4
+ "version": "0.8.3",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -28,10 +28,10 @@
28
28
  "os-name": "4.0.1",
29
29
  "@sap-ux/axios-extension": "1.17.8",
30
30
  "@sap-ux/btp-utils": "0.17.2",
31
- "@sap-ux/fiori-generator-shared": "0.7.17",
31
+ "@sap-ux/fiori-generator-shared": "0.7.18",
32
32
  "@sap-ux/guided-answers-helper": "0.1.1",
33
33
  "@sap-ux/telemetry": "0.5.50",
34
- "@sap-ux/inquirer-common": "0.6.0",
34
+ "@sap-ux/inquirer-common": "0.6.1",
35
35
  "@sap-ux/logger": "0.6.0",
36
36
  "@sap-ux/project-access": "1.28.10",
37
37
  "@sap-ux/project-input-validator": "0.3.4",
@@ -43,7 +43,7 @@
43
43
  "@types/inquirer": "8.2.6",
44
44
  "@types/lodash": "4.14.202",
45
45
  "jest-extended": "3.2.4",
46
- "@sap-ux/fiori-generator-shared": "0.7.17",
46
+ "@sap-ux/fiori-generator-shared": "0.7.18",
47
47
  "@sap-ux/feature-toggle": "0.2.3",
48
48
  "@sap-ux/odata-service-writer": "0.25.0"
49
49
  },