@sap-ux/preview-middleware 0.25.1 → 0.25.3
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
|
@@ -282,7 +282,8 @@ class FlpSandbox {
|
|
|
282
282
|
params['fiori-tools-rta-mode'] = 'true';
|
|
283
283
|
params['sap-ui-rta-skip-flex-validation'] = 'true';
|
|
284
284
|
params['sap-ui-xx-condense-changes'] = 'true';
|
|
285
|
-
|
|
285
|
+
const redirectUrl = new URL(`${url}?${new URLSearchParams(params)}`, 'http://localhost');
|
|
286
|
+
res.redirect(302, `${redirectUrl.pathname}${redirectUrl.search}`);
|
|
286
287
|
return;
|
|
287
288
|
}
|
|
288
289
|
const html = (await this.generateSandboxForEditor(req, rta, editor)).replace('</body>', `</body>\n<!-- livereload disabled for editor </body>-->`);
|
|
@@ -329,7 +330,8 @@ class FlpSandbox {
|
|
|
329
330
|
const url = 'ui5-patched-router' in req ? node_path_1.posix.join(req['ui5-patched-router']?.baseUrl ?? '', req.path) : req.path;
|
|
330
331
|
const params = structuredClone(req.query);
|
|
331
332
|
params['sap-ui-xx-viewCache'] = 'false';
|
|
332
|
-
|
|
333
|
+
const redirectUrl = new URL(`${url}?${new URLSearchParams(params)}`, 'http://localhost');
|
|
334
|
+
res.redirect(302, `${redirectUrl.pathname}${redirectUrl.search}`);
|
|
333
335
|
return;
|
|
334
336
|
}
|
|
335
337
|
await this.setApplicationDependencies();
|
|
@@ -284,7 +284,7 @@ sap.ui.define((function () { 'use strict';
|
|
|
284
284
|
*/
|
|
285
285
|
function postMessageListener(event) {
|
|
286
286
|
const target = getTarget();
|
|
287
|
-
if (
|
|
287
|
+
if (event.origin !== target?.origin || event.source !== target) {
|
|
288
288
|
// Ignore messages from unknown sources
|
|
289
289
|
return;
|
|
290
290
|
}
|
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.3",
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"author": "@SAP/ux-tools-team",
|
|
15
15
|
"main": "dist/index.js",
|
|
@@ -27,25 +27,25 @@
|
|
|
27
27
|
"mem-fs-editor": "9.4.0",
|
|
28
28
|
"qrcode": "1.5.4",
|
|
29
29
|
"@sap/bas-sdk": "3.13.3",
|
|
30
|
-
"@sap-ux/adp-tooling": "0.18.
|
|
31
|
-
"@sap-ux/btp-utils": "1.1.
|
|
30
|
+
"@sap-ux/adp-tooling": "0.18.102",
|
|
31
|
+
"@sap-ux/btp-utils": "1.1.11",
|
|
32
32
|
"@sap-ux/control-property-editor-sources": "npm:@sap-ux/control-property-editor@0.7.22",
|
|
33
33
|
"@sap-ux/feature-toggle": "0.3.7",
|
|
34
|
-
"@sap-ux/logger": "0.8.
|
|
35
|
-
"@sap-ux/project-access": "1.35.
|
|
36
|
-
"@sap-ux/system-access": "0.7.
|
|
37
|
-
"@sap-ux/i18n": "0.3.
|
|
34
|
+
"@sap-ux/logger": "0.8.3",
|
|
35
|
+
"@sap-ux/project-access": "1.35.16",
|
|
36
|
+
"@sap-ux/system-access": "0.7.2",
|
|
37
|
+
"@sap-ux/i18n": "0.3.10"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@sap-ux-private/playwright": "0.2.
|
|
40
|
+
"@sap-ux-private/playwright": "0.2.13",
|
|
41
41
|
"@types/connect": "^3.4.38",
|
|
42
|
-
"@types/qrcode": "1.5.
|
|
43
|
-
"@types/ejs": "3.1.
|
|
42
|
+
"@types/qrcode": "1.5.6",
|
|
43
|
+
"@types/ejs": "3.1.5",
|
|
44
44
|
"@types/express": "4.17.21",
|
|
45
45
|
"@types/mem-fs": "1.1.2",
|
|
46
46
|
"@types/mem-fs-editor": "7.0.1",
|
|
47
|
-
"@types/prompts": "2.4.
|
|
48
|
-
"@types/supertest": "2.0
|
|
47
|
+
"@types/prompts": "2.4.9",
|
|
48
|
+
"@types/supertest": "7.2.0",
|
|
49
49
|
"connect": "^3.7.0",
|
|
50
50
|
"copyfiles": "2.4.1",
|
|
51
51
|
"dotenv": "17.3.1",
|
|
@@ -54,9 +54,9 @@
|
|
|
54
54
|
"npm-run-all2": "8.0.4",
|
|
55
55
|
"supertest": "7.2.2",
|
|
56
56
|
"@private/preview-middleware-client": "npm:@sap-ux-private/preview-middleware-client@0.19.1",
|
|
57
|
-
"@sap-ux/axios-extension": "1.25.
|
|
58
|
-
"@sap-ux/store": "1.5.
|
|
59
|
-
"@sap-ux/ui5-info": "0.13.
|
|
57
|
+
"@sap-ux/axios-extension": "1.25.26",
|
|
58
|
+
"@sap-ux/store": "1.5.11",
|
|
59
|
+
"@sap-ux/ui5-info": "0.13.16"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
62
|
"express": "4"
|