@sap-ux/preview-middleware 0.23.151 → 0.23.153

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.
@@ -333,10 +333,14 @@ function getPreviewPaths(config, logger = new logger_1.ToolsLogger()) {
333
333
  // add editor urls
334
334
  if (config.editors) {
335
335
  config.editors.rta?.endpoints.forEach((endpoint) => {
336
- urls.push({ path: endpoint.path, type: 'editor' });
336
+ urls.push({ path: endpoint.path.startsWith('/') ? endpoint.path : `/${endpoint.path}`, type: 'editor' });
337
337
  });
338
338
  if (config.editors.cardGenerator?.path) {
339
- urls.push({ path: config.editors.cardGenerator.path, type: 'editor' });
339
+ const cardGeneratorPath = config.editors.cardGenerator.path;
340
+ urls.push({
341
+ path: cardGeneratorPath.startsWith('/') ? cardGeneratorPath : `/${cardGeneratorPath}`,
342
+ type: 'editor'
343
+ });
340
344
  }
341
345
  }
342
346
  // add test urls if configured
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.23.151",
12
+ "version": "0.23.153",
13
13
  "license": "Apache-2.0",
14
14
  "author": "@SAP/ux-tools-team",
15
15
  "main": "dist/index.js",
@@ -27,9 +27,9 @@
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.90",
30
+ "@sap-ux/adp-tooling": "0.18.91",
31
31
  "@sap-ux/btp-utils": "1.1.9",
32
- "@sap-ux/control-property-editor-sources": "npm:@sap-ux/control-property-editor@0.7.20",
32
+ "@sap-ux/control-property-editor-sources": "npm:@sap-ux/control-property-editor@0.7.21",
33
33
  "@sap-ux/feature-toggle": "0.3.7",
34
34
  "@sap-ux/logger": "0.8.2",
35
35
  "@sap-ux/project-access": "1.35.13",