@abaplint/cli 2.113.25 → 2.113.27
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 -6
- package/package.json +3 -3
package/build/cli.js
CHANGED
|
@@ -40380,7 +40380,7 @@ const cds_as_1 = __webpack_require__(/*! ./cds_as */ "./node_modules/@abaplint/c
|
|
|
40380
40380
|
const cds_cast_1 = __webpack_require__(/*! ./cds_cast */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_cast.js");
|
|
40381
40381
|
class CDSElement extends combi_1.Expression {
|
|
40382
40382
|
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),
|
|
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), _1.CDSPrefixedName, (0, combi_1.regex)(/^\d+$/)), (0, combi_1.opt)(cds_as_1.CDSAs));
|
|
40384
40384
|
}
|
|
40385
40385
|
}
|
|
40386
40386
|
exports.CDSElement = CDSElement;
|
|
@@ -40618,6 +40618,29 @@ exports.CDSParametersSelect = CDSParametersSelect;
|
|
|
40618
40618
|
|
|
40619
40619
|
/***/ }),
|
|
40620
40620
|
|
|
40621
|
+
/***/ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_prefixed_name.js":
|
|
40622
|
+
/*!************************************************************************************!*\
|
|
40623
|
+
!*** ./node_modules/@abaplint/core/build/src/cds/expressions/cds_prefixed_name.js ***!
|
|
40624
|
+
\************************************************************************************/
|
|
40625
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
40626
|
+
|
|
40627
|
+
"use strict";
|
|
40628
|
+
|
|
40629
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
40630
|
+
exports.CDSPrefixedName = void 0;
|
|
40631
|
+
const combi_1 = __webpack_require__(/*! ../../abap/2_statements/combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
|
|
40632
|
+
const cds_name_1 = __webpack_require__(/*! ./cds_name */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_name.js");
|
|
40633
|
+
const cds_parameters_1 = __webpack_require__(/*! ./cds_parameters */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_parameters.js");
|
|
40634
|
+
class CDSPrefixedName extends combi_1.Expression {
|
|
40635
|
+
getRunnable() {
|
|
40636
|
+
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))));
|
|
40637
|
+
}
|
|
40638
|
+
}
|
|
40639
|
+
exports.CDSPrefixedName = CDSPrefixedName;
|
|
40640
|
+
//# sourceMappingURL=cds_prefixed_name.js.map
|
|
40641
|
+
|
|
40642
|
+
/***/ }),
|
|
40643
|
+
|
|
40621
40644
|
/***/ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_provider_contract.js":
|
|
40622
40645
|
/*!****************************************************************************************!*\
|
|
40623
40646
|
!*** ./node_modules/@abaplint/core/build/src/cds/expressions/cds_provider_contract.js ***!
|
|
@@ -40681,7 +40704,7 @@ class CDSSelect extends combi_1.Expression {
|
|
|
40681
40704
|
const fields = (0, combi_1.opt)((0, combi_1.seq)((0, combi_1.star)((0, combi_1.seq)(_1.CDSElement, ",")), _1.CDSElement));
|
|
40682
40705
|
const distinct = (0, combi_1.str)("DISTINCT");
|
|
40683
40706
|
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.
|
|
40707
|
+
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
40708
|
}
|
|
40686
40709
|
}
|
|
40687
40710
|
exports.CDSSelect = CDSSelect;
|
|
@@ -40703,7 +40726,7 @@ const _1 = __webpack_require__(/*! . */ "./node_modules/@abaplint/core/build/src
|
|
|
40703
40726
|
const combi_1 = __webpack_require__(/*! ../../abap/2_statements/combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
|
|
40704
40727
|
class CDSSource extends combi_1.Expression {
|
|
40705
40728
|
getRunnable() {
|
|
40706
|
-
return (0, combi_1.seq)(_1.CDSName, (0, combi_1.opt)(_1.CDSAs));
|
|
40729
|
+
return (0, combi_1.seq)(_1.CDSName, (0, combi_1.opt)(_1.CDSParametersSelect), (0, combi_1.opt)(_1.CDSAs));
|
|
40707
40730
|
}
|
|
40708
40731
|
}
|
|
40709
40732
|
exports.CDSSource = CDSSource;
|
|
@@ -40851,6 +40874,7 @@ __exportStar(__webpack_require__(/*! ./cds_join */ "./node_modules/@abaplint/cor
|
|
|
40851
40874
|
__exportStar(__webpack_require__(/*! ./cds_name */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_name.js"), exports);
|
|
40852
40875
|
__exportStar(__webpack_require__(/*! ./cds_parameters_select */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_parameters_select.js"), exports);
|
|
40853
40876
|
__exportStar(__webpack_require__(/*! ./cds_parameters */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_parameters.js"), exports);
|
|
40877
|
+
__exportStar(__webpack_require__(/*! ./cds_prefixed_name */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_prefixed_name.js"), exports);
|
|
40854
40878
|
__exportStar(__webpack_require__(/*! ./cds_provider_contract */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_provider_contract.js"), exports);
|
|
40855
40879
|
__exportStar(__webpack_require__(/*! ./cds_relation */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_relation.js"), exports);
|
|
40856
40880
|
__exportStar(__webpack_require__(/*! ./cds_select */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_select.js"), exports);
|
|
@@ -46642,7 +46666,7 @@ class DataDefinition extends _abstract_object_1.AbstractObject {
|
|
|
46642
46666
|
for (const e of (expr === null || expr === void 0 ? void 0 : expr.findDirectExpressions(expressions_1.CDSElement)) || []) {
|
|
46643
46667
|
let found = (_a = e.findDirectExpression(expressions_1.CDSAs)) === null || _a === void 0 ? void 0 : _a.findDirectExpression(expressions_1.CDSName);
|
|
46644
46668
|
if (found === undefined) {
|
|
46645
|
-
const list = e.
|
|
46669
|
+
const list = e.findAllExpressions(expressions_1.CDSName);
|
|
46646
46670
|
if (e.concatTokens().toUpperCase().includes(" REDIRECTED TO ")) {
|
|
46647
46671
|
found = list[0];
|
|
46648
46672
|
}
|
|
@@ -46672,7 +46696,7 @@ class DataDefinition extends _abstract_object_1.AbstractObject {
|
|
|
46672
46696
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
46673
46697
|
for (const e of tree.findAllExpressions(expressions_1.CDSSource)) {
|
|
46674
46698
|
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.
|
|
46699
|
+
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
46700
|
this.parsedData.sources.push({ name, as });
|
|
46677
46701
|
}
|
|
46678
46702
|
for (const e of tree.findAllExpressions(expressions_1.CDSRelation)) {
|
|
@@ -51464,6 +51488,7 @@ class Table extends _abstract_object_1.AbstractObject {
|
|
|
51464
51488
|
length: length,
|
|
51465
51489
|
decimals: field.DECIMALS,
|
|
51466
51490
|
infoText: this.getName() + "-" + field.FIELDNAME,
|
|
51491
|
+
description: field.DDTEXT,
|
|
51467
51492
|
})
|
|
51468
51493
|
});
|
|
51469
51494
|
}
|
|
@@ -51541,6 +51566,7 @@ class Table extends _abstract_object_1.AbstractObject {
|
|
|
51541
51566
|
GROUPNAME: field.GROUPNAME,
|
|
51542
51567
|
CHECKTABLE: field.CHECKTABLE,
|
|
51543
51568
|
REFTYPE: field.REFTYPE,
|
|
51569
|
+
DDTEXT: field.DDTEXT,
|
|
51544
51570
|
});
|
|
51545
51571
|
}
|
|
51546
51572
|
}
|
|
@@ -52050,6 +52076,19 @@ class View extends _abstract_object_1.AbstractObject {
|
|
|
52050
52076
|
}
|
|
52051
52077
|
return new Types.StructureType(components, this.getName());
|
|
52052
52078
|
}
|
|
52079
|
+
listKeys() {
|
|
52080
|
+
var _a;
|
|
52081
|
+
if (this.parsedData === undefined) {
|
|
52082
|
+
this.parseXML();
|
|
52083
|
+
}
|
|
52084
|
+
const ret = [];
|
|
52085
|
+
for (const p of ((_a = this.parsedData) === null || _a === void 0 ? void 0 : _a.fields) || []) {
|
|
52086
|
+
if (p.KEYFLAG === "X") {
|
|
52087
|
+
ret.push(p.FIELDNAME);
|
|
52088
|
+
}
|
|
52089
|
+
}
|
|
52090
|
+
return ret;
|
|
52091
|
+
}
|
|
52053
52092
|
getDescription() {
|
|
52054
52093
|
var _a;
|
|
52055
52094
|
if (this.parsedData === undefined) {
|
|
@@ -52083,6 +52122,7 @@ class View extends _abstract_object_1.AbstractObject {
|
|
|
52083
52122
|
VIEWFIELD: field.VIEWFIELD,
|
|
52084
52123
|
TABNAME: field.TABNAME,
|
|
52085
52124
|
FIELDNAME: field.FIELDNAME,
|
|
52125
|
+
KEYFLAG: field.KEYFLAG,
|
|
52086
52126
|
});
|
|
52087
52127
|
}
|
|
52088
52128
|
const join = (_c = parsed.abapGit["asx:abap"]["asx:values"]) === null || _c === void 0 ? void 0 : _c.DD28J_TABLE;
|
|
@@ -52821,7 +52861,7 @@ class Registry {
|
|
|
52821
52861
|
}
|
|
52822
52862
|
static abaplintVersion() {
|
|
52823
52863
|
// magic, see build script "version.sh"
|
|
52824
|
-
return "2.113.
|
|
52864
|
+
return "2.113.27";
|
|
52825
52865
|
}
|
|
52826
52866
|
getDDICReferences() {
|
|
52827
52867
|
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.27",
|
|
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.27",
|
|
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.8",
|
|
47
47
|
"@types/progress": "^2.0.7",
|
|
48
48
|
"chai": "^4.5.0",
|
|
49
49
|
"chalk": "^5.3.0",
|