@sap-ux/project-access 1.15.2 → 1.15.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.
@@ -354,7 +354,12 @@ function loadCdsModuleFromProject(capProjectPath) {
354
354
  if (!module) {
355
355
  throw Error(`Could not load cds module. Attempt to load module @sap/cds from project threw error '${loadProjectError}', attempt to load module @sap/cds from @sap/cds-dk threw error '${loadError}'`);
356
356
  }
357
- return 'default' in module ? module.default : module;
357
+ const cds = 'default' in module ? module.default : module;
358
+ // Fix when switching cds versions dynamically
359
+ if (global) {
360
+ global.cds = cds;
361
+ }
362
+ return cds;
358
363
  });
359
364
  }
360
365
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sap-ux/project-access",
3
- "version": "1.15.2",
3
+ "version": "1.15.3",
4
4
  "description": "Library to access SAP Fiori tools projects",
5
5
  "repository": {
6
6
  "type": "git",