@sap-ux/preview-middleware 0.20.46 → 0.20.47
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.
package/dist/base/flp.js
CHANGED
|
@@ -431,7 +431,7 @@ class FlpSandbox {
|
|
|
431
431
|
}
|
|
432
432
|
}
|
|
433
433
|
if (!version) {
|
|
434
|
-
this.logger.error('Could not get UI5 version of application. Using 1.130.0 as fallback.');
|
|
434
|
+
this.logger.error('Could not get UI5 version of application. Using version: 1.130.0 as fallback.');
|
|
435
435
|
version = '1.130.0';
|
|
436
436
|
}
|
|
437
437
|
const [major, minor, patch] = version.split('.').map((versionPart) => parseInt(versionPart, 10));
|
|
@@ -439,7 +439,7 @@ class FlpSandbox {
|
|
|
439
439
|
if (this.flpConfig.enhancedHomePage &&
|
|
440
440
|
((major < 2 && minor < 123) || major >= 2 || label?.includes('legacy-free'))) {
|
|
441
441
|
this.flpConfig.enhancedHomePage = this.templateConfig.enhancedHomePage = false;
|
|
442
|
-
this.logger.warn(`Feature enhancedHomePage disabled: UI5 version ${version} not supported.`);
|
|
442
|
+
this.logger.warn(`Feature enhancedHomePage disabled: UI5 version: ${version} not supported.`);
|
|
443
443
|
}
|
|
444
444
|
return {
|
|
445
445
|
major,
|
|
@@ -455,7 +455,7 @@ class FlpSandbox {
|
|
|
455
455
|
* @returns the template for the sandbox HTML file
|
|
456
456
|
*/
|
|
457
457
|
getSandboxTemplate(ui5Version) {
|
|
458
|
-
this.logger.info(`Using sandbox template for UI5 version ${ui5Version.major}.${ui5Version.minor}.${ui5Version.patch}${ui5Version.label ? `-${ui5Version.label}` : ''}.`);
|
|
458
|
+
this.logger.info(`Using sandbox template for UI5 version: ${ui5Version.major}.${ui5Version.minor}.${ui5Version.patch}${ui5Version.label ? `-${ui5Version.label}` : ''}.`);
|
|
459
459
|
const filePrefix = ui5Version.major > 1 || ui5Version.label?.includes('legacy-free') ? '2' : '';
|
|
460
460
|
const template = this.flpConfig.enhancedHomePage ? 'cdm' : 'sandbox';
|
|
461
461
|
return (0, fs_1.readFileSync)((0, path_1.join)(__dirname, `../../templates/flp/${template}${filePrefix}.html`), 'utf-8');
|
|
@@ -37,7 +37,7 @@ sap.ui.define(["sap/ui/VersionInfo", "sap/base/Log"], function (VersionInfo, Log
|
|
|
37
37
|
library
|
|
38
38
|
}))?.version;
|
|
39
39
|
if (!version) {
|
|
40
|
-
Log.error('Could not get UI5 version of application. Using 1.130.0 as fallback.');
|
|
40
|
+
Log.error('Could not get UI5 version of application. Using version: 1.130.0 as fallback.');
|
|
41
41
|
version = '1.130.0';
|
|
42
42
|
}
|
|
43
43
|
const [major, minor, patch] = version.split('.').map(versionPart => parseInt(versionPart, 10));
|
|
@@ -48,7 +48,7 @@ function checkVersionInfo(versionInfo: Ui5VersionInfo): void {
|
|
|
48
48
|
export async function getUi5Version(library: string = 'sap.ui.core'): Promise<Ui5VersionInfo> {
|
|
49
49
|
let version = ((await VersionInfo.load({ library })) as SingleVersionInfo)?.version;
|
|
50
50
|
if (!version) {
|
|
51
|
-
Log.error('Could not get UI5 version of application. Using 1.130.0 as fallback.');
|
|
51
|
+
Log.error('Could not get UI5 version of application. Using version: 1.130.0 as fallback.');
|
|
52
52
|
version = '1.130.0';
|
|
53
53
|
}
|
|
54
54
|
const [major, minor, patch] = version.split('.').map((versionPart) => parseInt(versionPart, 10));
|
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.20.
|
|
12
|
+
"version": "0.20.47",
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"author": "@SAP/ux-tools-team",
|
|
15
15
|
"main": "dist/index.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"ejs": "3.1.10",
|
|
26
26
|
"mem-fs": "2.1.0",
|
|
27
27
|
"mem-fs-editor": "9.4.0",
|
|
28
|
-
"@sap-ux/adp-tooling": "0.14.
|
|
28
|
+
"@sap-ux/adp-tooling": "0.14.34",
|
|
29
29
|
"@sap-ux/btp-utils": "1.1.0",
|
|
30
30
|
"@sap-ux/control-property-editor-sources": "npm:@sap-ux/control-property-editor@0.6.6",
|
|
31
31
|
"@sap-ux/feature-toggle": "0.3.0",
|