@sap-ux/preview-middleware 0.25.39 → 0.25.40

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.
@@ -150,9 +150,9 @@ sap.ui.define(["sap/base/Log", "open/ux/preview/client/thirdparty/@sap-ux-privat
150
150
  async function registerComponentDependencyPaths(appUrls, urlParams) {
151
151
  const libs = await getManifestLibs(appUrls);
152
152
  if (libs && libs.length > 0) {
153
- let url = '/sap/bc/ui2/app_index/ui5_app_info?id=' + libs;
153
+ let url = '/sap/bc/ui2/app_index/ui5_app_info?id=' + encodeURIComponent(libs);
154
154
  const sapClient = urlParams.get('sap-client');
155
- if (sapClient?.length === 3) {
155
+ if (sapClient?.length === 3 && /^\d+$/.test(sapClient)) {
156
156
  url = url + '&sap-client=' + sapClient;
157
157
  }
158
158
  const response = await fetch(url);
@@ -185,9 +185,9 @@ export async function resetAppState(container: typeof sap.ushell.Container): Pro
185
185
  export async function registerComponentDependencyPaths(appUrls: string[], urlParams: URLSearchParams): Promise<void> {
186
186
  const libs = await getManifestLibs(appUrls);
187
187
  if (libs && libs.length > 0) {
188
- let url = '/sap/bc/ui2/app_index/ui5_app_info?id=' + libs;
188
+ let url = '/sap/bc/ui2/app_index/ui5_app_info?id=' + encodeURIComponent(libs);
189
189
  const sapClient = urlParams.get('sap-client');
190
- if (sapClient?.length === 3) {
190
+ if (sapClient?.length === 3 && /^\d+$/.test(sapClient)) {
191
191
  url = url + '&sap-client=' + sapClient;
192
192
  }
193
193
  const response = await fetch(url);
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.39",
12
+ "version": "0.25.40",
13
13
  "license": "Apache-2.0",
14
14
  "author": "@SAP/ux-tools-team",
15
15
  "main": "dist/index.js",
@@ -29,10 +29,10 @@
29
29
  "@sap/bas-sdk": "3.13.6",
30
30
  "@sap-ux/adp-tooling": "0.18.129",
31
31
  "@sap-ux/btp-utils": "1.1.15",
32
- "@sap-ux/control-property-editor-sources": "npm:@sap-ux/control-property-editor@0.7.25",
33
32
  "@sap-ux/feature-toggle": "0.3.8",
34
33
  "@sap-ux/logger": "0.8.5",
35
34
  "@sap-ux/project-access": "1.36.3",
35
+ "@sap-ux/control-property-editor-sources": "npm:@sap-ux/control-property-editor@0.7.25",
36
36
  "@sap-ux/system-access": "0.7.11",
37
37
  "@sap-ux/i18n": "0.3.11"
38
38
  },
@@ -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
- "@private/preview-middleware-client": "npm:@sap-ux-private/preview-middleware-client@0.25.39",
57
56
  "@sap-ux/axios-extension": "1.25.35",
58
- "@sap-ux/store": "1.5.13",
59
- "@sap-ux/ui5-info": "0.13.21"
57
+ "@private/preview-middleware-client": "npm:@sap-ux-private/preview-middleware-client@0.25.40",
58
+ "@sap-ux/ui5-info": "0.13.21",
59
+ "@sap-ux/store": "1.5.13"
60
60
  },
61
61
  "peerDependencies": {
62
62
  "express": "4"