@abaplint/cli 2.113.73 → 2.113.74

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.
Files changed (2) hide show
  1. package/build/cli.js +14 -3
  2. package/package.json +2 -2
package/build/cli.js CHANGED
@@ -50464,6 +50464,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
50464
50464
  exports.Program = void 0;
50465
50465
  const _abap_object_1 = __webpack_require__(/*! ./_abap_object */ "./node_modules/@abaplint/core/build/src/objects/_abap_object.js");
50466
50466
  const _dynpros_1 = __webpack_require__(/*! ./_dynpros */ "./node_modules/@abaplint/core/build/src/objects/_dynpros.js");
50467
+ const xml_utils_1 = __webpack_require__(/*! ../xml_utils */ "./node_modules/@abaplint/core/build/src/xml_utils.js");
50467
50468
  class Program extends _abap_object_1.ABAPObject {
50468
50469
  getType() {
50469
50470
  return "PROG";
@@ -50476,8 +50477,9 @@ class Program extends _abap_object_1.ABAPObject {
50476
50477
  return [main];
50477
50478
  }
50478
50479
  getDescription() {
50479
- // todo
50480
- return undefined;
50480
+ var _a;
50481
+ this.parseXML();
50482
+ return (_a = this.parsedXML) === null || _a === void 0 ? void 0 : _a.description;
50481
50483
  }
50482
50484
  getAllowedNaming() {
50483
50485
  return {
@@ -50503,6 +50505,7 @@ class Program extends _abap_object_1.ABAPObject {
50503
50505
  }
50504
50506
  ////////////////////////////
50505
50507
  parseXML() {
50508
+ var _a, _b, _c;
50506
50509
  if (this.parsedXML !== undefined) {
50507
50510
  return;
50508
50511
  }
@@ -50512,15 +50515,23 @@ class Program extends _abap_object_1.ABAPObject {
50512
50515
  this.parsedXML = {
50513
50516
  isInclude: false,
50514
50517
  isModulePool: false,
50518
+ description: undefined,
50515
50519
  dynpros: [],
50516
50520
  };
50517
50521
  return;
50518
50522
  }
50523
+ let description = "";
50524
+ for (const t of (0, xml_utils_1.xmlToArray)((_c = (_b = (_a = parsed.abapGit) === null || _a === void 0 ? void 0 : _a["asx:abap"]["asx:values"]) === null || _b === void 0 ? void 0 : _b.TPOOL) === null || _c === void 0 ? void 0 : _c.item)) {
50525
+ if ((t === null || t === void 0 ? void 0 : t.ID) === "R") {
50526
+ description = t.ENTRY ? (0, xml_utils_1.unescape)(t.ENTRY) : "";
50527
+ }
50528
+ }
50519
50529
  const dynpros = (0, _dynpros_1.parseDynpros)(parsed);
50520
50530
  this.parsedXML = {
50521
50531
  isInclude: file ? file.getRaw().includes("<SUBC>I</SUBC>") : false,
50522
50532
  isModulePool: file ? file.getRaw().includes("<SUBC>M</SUBC>") : false,
50523
50533
  dynpros: dynpros,
50534
+ description: description,
50524
50535
  };
50525
50536
  }
50526
50537
  }
@@ -53331,7 +53342,7 @@ class Registry {
53331
53342
  }
53332
53343
  static abaplintVersion() {
53333
53344
  // magic, see build script "version.sh"
53334
- return "2.113.73";
53345
+ return "2.113.74";
53335
53346
  }
53336
53347
  getDDICReferences() {
53337
53348
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.113.73",
3
+ "version": "2.113.74",
4
4
  "description": "abaplint - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "homepage": "https://abaplint.org",
40
40
  "devDependencies": {
41
- "@abaplint/core": "^2.113.73",
41
+ "@abaplint/core": "^2.113.74",
42
42
  "@types/chai": "^4.3.20",
43
43
  "@types/glob": "^8.1.0",
44
44
  "@types/minimist": "^1.2.5",