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