@sap-ux/preview-middleware 0.23.114 → 0.23.117

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.
@@ -42,7 +42,14 @@ sap.ui.define(["sap/base/Log", "../../utils/core", "../../utils/error", "../util
42
42
  * @returns An array of children nodes, or an empty array if none are found
43
43
  */
44
44
  function getChildren(current) {
45
- return (current.elements ?? []).flatMap(element => element.type === 'aggregation' ? element.elements ?? [] : []);
45
+ return (current.elements ?? []).flatMap(element => {
46
+ if (element.type === 'aggregation') {
47
+ return element.elements ?? [];
48
+ } else if (element.type === 'extensionPoint') {
49
+ return [element];
50
+ }
51
+ return [];
52
+ });
46
53
  }
47
54
 
48
55
  /**
@@ -55,9 +55,14 @@ function getAdditionalData(id: string): AdditionalData {
55
55
  * @returns An array of children nodes, or an empty array if none are found
56
56
  */
57
57
  function getChildren(current: OutlineViewNode): OutlineViewNode[] {
58
- return (current.elements ?? []).flatMap((element: OutlineViewNode) =>
59
- element.type === 'aggregation' ? (element.elements ?? []) : []
60
- );
58
+ return (current.elements ?? []).flatMap((element: OutlineViewNode) => {
59
+ if (element.type === 'aggregation') {
60
+ return element.elements ?? [];
61
+ } else if (element.type === 'extensionPoint') {
62
+ return [element];
63
+ }
64
+ return [];
65
+ });
61
66
  }
62
67
 
63
68
  /**
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "bugs": {
10
10
  "url": "https://github.com/SAP/open-ux-tools/issues?q=is%3Aopen+is%3Aissue+label%3Abug+label%3Apreview-middleware"
11
11
  },
12
- "version": "0.23.114",
12
+ "version": "0.23.117",
13
13
  "license": "Apache-2.0",
14
14
  "author": "@SAP/ux-tools-team",
15
15
  "main": "dist/index.js",
@@ -27,13 +27,13 @@
27
27
  "mem-fs-editor": "9.4.0",
28
28
  "qrcode": "1.5.4",
29
29
  "@sap/bas-sdk": "3.13.2",
30
- "@sap-ux/adp-tooling": "0.18.58",
31
- "@sap-ux/btp-utils": "1.1.7",
32
- "@sap-ux/control-property-editor-sources": "npm:@sap-ux/control-property-editor@0.7.10",
30
+ "@sap-ux/adp-tooling": "0.18.60",
31
+ "@sap-ux/btp-utils": "1.1.8",
32
+ "@sap-ux/control-property-editor-sources": "npm:@sap-ux/control-property-editor@0.7.11",
33
33
  "@sap-ux/feature-toggle": "0.3.6",
34
34
  "@sap-ux/logger": "0.8.1",
35
- "@sap-ux/project-access": "1.35.0",
36
- "@sap-ux/system-access": "0.6.49",
35
+ "@sap-ux/project-access": "1.35.1",
36
+ "@sap-ux/system-access": "0.6.50",
37
37
  "@sap-ux/i18n": "0.3.7"
38
38
  },
39
39
  "devDependencies": {
@@ -53,10 +53,10 @@
53
53
  "nock": "13.4.0",
54
54
  "npm-run-all2": "6.2.0",
55
55
  "supertest": "7.1.4",
56
- "@private/preview-middleware-client": "npm:@sap-ux-private/preview-middleware-client@0.18.16",
57
- "@sap-ux/axios-extension": "1.25.10",
56
+ "@private/preview-middleware-client": "npm:@sap-ux-private/preview-middleware-client@0.18.17",
57
+ "@sap-ux/axios-extension": "1.25.11",
58
58
  "@sap-ux/store": "1.5.5",
59
- "@sap-ux/ui5-info": "0.13.11"
59
+ "@sap-ux/ui5-info": "0.13.12"
60
60
  },
61
61
  "peerDependencies": {
62
62
  "express": "4"