@sap-ux/preview-middleware 0.23.86 → 0.23.88

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.
@@ -21,6 +21,14 @@ sap.ui.define(["sap/base/Log", "open/ux/preview/client/thirdparty/@sap-ux-privat
21
21
  const ODataHealthChecker = ___odata_health_odata_health_checker["ODataHealthChecker"];
22
22
  const sendInfoCenterMessage = ___utils_info_center_message["sendInfoCenterMessage"];
23
23
  const ODataUpStatus = ___odata_health_odata_health_status["ODataUpStatus"];
24
+ /**
25
+ * Subscribes a handler to the CommunicationService
26
+ *
27
+ * @param handler action handler
28
+ */
29
+ function subscribe(handler) {
30
+ CommunicationService.subscribe(handler);
31
+ }
24
32
  function init(rta, registries = []) {
25
33
  Log.info('Initializing Control Property Editor');
26
34
 
@@ -29,14 +37,6 @@ sap.ui.define(["sap/base/Log", "open/ux/preview/client/thirdparty/@sap-ux-privat
29
37
  if (flexSettings.telemetry === true) {
30
38
  enableTelemetry();
31
39
  }
32
-
33
- /**
34
- *
35
- * @param handler action handler
36
- */
37
- function subscribe(handler) {
38
- CommunicationService.subscribe(handler);
39
- }
40
40
  const rtaService = new RtaService(rta);
41
41
  const changesService = new ChangeService({
42
42
  rta
@@ -25,6 +25,15 @@ import { ODataHealthChecker } from './odata-health/odata-health-checker';
25
25
  import { sendInfoCenterMessage } from '../utils/info-center-message';
26
26
  import { ODataUpStatus } from './odata-health/odata-health-status';
27
27
 
28
+ /**
29
+ * Subscribes a handler to the CommunicationService
30
+ *
31
+ * @param handler action handler
32
+ */
33
+ function subscribe(handler: ActionHandler): void {
34
+ CommunicationService.subscribe(handler);
35
+ }
36
+
28
37
  export default function init(
29
38
  rta: RuntimeAuthoring,
30
39
  registries: QuickActionDefinitionRegistry<string>[] = []
@@ -37,14 +46,6 @@ export default function init(
37
46
  enableTelemetry();
38
47
  }
39
48
 
40
- /**
41
- *
42
- * @param handler action handler
43
- */
44
- function subscribe(handler: ActionHandler): void {
45
- CommunicationService.subscribe(handler);
46
- }
47
-
48
49
  const rtaService = new RtaService(rta);
49
50
 
50
51
  const changesService = new ChangeService({ rta });
@@ -153,7 +153,7 @@ sap.ui.define(["sap/base/Log", "open/ux/preview/client/thirdparty/@sap-ux-privat
153
153
  if (libs && libs.length > 0) {
154
154
  let url = '/sap/bc/ui2/app_index/ui5_app_info?id=' + libs;
155
155
  const sapClient = urlParams.get('sap-client');
156
- if (sapClient && sapClient.length === 3) {
156
+ if (sapClient?.length === 3) {
157
157
  url = url + '&sap-client=' + sapClient;
158
158
  }
159
159
  const response = await fetch(url);
@@ -188,7 +188,7 @@ export async function registerComponentDependencyPaths(appUrls: string[], urlPar
188
188
  if (libs && libs.length > 0) {
189
189
  let url = '/sap/bc/ui2/app_index/ui5_app_info?id=' + libs;
190
190
  const sapClient = urlParams.get('sap-client');
191
- if (sapClient && sapClient.length === 3) {
191
+ if (sapClient?.length === 3) {
192
192
  url = url + '&sap-client=' + sapClient;
193
193
  }
194
194
  const response = await fetch(url);
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.86",
12
+ "version": "0.23.88",
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.12.0",
30
- "@sap-ux/adp-tooling": "0.18.33",
31
- "@sap-ux/logger": "0.8.0",
30
+ "@sap-ux/adp-tooling": "0.18.35",
32
31
  "@sap-ux/btp-utils": "1.1.6",
33
- "@sap-ux/control-property-editor-sources": "npm:@sap-ux/control-property-editor@0.7.6",
32
+ "@sap-ux/control-property-editor-sources": "npm:@sap-ux/control-property-editor@0.7.7",
34
33
  "@sap-ux/feature-toggle": "0.3.5",
35
- "@sap-ux/project-access": "1.33.0",
36
- "@sap-ux/system-access": "0.6.39",
34
+ "@sap-ux/logger": "0.8.0",
35
+ "@sap-ux/project-access": "1.33.2",
36
+ "@sap-ux/system-access": "0.6.40",
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.8",
57
- "@sap-ux/axios-extension": "1.25.5",
58
- "@sap-ux/store": "1.4.2",
59
- "@sap-ux/ui5-info": "0.13.7"
56
+ "@private/preview-middleware-client": "npm:@sap-ux-private/preview-middleware-client@0.18.9",
57
+ "@sap-ux/axios-extension": "1.25.6",
58
+ "@sap-ux/ui5-info": "0.13.7",
59
+ "@sap-ux/store": "1.4.2"
60
60
  },
61
61
  "peerDependencies": {
62
62
  "express": "4"