@sap-ux/project-access 1.12.0 → 1.12.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.
Files changed (2) hide show
  1. package/dist/project/cap.js +22 -20
  2. package/package.json +1 -1
@@ -342,27 +342,29 @@ function loadGlobalCdsModule() {
342
342
  * @returns - result of call 'cds --version'
343
343
  */
344
344
  function getCdsVersionInfo(cwd) {
345
- return new Promise((resolve, reject) => {
346
- let out = '';
347
- const cdsVersionInfo = (0, child_process_1.spawn)('cds', ['--version'], { cwd, shell: true });
348
- cdsVersionInfo.stdout.on('data', (data) => {
349
- out += data.toString();
350
- });
351
- cdsVersionInfo.on('close', () => {
352
- if (out) {
353
- const versions = {};
354
- for (const line of out.split('\n').filter((v) => v)) {
355
- const [key, value] = line.split(': ');
356
- versions[key] = value;
345
+ return __awaiter(this, void 0, void 0, function* () {
346
+ return new Promise((resolve, reject) => {
347
+ let out = '';
348
+ const cdsVersionInfo = (0, child_process_1.spawn)('cds', ['--version'], { cwd, shell: true });
349
+ cdsVersionInfo.stdout.on('data', (data) => {
350
+ out += data.toString();
351
+ });
352
+ cdsVersionInfo.on('close', () => {
353
+ if (out) {
354
+ const versions = {};
355
+ for (const line of out.split('\n').filter((v) => v)) {
356
+ const [key, value] = line.split(': ');
357
+ versions[key] = value;
358
+ }
359
+ resolve(versions);
357
360
  }
358
- resolve(versions);
359
- }
360
- else {
361
- reject(new Error('Module path not found'));
362
- }
363
- });
364
- cdsVersionInfo.on('error', (error) => {
365
- reject(error);
361
+ else {
362
+ reject(new Error('Module path not found'));
363
+ }
364
+ });
365
+ cdsVersionInfo.on('error', (error) => {
366
+ reject(error);
367
+ });
366
368
  });
367
369
  });
368
370
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sap-ux/project-access",
3
- "version": "1.12.0",
3
+ "version": "1.12.1",
4
4
  "description": "Library to access SAP Fiori tools projects",
5
5
  "repository": {
6
6
  "type": "git",