@sap-ux/preview-middleware 0.11.19 → 0.11.20

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.
@@ -94,7 +94,11 @@ sap.ui.define(["sap/base/Log", "sap/ui/core/IconPool", "sap/base/i18n/ResourceBu
94
94
  url = url + '&sap-client=' + sapClient;
95
95
  }
96
96
  const response = await fetch(url);
97
- registerModules(await response.json());
97
+ try {
98
+ registerModules(await response.json());
99
+ } catch (error) {
100
+ Log.error(`Registering of reuse libs failed. Error:${error}`);
101
+ }
98
102
  }
99
103
  }
100
104
 
@@ -134,7 +134,11 @@ export async function registerComponentDependencyPaths(appUrls: string[]): Promi
134
134
  url = url + '&sap-client=' + sapClient;
135
135
  }
136
136
  const response = await fetch(url);
137
- registerModules(await response.json());
137
+ try {
138
+ registerModules(await response.json());
139
+ } catch (error) {
140
+ Log.error(`Registering of reuse libs failed. Error:${error}`);
141
+ }
138
142
  }
139
143
  }
140
144
 
@@ -187,7 +191,7 @@ export async function init({ appUrls, flex }: { appUrls?: string | null; flex?:
187
191
  if (flex) {
188
192
  sap.ushell.Container.attachRendererCreatedEvent(async function () {
189
193
  const lifecycleService = await sap.ushell.Container.getServiceAsync<AppLifeCycle>('AppLifeCycle');
190
- lifecycleService.attachAppLoaded(event => {
194
+ lifecycleService.attachAppLoaded((event) => {
191
195
  const view = event.getParameter('componentInstance');
192
196
  const libs = ['sap/ui/rta/api/startAdaptation'];
193
197
  const flexSettings = JSON.parse(flex);
@@ -197,7 +201,7 @@ export async function init({ appUrls, flex }: { appUrls?: string | null; flex?:
197
201
  }
198
202
  sap.ui.require(libs, function (startAdaptation: StartAdaptation, pluginScript?: RTAPlugin) {
199
203
  const options = {
200
- rootControl:view,
204
+ rootControl: view,
201
205
  validateAppVersion: false,
202
206
  flexSettings
203
207
  };
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.11.19",
12
+ "version": "0.11.20",
13
13
  "license": "Apache-2.0",
14
14
  "author": "@SAP/ux-tools-team",
15
15
  "main": "dist/index.js",
@@ -23,9 +23,9 @@
23
23
  ],
24
24
  "dependencies": {
25
25
  "ejs": "3.1.9",
26
- "@sap-ux/adp-tooling": "0.7.2",
27
26
  "@sap-ux/logger": "0.4.0",
28
- "@sap-ux/control-property-editor-sources": "npm:@sap-ux/control-property-editor@0.4.6"
27
+ "@sap-ux/control-property-editor-sources": "npm:@sap-ux/control-property-editor@0.4.6",
28
+ "@sap-ux/adp-tooling": "0.7.2"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/ejs": "3.1.2",
@@ -38,7 +38,7 @@
38
38
  "supertest": "6.3.3",
39
39
  "@sap-ux-private/playwright": "0.0.1",
40
40
  "dotenv": "16.3.1",
41
- "@private/preview-middleware-client": "npm:@sap-ux-private/preview-middleware-client@0.8.10",
41
+ "@private/preview-middleware-client": "npm:@sap-ux-private/preview-middleware-client@0.8.11",
42
42
  "@sap-ux/project-access": "1.16.1",
43
43
  "@sap-ux/store": "0.4.0"
44
44
  },