@abaplint/cli 2.113.142 → 2.113.144

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 +35 -27
  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;
@@ -78557,27 +78565,27 @@ function expand_(str, isTop) {
78557
78565
  __webpack_require__.r(__webpack_exports__);
78558
78566
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
78559
78567
  /* harmony export */ Chalk: () => (/* binding */ Chalk),
78560
- /* harmony export */ backgroundColorNames: () => (/* reexport safe */ _ansi_styles__WEBPACK_IMPORTED_MODULE_1__.backgroundColorNames),
78561
- /* harmony export */ backgroundColors: () => (/* reexport safe */ _ansi_styles__WEBPACK_IMPORTED_MODULE_1__.backgroundColorNames),
78568
+ /* harmony export */ backgroundColorNames: () => (/* reexport safe */ _ansi_styles__WEBPACK_IMPORTED_MODULE_0__.backgroundColorNames),
78569
+ /* harmony export */ backgroundColors: () => (/* reexport safe */ _ansi_styles__WEBPACK_IMPORTED_MODULE_0__.backgroundColorNames),
78562
78570
  /* harmony export */ chalkStderr: () => (/* binding */ chalkStderr),
78563
- /* harmony export */ colorNames: () => (/* reexport safe */ _ansi_styles__WEBPACK_IMPORTED_MODULE_1__.colorNames),
78564
- /* harmony export */ colors: () => (/* reexport safe */ _ansi_styles__WEBPACK_IMPORTED_MODULE_1__.colorNames),
78571
+ /* harmony export */ colorNames: () => (/* reexport safe */ _ansi_styles__WEBPACK_IMPORTED_MODULE_0__.colorNames),
78572
+ /* harmony export */ colors: () => (/* reexport safe */ _ansi_styles__WEBPACK_IMPORTED_MODULE_0__.colorNames),
78565
78573
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
78566
- /* harmony export */ foregroundColorNames: () => (/* reexport safe */ _ansi_styles__WEBPACK_IMPORTED_MODULE_1__.foregroundColorNames),
78567
- /* harmony export */ foregroundColors: () => (/* reexport safe */ _ansi_styles__WEBPACK_IMPORTED_MODULE_1__.foregroundColorNames),
78568
- /* harmony export */ modifierNames: () => (/* reexport safe */ _ansi_styles__WEBPACK_IMPORTED_MODULE_1__.modifierNames),
78569
- /* harmony export */ modifiers: () => (/* reexport safe */ _ansi_styles__WEBPACK_IMPORTED_MODULE_1__.modifierNames),
78574
+ /* harmony export */ foregroundColorNames: () => (/* reexport safe */ _ansi_styles__WEBPACK_IMPORTED_MODULE_0__.foregroundColorNames),
78575
+ /* harmony export */ foregroundColors: () => (/* reexport safe */ _ansi_styles__WEBPACK_IMPORTED_MODULE_0__.foregroundColorNames),
78576
+ /* harmony export */ modifierNames: () => (/* reexport safe */ _ansi_styles__WEBPACK_IMPORTED_MODULE_0__.modifierNames),
78577
+ /* harmony export */ modifiers: () => (/* reexport safe */ _ansi_styles__WEBPACK_IMPORTED_MODULE_0__.modifierNames),
78570
78578
  /* harmony export */ supportsColor: () => (/* binding */ stdoutColor),
78571
78579
  /* harmony export */ supportsColorStderr: () => (/* binding */ stderrColor)
78572
78580
  /* harmony export */ });
78573
- /* harmony import */ var _ansi_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./vendor/ansi-styles/index.js */ "./node_modules/chalk/source/vendor/ansi-styles/index.js");
78574
- /* harmony import */ var _supports_color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! #supports-color */ "./node_modules/chalk/source/vendor/supports-color/index.js");
78581
+ /* harmony import */ var _ansi_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./vendor/ansi-styles/index.js */ "./node_modules/chalk/source/vendor/ansi-styles/index.js");
78582
+ /* harmony import */ var _supports_color__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! #supports-color */ "./node_modules/chalk/source/vendor/supports-color/index.js");
78575
78583
  /* harmony import */ var _utilities_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utilities.js */ "./node_modules/chalk/source/utilities.js");
78576
78584
 
78577
78585
 
78578
78586
 
78579
78587
 
78580
- const {stdout: stdoutColor, stderr: stderrColor} = _supports_color__WEBPACK_IMPORTED_MODULE_0__["default"];
78588
+ const {stdout: stdoutColor, stderr: stderrColor} = _supports_color__WEBPACK_IMPORTED_MODULE_1__["default"];
78581
78589
 
78582
78590
  const GENERATOR = Symbol('GENERATOR');
78583
78591
  const STYLER = Symbol('STYLER');
@@ -78625,7 +78633,7 @@ function createChalk(options) {
78625
78633
 
78626
78634
  Object.setPrototypeOf(createChalk.prototype, Function.prototype);
78627
78635
 
78628
- for (const [styleName, style] of Object.entries(_ansi_styles__WEBPACK_IMPORTED_MODULE_1__["default"])) {
78636
+ for (const [styleName, style] of Object.entries(_ansi_styles__WEBPACK_IMPORTED_MODULE_0__["default"])) {
78629
78637
  styles[styleName] = {
78630
78638
  get() {
78631
78639
  const builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]);
@@ -78646,21 +78654,21 @@ styles.visible = {
78646
78654
  const getModelAnsi = (model, level, type, ...arguments_) => {
78647
78655
  if (model === 'rgb') {
78648
78656
  if (level === 'ansi16m') {
78649
- return _ansi_styles__WEBPACK_IMPORTED_MODULE_1__["default"][type].ansi16m(...arguments_);
78657
+ return _ansi_styles__WEBPACK_IMPORTED_MODULE_0__["default"][type].ansi16m(...arguments_);
78650
78658
  }
78651
78659
 
78652
78660
  if (level === 'ansi256') {
78653
- return _ansi_styles__WEBPACK_IMPORTED_MODULE_1__["default"][type].ansi256(_ansi_styles__WEBPACK_IMPORTED_MODULE_1__["default"].rgbToAnsi256(...arguments_));
78661
+ return _ansi_styles__WEBPACK_IMPORTED_MODULE_0__["default"][type].ansi256(_ansi_styles__WEBPACK_IMPORTED_MODULE_0__["default"].rgbToAnsi256(...arguments_));
78654
78662
  }
78655
78663
 
78656
- return _ansi_styles__WEBPACK_IMPORTED_MODULE_1__["default"][type].ansi(_ansi_styles__WEBPACK_IMPORTED_MODULE_1__["default"].rgbToAnsi(...arguments_));
78664
+ return _ansi_styles__WEBPACK_IMPORTED_MODULE_0__["default"][type].ansi(_ansi_styles__WEBPACK_IMPORTED_MODULE_0__["default"].rgbToAnsi(...arguments_));
78657
78665
  }
78658
78666
 
78659
78667
  if (model === 'hex') {
78660
- return getModelAnsi('rgb', level, type, ..._ansi_styles__WEBPACK_IMPORTED_MODULE_1__["default"].hexToRgb(...arguments_));
78668
+ return getModelAnsi('rgb', level, type, ..._ansi_styles__WEBPACK_IMPORTED_MODULE_0__["default"].hexToRgb(...arguments_));
78661
78669
  }
78662
78670
 
78663
- return _ansi_styles__WEBPACK_IMPORTED_MODULE_1__["default"][type][model](...arguments_);
78671
+ return _ansi_styles__WEBPACK_IMPORTED_MODULE_0__["default"][type][model](...arguments_);
78664
78672
  };
78665
78673
 
78666
78674
  const usedModels = ['rgb', 'hex', 'ansi256'];
@@ -78670,7 +78678,7 @@ for (const model of usedModels) {
78670
78678
  get() {
78671
78679
  const {level} = this;
78672
78680
  return function (...arguments_) {
78673
- const styler = createStyler(getModelAnsi(model, levelMapping[level], 'color', ...arguments_), _ansi_styles__WEBPACK_IMPORTED_MODULE_1__["default"].color.close, this[STYLER]);
78681
+ const styler = createStyler(getModelAnsi(model, levelMapping[level], 'color', ...arguments_), _ansi_styles__WEBPACK_IMPORTED_MODULE_0__["default"].color.close, this[STYLER]);
78674
78682
  return createBuilder(this, styler, this[IS_EMPTY]);
78675
78683
  };
78676
78684
  },
@@ -78681,7 +78689,7 @@ for (const model of usedModels) {
78681
78689
  get() {
78682
78690
  const {level} = this;
78683
78691
  return function (...arguments_) {
78684
- const styler = createStyler(getModelAnsi(model, levelMapping[level], 'bgColor', ...arguments_), _ansi_styles__WEBPACK_IMPORTED_MODULE_1__["default"].bgColor.close, this[STYLER]);
78692
+ const styler = createStyler(getModelAnsi(model, levelMapping[level], 'bgColor', ...arguments_), _ansi_styles__WEBPACK_IMPORTED_MODULE_0__["default"].bgColor.close, this[STYLER]);
78685
78693
  return createBuilder(this, styler, this[IS_EMPTY]);
78686
78694
  };
78687
78695
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.113.142",
3
+ "version": "2.113.144",
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.2",
59
59
  "webpack-cli": "^6.0.1",
60
60
  "xml-js": "^1.6.11"
61
61
  }