@sap-ux/preview-middleware 0.25.16 → 0.25.17
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/config.js +3 -1
- package/package.json +6 -6
package/dist/base/config.js
CHANGED
|
@@ -144,8 +144,10 @@ function sanitizeConfig(config, logger) {
|
|
|
144
144
|
delete config.rta; //NOSONAR
|
|
145
145
|
}
|
|
146
146
|
if (config.editors?.rta && config.adp === undefined) {
|
|
147
|
+
const scenario = config.editors.rta.options?.scenario;
|
|
148
|
+
const developerModeSupported = scenario === 'FE_FROM_SCRATCH' || scenario === 'ADAPTATION_PROJECT';
|
|
147
149
|
config.editors.rta.endpoints = config.editors.rta.endpoints.map((editor) => {
|
|
148
|
-
if (editor.developerMode) {
|
|
150
|
+
if (editor.developerMode && !developerModeSupported) {
|
|
149
151
|
logger.error('developerMode is ONLY supported for SAP UI5 adaptation projects.');
|
|
150
152
|
logger.warn(`developerMode for ${editor.path} disabled`);
|
|
151
153
|
editor.developerMode = false;
|
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.25.
|
|
12
|
+
"version": "0.25.17",
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"author": "@SAP/ux-tools-team",
|
|
15
15
|
"main": "dist/index.js",
|
|
@@ -28,13 +28,13 @@
|
|
|
28
28
|
"qrcode": "1.5.4",
|
|
29
29
|
"@sap/bas-sdk": "3.13.3",
|
|
30
30
|
"@sap-ux/adp-tooling": "0.18.110",
|
|
31
|
-
"@sap-ux/btp-utils": "1.1.12",
|
|
32
31
|
"@sap-ux/control-property-editor-sources": "npm:@sap-ux/control-property-editor@0.7.23",
|
|
33
32
|
"@sap-ux/feature-toggle": "0.3.8",
|
|
34
33
|
"@sap-ux/logger": "0.8.4",
|
|
35
34
|
"@sap-ux/project-access": "1.35.18",
|
|
36
35
|
"@sap-ux/system-access": "0.7.4",
|
|
37
|
-
"@sap-ux/i18n": "0.3.10"
|
|
36
|
+
"@sap-ux/i18n": "0.3.10",
|
|
37
|
+
"@sap-ux/btp-utils": "1.1.12"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@sap-ux-private/playwright": "0.2.14",
|
|
@@ -53,10 +53,10 @@
|
|
|
53
53
|
"nock": "14.0.11",
|
|
54
54
|
"npm-run-all2": "8.0.4",
|
|
55
55
|
"supertest": "7.2.2",
|
|
56
|
-
"@
|
|
56
|
+
"@sap-ux/store": "1.5.12",
|
|
57
|
+
"@private/preview-middleware-client": "npm:@sap-ux-private/preview-middleware-client@0.25.17",
|
|
57
58
|
"@sap-ux/axios-extension": "1.25.28",
|
|
58
|
-
"@sap-ux/ui5-info": "0.13.17"
|
|
59
|
-
"@sap-ux/store": "1.5.12"
|
|
59
|
+
"@sap-ux/ui5-info": "0.13.17"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
62
|
"express": "4"
|