@sap-ux/preview-middleware 0.13.71 → 0.13.72

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 +14 -13
  2. package/package.json +4 -4
package/dist/base/flp.js CHANGED
@@ -572,19 +572,20 @@ class FlpSandbox {
572
572
  * @returns UI5 libs that should preloaded
573
573
  */
574
574
  getUI5Libs(manifest) {
575
- var _a, _b, _c;
576
- 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 : {};
577
- // add libs that should always be preloaded
578
- libs['sap.m'] = {};
579
- libs['sap.ui.core'] = {};
580
- libs['sap.ushell'] = {};
581
- return Object.keys(libs)
582
- .filter((key) => {
583
- return UI5_LIBS.some((substring) => {
584
- return key === substring || key.startsWith(substring + '.');
585
- });
586
- })
587
- .join(',');
575
+ var _a, _b;
576
+ if ((_b = (_a = manifest['sap.ui5']) === null || _a === void 0 ? void 0 : _a.dependencies) === null || _b === void 0 ? void 0 : _b.libs) {
577
+ const libNames = Object.keys(manifest['sap.ui5'].dependencies.libs);
578
+ return libNames
579
+ .filter((key) => {
580
+ return UI5_LIBS.some((substring) => {
581
+ return key === substring || key.startsWith(substring + '.');
582
+ });
583
+ })
584
+ .join(',');
585
+ }
586
+ else {
587
+ return 'sap.m,sap.ui.core,sap.ushell';
588
+ }
588
589
  }
589
590
  }
590
591
  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.71",
12
+ "version": "0.13.72",
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.11.5",
30
+ "@sap-ux/adp-tooling": "0.11.6",
31
31
  "@sap-ux/control-property-editor-sources": "npm:@sap-ux/control-property-editor@0.4.23",
32
- "@sap-ux/project-access": "1.22.2"
32
+ "@sap-ux/project-access": "1.22.3"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@types/ejs": "3.1.2",
@@ -47,8 +47,8 @@
47
47
  "dotenv": "16.3.1",
48
48
  "@private/preview-middleware-client": "npm:@sap-ux-private/preview-middleware-client@0.9.15",
49
49
  "@sap-ux/axios-extension": "1.14.1",
50
- "@sap-ux/ui5-info": "0.5.0",
51
50
  "@sap-ux/store": "0.6.0",
51
+ "@sap-ux/ui5-info": "0.5.0",
52
52
  "@sap-ux/i18n": "0.0.7"
53
53
  },
54
54
  "peerDependencies": {