@sap-ux/preview-middleware 1.2.14 → 1.2.16

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.
@@ -409,6 +409,7 @@ export declare class FlpSandbox {
409
409
  * Setup the CF build path mode for the ADP project.
410
410
  *
411
411
  * @param cfBuildPath path to the build output folder
412
+ * @param adp AdpPreview instance for proxying manifest requests
412
413
  * @returns the manifest
413
414
  */
414
415
  private setupCfBuildMode;
package/dist/base/flp.js CHANGED
@@ -1086,7 +1086,7 @@ export class FlpSandbox {
1086
1086
  const layer = await adp.init(variant);
1087
1087
  // CF ADP build path mode: serve built resources directly from build output
1088
1088
  if ('cfBuildPath' in config) {
1089
- const manifest = this.setupCfBuildMode(config.cfBuildPath);
1089
+ const manifest = this.setupCfBuildMode(config.cfBuildPath, adp);
1090
1090
  configureRta(this.rta, layer, variant.id, false, true);
1091
1091
  await this.init(manifest, variant.reference, {}, adp);
1092
1092
  await this.setupAdpCommonHandlers(adp);
@@ -1171,10 +1171,12 @@ export class FlpSandbox {
1171
1171
  * Setup the CF build path mode for the ADP project.
1172
1172
  *
1173
1173
  * @param cfBuildPath path to the build output folder
1174
+ * @param adp AdpPreview instance for proxying manifest requests
1174
1175
  * @returns the manifest
1175
1176
  */
1176
- setupCfBuildMode(cfBuildPath) {
1177
+ setupCfBuildMode(cfBuildPath, adp) {
1177
1178
  const manifest = readManifestFromBuildPath(cfBuildPath);
1179
+ this.router.use(adp.descriptor.url, adp.cfProxy.bind(adp));
1178
1180
  this.router.use('/', serveStatic(cfBuildPath));
1179
1181
  this.logger.info(`Initialized CF ADP with cfBuildPath, serving from ${cfBuildPath}`);
1180
1182
  return manifest;
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%3Apreview-middleware"
12
12
  },
13
- "version": "1.2.14",
13
+ "version": "1.2.16",
14
14
  "license": "Apache-2.0",
15
15
  "author": "@SAP/ux-tools-team",
16
16
  "main": "dist/index.js",
@@ -28,7 +28,7 @@
28
28
  "mem-fs-editor": "9.4.0",
29
29
  "qrcode": "1.5.4",
30
30
  "@sap/bas-sdk": "3.13.10",
31
- "@sap-ux/adp-tooling": "1.0.54",
31
+ "@sap-ux/adp-tooling": "1.0.56",
32
32
  "@sap-ux/btp-utils": "2.0.6",
33
33
  "@sap-ux/control-property-editor-sources": "npm:@sap-ux/control-property-editor@1.0.11",
34
34
  "@sap-ux/feature-toggle": "1.0.5",
@@ -54,7 +54,7 @@
54
54
  "nock": "14.0.16",
55
55
  "npm-run-all2": "9.0.2",
56
56
  "supertest": "7.2.2",
57
- "@private/preview-middleware-client": "npm:@sap-ux-private/preview-middleware-client@1.2.14",
57
+ "@private/preview-middleware-client": "npm:@sap-ux-private/preview-middleware-client@1.2.16",
58
58
  "@sap-ux-private/playwright": "1.0.6",
59
59
  "@sap-ux/axios-extension": "2.1.0",
60
60
  "@sap-ux/store": "2.0.7",