@sap-ux/odata-service-writer 0.14.29 → 0.14.30

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.
@@ -41,9 +41,9 @@ function setDefaultServiceModel(service) {
41
41
  * @param {OdataService} service - The service object whose annotations name needs to be set or modified.
42
42
  */
43
43
  function setDefaultAnnotationsName(service) {
44
- var _a, _b;
45
- if ((service.annotations && service.annotations.name === undefined) || ((_a = service.annotations) === null || _a === void 0 ? void 0 : _a.name) === '') {
46
- service.annotations.name = (_b = service.annotations) === null || _b === void 0 ? void 0 : _b.technicalName.replace(/\//g, '_').replace(/^_/, '');
44
+ var _a, _b, _c, _d;
45
+ if (((_a = service.annotations) === null || _a === void 0 ? void 0 : _a.technicalName) && !service.annotations.name) {
46
+ service.annotations.name = (_d = (_c = (_b = service.annotations) === null || _b === void 0 ? void 0 : _b.technicalName) === null || _c === void 0 ? void 0 : _c.replace(/\//g, '_')) === null || _d === void 0 ? void 0 : _d.replace(/^_/, '');
47
47
  }
48
48
  }
49
49
  /**
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.14.29",
12
+ "version": "0.14.30",
13
13
  "license": "Apache-2.0",
14
14
  "main": "dist/index.js",
15
15
  "files": [