@sap-ux/ui-service-sub-generator 0.1.35 → 0.1.37
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/generators/app/utils.js +6 -5
- package/package.json +5 -5
package/generators/app/utils.js
CHANGED
|
@@ -88,12 +88,13 @@ async function writeBASMetadata(serviceConfig, fs, appWizard, inputData, provide
|
|
|
88
88
|
*/
|
|
89
89
|
function getRelativeUrlFromContent(content) {
|
|
90
90
|
const contentJson = JSON.parse(content);
|
|
91
|
-
let
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
91
|
+
let serviceBinding = contentJson?.businessService?.serviceBinding?.serviceBindingName?.replace(/^\/|\/$/g, '');
|
|
92
|
+
let serviceDefinitionName = contentJson?.businessService?.serviceDefinition?.serviceDefinitionName?.replace(/^\/|\/$/g, '');
|
|
93
|
+
if (!contentJson.general?.namespace?.startsWith('/')) {
|
|
94
|
+
serviceBinding = `${utils_1.SAP_NAMESPACE}/${serviceBinding}`;
|
|
95
|
+
serviceDefinitionName = `${utils_1.SAP_NAMESPACE}/${serviceDefinitionName}`;
|
|
95
96
|
}
|
|
96
|
-
return `/sap/opu/odata4/${
|
|
97
|
+
return `/sap/opu/odata4/${serviceBinding}/srvd/${serviceDefinitionName}/0001/`;
|
|
97
98
|
}
|
|
98
99
|
/**
|
|
99
100
|
* Get the metadata for the service url provided. Has a 5 second retry if the metadata is not fetched on first attempt.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-ux/ui-service-sub-generator",
|
|
3
3
|
"description": "Generator for creating UI Service",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.37",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
"@sap-ux/axios-extension": "1.22.3",
|
|
26
26
|
"@sap-ux/btp-utils": "1.1.0",
|
|
27
27
|
"@sap-ux/feature-toggle": "0.3.0",
|
|
28
|
-
"@sap-ux/fiori-generator-shared": "0.12.
|
|
29
|
-
"@sap-ux/inquirer-common": "0.7.
|
|
28
|
+
"@sap-ux/fiori-generator-shared": "0.12.14",
|
|
29
|
+
"@sap-ux/inquirer-common": "0.7.19",
|
|
30
30
|
"@sap-ux/logger": "0.7.0",
|
|
31
31
|
"@sap-ux/system-access": "0.6.9",
|
|
32
|
-
"@sap-ux/telemetry": "0.6.
|
|
33
|
-
"@sap-ux/ui-service-inquirer": "0.1.
|
|
32
|
+
"@sap-ux/telemetry": "0.6.7",
|
|
33
|
+
"@sap-ux/ui-service-inquirer": "0.1.36"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@sap/service-provider-apis": "2.1.5",
|