@abaplint/cli 2.113.26 → 2.113.28
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 +46 -18
- package/package.json +3 -3
package/build/cli.js
CHANGED
|
@@ -37767,10 +37767,11 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
37767
37767
|
exports.StructureType = void 0;
|
|
37768
37768
|
const _abstract_type_1 = __webpack_require__(/*! ./_abstract_type */ "./node_modules/@abaplint/core/build/src/abap/types/basic/_abstract_type.js");
|
|
37769
37769
|
class StructureType extends _abstract_type_1.AbstractType {
|
|
37770
|
-
constructor(components, qualifiedName, ddicName) {
|
|
37770
|
+
constructor(components, qualifiedName, ddicName, description) {
|
|
37771
37771
|
super({
|
|
37772
37772
|
qualifiedName: qualifiedName,
|
|
37773
37773
|
ddicName: ddicName,
|
|
37774
|
+
description: description,
|
|
37774
37775
|
});
|
|
37775
37776
|
if (components.length === 0) {
|
|
37776
37777
|
throw new Error("Structure does not contain any components");
|
|
@@ -37847,9 +37848,12 @@ var TableKeyType;
|
|
|
37847
37848
|
TableKeyType["empty"] = "EMPTY";
|
|
37848
37849
|
})(TableKeyType || (exports.TableKeyType = TableKeyType = {}));
|
|
37849
37850
|
class TableType extends _abstract_type_1.AbstractType {
|
|
37850
|
-
constructor(rowType, options, qualifiedName) {
|
|
37851
|
+
constructor(rowType, options, qualifiedName, description) {
|
|
37851
37852
|
var _a;
|
|
37852
|
-
super({
|
|
37853
|
+
super({
|
|
37854
|
+
qualifiedName: qualifiedName,
|
|
37855
|
+
description: description,
|
|
37856
|
+
});
|
|
37853
37857
|
this.rowType = rowType;
|
|
37854
37858
|
this.options = options;
|
|
37855
37859
|
if (((_a = options.primaryKey) === null || _a === void 0 ? void 0 : _a.type) === TableAccessType.standard && options.primaryKey.isUnique === true) {
|
|
@@ -40380,7 +40384,7 @@ const cds_as_1 = __webpack_require__(/*! ./cds_as */ "./node_modules/@abaplint/c
|
|
|
40380
40384
|
const cds_cast_1 = __webpack_require__(/*! ./cds_cast */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_cast.js");
|
|
40381
40385
|
class CDSElement extends combi_1.Expression {
|
|
40382
40386
|
getRunnable() {
|
|
40383
|
-
return (0, combi_1.seq)((0, combi_1.starPrio)(_1.CDSAnnotation), (0, combi_1.optPrio)("KEY"), (0, combi_1.altPrio)(_1.CDSAggregate, _1.CDSString, _1.CDSFunction, _1.CDSArithmetics, cds_cast_1.CDSCast, _1.CDSCase, (0, combi_1.seq)(_1.CDSName, ": REDIRECTED TO", (0, combi_1.opt)((0, combi_1.alt)("PARENT", "COMPOSITION CHILD")), _1.CDSName),
|
|
40387
|
+
return (0, combi_1.seq)((0, combi_1.starPrio)(_1.CDSAnnotation), (0, combi_1.optPrio)("KEY"), (0, combi_1.altPrio)(_1.CDSAggregate, _1.CDSString, _1.CDSFunction, _1.CDSArithmetics, cds_cast_1.CDSCast, _1.CDSCase, (0, combi_1.seq)(_1.CDSName, ": REDIRECTED TO", (0, combi_1.opt)((0, combi_1.alt)("PARENT", "COMPOSITION CHILD")), _1.CDSName), _1.CDSPrefixedName, (0, combi_1.regex)(/^\d+$/)), (0, combi_1.opt)(cds_as_1.CDSAs));
|
|
40384
40388
|
}
|
|
40385
40389
|
}
|
|
40386
40390
|
exports.CDSElement = CDSElement;
|
|
@@ -40618,6 +40622,29 @@ exports.CDSParametersSelect = CDSParametersSelect;
|
|
|
40618
40622
|
|
|
40619
40623
|
/***/ }),
|
|
40620
40624
|
|
|
40625
|
+
/***/ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_prefixed_name.js":
|
|
40626
|
+
/*!************************************************************************************!*\
|
|
40627
|
+
!*** ./node_modules/@abaplint/core/build/src/cds/expressions/cds_prefixed_name.js ***!
|
|
40628
|
+
\************************************************************************************/
|
|
40629
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
40630
|
+
|
|
40631
|
+
"use strict";
|
|
40632
|
+
|
|
40633
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
40634
|
+
exports.CDSPrefixedName = void 0;
|
|
40635
|
+
const combi_1 = __webpack_require__(/*! ../../abap/2_statements/combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
|
|
40636
|
+
const cds_name_1 = __webpack_require__(/*! ./cds_name */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_name.js");
|
|
40637
|
+
const cds_parameters_1 = __webpack_require__(/*! ./cds_parameters */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_parameters.js");
|
|
40638
|
+
class CDSPrefixedName extends combi_1.Expression {
|
|
40639
|
+
getRunnable() {
|
|
40640
|
+
return (0, combi_1.seq)(cds_name_1.CDSName, (0, combi_1.opt)(cds_parameters_1.CDSParameters), (0, combi_1.star)((0, combi_1.seq)(".", cds_name_1.CDSName, (0, combi_1.opt)(cds_parameters_1.CDSParameters))));
|
|
40641
|
+
}
|
|
40642
|
+
}
|
|
40643
|
+
exports.CDSPrefixedName = CDSPrefixedName;
|
|
40644
|
+
//# sourceMappingURL=cds_prefixed_name.js.map
|
|
40645
|
+
|
|
40646
|
+
/***/ }),
|
|
40647
|
+
|
|
40621
40648
|
/***/ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_provider_contract.js":
|
|
40622
40649
|
/*!****************************************************************************************!*\
|
|
40623
40650
|
!*** ./node_modules/@abaplint/core/build/src/cds/expressions/cds_provider_contract.js ***!
|
|
@@ -40681,7 +40708,7 @@ class CDSSelect extends combi_1.Expression {
|
|
|
40681
40708
|
const fields = (0, combi_1.opt)((0, combi_1.seq)((0, combi_1.star)((0, combi_1.seq)(_1.CDSElement, ",")), _1.CDSElement));
|
|
40682
40709
|
const distinct = (0, combi_1.str)("DISTINCT");
|
|
40683
40710
|
const elements = (0, combi_1.seq)((0, combi_1.str)("{"), (0, combi_1.plus)(_1.CDSElement), (0, combi_1.star)((0, combi_1.seq)(",", _1.CDSElement)), (0, combi_1.str)("}"));
|
|
40684
|
-
return (0, combi_1.seq)("SELECT", (0, combi_1.opt)(distinct), (0, combi_1.opt)(fields), "FROM", _1.CDSSource, (0, combi_1.
|
|
40711
|
+
return (0, combi_1.seq)("SELECT", (0, combi_1.opt)(distinct), (0, combi_1.opt)(fields), "FROM", _1.CDSSource, (0, combi_1.star)(cds_join_1.CDSJoin), (0, combi_1.star)(_1.CDSComposition), (0, combi_1.star)(cds_association_1.CDSAssociation), (0, combi_1.star)(_1.CDSComposition), (0, combi_1.opt)(elements), (0, combi_1.opt)(_1.CDSWhere), (0, combi_1.opt)(_1.CDSGroupBy), (0, combi_1.opt)(_1.CDSHaving), (0, combi_1.opt)((0, combi_1.seq)("UNION", (0, combi_1.opt)("ALL"), CDSSelect)));
|
|
40685
40712
|
}
|
|
40686
40713
|
}
|
|
40687
40714
|
exports.CDSSelect = CDSSelect;
|
|
@@ -40703,7 +40730,7 @@ const _1 = __webpack_require__(/*! . */ "./node_modules/@abaplint/core/build/src
|
|
|
40703
40730
|
const combi_1 = __webpack_require__(/*! ../../abap/2_statements/combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
|
|
40704
40731
|
class CDSSource extends combi_1.Expression {
|
|
40705
40732
|
getRunnable() {
|
|
40706
|
-
return (0, combi_1.seq)(_1.CDSName, (0, combi_1.opt)(_1.CDSAs));
|
|
40733
|
+
return (0, combi_1.seq)(_1.CDSName, (0, combi_1.opt)(_1.CDSParametersSelect), (0, combi_1.opt)(_1.CDSAs));
|
|
40707
40734
|
}
|
|
40708
40735
|
}
|
|
40709
40736
|
exports.CDSSource = CDSSource;
|
|
@@ -40851,6 +40878,7 @@ __exportStar(__webpack_require__(/*! ./cds_join */ "./node_modules/@abaplint/cor
|
|
|
40851
40878
|
__exportStar(__webpack_require__(/*! ./cds_name */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_name.js"), exports);
|
|
40852
40879
|
__exportStar(__webpack_require__(/*! ./cds_parameters_select */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_parameters_select.js"), exports);
|
|
40853
40880
|
__exportStar(__webpack_require__(/*! ./cds_parameters */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_parameters.js"), exports);
|
|
40881
|
+
__exportStar(__webpack_require__(/*! ./cds_prefixed_name */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_prefixed_name.js"), exports);
|
|
40854
40882
|
__exportStar(__webpack_require__(/*! ./cds_provider_contract */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_provider_contract.js"), exports);
|
|
40855
40883
|
__exportStar(__webpack_require__(/*! ./cds_relation */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_relation.js"), exports);
|
|
40856
40884
|
__exportStar(__webpack_require__(/*! ./cds_select */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_select.js"), exports);
|
|
@@ -46624,7 +46652,7 @@ class DataDefinition extends _abstract_object_1.AbstractObject {
|
|
|
46624
46652
|
}
|
|
46625
46653
|
findDescription() {
|
|
46626
46654
|
var _a;
|
|
46627
|
-
const match = (_a = this.findSourceFile()) === null || _a === void 0 ? void 0 : _a.getRaw().match(/@EndUserText\.label: '([\w ]+)'/);
|
|
46655
|
+
const match = (_a = this.findSourceFile()) === null || _a === void 0 ? void 0 : _a.getRaw().match(/@EndUserText\.label: '([\w,.: ]+)'/);
|
|
46628
46656
|
if (match) {
|
|
46629
46657
|
return match[1];
|
|
46630
46658
|
}
|
|
@@ -46642,7 +46670,7 @@ class DataDefinition extends _abstract_object_1.AbstractObject {
|
|
|
46642
46670
|
for (const e of (expr === null || expr === void 0 ? void 0 : expr.findDirectExpressions(expressions_1.CDSElement)) || []) {
|
|
46643
46671
|
let found = (_a = e.findDirectExpression(expressions_1.CDSAs)) === null || _a === void 0 ? void 0 : _a.findDirectExpression(expressions_1.CDSName);
|
|
46644
46672
|
if (found === undefined) {
|
|
46645
|
-
const list = e.
|
|
46673
|
+
const list = e.findAllExpressions(expressions_1.CDSName);
|
|
46646
46674
|
if (e.concatTokens().toUpperCase().includes(" REDIRECTED TO ")) {
|
|
46647
46675
|
found = list[0];
|
|
46648
46676
|
}
|
|
@@ -46672,7 +46700,7 @@ class DataDefinition extends _abstract_object_1.AbstractObject {
|
|
|
46672
46700
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
46673
46701
|
for (const e of tree.findAllExpressions(expressions_1.CDSSource)) {
|
|
46674
46702
|
const name = ((_a = e.getFirstChild()) === null || _a === void 0 ? void 0 : _a.concatTokens().toUpperCase().replace(/ /g, "")) || "ERROR";
|
|
46675
|
-
const as = (_c = (_b = e.findDirectExpression(expressions_1.CDSAs)) === null || _b === void 0 ? void 0 : _b.findDirectExpression(expressions_1.CDSName)) === null || _c === void 0 ? void 0 : _c.
|
|
46703
|
+
const as = (_c = (_b = e.findDirectExpression(expressions_1.CDSAs)) === null || _b === void 0 ? void 0 : _b.findDirectExpression(expressions_1.CDSName)) === null || _c === void 0 ? void 0 : _c.concatTokens().toUpperCase();
|
|
46676
46704
|
this.parsedData.sources.push({ name, as });
|
|
46677
46705
|
}
|
|
46678
46706
|
for (const e of tree.findAllExpressions(expressions_1.CDSRelation)) {
|
|
@@ -51485,7 +51513,7 @@ class Table extends _abstract_object_1.AbstractObject {
|
|
|
51485
51513
|
return new Types.UnknownType("Table/Structure " + this.getName() + " does not contain any components");
|
|
51486
51514
|
}
|
|
51487
51515
|
reg.getDDICReferences().setUsing(this, references);
|
|
51488
|
-
return new Types.StructureType(components, this.getName(), this.getName());
|
|
51516
|
+
return new Types.StructureType(components, this.getName(), this.getName(), this.getDescription());
|
|
51489
51517
|
}
|
|
51490
51518
|
getTableCategory() {
|
|
51491
51519
|
var _a;
|
|
@@ -51664,34 +51692,34 @@ class TableType extends _abstract_object_1.AbstractObject {
|
|
|
51664
51692
|
}
|
|
51665
51693
|
else if (this.parsedXML.rowkind === "S") {
|
|
51666
51694
|
const lookup = ddic.lookupTableOrView(this.parsedXML.rowtype);
|
|
51667
|
-
type = new Types.TableType(lookup.type, tableOptions, this.getName());
|
|
51695
|
+
type = new Types.TableType(lookup.type, tableOptions, this.getName(), this.getDescription());
|
|
51668
51696
|
if (lookup.object) {
|
|
51669
51697
|
references.push({ object: lookup.object });
|
|
51670
51698
|
}
|
|
51671
51699
|
}
|
|
51672
51700
|
else if (this.parsedXML.rowkind === "E") {
|
|
51673
51701
|
const lookup = ddic.lookupDataElement(this.parsedXML.rowtype);
|
|
51674
|
-
type = new Types.TableType(lookup.type, tableOptions, this.getName());
|
|
51702
|
+
type = new Types.TableType(lookup.type, tableOptions, this.getName(), this.getDescription());
|
|
51675
51703
|
if (lookup.object) {
|
|
51676
51704
|
references.push({ object: lookup.object });
|
|
51677
51705
|
}
|
|
51678
51706
|
}
|
|
51679
51707
|
else if (this.parsedXML.rowkind === "L") {
|
|
51680
51708
|
const lookup = ddic.lookupTableType(this.parsedXML.rowtype);
|
|
51681
|
-
type = new Types.TableType(lookup.type, tableOptions, this.getName());
|
|
51709
|
+
type = new Types.TableType(lookup.type, tableOptions, this.getName(), this.getDescription());
|
|
51682
51710
|
if (lookup.object) {
|
|
51683
51711
|
references.push({ object: lookup.object });
|
|
51684
51712
|
}
|
|
51685
51713
|
}
|
|
51686
51714
|
else if (this.parsedXML.rowkind === "R" && this.parsedXML.rowtype === "OBJECT") {
|
|
51687
|
-
type = new Types.TableType(new basic_1.GenericObjectReferenceType(), tableOptions, this.getName());
|
|
51715
|
+
type = new Types.TableType(new basic_1.GenericObjectReferenceType(), tableOptions, this.getName(), this.getDescription());
|
|
51688
51716
|
}
|
|
51689
51717
|
else if (this.parsedXML.rowkind === "R" && this.parsedXML.rowtype === "DATA") {
|
|
51690
|
-
type = new Types.TableType(new basic_1.DataReference(new Types.DataType()), tableOptions, this.getName());
|
|
51718
|
+
type = new Types.TableType(new basic_1.DataReference(new Types.DataType()), tableOptions, this.getName(), this.getDescription());
|
|
51691
51719
|
}
|
|
51692
51720
|
else if (this.parsedXML.rowkind === "R" && this.parsedXML.rowtype !== undefined) {
|
|
51693
51721
|
const lookup = ddic.lookupObject(this.parsedXML.rowtype);
|
|
51694
|
-
type = new Types.TableType(lookup.type, tableOptions, this.getName());
|
|
51722
|
+
type = new Types.TableType(lookup.type, tableOptions, this.getName(), this.getDescription());
|
|
51695
51723
|
if (lookup.object) {
|
|
51696
51724
|
references.push({ object: lookup.object });
|
|
51697
51725
|
}
|
|
@@ -51707,7 +51735,7 @@ class TableType extends _abstract_object_1.AbstractObject {
|
|
|
51707
51735
|
decimals: this.parsedXML.decimals,
|
|
51708
51736
|
infoText: this.getName(),
|
|
51709
51737
|
});
|
|
51710
|
-
type = new Types.TableType(row, tableOptions, this.getName());
|
|
51738
|
+
type = new Types.TableType(row, tableOptions, this.getName(), this.getDescription());
|
|
51711
51739
|
}
|
|
51712
51740
|
}
|
|
51713
51741
|
else {
|
|
@@ -52837,7 +52865,7 @@ class Registry {
|
|
|
52837
52865
|
}
|
|
52838
52866
|
static abaplintVersion() {
|
|
52839
52867
|
// magic, see build script "version.sh"
|
|
52840
|
-
return "2.113.
|
|
52868
|
+
return "2.113.28";
|
|
52841
52869
|
}
|
|
52842
52870
|
getDDICReferences() {
|
|
52843
52871
|
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.28",
|
|
4
4
|
"description": "abaplint - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
},
|
|
39
39
|
"homepage": "https://abaplint.org",
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@abaplint/core": "^2.113.
|
|
41
|
+
"@abaplint/core": "^2.113.28",
|
|
42
42
|
"@types/chai": "^4.3.20",
|
|
43
43
|
"@types/glob": "^8.1.0",
|
|
44
44
|
"@types/minimist": "^1.2.5",
|
|
45
45
|
"@types/mocha": "^10.0.9",
|
|
46
|
-
"@types/node": "^22.7.
|
|
46
|
+
"@types/node": "^22.7.9",
|
|
47
47
|
"@types/progress": "^2.0.7",
|
|
48
48
|
"chai": "^4.5.0",
|
|
49
49
|
"chalk": "^5.3.0",
|