@abaplint/cli 2.113.142 → 2.113.143

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 +16 -8
  2. package/package.json +5 -5
package/build/cli.js CHANGED
@@ -102,7 +102,7 @@ class FileOperations {
102
102
  static loadFileNames(arg, error = true) {
103
103
  const files = glob.sync(arg, { nodir: true, absolute: true, posix: true });
104
104
  if (files.length === 0 && error) {
105
- throw "Error: No files found" + arg;
105
+ throw "Error: No files found, " + arg;
106
106
  }
107
107
  return files;
108
108
  }
@@ -8791,10 +8791,13 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
8791
8791
  exports.SQLPath = void 0;
8792
8792
  const combi_1 = __webpack_require__(/*! ../combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
8793
8793
  const tokens_1 = __webpack_require__(/*! ../../1_lexer/tokens */ "./node_modules/@abaplint/core/build/src/abap/1_lexer/tokens/index.js");
8794
+ const association_name_1 = __webpack_require__(/*! ./association_name */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/association_name.js");
8795
+ const sql_cond_1 = __webpack_require__(/*! ./sql_cond */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/sql_cond.js");
8794
8796
  class SQLPath extends combi_1.Expression {
8795
8797
  getRunnable() {
8796
8798
  // todo, only from version?
8797
- const ret = (0, combi_1.seq)((0, combi_1.regex)(/\\_\w+/), (0, combi_1.tok)(tokens_1.Dash), (0, combi_1.regex)(/\w+/));
8799
+ const condition = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.BracketLeftW), "ONE TO ONE WHERE", sql_cond_1.SQLCond, (0, combi_1.tok)(tokens_1.WBracketRight));
8800
+ const ret = (0, combi_1.seq)(association_name_1.AssociationName, (0, combi_1.optPrio)(condition), (0, combi_1.tok)(tokens_1.Dash), (0, combi_1.regex)(/\w+/));
8798
8801
  return ret;
8799
8802
  }
8800
8803
  }
@@ -16017,7 +16020,7 @@ class ReadEntities {
16017
16020
  const from = (0, combi_1.seq)("FROM", expressions_1.Source);
16018
16021
  const fields = (0, combi_1.seq)("FIELDS", (0, combi_1.tok)(tokens_1.WParenLeftW), (0, combi_1.plus)(expressions_1.SimpleName), (0, combi_1.tok)(tokens_1.WParenRightW), "WITH", expressions_1.Source);
16019
16022
  const all = (0, combi_1.seq)("ALL FIELDS WITH", expressions_1.Source);
16020
- const entity = (0, combi_1.seq)("ENTITY", expressions_1.SimpleName, (0, combi_1.opt)((0, combi_1.seq)("BY", expressions_1.AssociationName)), (0, combi_1.alt)(fields, from, all), (0, combi_1.optPrio)((0, combi_1.seq)("RESULT", expressions_1.Target)));
16023
+ const entity = (0, combi_1.seq)("ENTITY", expressions_1.NamespaceSimpleName, (0, combi_1.opt)((0, combi_1.seq)("BY", expressions_1.AssociationName)), (0, combi_1.alt)(fields, from, all), (0, combi_1.optPrio)((0, combi_1.seq)("RESULT", expressions_1.Target)));
16021
16024
  const s = (0, combi_1.seq)("READ ENTITIES OF", expressions_1.NamespaceSimpleName, (0, combi_1.opt)("IN LOCAL MODE"), (0, combi_1.plus)(entity), (0, combi_1.optPrio)((0, combi_1.seq)("LINK", expressions_1.Target)), (0, combi_1.optPrio)((0, combi_1.seq)("FAILED", expressions_1.Target)), (0, combi_1.optPrio)((0, combi_1.seq)("REPORTED", expressions_1.Target)));
16022
16025
  return (0, combi_1.ver)(version_1.Version.v754, s);
16023
16026
  }
@@ -25802,7 +25805,7 @@ class FieldChain {
25802
25805
  }
25803
25806
  }
25804
25807
  else {
25805
- const message = "Not a structure, FieldChain";
25808
+ const message = "Not a structure, FieldChain, " + (context === null || context === void 0 ? void 0 : context.constructor.name) + ", " + current.concatTokens();
25806
25809
  input.issues.push((0, _syntax_input_1.syntaxIssue)(input, current.getFirstToken(), message));
25807
25810
  return basic_1.VoidType.get(_syntax_input_1.CheckSyntaxKey);
25808
25811
  }
@@ -28819,7 +28822,7 @@ class Target {
28819
28822
  && !(context instanceof basic_1.TableType && context.isWithHeader() && context.getRowType() instanceof basic_1.StructureType)
28820
28823
  && !(context instanceof basic_1.TableType && context.isWithHeader() && context.getRowType() instanceof basic_1.VoidType)
28821
28824
  && !(context instanceof basic_1.VoidType)) {
28822
- const message = "Not a structure, target";
28825
+ const message = "Not a structure, target, " + (context === null || context === void 0 ? void 0 : context.constructor.name) + ", " + current.concatTokens();
28823
28826
  input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
28824
28827
  return basic_1.VoidType.get(_syntax_input_1.CheckSyntaxKey);
28825
28828
  }
@@ -32221,7 +32224,12 @@ class InsertInternal {
32221
32224
  inline_data_1.InlineData.runSyntax(afterInto, input, new basic_1.DataReference(sourceType));
32222
32225
  }
32223
32226
  else {
32224
- target_1.Target.runSyntax(afterInto, input);
32227
+ const type = target_1.Target.runSyntax(afterInto, input);
32228
+ if (type instanceof basic_1.TableType && type.getAccessType() === basic_1.TableAccessType.hashed) {
32229
+ const message = "Implicit or explicit index operation on hashed table is not possible";
32230
+ input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
32231
+ return;
32232
+ }
32225
32233
  }
32226
32234
  }
32227
32235
  for (const s of node.findDirectExpressions(Expressions.Source)) {
@@ -41471,7 +41479,7 @@ const __1 = __webpack_require__(/*! ../.. */ "./node_modules/@abaplint/core/buil
41471
41479
  const combi_1 = __webpack_require__(/*! ../../abap/2_statements/combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
41472
41480
  class CDSDefineProjection extends combi_1.Expression {
41473
41481
  getRunnable() {
41474
- return (0, combi_1.seq)((0, combi_1.star)(_1.CDSAnnotation), "DEFINE", (0, combi_1.opt)("ROOT"), "VIEW", (0, combi_1.ver)(__1.Version.v755, (0, combi_1.opt)("ENTITY")), _1.CDSName, (0, combi_1.opt)(_1.CDSProviderContract), "AS PROJECTION ON", _1.CDSName, (0, combi_1.opt)(_1.CDSAs), (0, combi_1.str)("{"), (0, combi_1.plus)(_1.CDSElement), (0, combi_1.star)((0, combi_1.seq)(",", _1.CDSElement)), (0, combi_1.str)("}"), (0, combi_1.opt)(";"));
41482
+ return (0, combi_1.seq)((0, combi_1.star)(_1.CDSAnnotation), "DEFINE", (0, combi_1.opt)("ROOT"), "VIEW", (0, combi_1.ver)(__1.Version.v755, (0, combi_1.opt)("ENTITY")), _1.CDSName, (0, combi_1.opt)(_1.CDSProviderContract), "AS PROJECTION ON", _1.CDSName, (0, combi_1.opt)(_1.CDSAs), (0, combi_1.str)("{"), (0, combi_1.plus)(_1.CDSElement), (0, combi_1.star)((0, combi_1.seq)(",", _1.CDSElement)), (0, combi_1.str)("}"), (0, combi_1.opt)(_1.CDSWhere), (0, combi_1.opt)(";"));
41475
41483
  }
41476
41484
  }
41477
41485
  exports.CDSDefineProjection = CDSDefineProjection;
@@ -54582,7 +54590,7 @@ class Registry {
54582
54590
  }
54583
54591
  static abaplintVersion() {
54584
54592
  // magic, see build script "version.sh"
54585
- return "2.113.142";
54593
+ return "2.113.143";
54586
54594
  }
54587
54595
  getDDICReferences() {
54588
54596
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.113.142",
3
+ "version": "2.113.143",
4
4
  "description": "abaplint - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -38,16 +38,16 @@
38
38
  },
39
39
  "homepage": "https://abaplint.org",
40
40
  "devDependencies": {
41
- "@abaplint/core": "^2.113.142",
41
+ "@abaplint/core": "^2.113.143",
42
42
  "@types/chai": "^4.3.20",
43
43
  "@types/minimist": "^1.2.5",
44
44
  "@types/mocha": "^10.0.10",
45
- "@types/node": "^24.0.13",
45
+ "@types/node": "^24.0.14",
46
46
  "@types/progress": "^2.0.7",
47
47
  "chai": "^4.5.0",
48
48
  "p-limit": "^3.1.0",
49
49
  "chalk": "^5.4.1",
50
- "eslint": "^9.30.1",
50
+ "eslint": "^9.31.0",
51
51
  "glob": "^11.0.3",
52
52
  "json5": "^2.2.3",
53
53
  "memfs": "^4.17.2",
@@ -55,7 +55,7 @@
55
55
  "mocha": "^11.7.1",
56
56
  "progress": "^2.0.3",
57
57
  "typescript": "^5.8.3",
58
- "webpack": "^5.99.9",
58
+ "webpack": "^5.100.1",
59
59
  "webpack-cli": "^6.0.1",
60
60
  "xml-js": "^1.6.11"
61
61
  }