@sap-ux/preview-middleware 0.25.11 → 0.25.12
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/utils/cards.js +4 -0
- package/dist/types/index.d.ts +13 -0
- package/package.json +2 -2
package/dist/base/utils/cards.js
CHANGED
|
@@ -41,6 +41,10 @@ function getIntegrationCard(multipleCard) {
|
|
|
41
41
|
},
|
|
42
42
|
entitySet: ''
|
|
43
43
|
};
|
|
44
|
+
// sanitize URL to avoid issues with double slashes when joining paths
|
|
45
|
+
if (integrationCard.manifest['sap.card']?.data?.request) {
|
|
46
|
+
integrationCard.manifest['sap.card'].data.request.url = integrationCard.manifest['sap.card'].data.request.url.replaceAll(/\/{2,}/g, '/');
|
|
47
|
+
}
|
|
44
48
|
prepareIntegrationCardForSaving(integrationCard.manifest);
|
|
45
49
|
return integrationCard;
|
|
46
50
|
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -248,6 +248,19 @@ export interface I18nEntry {
|
|
|
248
248
|
annotation?: string;
|
|
249
249
|
}
|
|
250
250
|
export interface CardManifest {
|
|
251
|
+
'sap.card'?: {
|
|
252
|
+
type?: string;
|
|
253
|
+
header?: Record<string, unknown>;
|
|
254
|
+
data?: {
|
|
255
|
+
request?: {
|
|
256
|
+
url: string;
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
configuration?: {
|
|
260
|
+
parameters?: Record<string, Record<string, unknown>>;
|
|
261
|
+
};
|
|
262
|
+
[key: string]: unknown;
|
|
263
|
+
};
|
|
251
264
|
'sap.insights': {
|
|
252
265
|
versions?: {
|
|
253
266
|
dtpMiddleware?: string;
|
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.12",
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"author": "@SAP/ux-tools-team",
|
|
15
15
|
"main": "dist/index.js",
|
|
@@ -53,7 +53,7 @@
|
|
|
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.
|
|
56
|
+
"@private/preview-middleware-client": "npm:@sap-ux-private/preview-middleware-client@0.25.12",
|
|
57
57
|
"@sap-ux/axios-extension": "1.25.28",
|
|
58
58
|
"@sap-ux/store": "1.5.12",
|
|
59
59
|
"@sap-ux/ui5-info": "0.13.17"
|