@sap-ux/preview-middleware 0.13.61 → 0.13.63

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/base/flp.js +13 -14
  2. package/package.json +3 -3
package/dist/base/flp.js CHANGED
@@ -564,20 +564,19 @@ class FlpSandbox {
564
564
  * @returns UI5 libs that should preloaded
565
565
  */
566
566
  getUI5Libs(manifest) {
567
- var _a, _b;
568
- if ((_b = (_a = manifest['sap.ui5']) === null || _a === void 0 ? void 0 : _a.dependencies) === null || _b === void 0 ? void 0 : _b.libs) {
569
- const libNames = Object.keys(manifest['sap.ui5'].dependencies.libs);
570
- return libNames
571
- .filter((key) => {
572
- return UI5_LIBS.some((substring) => {
573
- return key === substring || key.startsWith(substring + '.');
574
- });
575
- })
576
- .join(',');
577
- }
578
- else {
579
- return 'sap.m,sap.ui.core,sap.ushell';
580
- }
567
+ var _a, _b, _c;
568
+ const libs = (_c = (_b = (_a = manifest['sap.ui5']) === null || _a === void 0 ? void 0 : _a.dependencies) === null || _b === void 0 ? void 0 : _b.libs) !== null && _c !== void 0 ? _c : {};
569
+ // add libs that should always be preloaded
570
+ libs['sap.m'] = {};
571
+ libs['sap.ui.core'] = {};
572
+ libs['sap.ushell'] = {};
573
+ return Object.keys(libs)
574
+ .filter((key) => {
575
+ return UI5_LIBS.some((substring) => {
576
+ return key === substring || key.startsWith(substring + '.');
577
+ });
578
+ })
579
+ .join(',');
581
580
  }
582
581
  }
583
582
  exports.FlpSandbox = FlpSandbox;
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.13.61",
12
+ "version": "0.13.63",
13
13
  "license": "Apache-2.0",
14
14
  "author": "@SAP/ux-tools-team",
15
15
  "main": "dist/index.js",
@@ -27,9 +27,9 @@
27
27
  "mem-fs-editor": "9.4.0",
28
28
  "@sap-ux/logger": "0.5.1",
29
29
  "@sap-ux/btp-utils": "0.14.4",
30
- "@sap-ux/adp-tooling": "0.10.20",
30
+ "@sap-ux/adp-tooling": "0.10.22",
31
31
  "@sap-ux/control-property-editor-sources": "npm:@sap-ux/control-property-editor@0.4.23",
32
- "@sap-ux/project-access": "1.21.1"
32
+ "@sap-ux/project-access": "1.22.0"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@types/ejs": "3.1.2",