@abaplint/cli 2.113.73 → 2.113.75
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/build/cli.js +21 -4
- 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
|
-
|
|
50480
|
-
|
|
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
|
}
|
|
@@ -52311,6 +52322,11 @@ class Transaction extends _abstract_object_1.AbstractObject {
|
|
|
52311
52322
|
allowNamespace: true,
|
|
52312
52323
|
};
|
|
52313
52324
|
}
|
|
52325
|
+
getCInfo() {
|
|
52326
|
+
var _a;
|
|
52327
|
+
this.parse();
|
|
52328
|
+
return (_a = this.parsedXML) === null || _a === void 0 ? void 0 : _a.cinfo;
|
|
52329
|
+
}
|
|
52314
52330
|
getProgramName() {
|
|
52315
52331
|
var _a;
|
|
52316
52332
|
this.parse();
|
|
@@ -52322,7 +52338,7 @@ class Transaction extends _abstract_object_1.AbstractObject {
|
|
|
52322
52338
|
return (_a = this.parsedXML) === null || _a === void 0 ? void 0 : _a.description;
|
|
52323
52339
|
}
|
|
52324
52340
|
parse() {
|
|
52325
|
-
var _a, _b;
|
|
52341
|
+
var _a, _b, _c;
|
|
52326
52342
|
if (this.parsedXML) {
|
|
52327
52343
|
return { updated: false, runtime: 0 };
|
|
52328
52344
|
}
|
|
@@ -52336,6 +52352,7 @@ class Transaction extends _abstract_object_1.AbstractObject {
|
|
|
52336
52352
|
}
|
|
52337
52353
|
this.parsedXML.description = (_a = parsed.abapGit["asx:abap"]["asx:values"].TSTCT) === null || _a === void 0 ? void 0 : _a.TTEXT;
|
|
52338
52354
|
this.parsedXML.programName = (_b = parsed.abapGit["asx:abap"]["asx:values"].TSTC) === null || _b === void 0 ? void 0 : _b.PGMNA;
|
|
52355
|
+
this.parsedXML.cinfo = (_c = parsed.abapGit["asx:abap"]["asx:values"].TSTC) === null || _c === void 0 ? void 0 : _c.CINFO;
|
|
52339
52356
|
const end = Date.now();
|
|
52340
52357
|
return { updated: true, runtime: end - start };
|
|
52341
52358
|
}
|
|
@@ -53331,7 +53348,7 @@ class Registry {
|
|
|
53331
53348
|
}
|
|
53332
53349
|
static abaplintVersion() {
|
|
53333
53350
|
// magic, see build script "version.sh"
|
|
53334
|
-
return "2.113.
|
|
53351
|
+
return "2.113.75";
|
|
53335
53352
|
}
|
|
53336
53353
|
getDDICReferences() {
|
|
53337
53354
|
return this.ddicReferences;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/cli",
|
|
3
|
-
"version": "2.113.
|
|
3
|
+
"version": "2.113.75",
|
|
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.
|
|
41
|
+
"@abaplint/core": "^2.113.75",
|
|
42
42
|
"@types/chai": "^4.3.20",
|
|
43
43
|
"@types/glob": "^8.1.0",
|
|
44
44
|
"@types/minimist": "^1.2.5",
|