@sap-ux/adp-tooling 1.0.41 → 1.0.43
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.
|
@@ -178,7 +178,13 @@ export class AdpPreview {
|
|
|
178
178
|
if (req.path === '/manifest.json') {
|
|
179
179
|
await this.sync();
|
|
180
180
|
res.status(200);
|
|
181
|
-
|
|
181
|
+
// Rewrite ui5://<namespace>/ to absolute paths in the manifest so that
|
|
182
|
+
// FLP Sandbox 2.0's CDM does not map enhanceWith bundleUrls to the backend.
|
|
183
|
+
// Use descriptorVariantId (from manifest.appdescr_variant) — the manifest's ui5:// URLs
|
|
184
|
+
// are built from the variant id, whereas mergedDescriptor.name is the base app reference.
|
|
185
|
+
const ui5Prefix = `ui5://${(this.descriptorVariantId ?? this.mergedDescriptor.name).replaceAll('.', '/')}/`;
|
|
186
|
+
const manifest = JSON.stringify(this.descriptor.manifest, undefined, 2).replaceAll(ui5Prefix, '/');
|
|
187
|
+
res.send(manifest);
|
|
182
188
|
}
|
|
183
189
|
else if (req.path === '/Component-preload.js') {
|
|
184
190
|
res.status(404).send();
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"bugs": {
|
|
11
11
|
"url": "https://github.com/SAP/open-ux-tools/issues?q=is%3Aopen+is%3Aissue+label%3Abug+label%3Aadp-tooling"
|
|
12
12
|
},
|
|
13
|
-
"version": "1.0.
|
|
13
|
+
"version": "1.0.43",
|
|
14
14
|
"license": "Apache-2.0",
|
|
15
15
|
"author": "@SAP/ux-tools-team",
|
|
16
16
|
"main": "dist/index.js",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"@sap-ux/axios-extension": "2.0.8",
|
|
41
41
|
"@sap-ux/btp-utils": "2.0.6",
|
|
42
42
|
"@sap-ux/i18n": "1.0.2",
|
|
43
|
-
"@sap-ux/inquirer-common": "1.0.
|
|
43
|
+
"@sap-ux/inquirer-common": "1.0.31",
|
|
44
44
|
"@sap-ux/logger": "1.0.3",
|
|
45
45
|
"@sap-ux/nodejs-utils": "1.0.9",
|
|
46
|
-
"@sap-ux/odata-service-writer": "1.0.
|
|
46
|
+
"@sap-ux/odata-service-writer": "1.0.18",
|
|
47
47
|
"@sap-ux/project-access": "2.1.10",
|
|
48
48
|
"@sap-ux/project-input-validator": "1.0.15",
|
|
49
49
|
"@sap-ux/store": "2.0.6",
|