@sap-ux/axios-extension 1.10.1 → 1.10.2
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.
|
@@ -31,6 +31,12 @@ export declare class TransportChecksService extends AdtService {
|
|
|
31
31
|
* @returns a list of valid transport requests can be used for deploy config
|
|
32
32
|
*/
|
|
33
33
|
private getTransportRequestList;
|
|
34
|
+
/**
|
|
35
|
+
* Parses the document to find and log the <CTS_MESSAGE> with severity 'E' in <MESSAGES>.
|
|
36
|
+
*
|
|
37
|
+
* @param doc document
|
|
38
|
+
*/
|
|
39
|
+
private logErrorMsgs;
|
|
34
40
|
/**
|
|
35
41
|
* Provide a list of transport requests available for the input package name and project name
|
|
36
42
|
* in a ADT CTS request.
|
|
@@ -104,11 +104,28 @@ class TransportChecksService extends adt_service_1.AdtService {
|
|
|
104
104
|
case 'S':
|
|
105
105
|
return this.getTransportList(doc);
|
|
106
106
|
case 'E':
|
|
107
|
+
this.logErrorMsgs(doc);
|
|
108
|
+
return [];
|
|
107
109
|
default:
|
|
108
|
-
this.log.warn(`
|
|
110
|
+
this.log.warn(`Unknown response content: ${xml}`);
|
|
109
111
|
return [];
|
|
110
112
|
}
|
|
111
113
|
}
|
|
114
|
+
/**
|
|
115
|
+
* Parses the document to find and log the <CTS_MESSAGE> with severity 'E' in <MESSAGES>.
|
|
116
|
+
*
|
|
117
|
+
* @param doc document
|
|
118
|
+
*/
|
|
119
|
+
logErrorMsgs(doc) {
|
|
120
|
+
var _a, _b;
|
|
121
|
+
const messages = doc.getElementsByTagName('CTS_MESSAGE');
|
|
122
|
+
for (const msg of Array.from(messages)) {
|
|
123
|
+
if (((_a = msg.getElementsByTagName('SEVERITY')[0]) === null || _a === void 0 ? void 0 : _a.textContent) === 'E') {
|
|
124
|
+
const text = (_b = msg.getElementsByTagName('TEXT')[0]) === null || _b === void 0 ? void 0 : _b.textContent;
|
|
125
|
+
this.log.error(text);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
112
129
|
/**
|
|
113
130
|
* Provide a list of transport requests available for the input package name and project name
|
|
114
131
|
* in a ADT CTS request.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-ux/axios-extension",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.2",
|
|
4
4
|
"description": "Extension of the Axios module adding convenience methods to interact with SAP systems especially with OData services.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"@sap-ux/logger": "0.5.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@types/lodash": "4.14.
|
|
29
|
+
"@types/lodash": "4.14.202",
|
|
30
30
|
"nock": "13.4.0",
|
|
31
31
|
"supertest": "6.3.3",
|
|
32
|
-
"@sap-ux/project-access": "1.17.
|
|
32
|
+
"@sap-ux/project-access": "1.17.2"
|
|
33
33
|
},
|
|
34
34
|
"files": [
|
|
35
35
|
"dist",
|