@sap-ux/odata-service-inquirer 2.3.5 → 2.3.7
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.
|
@@ -159,7 +159,15 @@ async function createSystemChoices(destinationFilters, includeCloudFoundryAbapEn
|
|
|
159
159
|
let newSystemChoice;
|
|
160
160
|
// If this is BAS, return destinations, otherwise return stored backend systems
|
|
161
161
|
if ((0, btp_utils_1.isAppStudio)()) {
|
|
162
|
-
|
|
162
|
+
let destinations = {};
|
|
163
|
+
try {
|
|
164
|
+
destinations = await (0, btp_utils_1.listDestinations)({ stripS4HCApiHosts: true });
|
|
165
|
+
}
|
|
166
|
+
catch (e) {
|
|
167
|
+
logger_helper_1.default.logger.error((0, i18n_1.t)('errors.destination.listDestinations', {
|
|
168
|
+
error: e.message
|
|
169
|
+
}));
|
|
170
|
+
}
|
|
163
171
|
systemChoices = Object.values(destinations)
|
|
164
172
|
.filter((destination) => {
|
|
165
173
|
return matchesFilters(destination, destinationFilters);
|
|
@@ -195,7 +195,8 @@
|
|
|
195
195
|
},
|
|
196
196
|
"errors": {
|
|
197
197
|
"destination": {
|
|
198
|
-
"authError": "The selected system
|
|
198
|
+
"authError": "The selected system returned an authentication error. System name: {{systemName}}. Error: {{- error}}.",
|
|
199
|
+
"listDestinations": "An error occurred when retrieving the list of destinations: {{- error}}."
|
|
199
200
|
},
|
|
200
201
|
"cannotReadCapServiceMetadata": "An error occurred reading CAP service metadata: {{serviceName}}. $t(texts.seeLogForDetails)",
|
|
201
202
|
"capModelAndServicesLoadError": "An error occurred loading the CAP model and services{{- error, addMsgWithColonFormatter}}",
|
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.3.
|
|
4
|
+
"version": "2.3.7",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"i18next": "23.5.1",
|
|
29
29
|
"inquirer-autocomplete-prompt": "2.0.1",
|
|
30
30
|
"os-name": "4.0.1",
|
|
31
|
-
"@sap-ux/axios-extension": "1.20.
|
|
31
|
+
"@sap-ux/axios-extension": "1.20.1",
|
|
32
32
|
"@sap-ux/btp-utils": "1.0.3",
|
|
33
33
|
"@sap-ux/fiori-generator-shared": "0.11.2",
|
|
34
34
|
"@sap-ux/guided-answers-helper": "0.2.2",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@types/lodash": "4.14.202",
|
|
48
48
|
"jest-extended": "3.2.4",
|
|
49
49
|
"@sap-ux/fiori-generator-shared": "0.11.2",
|
|
50
|
-
"@sap-ux/fiori-elements-writer": "2.3.
|
|
50
|
+
"@sap-ux/fiori-elements-writer": "2.3.4",
|
|
51
51
|
"@sap-ux/fiori-freestyle-writer": "2.3.2",
|
|
52
52
|
"@sap-ux/feature-toggle": "0.2.3",
|
|
53
53
|
"@sap-ux/odata-service-writer": "0.26.16",
|