@sap-ux/deploy-tooling 0.11.5 → 0.11.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/validate.js +25 -4
- package/package.json +5 -5
package/dist/base/validate.js
CHANGED
|
@@ -59,6 +59,7 @@ function validateBeforeDeploy(config, provider, logger) {
|
|
|
59
59
|
};
|
|
60
60
|
// output is passed by reference and status updated during the internal pipeline below.
|
|
61
61
|
yield validateInputTextFormat(input, output, provider, logger);
|
|
62
|
+
convertInputsForAdtValidations(input, output);
|
|
62
63
|
yield validatePackageWithAdt(input, output, provider, logger);
|
|
63
64
|
yield validateTransportRequestWithAdt(input, output, provider, logger);
|
|
64
65
|
return output;
|
|
@@ -96,6 +97,29 @@ function formatSummary(summary) {
|
|
|
96
97
|
return summaryStr;
|
|
97
98
|
}
|
|
98
99
|
exports.formatSummary = formatSummary;
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @param input
|
|
103
|
+
* @param output
|
|
104
|
+
*/
|
|
105
|
+
function convertInputsForAdtValidations(input, output) {
|
|
106
|
+
const upperCasePackageName = input.package.toUpperCase();
|
|
107
|
+
const upperCaseTransport = input.transport.toUpperCase();
|
|
108
|
+
if (upperCasePackageName !== input.package) {
|
|
109
|
+
input.package = upperCasePackageName;
|
|
110
|
+
output.summary.push({
|
|
111
|
+
message: `Package name contains lower case letter(s). ${input.package} is used for ADT validation.`,
|
|
112
|
+
status: SummaryStatus.Unknown
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
if (upperCaseTransport !== input.transport) {
|
|
116
|
+
input.transport = upperCaseTransport;
|
|
117
|
+
output.summary.push({
|
|
118
|
+
message: `Transport request number contains lower case letter(s). ${input.transport} is used for ADT validation.`,
|
|
119
|
+
status: SummaryStatus.Unknown
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
}
|
|
99
123
|
/**
|
|
100
124
|
* Client-side validation on the deploy configuration based on the
|
|
101
125
|
* known input format constraints.
|
|
@@ -222,10 +246,7 @@ function validatePackageWithAdt(input, output, provider, logger) {
|
|
|
222
246
|
return;
|
|
223
247
|
}
|
|
224
248
|
// ADT expects input package
|
|
225
|
-
|
|
226
|
-
if (inputPackage.toUpperCase() === '$TMP') {
|
|
227
|
-
inputPackage = '$TMP';
|
|
228
|
-
}
|
|
249
|
+
const inputPackage = input.package;
|
|
229
250
|
try {
|
|
230
251
|
const adtService = yield provider.getAdtService(axios_extension_1.ListPackageService);
|
|
231
252
|
if (!adtService) {
|
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%3Adeploy-tooling"
|
|
11
11
|
},
|
|
12
|
-
"version": "0.11.
|
|
12
|
+
"version": "0.11.7",
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"author": "@SAP/ux-tools-team",
|
|
15
15
|
"main": "dist/index.js",
|
|
@@ -26,16 +26,16 @@
|
|
|
26
26
|
"!dist/**/*.map"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"axios": "1.
|
|
29
|
+
"axios": "1.6.0",
|
|
30
30
|
"commander": "9.4.0",
|
|
31
31
|
"dotenv": "16.3.1",
|
|
32
32
|
"prompts": "2.4.2",
|
|
33
33
|
"adm-zip": "0.5.10",
|
|
34
34
|
"chalk": "4.1.2",
|
|
35
|
-
"@sap-ux/axios-extension": "1.7.
|
|
36
|
-
"@sap-ux/btp-utils": "0.12.
|
|
35
|
+
"@sap-ux/axios-extension": "1.7.3",
|
|
36
|
+
"@sap-ux/btp-utils": "0.12.1",
|
|
37
37
|
"@sap-ux/logger": "0.4.0",
|
|
38
|
-
"@sap-ux/system-access": "0.3.
|
|
38
|
+
"@sap-ux/system-access": "0.3.5",
|
|
39
39
|
"@sap-ux/ui5-config": "0.20.0",
|
|
40
40
|
"@sap-ux/project-input-validator": "0.2.1"
|
|
41
41
|
},
|