@abaplint/cli 2.113.88 → 2.113.90

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.
Files changed (2) hide show
  1. package/build/cli.js +44 -10
  2. package/package.json +3 -3
package/build/cli.js CHANGED
@@ -5239,7 +5239,7 @@ const _1 = __webpack_require__(/*! . */ "./node_modules/@abaplint/core/build/src
5239
5239
  class FieldLength extends combi_1.Expression {
5240
5240
  getRunnable() {
5241
5241
  const normal = (0, combi_1.seq)((0, combi_1.optPrio)((0, combi_1.tok)(tokens_1.Plus)), (0, combi_1.altPrio)((0, combi_1.regex)(/^\d+$/), _1.SimpleFieldChain2));
5242
- const length = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.ParenLeft), (0, combi_1.altPrio)(normal, "*"), (0, combi_1.tok)(tokens_1.ParenRightW));
5242
+ const length = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.ParenLeft), (0, combi_1.optPrio)((0, combi_1.altPrio)(normal, "*")), (0, combi_1.tok)(tokens_1.ParenRightW));
5243
5243
  return length;
5244
5244
  }
5245
5245
  }
@@ -7928,7 +7928,7 @@ exports.SQLAliasField = void 0;
7928
7928
  const combi_1 = __webpack_require__(/*! ../combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
7929
7929
  class SQLAliasField extends combi_1.Expression {
7930
7930
  getRunnable() {
7931
- return (0, combi_1.regex)(/^(\/\w+\/)?\w+~\w+$/);
7931
+ return (0, combi_1.regex)(/^(\/\w+\/)?\w+~(\/\w+\/)?\w+$/);
7932
7932
  }
7933
7933
  }
7934
7934
  exports.SQLAliasField = SQLAliasField;
@@ -8306,7 +8306,7 @@ exports.SQLFieldName = void 0;
8306
8306
  const combi_1 = __webpack_require__(/*! ../combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
8307
8307
  class SQLFieldName extends combi_1.Expression {
8308
8308
  getRunnable() {
8309
- return (0, combi_1.regex)(/^(?!(?:SINGLE|INTO|DISTINCT|AS|WHERE|FOR|HAVING|APPENDING|UP|FROM)$)(\/\w+\/)?(\w+~(\w+|\*)|\w+)$/i);
8309
+ return (0, combi_1.regex)(/^(?!(?:SINGLE|INTO|DISTINCT|AS|WHERE|FOR|HAVING|APPENDING|UP|FROM)$)(\/\w+\/)?(\w+~(\/\w+\/)?(\w+|\*)|\w+)$/i);
8310
8310
  }
8311
8311
  }
8312
8312
  exports.SQLFieldName = SQLFieldName;
@@ -8468,7 +8468,12 @@ class SQLFunction extends combi_1.Expression {
8468
8468
  const round = (0, combi_1.ver)(version_1.Version.v750, (0, combi_1.seq)((0, combi_1.regex)(/^round$/i), (0, combi_1.tok)(tokens_1.ParenLeftW), sql_function_input_1.SQLFunctionInput, commaParam, (0, combi_1.tok)(tokens_1.WParenRightW)));
8469
8469
  const upper = (0, combi_1.ver)(version_1.Version.v751, (0, combi_1.seq)((0, combi_1.regex)(/^upper$/i), (0, combi_1.tok)(tokens_1.ParenLeftW), sql_function_input_1.SQLFunctionInput, (0, combi_1.tok)(tokens_1.WParenRightW)));
8470
8470
  const uuid = (0, combi_1.ver)(version_1.Version.v754, (0, combi_1.seq)((0, combi_1.regex)(/^uuid$/i), (0, combi_1.tok)(tokens_1.ParenLeftW), (0, combi_1.tok)(tokens_1.WParenRightW)));
8471
- return (0, combi_1.altPrio)(uuid, abs, ceil, floor, cast, div, mod, coalesce, concat, replace, length, lower, upper, round);
8471
+ const concat_with_space = (0, combi_1.ver)(version_1.Version.v751, (0, combi_1.seq)((0, combi_1.regex)(/^concat_with_space$/i), (0, combi_1.tok)(tokens_1.ParenLeftW), sql_function_input_1.SQLFunctionInput, commaParam, commaParam, (0, combi_1.tok)(tokens_1.WParenRightW)));
8472
+ // dunno if the version for substring is correct
8473
+ const substring = (0, combi_1.ver)(version_1.Version.v750, (0, combi_1.seq)((0, combi_1.regex)(/^substring$/i), (0, combi_1.tok)(tokens_1.ParenLeftW), sql_function_input_1.SQLFunctionInput, commaParam, commaParam, (0, combi_1.tok)(tokens_1.WParenRightW)));
8474
+ const ltrim = (0, combi_1.ver)(version_1.Version.v750, (0, combi_1.seq)((0, combi_1.regex)(/^ltrim$/i), (0, combi_1.tok)(tokens_1.ParenLeftW), sql_function_input_1.SQLFunctionInput, commaParam, (0, combi_1.tok)(tokens_1.WParenRightW)));
8475
+ const rtrim = (0, combi_1.ver)(version_1.Version.v750, (0, combi_1.seq)((0, combi_1.regex)(/^rtrim$/i), (0, combi_1.tok)(tokens_1.ParenLeftW), sql_function_input_1.SQLFunctionInput, commaParam, (0, combi_1.tok)(tokens_1.WParenRightW)));
8476
+ return (0, combi_1.altPrio)(uuid, abs, ceil, floor, cast, div, mod, coalesce, concat, replace, length, lower, upper, round, concat_with_space, ltrim, rtrim, substring);
8472
8477
  }
8473
8478
  }
8474
8479
  exports.SQLFunction = SQLFunction;
@@ -11987,7 +11992,7 @@ class DeleteMemory {
11987
11992
  const memory = (0, combi_1.seq)("MEMORY ID", expressions_1.Source);
11988
11993
  const id = (0, combi_1.seq)("ID", expressions_1.Source);
11989
11994
  const client = (0, combi_1.seq)("CLIENT", expressions_1.Source);
11990
- const shared = (0, combi_1.seq)("SHARED", (0, combi_1.altPrio)("MEMORY", "BUFFER"), expressions_1.Field, "(", (0, combi_1.regex)(/^\w+$/), ")", (0, combi_1.optPrio)(client), id);
11995
+ const shared = (0, combi_1.seq)("SHARED", (0, combi_1.altPrio)("MEMORY", "BUFFER"), expressions_1.Field, "(", (0, combi_1.regex)(/^[\w%]+$/), ")", (0, combi_1.optPrio)(client), id);
11991
11996
  const ret = (0, combi_1.seq)("DELETE FROM", (0, combi_1.alt)(memory, shared));
11992
11997
  return (0, combi_1.verNot)(version_1.Version.Cloud, ret);
11993
11998
  }
@@ -13001,7 +13006,7 @@ class Export {
13001
13006
  const client = (0, combi_1.seq)("CLIENT", expressions_1.Source);
13002
13007
  const id = (0, combi_1.seq)("ID", expressions_1.Source);
13003
13008
  const using = (0, combi_1.seq)("USING", expressions_1.Source);
13004
- const cluster = (0, combi_1.seq)(expressions_1.NamespaceSimpleName, (0, combi_1.tok)(tokens_1.ParenLeft), (0, combi_1.regex)(/^[\w$%\^]{2}$/), (0, combi_1.tok)(tokens_1.ParenRightW));
13009
+ const cluster = (0, combi_1.seq)(expressions_1.NamespaceSimpleName, (0, combi_1.tok)(tokens_1.ParenLeft), (0, combi_1.regex)(/^[\w$%\^~]{2}$/), (0, combi_1.tok)(tokens_1.ParenRightW));
13005
13010
  const buffer = (0, combi_1.seq)("DATA BUFFER", expressions_1.Target);
13006
13011
  const memory = (0, combi_1.seq)("MEMORY", (0, combi_1.opt)((0, combi_1.seq)("ID", expressions_1.Source)));
13007
13012
  const table = (0, combi_1.seq)("INTERNAL TABLE", expressions_1.Target);
@@ -13755,7 +13760,7 @@ const expressions_1 = __webpack_require__(/*! ../expressions */ "./node_modules/
13755
13760
  const version_1 = __webpack_require__(/*! ../../../version */ "./node_modules/@abaplint/core/build/src/version.js");
13756
13761
  class GetProperty {
13757
13762
  getMatcher() {
13758
- const ret = (0, combi_1.seq)("GET PROPERTY OF", expressions_1.FieldSub, expressions_1.Source, "=", expressions_1.Source, (0, combi_1.opt)("NO FLUSH"), (0, combi_1.opt)("QUEUE-ONLY"), (0, combi_1.opt)(expressions_1.OLEExporting));
13763
+ const ret = (0, combi_1.seq)("GET PROPERTY OF", expressions_1.FieldSub, (0, combi_1.alt)(expressions_1.Source, expressions_1.ConstantString), "=", expressions_1.Source, (0, combi_1.opt)("NO FLUSH"), (0, combi_1.opt)((0, combi_1.alt)("QUEUE-ONLY", "QUEUEONLY")), (0, combi_1.opt)(expressions_1.OLEExporting));
13759
13764
  return (0, combi_1.verNot)(version_1.Version.Cloud, ret);
13760
13765
  }
13761
13766
  }
@@ -14353,6 +14358,7 @@ __exportStar(__webpack_require__(/*! ./set_locks */ "./node_modules/@abaplint/co
14353
14358
  __exportStar(__webpack_require__(/*! ./enhancement */ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/enhancement.js"), exports);
14354
14359
  __exportStar(__webpack_require__(/*! ./end_enhancement */ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/end_enhancement.js"), exports);
14355
14360
  __exportStar(__webpack_require__(/*! ./form_definition */ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/form_definition.js"), exports);
14361
+ __exportStar(__webpack_require__(/*! ./verification_message */ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/verification_message.js"), exports);
14356
14362
  //# sourceMappingURL=index.js.map
14357
14363
 
14358
14364
  /***/ }),
@@ -14889,7 +14895,7 @@ class MethodDef {
14889
14895
  const forfunction = (0, combi_1.seq)("FOR FUNCTION", expressions_1.TypeName, result);
14890
14896
  const behavior = (0, combi_1.altPrio)((0, combi_1.seq)("VALIDATE ON SAVE IMPORTING", expressions_1.MethodParamName, "FOR", expressions_1.TypeName), (0, combi_1.seq)("MODIFY IMPORTING", expressions_1.MethodParamName, modify), (0, combi_1.seq)("READ IMPORTING", expressions_1.MethodParamName, (0, combi_1.altPrio)(forRead, forfunction)), (0, combi_1.seq)("FEATURES IMPORTING", expressions_1.MethodParamName, "REQUEST", expressions_1.NamespaceSimpleName, "FOR", expressions_1.NamespaceSimpleName, result), (0, combi_1.seq)("BEHAVIOR IMPORTING", expressions_1.MethodParamName, "FOR CREATE", expressions_1.TypeName, expressions_1.MethodParamName, "FOR UPDATE", expressions_1.TypeName, expressions_1.MethodParamName, "FOR DELETE", expressions_1.TypeName), (0, combi_1.seq)("BEHAVIOR IMPORTING", expressions_1.MethodParamName, "FOR READ", expressions_1.TypeName, result), (0, combi_1.seq)((0, combi_1.alt)("BEHAVIOR", "LOCK"), "IMPORTING", expressions_1.MethodParamName, "FOR LOCK", expressions_1.TypeName), (0, combi_1.seq)("DETERMINE", (0, combi_1.alt)("ON MODIFY", "ON SAVE"), "IMPORTING", expressions_1.MethodParamName, "FOR", expressions_1.TypeName), (0, combi_1.seq)("GLOBAL AUTHORIZATION IMPORTING REQUEST", expressions_1.MethodParamName, "FOR", expressions_1.TypeName, result), (0, combi_1.seq)("INSTANCE AUTHORIZATION IMPORTING", expressions_1.MethodParamName, "REQUEST", expressions_1.MethodParamName, "FOR", expressions_1.TypeName, result), (0, combi_1.seq)("INSTANCE FEATURES IMPORTING", expressions_1.MethodParamName, "REQUEST", expressions_1.MethodParamName, "FOR", expressions_1.TypeName, result));
14891
14897
  // todo, this is only from version something
14892
- const amdp = (0, combi_1.seq)("AMDP OPTIONS CDS SESSION CLIENT CURRENT", (0, combi_1.optPrio)(expressions_1.MethodDefImporting), (0, combi_1.optPrio)(expressions_1.MethodDefExporting), (0, combi_1.optPrio)(expressions_1.MethodDefRaising));
14898
+ const amdp = (0, combi_1.seq)("AMDP OPTIONS", (0, combi_1.optPrio)("READ-ONLY"), "CDS SESSION CLIENT CURRENT", (0, combi_1.optPrio)(expressions_1.MethodDefImporting), (0, combi_1.optPrio)(expressions_1.MethodDefExporting), (0, combi_1.optPrio)(expressions_1.MethodDefRaising));
14893
14899
  const ret = (0, combi_1.seq)((0, combi_1.altPrio)("CLASS-METHODS", "METHODS"), expressions_1.MethodName, (0, combi_1.alt)((0, combi_1.seq)((0, combi_1.optPrio)(expressions_1.Abstract), (0, combi_1.optPrio)(def), expressions_1.EventHandler), parameters, testing, (0, combi_1.seq)("FOR", (0, combi_1.alt)(tableFunction, ddl, behavior)), amdp, "NOT AT END OF MODE", (0, combi_1.optPrio)(expressions_1.Redefinition)));
14894
14900
  return ret;
14895
14901
  }
@@ -15035,7 +15041,7 @@ class ModifyLine {
15035
15041
  getMatcher() {
15036
15042
  const onOff = (0, combi_1.alt)("ON", "OFF");
15037
15043
  const eq = (0, combi_1.seq)("=", expressions_1.Source);
15038
- const form = (0, combi_1.seq)((0, combi_1.alt)("INVERSE", "INPUT", "COLOR", "HOTSPOT"), (0, combi_1.alt)(eq, onOff));
15044
+ const form = (0, combi_1.seq)((0, combi_1.alt)("INVERSE", "INPUT", "COLOR", "HOTSPOT"), (0, combi_1.opt)((0, combi_1.alt)(eq, onOff)));
15039
15045
  const from = (0, combi_1.seq)("FROM", expressions_1.Source);
15040
15046
  const value = (0, combi_1.seq)("FIELD VALUE", (0, combi_1.plus)((0, combi_1.seq)(expressions_1.Source, (0, combi_1.optPrio)(from))));
15041
15047
  const format = (0, combi_1.seq)("FIELD FORMAT", expressions_1.Source, (0, combi_1.opt)(form));
@@ -18109,6 +18115,31 @@ exports.UpdateDatabase = UpdateDatabase;
18109
18115
 
18110
18116
  /***/ }),
18111
18117
 
18118
+ /***/ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/verification_message.js":
18119
+ /*!****************************************************************************************************!*\
18120
+ !*** ./node_modules/@abaplint/core/build/src/abap/2_statements/statements/verification_message.js ***!
18121
+ \****************************************************************************************************/
18122
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
18123
+
18124
+ "use strict";
18125
+
18126
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
18127
+ exports.VerificationMessage = void 0;
18128
+ const combi_1 = __webpack_require__(/*! ../combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
18129
+ const expressions_1 = __webpack_require__(/*! ../expressions */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/index.js");
18130
+ const version_1 = __webpack_require__(/*! ../../../version */ "./node_modules/@abaplint/core/build/src/version.js");
18131
+ class VerificationMessage {
18132
+ getMatcher() {
18133
+ const priority = (0, combi_1.seq)("PRIORITY", expressions_1.Source);
18134
+ const ret = (0, combi_1.seq)("VERIFICATION-MESSAGE", expressions_1.Source, expressions_1.Source, (0, combi_1.opt)(priority));
18135
+ return (0, combi_1.verNot)(version_1.Version.Cloud, ret);
18136
+ }
18137
+ }
18138
+ exports.VerificationMessage = VerificationMessage;
18139
+ //# sourceMappingURL=verification_message.js.map
18140
+
18141
+ /***/ }),
18142
+
18112
18143
  /***/ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/wait.js":
18113
18144
  /*!************************************************************************************!*\
18114
18145
  !*** ./node_modules/@abaplint/core/build/src/abap/2_statements/statements/wait.js ***!
@@ -52516,6 +52547,9 @@ class TableType extends _abstract_object_1.AbstractObject {
52516
52547
  return;
52517
52548
  }
52518
52549
  const values = parsed.abapGit["asx:abap"]["asx:values"];
52550
+ if (values === undefined) {
52551
+ return;
52552
+ }
52519
52553
  const dd40v = values.DD40V;
52520
52554
  this.parsedXML.rowtype = dd40v.ROWTYPE ? dd40v.ROWTYPE : "";
52521
52555
  this.parsedXML.rowkind = dd40v.ROWKIND ? dd40v.ROWKIND : "";
@@ -53640,7 +53674,7 @@ class Registry {
53640
53674
  }
53641
53675
  static abaplintVersion() {
53642
53676
  // magic, see build script "version.sh"
53643
- return "2.113.88";
53677
+ return "2.113.90";
53644
53678
  }
53645
53679
  getDDICReferences() {
53646
53680
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.113.88",
3
+ "version": "2.113.90",
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.88",
41
+ "@abaplint/core": "^2.113.90",
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.10",
46
- "@types/node": "^22.10.5",
46
+ "@types/node": "^22.10.6",
47
47
  "@types/progress": "^2.0.7",
48
48
  "chai": "^4.5.0",
49
49
  "chalk": "^5.4.1",