@cap-js/ord 1.3.4 → 1.3.5

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/lib/constants.js CHANGED
@@ -9,6 +9,7 @@ const BUILD_DEFAULT_PATH = "gen/ord";
9
9
 
10
10
  const BLOCKED_SERVICE_NAME = Object.freeze({
11
11
  MTXServices: "cds.xt.MTXServices",
12
+ OpenResourceDiscoveryService: "OpenResourceDiscoveryService",
12
13
  });
13
14
 
14
15
  const ORD_ACCESS_STRATEGY = Object.freeze({
package/lib/ord.js CHANGED
@@ -87,7 +87,10 @@ function _triageCsnDefinitions(csn) {
87
87
 
88
88
  for (const definitionKey of Object.keys(csn.definitions)) {
89
89
  const definitionObj = csn.definitions[definitionKey];
90
- if (definitionKey.includes(BLOCKED_SERVICE_NAME.MTXServices)) {
90
+ if (
91
+ definitionKey.includes(BLOCKED_SERVICE_NAME.MTXServices) ||
92
+ definitionKey.includes(BLOCKED_SERVICE_NAME.OpenResourceDiscoveryService)
93
+ ) {
91
94
  Logger.warn(`ORD service name "${definitionKey}" is blocked.`);
92
95
  continue;
93
96
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cap-js/ord",
3
- "version": "1.3.4",
3
+ "version": "1.3.5",
4
4
  "description": "CAP Plugin for generating ORD document.",
5
5
  "repository": "cap-js/ord",
6
6
  "author": "SAP SE (https://www.sap.com)",