@sap-ux/odata-service-writer 0.26.16 → 0.26.18
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/data/annotations.js
CHANGED
|
@@ -211,12 +211,12 @@ async function writeRemoteServiceAnnotationXmlFiles(fs, basePath, serviceName, e
|
|
|
211
211
|
for (const annotationName in edmxAnnotations) {
|
|
212
212
|
const annotation = edmxAnnotations[annotationName];
|
|
213
213
|
if (annotation?.xml) {
|
|
214
|
-
fs.write((0, path_1.join)(webappPath, project_access_1.DirName.LocalService, serviceName, `${annotation.
|
|
214
|
+
fs.write((0, path_1.join)(webappPath, project_access_1.DirName.LocalService, serviceName, `${annotation.name}.xml`), (0, prettify_xml_1.default)(annotation.xml, { indent: 4 }));
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
218
|
else if (edmxAnnotations?.xml) {
|
|
219
|
-
fs.write((0, path_1.join)(webappPath, project_access_1.DirName.LocalService, serviceName, `${edmxAnnotations.
|
|
219
|
+
fs.write((0, path_1.join)(webappPath, project_access_1.DirName.LocalService, serviceName, `${edmxAnnotations.name}.xml`), (0, prettify_xml_1.default)(edmxAnnotations.xml, { indent: 4 }));
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
222
|
/**
|
package/dist/data/manifest.js
CHANGED
|
@@ -199,7 +199,7 @@ function addRemoteAnnotationDataSources(fs, webappPath, dataSources, serviceName
|
|
|
199
199
|
uri: `/sap/opu/odata/IWFND/CATALOGSERVICE;v=2/Annotations(TechnicalName='${encodeURIComponent(remoteAnnotation.technicalName)}',Version='0001')/$value/`,
|
|
200
200
|
type: 'ODataAnnotation',
|
|
201
201
|
settings: {
|
|
202
|
-
localUri: `localService/${serviceName}/${remoteAnnotation.
|
|
202
|
+
localUri: `localService/${serviceName}/${remoteAnnotation.name}.xml`
|
|
203
203
|
}
|
|
204
204
|
};
|
|
205
205
|
createdAnnotations.push(remoteAnnotation.name);
|
|
@@ -211,7 +211,7 @@ function addRemoteAnnotationDataSources(fs, webappPath, dataSources, serviceName
|
|
|
211
211
|
uri: `/sap/opu/odata/IWFND/CATALOGSERVICE;v=2/Annotations(TechnicalName='${encodeURIComponent(serviceRemoteAnnotations.technicalName)}',Version='0001')/$value/`,
|
|
212
212
|
type: 'ODataAnnotation',
|
|
213
213
|
settings: {
|
|
214
|
-
localUri: `localService/${serviceName}/${serviceRemoteAnnotations.
|
|
214
|
+
localUri: `localService/${serviceName}/${serviceRemoteAnnotations.name}.xml`
|
|
215
215
|
}
|
|
216
216
|
};
|
|
217
217
|
createdAnnotations.push(serviceRemoteAnnotations.name);
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"bugs": {
|
|
10
10
|
"url": "https://github.com/SAP/open-ux-tools/issues?q=is%3Aopen+is%3Aissue+label%3Abug+label%3Aodata-service-writer"
|
|
11
11
|
},
|
|
12
|
-
"version": "0.26.
|
|
12
|
+
"version": "0.26.18",
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"main": "dist/index.js",
|
|
15
15
|
"files": [
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"mem-fs-editor": "9.4.0",
|
|
28
28
|
"prettify-xml": "1.2.0",
|
|
29
29
|
"semver": "7.5.4",
|
|
30
|
-
"@sap-ux/mockserver-config-writer": "0.8.
|
|
31
|
-
"@sap-ux/project-access": "1.29.
|
|
30
|
+
"@sap-ux/mockserver-config-writer": "0.8.15",
|
|
31
|
+
"@sap-ux/project-access": "1.29.22",
|
|
32
32
|
"@sap-ux/ui5-config": "0.27.2"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|