@sap-ux/odata-service-inquirer 2.2.0 → 2.2.2

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.
package/dist/index.d.ts CHANGED
@@ -28,9 +28,10 @@ declare function getPrompts(promptOptions?: OdataServicePromptOptions, logger?:
28
28
  * Get the system selection questions.
29
29
  *
30
30
  * @param promptOptions - options that can control some of the prompt behavior. See {@link OdataServicePromptOptions} for details
31
+ * @param isYUI - if true, the prompt is being called from the Yeoman UI extension host. PromptState.isYUI will be set to this value
31
32
  * @returns the prompts used to provide input for system selection and a reference to the answers object which will be populated with the user's responses once `inquirer.prompt` returns
32
33
  */
33
- declare function getSystemSelectionQuestions(promptOptions?: OdataServicePromptOptions): Promise<{
34
+ declare function getSystemSelectionQuestions(promptOptions?: OdataServicePromptOptions, isYUI?: boolean): Promise<{
34
35
  prompts: Question<SystemSelectionAnswers & ServiceAnswer>[];
35
36
  answers: Partial<OdataServiceAnswers>;
36
37
  }>;
package/dist/index.js CHANGED
@@ -56,9 +56,13 @@ async function getPrompts(promptOptions, logger, enableGuidedAnswers = false, te
56
56
  * Get the system selection questions.
57
57
  *
58
58
  * @param promptOptions - options that can control some of the prompt behavior. See {@link OdataServicePromptOptions} for details
59
+ * @param isYUI - if true, the prompt is being called from the Yeoman UI extension host. PromptState.isYUI will be set to this value
59
60
  * @returns the prompts used to provide input for system selection and a reference to the answers object which will be populated with the user's responses once `inquirer.prompt` returns
60
61
  */
61
- async function getSystemSelectionQuestions(promptOptions) {
62
+ async function getSystemSelectionQuestions(promptOptions, isYUI) {
63
+ if (isYUI !== undefined) {
64
+ utils_1.PromptState.isYUI = isYUI;
65
+ }
62
66
  return {
63
67
  prompts: await (0, system_selection_1.getSystemSelectionQuestions)(promptOptions),
64
68
  answers: utils_1.PromptState.odataService
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.2.0",
4
+ "version": "2.2.2",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -22,7 +22,7 @@
22
22
  "@sap/cf-tools": "3.2.2",
23
23
  "@sap-ux/annotation-converter": "0.10.2",
24
24
  "@sap-ux/edmx-parser": "0.9.0",
25
- "axios": "1.7.4",
25
+ "axios": "1.7.9",
26
26
  "axios-logger": "2.8.0",
27
27
  "fast-xml-parser": "4.4.1",
28
28
  "i18next": "23.5.1",
@@ -30,12 +30,12 @@
30
30
  "os-name": "4.0.1",
31
31
  "@sap-ux/axios-extension": "1.18.5",
32
32
  "@sap-ux/btp-utils": "1.0.1",
33
- "@sap-ux/fiori-generator-shared": "0.7.26",
33
+ "@sap-ux/fiori-generator-shared": "0.7.27",
34
34
  "@sap-ux/guided-answers-helper": "0.2.1",
35
- "@sap-ux/telemetry": "0.5.58",
36
- "@sap-ux/inquirer-common": "0.6.13",
35
+ "@sap-ux/telemetry": "0.5.59",
36
+ "@sap-ux/inquirer-common": "0.6.14",
37
37
  "@sap-ux/logger": "0.6.0",
38
- "@sap-ux/project-access": "1.29.4",
38
+ "@sap-ux/project-access": "1.29.5",
39
39
  "@sap-ux/project-input-validator": "0.3.4",
40
40
  "@sap-ux/store": "1.0.0"
41
41
  },
@@ -46,12 +46,12 @@
46
46
  "@types/inquirer": "8.2.6",
47
47
  "@types/lodash": "4.14.202",
48
48
  "jest-extended": "3.2.4",
49
- "@sap-ux/fiori-generator-shared": "0.7.26",
50
- "@sap-ux/fiori-elements-writer": "2.1.2",
51
- "@sap-ux/fiori-freestyle-writer": "2.0.10",
49
+ "@sap-ux/fiori-generator-shared": "0.7.27",
50
+ "@sap-ux/fiori-elements-writer": "2.1.4",
51
+ "@sap-ux/fiori-freestyle-writer": "2.0.12",
52
52
  "@sap-ux/feature-toggle": "0.2.3",
53
- "@sap-ux/odata-service-writer": "0.25.6",
54
- "@sap-ux/cap-config-writer": "0.9.5"
53
+ "@sap-ux/odata-service-writer": "0.25.8",
54
+ "@sap-ux/cap-config-writer": "0.9.6"
55
55
  },
56
56
  "engines": {
57
57
  "node": ">=18.x"