@sap-ux/project-access 1.29.2 → 1.29.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.
@@ -169,6 +169,12 @@ async function getCapModelAndServices(projectRoot) {
169
169
  _logger?.info(`@sap-ux/project-access:getCapModelAndServices - Using 'cds.root': ${cds.root}`);
170
170
  _logger?.info(`@sap-ux/project-access:getCapModelAndServices - Using 'projectRoot': ${_projectRoot}`);
171
171
  let services = cds.compile.to.serviceinfo(model, { root: _projectRoot }) ?? [];
172
+ // filter services that have ( urlPath defined AND no endpoints) OR have endpoints with kind 'odata'
173
+ // i.e. ignore services for websockets and other unsupported protocols
174
+ if (services.filter) {
175
+ services = services.filter((service) => (service.urlPath && service.endpoints === undefined) ||
176
+ service.endpoints?.find((endpoint) => endpoint.kind === 'odata'));
177
+ }
172
178
  if (services.map) {
173
179
  services = services.map((value) => {
174
180
  const { endpoints, urlPath } = value;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sap-ux/project-access",
3
- "version": "1.29.2",
3
+ "version": "1.29.3",
4
4
  "description": "Library to access SAP Fiori tools projects",
5
5
  "repository": {
6
6
  "type": "git",