@sap-ux/project-access 1.5.0 → 1.5.1

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.
@@ -122,7 +122,8 @@ exports.getCapModelAndServices = getCapModelAndServices;
122
122
  */
123
123
  function getCapEnvironment(capProjectPath) {
124
124
  return __awaiter(this, void 0, void 0, function* () {
125
- const cds = yield (0, module_loader_1.loadModuleFromProject)(capProjectPath, '@sap/cds');
125
+ const module = yield (0, module_loader_1.loadModuleFromProject)(capProjectPath, '@sap/cds');
126
+ const cds = 'default' in module ? module.default : module;
126
127
  return cds.env.for('cds', capProjectPath);
127
128
  });
128
129
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sap-ux/project-access",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "Library to access SAP Fiori tools projects",
5
5
  "repository": {
6
6
  "type": "git",