@abaplint/cli 2.113.48 → 2.113.50
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 +68 -36
- package/package.json +2 -2
package/build/cli.js
CHANGED
|
@@ -40121,7 +40121,7 @@ const combi_1 = __webpack_require__(/*! ../../abap/2_statements/combi */ "./node
|
|
|
40121
40121
|
class CDSAggregate extends combi_1.Expression {
|
|
40122
40122
|
getRunnable() {
|
|
40123
40123
|
const name = (0, combi_1.seq)(_1.CDSName, (0, combi_1.opt)((0, combi_1.seq)(".", _1.CDSName)));
|
|
40124
|
-
const value = (0, combi_1.alt)(name, _1.CDSCast, _1.CDSCase);
|
|
40124
|
+
const value = (0, combi_1.alt)(name, "*", _1.CDSCast, _1.CDSCase, _1.CDSFunction);
|
|
40125
40125
|
return (0, combi_1.seq)((0, combi_1.alt)("MAX", "MIN", "SUM", "AVG", "COUNT"), "(", (0, combi_1.opt)("DISTINCT"), value, ")");
|
|
40126
40126
|
}
|
|
40127
40127
|
}
|
|
@@ -40267,7 +40267,11 @@ class CDSArithmetics extends combi_1.Expression {
|
|
|
40267
40267
|
const name = (0, combi_1.seq)(_1.CDSName, (0, combi_1.opt)((0, combi_1.seq)(".", _1.CDSName)));
|
|
40268
40268
|
const val = (0, combi_1.alt)(cds_integer_1.CDSInteger, name, _1.CDSFunction, _1.CDSCase, _1.CDSCast, _1.CDSString);
|
|
40269
40269
|
const operator = (0, combi_1.altPrio)("+", "-", "*", "/");
|
|
40270
|
-
|
|
40270
|
+
const operatorValue = (0, combi_1.seq)(operator, val);
|
|
40271
|
+
const paren = (0, combi_1.seq)("(", val, (0, combi_1.plus)(operatorValue), ")");
|
|
40272
|
+
const noParen = (0, combi_1.seq)(val, (0, combi_1.plus)(operatorValue));
|
|
40273
|
+
// todo: this is pretty bad, it needs a rewrite
|
|
40274
|
+
return (0, combi_1.altPrio)((0, combi_1.seq)(paren, (0, combi_1.plus)(operatorValue)), paren, noParen);
|
|
40271
40275
|
}
|
|
40272
40276
|
}
|
|
40273
40277
|
exports.CDSArithmetics = CDSArithmetics;
|
|
@@ -40604,40 +40608,43 @@ const _1 = __webpack_require__(/*! . */ "./node_modules/@abaplint/core/build/src
|
|
|
40604
40608
|
const combi_1 = __webpack_require__(/*! ../../abap/2_statements/combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
|
|
40605
40609
|
class CDSFunction extends combi_1.Expression {
|
|
40606
40610
|
getRunnable() {
|
|
40607
|
-
const
|
|
40608
|
-
const
|
|
40609
|
-
const
|
|
40610
|
-
const
|
|
40611
|
-
const
|
|
40612
|
-
const
|
|
40613
|
-
const
|
|
40614
|
-
const
|
|
40615
|
-
const
|
|
40616
|
-
const
|
|
40617
|
-
const
|
|
40618
|
-
const
|
|
40619
|
-
const
|
|
40620
|
-
const
|
|
40621
|
-
const
|
|
40622
|
-
const
|
|
40623
|
-
const
|
|
40624
|
-
const
|
|
40625
|
-
const
|
|
40626
|
-
const
|
|
40627
|
-
const
|
|
40628
|
-
const
|
|
40629
|
-
const
|
|
40630
|
-
const dats_tims_to_tstmp = (0, combi_1.seq)("DATS_TIMS_TO_TSTMP", "(", input, ",", input, ",", input, ",", input, ",", input, ")");
|
|
40631
|
-
const tstmp_is_valid = (0, combi_1.seq)("TSTMP_IS_VALID", "(", input, ")");
|
|
40611
|
+
const coalesce = (0, combi_1.seq)("COALESCE", "(", _1.CDSFunctionInput, ",", _1.CDSFunctionInput, ")");
|
|
40612
|
+
const concat = (0, combi_1.seq)("CONCAT", "(", _1.CDSFunctionInput, ",", _1.CDSFunctionInput, ")");
|
|
40613
|
+
const concat_with_space = (0, combi_1.seq)("CONCAT_WITH_SPACE", "(", _1.CDSFunctionInput, ",", _1.CDSFunctionInput, ",", _1.CDSFunctionInput, ")");
|
|
40614
|
+
const dats_add_days = (0, combi_1.seq)("DATS_ADD_DAYS", "(", _1.CDSFunctionInput, ",", _1.CDSFunctionInput, ",", _1.CDSFunctionInput, ")");
|
|
40615
|
+
const dats_add_months = (0, combi_1.seq)("DATS_ADD_MONTHS", "(", _1.CDSFunctionInput, ",", _1.CDSFunctionInput, ",", _1.CDSFunctionInput, ")");
|
|
40616
|
+
const dats_days_between = (0, combi_1.seq)("DATS_DAYS_BETWEEN", "(", _1.CDSFunctionInput, ",", _1.CDSFunctionInput, ")");
|
|
40617
|
+
const dats_is_valid = (0, combi_1.seq)("DATS_IS_VALID", "(", _1.CDSFunctionInput, ")");
|
|
40618
|
+
const substring = (0, combi_1.seq)("SUBSTRING", "(", _1.CDSFunctionInput, ",", _1.CDSFunctionInput, ",", _1.CDSFunctionInput, ")");
|
|
40619
|
+
const bintohex = (0, combi_1.seq)("BINTOHEX", "(", _1.CDSFunctionInput, ")");
|
|
40620
|
+
const hextobin = (0, combi_1.seq)("HEXTOBIN", "(", _1.CDSFunctionInput, ")");
|
|
40621
|
+
const upper = (0, combi_1.seq)("UPPER", "(", _1.CDSFunctionInput, ")");
|
|
40622
|
+
const lower = (0, combi_1.seq)("LOWER", "(", _1.CDSFunctionInput, ")");
|
|
40623
|
+
const abs = (0, combi_1.seq)("ABS", "(", _1.CDSFunctionInput, ")");
|
|
40624
|
+
const ceil = (0, combi_1.seq)("CEIL", "(", _1.CDSFunctionInput, ")");
|
|
40625
|
+
const floor = (0, combi_1.seq)("FLOOR", "(", _1.CDSFunctionInput, ")");
|
|
40626
|
+
const round = (0, combi_1.seq)("ROUND", "(", _1.CDSFunctionInput, ",", _1.CDSFunctionInput, ")");
|
|
40627
|
+
const div = (0, combi_1.seq)("DIV", "(", _1.CDSFunctionInput, ",", _1.CDSFunctionInput, ")");
|
|
40628
|
+
const division = (0, combi_1.seq)("DIVISION", "(", _1.CDSFunctionInput, ",", _1.CDSFunctionInput, ",", _1.CDSFunctionInput, ")");
|
|
40629
|
+
const tstmp_to_dats = (0, combi_1.seq)("TSTMP_TO_DATS", "(", _1.CDSFunctionInput, ",", _1.CDSFunctionInput, ",", _1.CDSFunctionInput, ",", _1.CDSFunctionInput, ")");
|
|
40630
|
+
const tstmp_to_tims = (0, combi_1.seq)("TSTMP_TO_TIMS", "(", _1.CDSFunctionInput, ",", _1.CDSFunctionInput, ",", _1.CDSFunctionInput, ",", _1.CDSFunctionInput, ")");
|
|
40631
|
+
const tstmp_to_dst = (0, combi_1.seq)("TSTMP_TO_DST", "(", _1.CDSFunctionInput, ",", _1.CDSFunctionInput, ",", _1.CDSFunctionInput, ",", _1.CDSFunctionInput, ")");
|
|
40632
|
+
const dats_tims_to_tstmp = (0, combi_1.seq)("DATS_TIMS_TO_TSTMP", "(", _1.CDSFunctionInput, ",", _1.CDSFunctionInput, ",", _1.CDSFunctionInput, ",", _1.CDSFunctionInput, ",", _1.CDSFunctionInput, ")");
|
|
40633
|
+
const tstmp_is_valid = (0, combi_1.seq)("TSTMP_IS_VALID", "(", _1.CDSFunctionInput, ")");
|
|
40632
40634
|
const tstmp_current_utctimestamp = (0, combi_1.seq)("TSTMP_CURRENT_UTCTIMESTAMP", "(", ")");
|
|
40633
|
-
const tstmp_seconds_between = (0, combi_1.seq)("TSTMP_SECONDS_BETWEEN", "(",
|
|
40634
|
-
const tstmp_add_seconds = (0, combi_1.seq)("TSTMP_ADD_SECONDS", "(",
|
|
40635
|
-
const abap_system_timezone = (0, combi_1.seq)("ABAP_SYSTEM_TIMEZONE", "(",
|
|
40636
|
-
const abap_user_timezone = (0, combi_1.seq)("ABAP_USER_TIMEZONE", "(",
|
|
40637
|
-
const mod = (0, combi_1.seq)("MOD", "(",
|
|
40638
|
-
const left = (0, combi_1.seq)("LEFT", "(",
|
|
40639
|
-
const right = (0, combi_1.seq)("RIGHT", "(",
|
|
40640
|
-
|
|
40635
|
+
const tstmp_seconds_between = (0, combi_1.seq)("TSTMP_SECONDS_BETWEEN", "(", _1.CDSFunctionInput, ",", _1.CDSFunctionInput, ",", _1.CDSFunctionInput, ")");
|
|
40636
|
+
const tstmp_add_seconds = (0, combi_1.seq)("TSTMP_ADD_SECONDS", "(", _1.CDSFunctionInput, ",", _1.CDSFunctionInput, ",", _1.CDSFunctionInput, ")");
|
|
40637
|
+
const abap_system_timezone = (0, combi_1.seq)("ABAP_SYSTEM_TIMEZONE", "(", _1.CDSFunctionInput, ",", _1.CDSFunctionInput, ")");
|
|
40638
|
+
const abap_user_timezone = (0, combi_1.seq)("ABAP_USER_TIMEZONE", "(", _1.CDSFunctionInput, ",", _1.CDSFunctionInput, ",", _1.CDSFunctionInput, ")");
|
|
40639
|
+
const mod = (0, combi_1.seq)("MOD", "(", _1.CDSFunctionInput, ",", _1.CDSFunctionInput, ")");
|
|
40640
|
+
const left = (0, combi_1.seq)("LEFT", "(", _1.CDSFunctionInput, ",", _1.CDSFunctionInput, ")");
|
|
40641
|
+
const right = (0, combi_1.seq)("RIGHT", "(", _1.CDSFunctionInput, ",", _1.CDSFunctionInput, ")");
|
|
40642
|
+
const conversionInput = (0, combi_1.seq)(_1.CDSName, "=", ">", _1.CDSFunctionInput);
|
|
40643
|
+
const conversionInputs = (0, combi_1.seq)(conversionInput, (0, combi_1.starPrio)((0, combi_1.seq)(",", conversionInput)));
|
|
40644
|
+
const unitConversion = (0, combi_1.seq)("UNIT_CONVERSION", "(", conversionInputs, ")");
|
|
40645
|
+
const currencyConversion = (0, combi_1.seq)("CURRENCY_CONVERSION", "(", conversionInputs, ")");
|
|
40646
|
+
const decimalShift = (0, combi_1.seq)("DECIMAL_SHIFT", "(", conversionInputs, ")");
|
|
40647
|
+
return (0, combi_1.altPrio)(substring, coalesce, tstmp_to_dats, concat, tstmp_to_tims, upper, lower, abs, ceil, floor, round, div, division, concat_with_space, dats_is_valid, dats_days_between, tstmp_add_seconds, tstmp_seconds_between, tstmp_current_utctimestamp, tstmp_is_valid, abap_system_timezone, abap_user_timezone, bintohex, hextobin, dats_add_days, dats_add_months, tstmp_to_dst, dats_tims_to_tstmp, mod, left, right, unitConversion, currencyConversion, decimalShift);
|
|
40641
40648
|
}
|
|
40642
40649
|
}
|
|
40643
40650
|
exports.CDSFunction = CDSFunction;
|
|
@@ -40645,6 +40652,30 @@ exports.CDSFunction = CDSFunction;
|
|
|
40645
40652
|
|
|
40646
40653
|
/***/ }),
|
|
40647
40654
|
|
|
40655
|
+
/***/ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_function_input.js":
|
|
40656
|
+
/*!*************************************************************************************!*\
|
|
40657
|
+
!*** ./node_modules/@abaplint/core/build/src/cds/expressions/cds_function_input.js ***!
|
|
40658
|
+
\*************************************************************************************/
|
|
40659
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
40660
|
+
|
|
40661
|
+
"use strict";
|
|
40662
|
+
|
|
40663
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
40664
|
+
exports.CDSFunctionInput = void 0;
|
|
40665
|
+
const _1 = __webpack_require__(/*! . */ "./node_modules/@abaplint/core/build/src/cds/expressions/index.js");
|
|
40666
|
+
const combi_1 = __webpack_require__(/*! ../../abap/2_statements/combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
|
|
40667
|
+
class CDSFunctionInput extends combi_1.Expression {
|
|
40668
|
+
getRunnable() {
|
|
40669
|
+
const qualified = (0, combi_1.seq)(_1.CDSName, (0, combi_1.opt)(_1.CDSParameters), (0, combi_1.starPrio)((0, combi_1.seq)(".", _1.CDSName, (0, combi_1.opt)(_1.CDSParameters))));
|
|
40670
|
+
const input = (0, combi_1.altPrio)(_1.CDSCast, _1.CDSFunction, _1.CDSArithmetics, _1.CDSCase, _1.CDSString, qualified, (0, combi_1.regex)(/^\d+$/));
|
|
40671
|
+
return input;
|
|
40672
|
+
}
|
|
40673
|
+
}
|
|
40674
|
+
exports.CDSFunctionInput = CDSFunctionInput;
|
|
40675
|
+
//# sourceMappingURL=cds_function_input.js.map
|
|
40676
|
+
|
|
40677
|
+
/***/ }),
|
|
40678
|
+
|
|
40648
40679
|
/***/ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_group_by.js":
|
|
40649
40680
|
/*!*******************************************************************************!*\
|
|
40650
40681
|
!*** ./node_modules/@abaplint/core/build/src/cds/expressions/cds_group_by.js ***!
|
|
@@ -41055,6 +41086,7 @@ __exportStar(__webpack_require__(/*! ./cds_define_view */ "./node_modules/@abapl
|
|
|
41055
41086
|
__exportStar(__webpack_require__(/*! ./cds_element */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_element.js"), exports);
|
|
41056
41087
|
__exportStar(__webpack_require__(/*! ./cds_extend_view */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_extend_view.js"), exports);
|
|
41057
41088
|
__exportStar(__webpack_require__(/*! ./cds_function */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_function.js"), exports);
|
|
41089
|
+
__exportStar(__webpack_require__(/*! ./cds_function_input */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_function_input.js"), exports);
|
|
41058
41090
|
__exportStar(__webpack_require__(/*! ./cds_group_by */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_group_by.js"), exports);
|
|
41059
41091
|
__exportStar(__webpack_require__(/*! ./cds_having */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_having.js"), exports);
|
|
41060
41092
|
__exportStar(__webpack_require__(/*! ./cds_integer */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_integer.js"), exports);
|
|
@@ -53077,7 +53109,7 @@ class Registry {
|
|
|
53077
53109
|
}
|
|
53078
53110
|
static abaplintVersion() {
|
|
53079
53111
|
// magic, see build script "version.sh"
|
|
53080
|
-
return "2.113.
|
|
53112
|
+
return "2.113.50";
|
|
53081
53113
|
}
|
|
53082
53114
|
getDDICReferences() {
|
|
53083
53115
|
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.50",
|
|
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.50",
|
|
42
42
|
"@types/chai": "^4.3.20",
|
|
43
43
|
"@types/glob": "^8.1.0",
|
|
44
44
|
"@types/minimist": "^1.2.5",
|