@sap-ux/adp-tooling 0.15.5 → 0.15.7
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/helper.js +3 -31
- package/package.json +3 -3
package/dist/base/helper.js
CHANGED
|
@@ -140,45 +140,17 @@ function filterAndMapInboundsToManifest(inbounds) {
|
|
|
140
140
|
return undefined;
|
|
141
141
|
}
|
|
142
142
|
const filteredInbounds = inbounds.reduce((acc, inbound) => {
|
|
143
|
-
// Skip if hideLauncher is
|
|
144
|
-
if (!inbound?.content || inbound.content.hideLauncher
|
|
143
|
+
// Skip if hideLauncher is true
|
|
144
|
+
if (!inbound?.content || inbound.content.hideLauncher === true) {
|
|
145
145
|
return acc;
|
|
146
146
|
}
|
|
147
|
-
const { semanticObject, action
|
|
147
|
+
const { semanticObject, action } = inbound.content;
|
|
148
148
|
if (semanticObject && action) {
|
|
149
149
|
const key = `${semanticObject}-${action}`;
|
|
150
|
-
// Temporary filtration of parameters to avoid issues with merged manifest until release of ABAP Platform Cloud 2508
|
|
151
|
-
if (signature?.parameters) {
|
|
152
|
-
filterIboundsParameters(signature);
|
|
153
|
-
}
|
|
154
150
|
acc[key] = inbound.content;
|
|
155
151
|
}
|
|
156
152
|
return acc;
|
|
157
153
|
}, {});
|
|
158
154
|
return Object.keys(filteredInbounds).length === 0 ? undefined : filteredInbounds;
|
|
159
155
|
}
|
|
160
|
-
/**
|
|
161
|
-
* Filters parameters of the inbound signature to remove invalid or incomplete entries.
|
|
162
|
-
*
|
|
163
|
-
* @param {ManifestNamespace.SignatureDef} inboundSinature - The inbound signature definition to filter.
|
|
164
|
-
*/
|
|
165
|
-
function filterIboundsParameters(inboundSinature) {
|
|
166
|
-
Object.keys(inboundSinature.parameters).forEach((paramKey) => {
|
|
167
|
-
const param = inboundSinature.parameters[paramKey];
|
|
168
|
-
if (param.defaultValue && (!param.defaultValue.format || !param.defaultValue.value)) {
|
|
169
|
-
delete inboundSinature.parameters[paramKey];
|
|
170
|
-
return;
|
|
171
|
-
}
|
|
172
|
-
if (param.filter && !param.filter.format) {
|
|
173
|
-
delete inboundSinature.parameters[paramKey].filter;
|
|
174
|
-
}
|
|
175
|
-
if (param.launcherValue) {
|
|
176
|
-
Object.keys(param.launcherValue).forEach((launcherKey) => {
|
|
177
|
-
if (launcherKey !== 'value') {
|
|
178
|
-
delete param.launcherValue[launcherKey];
|
|
179
|
-
}
|
|
180
|
-
});
|
|
181
|
-
}
|
|
182
|
-
});
|
|
183
|
-
}
|
|
184
156
|
//# sourceMappingURL=helper.js.map
|
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%3Aadp-tooling"
|
|
11
11
|
},
|
|
12
|
-
"version": "0.15.
|
|
12
|
+
"version": "0.15.7",
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"author": "@SAP/ux-tools-team",
|
|
15
15
|
"main": "dist/index.js",
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
"prompts": "2.4.2",
|
|
34
34
|
"sanitize-filename": "1.6.3",
|
|
35
35
|
"uuid": "10.0.0",
|
|
36
|
-
"@sap-ux/axios-extension": "1.22.
|
|
36
|
+
"@sap-ux/axios-extension": "1.22.4",
|
|
37
37
|
"@sap-ux/btp-utils": "1.1.0",
|
|
38
38
|
"@sap-ux/inquirer-common": "0.7.27",
|
|
39
39
|
"@sap-ux/logger": "0.7.0",
|
|
40
40
|
"@sap-ux/project-access": "1.30.7",
|
|
41
41
|
"@sap-ux/project-input-validator": "0.6.12",
|
|
42
|
-
"@sap-ux/system-access": "0.6.
|
|
42
|
+
"@sap-ux/system-access": "0.6.11",
|
|
43
43
|
"@sap-ux/ui5-config": "0.29.0",
|
|
44
44
|
"@sap-ux/ui5-info": "0.12.1",
|
|
45
45
|
"@sap-ux/odata-service-writer": "0.27.12",
|