@mcp-abap-adt/adt-clients 7.1.0 → 7.2.0
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versions.d.ts","sourceRoot":"","sources":["../../../src/core/shared/versions.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,cAAc,EACpB,MAAM,0BAA0B,CAAC;AAUlC,oFAAoF;AACpF,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"versions.d.ts","sourceRoot":"","sources":["../../../src/core/shared/versions.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,cAAc,EACpB,MAAM,0BAA0B,CAAC;AAUlC,oFAAoF;AACpF,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc,EAAE,CA8B/D;AAuBD;+EAC+E;AAC/E,wBAAgB,wBAAwB,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,KAAK,CAM/D;AAED;;;kEAGkE;AAClE,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,KAAK,CAWxE"}
|
|
@@ -27,6 +27,7 @@ function parseVersionsFeed(xml) {
|
|
|
27
27
|
return entries.map((e) => {
|
|
28
28
|
const content = e['atom:content'] ?? e.content ?? {};
|
|
29
29
|
const author = e['atom:author'] ?? e.author;
|
|
30
|
+
const transport = extractTransport(e);
|
|
30
31
|
return {
|
|
31
32
|
versionId: String(e['atom:id'] ?? e.id ?? ''),
|
|
32
33
|
author: author
|
|
@@ -37,9 +38,26 @@ function parseVersionsFeed(xml) {
|
|
|
37
38
|
: undefined,
|
|
38
39
|
title: title ? String(title) : undefined,
|
|
39
40
|
contentUri: String(content['@_src'] ?? ''),
|
|
41
|
+
transportRequest: transport.request,
|
|
42
|
+
transportDescription: transport.description,
|
|
40
43
|
};
|
|
41
44
|
});
|
|
42
45
|
}
|
|
46
|
+
const TRANSPORT_REL = 'http://www.sap.com/adt/relations/transport/request';
|
|
47
|
+
/** Pull the transport request (id + description) from a version entry's
|
|
48
|
+
* transport-request <atom:link>. An entry may carry two such links (sapgui +
|
|
49
|
+
* adt) with the same name — the first wins. Entries without a transport leave
|
|
50
|
+
* both undefined. */
|
|
51
|
+
function extractTransport(entry) {
|
|
52
|
+
const raw = entry['atom:link'] ?? entry.link;
|
|
53
|
+
const links = Array.isArray(raw) ? raw : raw ? [raw] : [];
|
|
54
|
+
const link = links.find((l) => l?.['@_rel'] === TRANSPORT_REL);
|
|
55
|
+
if (!link)
|
|
56
|
+
return {};
|
|
57
|
+
const request = String(link['@_adtcore:name'] ?? '') || undefined;
|
|
58
|
+
const description = String(link['@_title'] ?? '') || undefined;
|
|
59
|
+
return { request, description };
|
|
60
|
+
}
|
|
43
61
|
/** Throw a typed "no version history" error. Used by non-source types and by
|
|
44
62
|
* source types when SAP reports the versions resource is absent (404/406). */
|
|
45
63
|
function throwUnsupportedVersions(detail) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcp-abap-adt/adt-clients",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.2.0",
|
|
4
4
|
"description": "ADT clients for SAP ABAP systems - AdtClient and AdtRuntimeClient",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
"node": ">=18.0.0"
|
|
114
114
|
},
|
|
115
115
|
"dependencies": {
|
|
116
|
-
"@mcp-abap-adt/interfaces": "^9.
|
|
116
|
+
"@mcp-abap-adt/interfaces": "^9.1.0",
|
|
117
117
|
"@mcp-abap-adt/logger": "^0.1.3",
|
|
118
118
|
"axios": "^1.13.6",
|
|
119
119
|
"fast-xml-parser": "^5.4.1"
|