@sap-ux/ui-service-inquirer 0.0.1 → 0.0.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.
@@ -42,14 +42,16 @@ function getConfigQuestions(logger) {
42
42
  when: async (answers) => {
43
43
  if (!!answers.packageManual || !!answers.packageAutocomplete) {
44
44
  try {
45
- const packageValue = answers.packageManual ?? answers.packageAutocomplete ?? '';
46
- prompt_state_1.PromptState.serviceConfig.content =
47
- (await prompt_state_1.PromptState.systemSelection.objectGenerator?.getContent(packageValue)) ?? '';
48
- const content = JSON.parse(prompt_state_1.PromptState.serviceConfig?.content);
49
- content.businessObject.projectionBehavior.withDraft = true;
50
- prompt_state_1.PromptState.serviceConfig.content = JSON.stringify(content);
51
- prompt_state_1.PromptState.serviceConfig.serviceName =
52
- content.businessService.serviceBinding.serviceBindingName;
45
+ const packageValue = answers.packageManual || answers.packageAutocomplete;
46
+ if (packageValue) {
47
+ prompt_state_1.PromptState.serviceConfig.content =
48
+ (await prompt_state_1.PromptState.systemSelection.objectGenerator?.getContent(packageValue)) ?? '';
49
+ const content = JSON.parse(prompt_state_1.PromptState.serviceConfig?.content);
50
+ content.businessObject.projectionBehavior.withDraft = true;
51
+ prompt_state_1.PromptState.serviceConfig.content = JSON.stringify(content);
52
+ prompt_state_1.PromptState.serviceConfig.serviceName =
53
+ content.businessService.serviceBinding.serviceBindingName;
54
+ }
53
55
  }
54
56
  catch (e) {
55
57
  logger?.error(`${(0, i18n_1.t)('error.fetchingContentForServiceBinding')}: ${e.message}`);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sap-ux/ui-service-inquirer",
3
3
  "description": "Generator for creating UI Service",
4
- "version": "0.0.1",
4
+ "version": "0.0.3",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -23,14 +23,14 @@
23
23
  "@sap-devx/yeoman-ui-types": "1.16.9",
24
24
  "i18next": "23.5.1",
25
25
  "yeoman-generator": "5.10.0",
26
- "@sap-ux/abap-deploy-config-inquirer": "1.2.31",
26
+ "@sap-ux/abap-deploy-config-inquirer": "1.2.32",
27
27
  "@sap-ux/axios-extension": "1.19.1",
28
28
  "@sap-ux/btp-utils": "1.0.2",
29
29
  "@sap-ux/guided-answers-helper": "0.2.1",
30
- "@sap-ux/inquirer-common": "0.6.29",
30
+ "@sap-ux/inquirer-common": "0.6.30",
31
31
  "@sap-ux/logger": "0.6.0",
32
- "@sap-ux/odata-service-inquirer": "2.2.21",
33
- "@sap-ux/telemetry": "0.5.70"
32
+ "@sap-ux/odata-service-inquirer": "2.2.22",
33
+ "@sap-ux/telemetry": "0.5.71"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/inquirer-autocomplete-prompt": "2.0.1",
@@ -45,8 +45,8 @@
45
45
  "typescript": "5.3.3",
46
46
  "yeoman-test": "6.3.0",
47
47
  "@sap-ux/jest-file-matchers": "0.2.1",
48
- "@sap-ux/store": "1.0.0",
49
- "@sap-ux/system-access": "0.5.33"
48
+ "@sap-ux/system-access": "0.5.33",
49
+ "@sap-ux/store": "1.0.0"
50
50
  },
51
51
  "engines": {
52
52
  "node": ">=18.x"