@abaplint/cli 2.113.53 → 2.113.55
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 +18 -13
- package/package.json +2 -2
package/build/cli.js
CHANGED
|
@@ -5741,7 +5741,7 @@ const combi_1 = __webpack_require__(/*! ../combi */ "./node_modules/@abaplint/co
|
|
|
5741
5741
|
const tokens_1 = __webpack_require__(/*! ../../1_lexer/tokens */ "./node_modules/@abaplint/core/build/src/abap/1_lexer/tokens/index.js");
|
|
5742
5742
|
class IncludeName extends combi_1.Expression {
|
|
5743
5743
|
getRunnable() {
|
|
5744
|
-
return (0, combi_1.seq)((0, combi_1.regex)(/^<?(\/\w+\/)?[\w
|
|
5744
|
+
return (0, combi_1.seq)((0, combi_1.regex)(/^<?(\/\w+\/)?[\w%#]+(~\w+)?>?$/), (0, combi_1.starPrio)((0, combi_1.seq)((0, combi_1.tok)(tokens_1.Dash), (0, combi_1.optPrio)((0, combi_1.regex)(/^\w+$/)))));
|
|
5745
5745
|
}
|
|
5746
5746
|
}
|
|
5747
5747
|
exports.IncludeName = IncludeName;
|
|
@@ -6411,11 +6411,12 @@ exports.MacroName = MacroName;
|
|
|
6411
6411
|
|
|
6412
6412
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6413
6413
|
exports.MessageClass = void 0;
|
|
6414
|
+
const tokens_1 = __webpack_require__(/*! ../../1_lexer/tokens */ "./node_modules/@abaplint/core/build/src/abap/1_lexer/tokens/index.js");
|
|
6414
6415
|
const combi_1 = __webpack_require__(/*! ../combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
|
|
6415
6416
|
class MessageClass extends combi_1.Expression {
|
|
6416
6417
|
getRunnable() {
|
|
6417
6418
|
// "&1" can be used for almost anything(field names, method names etc.) in macros
|
|
6418
|
-
return (0, combi_1.regex)(/^>?[\w\/]
|
|
6419
|
+
return (0, combi_1.seq)((0, combi_1.regex)(/^>?[\w\/]+#?@?\/?!?&?>?\$?\??$/), (0, combi_1.starPrio)((0, combi_1.seq)((0, combi_1.tok)(tokens_1.Dash), (0, combi_1.optPrio)((0, combi_1.regex)(/^\w+$/)))), (0, combi_1.optPrio)((0, combi_1.tok)(tokens_1.DashW)));
|
|
6419
6420
|
}
|
|
6420
6421
|
}
|
|
6421
6422
|
exports.MessageClass = MessageClass;
|
|
@@ -7292,7 +7293,9 @@ const _1 = __webpack_require__(/*! . */ "./node_modules/@abaplint/core/build/src
|
|
|
7292
7293
|
class RaiseWith extends combi_1.Expression {
|
|
7293
7294
|
getRunnable() {
|
|
7294
7295
|
const wit = (0, combi_1.seq)("WITH", _1.SimpleSource1, (0, combi_1.opt)(_1.SimpleSource1), (0, combi_1.opt)(_1.SimpleSource1), (0, combi_1.opt)(_1.SimpleSource1));
|
|
7295
|
-
|
|
7296
|
+
// todo: I guess this is from version something?
|
|
7297
|
+
const witComplex = (0, combi_1.seq)("WITH", _1.Source, (0, combi_1.opt)(_1.Source), (0, combi_1.opt)(_1.Source), (0, combi_1.opt)(_1.Source));
|
|
7298
|
+
return (0, combi_1.alt)(wit, witComplex);
|
|
7296
7299
|
}
|
|
7297
7300
|
}
|
|
7298
7301
|
exports.RaiseWith = RaiseWith;
|
|
@@ -7865,7 +7868,7 @@ const dynamic_1 = __webpack_require__(/*! ./dynamic */ "./node_modules/@abaplint
|
|
|
7865
7868
|
const sql_arithmetics_1 = __webpack_require__(/*! ./sql_arithmetics */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/sql_arithmetics.js");
|
|
7866
7869
|
class SQLAggregation extends combi_1.Expression {
|
|
7867
7870
|
getRunnable() {
|
|
7868
|
-
const f = (0, combi_1.seq)((0, combi_1.optPrio)("DISTINCT"), (0, combi_1.altPrio)(sql_arithmetics_1.SQLArithmetics, dynamic_1.Dynamic, _1.SQLFunction));
|
|
7871
|
+
const f = (0, combi_1.seq)((0, combi_1.optPrio)("DISTINCT"), (0, combi_1.altPrio)(sql_arithmetics_1.SQLArithmetics, dynamic_1.Dynamic, _1.SQLFunction, _1.SQLCase));
|
|
7869
7872
|
const fparen = (0, combi_1.seq)("(", _1.Field, ")");
|
|
7870
7873
|
const count = (0, combi_1.seq)("COUNT", (0, combi_1.altPrio)((0, combi_1.tok)(tokens_1.ParenLeft), (0, combi_1.tok)(tokens_1.ParenLeftW)), (0, combi_1.optPrio)("DISTINCT"), (0, combi_1.altPrio)("*", _1.Field, fparen), ")");
|
|
7871
7874
|
const max = (0, combi_1.seq)("MAX", (0, combi_1.altPrio)((0, combi_1.tok)(tokens_1.ParenLeft), (0, combi_1.tok)(tokens_1.ParenLeftW)), f, ")");
|
|
@@ -7994,8 +7997,9 @@ class SQLCase extends combi_1.Expression {
|
|
|
7994
7997
|
getRunnable() {
|
|
7995
7998
|
const field = (0, combi_1.altPrio)(_1.SQLAggregation, SQLCase, _1.SQLFunction, _1.SQLPath, sql_field_name_1.SQLFieldName, constant_1.Constant);
|
|
7996
7999
|
const sub = (0, combi_1.seq)((0, combi_1.altPrio)("+", "-", "*", "/", "&&"), (0, combi_1.optPrio)((0, combi_1.tok)(tokens_1.WParenLeftW)), field, (0, combi_1.optPrio)((0, combi_1.tok)(tokens_1.WParenRightW)));
|
|
7997
|
-
const sourc = (0, combi_1.altPrio)(SQLCase, _1.SQLAggregation, _1.SQLFunction, sql_source_1.SQLSource);
|
|
7998
|
-
const
|
|
8000
|
+
const sourc = (0, combi_1.altPrio)(SQLCase, _1.SQLAggregation, _1.SQLFunction, sql_source_1.SQLSource, constant_1.Constant);
|
|
8001
|
+
const val = (0, combi_1.altPrio)(sql_cond_1.SQLCond, constant_1.Constant, (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WAt), _1.SimpleSource3));
|
|
8002
|
+
const when = (0, combi_1.seq)("WHEN", val, "THEN", sourc, (0, combi_1.starPrio)(sub));
|
|
7999
8003
|
const els = (0, combi_1.seq)("ELSE", sourc);
|
|
8000
8004
|
return (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)("CASE", (0, combi_1.opt)(sql_field_name_1.SQLFieldName), (0, combi_1.plusPrio)(when), (0, combi_1.optPrio)(els), "END"));
|
|
8001
8005
|
}
|
|
@@ -9228,8 +9232,8 @@ const _1 = __webpack_require__(/*! . */ "./node_modules/@abaplint/core/build/src
|
|
|
9228
9232
|
const tokens_1 = __webpack_require__(/*! ../../1_lexer/tokens */ "./node_modules/@abaplint/core/build/src/abap/1_lexer/tokens/index.js");
|
|
9229
9233
|
class Throw extends combi_1.Expression {
|
|
9230
9234
|
getRunnable() {
|
|
9231
|
-
|
|
9232
|
-
return (0, combi_1.seq)("THROW", (0, combi_1.opt)("RESUMABLE"), _1.ClassName, (0, combi_1.altPrio)((0, combi_1.tok)(tokens_1.ParenLeftW), (0, combi_1.tok)(tokens_1.ParenLeft)), (0, combi_1.opt)((0, combi_1.alt)(_1.Source, _1.ParameterListS)), (0, combi_1.altPrio)((0, combi_1.tok)(tokens_1.WParenRightW), (0, combi_1.tok)(tokens_1.ParenRightW)));
|
|
9235
|
+
const message = (0, combi_1.seq)("MESSAGE", _1.MessageSource, (0, combi_1.opt)(_1.RaiseWith));
|
|
9236
|
+
return (0, combi_1.seq)("THROW", (0, combi_1.opt)("RESUMABLE"), _1.ClassName, (0, combi_1.altPrio)((0, combi_1.tok)(tokens_1.ParenLeftW), (0, combi_1.tok)(tokens_1.ParenLeft)), (0, combi_1.opt)((0, combi_1.alt)(_1.Source, _1.ParameterListS, message)), (0, combi_1.altPrio)((0, combi_1.tok)(tokens_1.WParenRightW), (0, combi_1.tok)(tokens_1.ParenRightW)));
|
|
9233
9237
|
}
|
|
9234
9238
|
}
|
|
9235
9239
|
exports.Throw = Throw;
|
|
@@ -11965,13 +11969,14 @@ class Describe {
|
|
|
11965
11969
|
const field = (0, combi_1.seq)("FIELD", expressions_1.Source, (0, combi_1.per)((0, combi_1.seq)("TYPE", expressions_1.Target), (0, combi_1.seq)("COMPONENTS", expressions_1.Target), (0, combi_1.seq)("LENGTH", expressions_1.Target, (0, combi_1.opt)(mode)), (0, combi_1.seq)("DECIMALS", expressions_1.Target), (0, combi_1.seq)("HELP-ID", expressions_1.Target), (0, combi_1.seq)("OUTPUT-LENGTH", expressions_1.Target), (0, combi_1.seq)("EDIT MASK", expressions_1.Target), (0, combi_1.seq)("INTO", expressions_1.Target)));
|
|
11966
11970
|
const distance = (0, combi_1.seq)("DISTANCE BETWEEN", expressions_1.Source, "AND", expressions_1.Source, "INTO", expressions_1.Target, mode);
|
|
11967
11971
|
const lines = (0, combi_1.seq)("NUMBER OF LINES", expressions_1.Target);
|
|
11972
|
+
const pages = (0, combi_1.seq)("NUMBER OF PAGES", expressions_1.Target);
|
|
11968
11973
|
const line = (0, combi_1.seq)("LINE", expressions_1.Source);
|
|
11969
11974
|
const page = (0, combi_1.seq)("PAGE", expressions_1.Source);
|
|
11970
11975
|
const index = (0, combi_1.seq)("INDEX", expressions_1.Source);
|
|
11971
11976
|
const top = (0, combi_1.seq)("TOP-LINES", expressions_1.Target);
|
|
11972
11977
|
const lineSize = (0, combi_1.seq)("LINE-SIZE", expressions_1.Target);
|
|
11973
11978
|
const first = (0, combi_1.seq)("FIRST-LINE", expressions_1.Target);
|
|
11974
|
-
const list = (0, combi_1.seq)("LIST", (0, combi_1.per)(lines, index, line, page, top, first, lineSize));
|
|
11979
|
+
const list = (0, combi_1.seq)("LIST", (0, combi_1.per)(lines, pages, index, line, page, top, first, lineSize));
|
|
11975
11980
|
const ret = (0, combi_1.seq)("DESCRIBE", (0, combi_1.altPrio)(table, field, distance, list));
|
|
11976
11981
|
return (0, combi_1.verNot)(version_1.Version.Cloud, ret);
|
|
11977
11982
|
}
|
|
@@ -13220,7 +13225,7 @@ class FunctionPool {
|
|
|
13220
13225
|
const message = (0, combi_1.seq)("MESSAGE-ID", expressions_1.MessageClass);
|
|
13221
13226
|
const line = (0, combi_1.seq)("LINE-SIZE", expressions_1.Integer);
|
|
13222
13227
|
const no = (0, combi_1.str)("NO STANDARD PAGE HEADING");
|
|
13223
|
-
return (0, combi_1.seq)("FUNCTION-POOL", expressions_1.
|
|
13228
|
+
return (0, combi_1.seq)("FUNCTION-POOL", expressions_1.IncludeName, (0, combi_1.opt)((0, combi_1.per)(message, line, no)));
|
|
13224
13229
|
}
|
|
13225
13230
|
}
|
|
13226
13231
|
exports.FunctionPool = FunctionPool;
|
|
@@ -15359,7 +15364,7 @@ const expressions_1 = __webpack_require__(/*! ../expressions */ "./node_modules/
|
|
|
15359
15364
|
const version_1 = __webpack_require__(/*! ../../../version */ "./node_modules/@abaplint/core/build/src/version.js");
|
|
15360
15365
|
class Program {
|
|
15361
15366
|
getMatcher() {
|
|
15362
|
-
const message = (0, combi_1.seq)("MESSAGE-ID", expressions_1.
|
|
15367
|
+
const message = (0, combi_1.seq)("MESSAGE-ID", expressions_1.MessageClass);
|
|
15363
15368
|
const size = (0, combi_1.seq)("LINE-SIZE", expressions_1.Source);
|
|
15364
15369
|
const heading = (0, combi_1.str)("NO STANDARD PAGE HEADING");
|
|
15365
15370
|
const line = (0, combi_1.seq)("LINE-COUNT", expressions_1.Source);
|
|
@@ -17024,7 +17029,7 @@ class Submit {
|
|
|
17024
17029
|
const between = (0, combi_1.seq)("BETWEEN", expressions_1.Source, "AND", expressions_1.Source);
|
|
17025
17030
|
const selectionTable = (0, combi_1.seq)("WITH SELECTION-TABLE", expressions_1.Source);
|
|
17026
17031
|
const awith = (0, combi_1.seq)("WITH", expressions_1.FieldSub, (0, combi_1.alt)(compare, between), (0, combi_1.optPrio)(sign));
|
|
17027
|
-
const prog = (0, combi_1.
|
|
17032
|
+
const prog = (0, combi_1.altPrio)(expressions_1.IncludeName, expressions_1.Dynamic);
|
|
17028
17033
|
const job = (0, combi_1.seq)("VIA JOB", expressions_1.Source, "NUMBER", expressions_1.Source);
|
|
17029
17034
|
const exporting = (0, combi_1.str)("EXPORTING LIST TO MEMORY");
|
|
17030
17035
|
const spool = (0, combi_1.seq)("SPOOL PARAMETERS", expressions_1.Source);
|
|
@@ -53129,7 +53134,7 @@ class Registry {
|
|
|
53129
53134
|
}
|
|
53130
53135
|
static abaplintVersion() {
|
|
53131
53136
|
// magic, see build script "version.sh"
|
|
53132
|
-
return "2.113.
|
|
53137
|
+
return "2.113.55";
|
|
53133
53138
|
}
|
|
53134
53139
|
getDDICReferences() {
|
|
53135
53140
|
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.55",
|
|
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.55",
|
|
42
42
|
"@types/chai": "^4.3.20",
|
|
43
43
|
"@types/glob": "^8.1.0",
|
|
44
44
|
"@types/minimist": "^1.2.5",
|