@sap-ux/odata-service-writer 0.27.2 → 0.27.3

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.
@@ -290,13 +290,15 @@ async function addMultipleServiceSupportToManifest(webappPath, manifest, fs) {
290
290
  const dataSources = manifest?.['sap.app']?.dataSources;
291
291
  for (const dataSourceKey in dataSources) {
292
292
  const dataSource = dataSources[dataSourceKey];
293
- if (dataSource.type === 'OData') {
293
+ if (dataSource && dataSource.type === 'OData') {
294
294
  convertSingleService(webappPath, dataSourceKey, dataSource, fs);
295
295
  const annotations = dataSource.settings?.annotations;
296
296
  if (annotations) {
297
297
  annotations.forEach((annotationName) => {
298
298
  const annotationDataSource = dataSources[annotationName];
299
- convertSingleService(webappPath, dataSourceKey, annotationDataSource, fs);
299
+ if (annotationDataSource) {
300
+ convertSingleService(webappPath, dataSourceKey, annotationDataSource, fs);
301
+ }
300
302
  });
301
303
  }
302
304
  }
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.27.2",
12
+ "version": "0.27.3",
13
13
  "license": "Apache-2.0",
14
14
  "main": "dist/index.js",
15
15
  "files": [