@abaplint/cli 2.114.5 → 2.114.6

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 +4 -3
  2. package/package.json +2 -2
package/build/cli.js CHANGED
@@ -54998,7 +54998,7 @@ class Registry {
54998
54998
  }
54999
54999
  static abaplintVersion() {
55000
55000
  // magic, see build script "version.sh"
55001
- return "2.114.5";
55001
+ return "2.114.6";
55002
55002
  }
55003
55003
  getDDICReferences() {
55004
55004
  return this.ddicReferences;
@@ -67519,6 +67519,7 @@ https://docs.abapopenchecks.org/checks/16/`,
67519
67519
  this.conf = conf;
67520
67520
  }
67521
67521
  runParsed(file, obj) {
67522
+ var _a, _b;
67522
67523
  const issues = [];
67523
67524
  const ddic = new ddic_1.DDIC(this.reg);
67524
67525
  if (obj instanceof objects_1.Class) {
@@ -67543,10 +67544,10 @@ https://docs.abapopenchecks.org/checks/16/`,
67543
67544
  rowContent = " " + rowContent;
67544
67545
  }
67545
67546
  let offset = 0;
67546
- if (rows[i - 1].endsWith("\r")) {
67547
+ if ((_a = rows[i - 1]) === null || _a === void 0 ? void 0 : _a.endsWith("\r")) {
67547
67548
  offset = -1;
67548
67549
  }
67549
- const startPos = new position_1.Position(i, rows[i - 1].length + 1 + offset);
67550
+ const startPos = new position_1.Position(i, ((_b = rows[i - 1]) === null || _b === void 0 ? void 0 : _b.length) + 1 + offset);
67550
67551
  const endPos = new position_1.Position(i + 1, rows[i].length + 1);
67551
67552
  let fix = edit_helper_1.EditHelper.replaceRange(file, startPos, endPos, rowContent);
67552
67553
  if (rows[i - 1] === undefined || rows[i - 1].indexOf("*") === 0 || rows[i - 1].includes(`"`)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.114.5",
3
+ "version": "2.114.6",
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.114.5",
41
+ "@abaplint/core": "^2.114.6",
42
42
  "@types/chai": "^4.3.20",
43
43
  "@types/minimist": "^1.2.5",
44
44
  "@types/mocha": "^10.0.10",