@sap-ux/odata-service-inquirer 2.22.2 → 2.23.1

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.
@@ -13,6 +13,7 @@ const cap_helpers_1 = require("./cap-helpers");
13
13
  const types_2 = require("./types");
14
14
  const validators_1 = require("./validators");
15
15
  const promises_1 = require("node:fs/promises");
16
+ const node_path_1 = require("node:path");
16
17
  /**
17
18
  * Find the specified choice in the list of CAP project choices and return its index.
18
19
  *
@@ -84,6 +85,12 @@ function getLocalCapProjectPrompts(promptOptions) {
84
85
  }
85
86
  },
86
87
  guiOptions: { mandatory: true, breadcrumb: (0, i18n_1.t)('prompts.capProject.breadcrumb') },
88
+ filter: (input) => {
89
+ if (utils_1.PromptState.isYUI) {
90
+ return input;
91
+ }
92
+ return input && !(0, node_path_1.isAbsolute)(input) ? (0, node_path_1.resolve)(input) : input;
93
+ },
87
94
  validate: async (projectPath) => {
88
95
  validCapPath = await (0, validators_1.validateCapPath)(projectPath);
89
96
  // Load the cap paths if the path is valid
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.22.2",
4
+ "version": "2.23.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -30,16 +30,16 @@
30
30
  "inquirer-autocomplete-prompt": "2.0.1",
31
31
  "os-name": "4.0.1",
32
32
  "@sap-devx/yeoman-ui-types": "1.25.0",
33
- "@sap-ux/axios-extension": "1.26.0",
34
- "@sap-ux/btp-utils": "1.2.0",
35
- "@sap-ux/fiori-generator-shared": "0.15.3",
36
- "@sap-ux/telemetry": "0.7.2",
33
+ "@sap-ux/axios-extension": "1.26.1",
34
+ "@sap-ux/btp-utils": "1.2.1",
35
+ "@sap-ux/fiori-generator-shared": "0.15.4",
37
36
  "@sap-ux/guided-answers-helper": "0.5.0",
38
- "@sap-ux/inquirer-common": "0.13.2",
39
- "@sap-ux/nodejs-utils": "0.3.0",
37
+ "@sap-ux/telemetry": "0.7.3",
38
+ "@sap-ux/inquirer-common": "0.13.3",
39
+ "@sap-ux/logger": "0.9.0",
40
+ "@sap-ux/nodejs-utils": "0.3.1",
40
41
  "@sap-ux/project-access": "1.38.1",
41
42
  "@sap-ux/project-input-validator": "0.7.2",
42
- "@sap-ux/logger": "0.9.0",
43
43
  "@sap-ux/store": "1.6.0"
44
44
  },
45
45
  "devDependencies": {
@@ -47,12 +47,12 @@
47
47
  "@types/inquirer-autocomplete-prompt": "2.0.2",
48
48
  "@types/inquirer": "8.2.6",
49
49
  "jest-extended": "7.0.0",
50
- "@sap-ux/fiori-elements-writer": "2.10.8",
51
- "@sap-ux/fiori-generator-shared": "0.15.3",
52
- "@sap-ux/fiori-freestyle-writer": "2.7.7",
50
+ "@sap-ux/fiori-generator-shared": "0.15.4",
51
+ "@sap-ux/fiori-elements-writer": "2.10.11",
52
+ "@sap-ux/fiori-freestyle-writer": "2.7.10",
53
53
  "@sap-ux/feature-toggle": "0.4.0",
54
54
  "@sap-ux/odata-service-writer": "0.32.2",
55
- "@sap-ux/cap-config-writer": "0.13.3"
55
+ "@sap-ux/cap-config-writer": "0.13.4"
56
56
  },
57
57
  "engines": {
58
58
  "node": ">=22.x"