@sap-ux/fiori-generator-shared 0.1.2 → 0.2.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.
package/dist/cap/index.js CHANGED
@@ -11,7 +11,6 @@ const path_1 = require("path");
11
11
  * @returns cap custom paths
12
12
  */
13
13
  function getCapFolderPathsSync(capProjectPath) {
14
- var _a, _b, _c;
15
14
  const capPaths = {
16
15
  app: 'app/',
17
16
  db: 'db/',
@@ -25,10 +24,10 @@ function getCapFolderPathsSync(capProjectPath) {
25
24
  const config = JSON.parse((0, fs_1.readFileSync)(configFile).toString());
26
25
  for (const folder of Object.keys(capPaths)) {
27
26
  let customPath;
28
- if ((_a = config === null || config === void 0 ? void 0 : config.folders) === null || _a === void 0 ? void 0 : _a[folder]) {
27
+ if (config?.folders?.[folder]) {
29
28
  customPath = config.folders[folder];
30
29
  }
31
- else if ((_c = (_b = config === null || config === void 0 ? void 0 : config.cds) === null || _b === void 0 ? void 0 : _b.folders) === null || _c === void 0 ? void 0 : _c[folder]) {
30
+ else if (config?.cds?.folders?.[folder]) {
32
31
  customPath = config.cds.folders[folder];
33
32
  }
34
33
  if (customPath) {
@@ -36,7 +35,7 @@ function getCapFolderPathsSync(capProjectPath) {
36
35
  }
37
36
  }
38
37
  }
39
- catch (_d) {
38
+ catch {
40
39
  // Ignore errors as may have no custom paths or invalid configs
41
40
  }
42
41
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sap-ux/fiori-generator-shared",
3
3
  "description": "Commonly used shared functionality and types to support the fiori generator.",
4
- "version": "0.1.2",
4
+ "version": "0.2.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -19,7 +19,7 @@
19
19
  "dependencies": {
20
20
  "mem-fs": "2.1.0",
21
21
  "mem-fs-editor": "9.4.0",
22
- "@sap-ux/project-access": "1.22.4"
22
+ "@sap-ux/project-access": "1.24.0"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@types/mem-fs-editor": "7.0.1",