@abaplint/cli 2.105.14 → 2.105.15

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 +7 -3
  2. package/package.json +3 -3
package/build/cli.js CHANGED
@@ -22532,7 +22532,7 @@ class TypeUtils {
22532
22532
  else if (target instanceof basic_1.XStringType) {
22533
22533
  return false;
22534
22534
  }
22535
- else if (target instanceof basic_1.IntegerType) {
22535
+ else if (target instanceof basic_1.IntegerType || target instanceof basic_1.Integer8Type) {
22536
22536
  if (((_e = source.getAbstractTypeData()) === null || _e === void 0 ? void 0 : _e.derivedFromConstant) === true) {
22537
22537
  return true;
22538
22538
  }
@@ -51162,7 +51162,7 @@ class Registry {
51162
51162
  }
51163
51163
  static abaplintVersion() {
51164
51164
  // magic, see build script "version.sh"
51165
- return "2.105.14";
51165
+ return "2.105.15";
51166
51166
  }
51167
51167
  getDDICReferences() {
51168
51168
  return this.ddicReferences;
@@ -70211,7 +70211,7 @@ class UncaughtException extends _abap_rule_1.ABAPRule {
70211
70211
  return this.issues;
70212
70212
  }
70213
70213
  traverse(n, file) {
70214
- var _a, _b, _c, _d;
70214
+ var _a, _b, _c, _d, _e, _f;
70215
70215
  const get = n.get();
70216
70216
  if (get instanceof Structures.ClassDefinition
70217
70217
  || get instanceof Structures.Interface) {
@@ -70263,6 +70263,10 @@ class UncaughtException extends _abap_rule_1.ABAPRule {
70263
70263
  if (concat.startsWith("RAISE EXCEPTION TYPE ")) {
70264
70264
  name = (_d = n.findFirstExpression(Expressions.ClassName)) === null || _d === void 0 ? void 0 : _d.getFirstToken().getStr().toUpperCase();
70265
70265
  }
70266
+ else if (concat.startsWith("RAISE EXCEPTION NEW ")) {
70267
+ name = (_f = (_e = n.findFirstExpression(Expressions.NewObject)) === null || _e === void 0 ? void 0 : _e.findFirstExpression(Expressions.TypeNameOrInfer)) === null || _f === void 0 ? void 0 : _f.getFirstToken().getStr().toUpperCase();
70268
+ // todo: else its a normal Source, infer the type from it
70269
+ }
70266
70270
  this.check(name, n, file);
70267
70271
  }
70268
70272
  else if (get instanceof Statements.Perform) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.105.14",
3
+ "version": "2.105.15",
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.105.14",
41
+ "@abaplint/core": "^2.105.15",
42
42
  "@types/chai": "^4.3.11",
43
43
  "@types/glob": "^8.1.0",
44
44
  "@types/minimist": "^1.2.5",
45
45
  "@types/mocha": "^10.0.6",
46
- "@types/node": "^20.11.9",
46
+ "@types/node": "^20.11.10",
47
47
  "@types/progress": "^2.0.7",
48
48
  "chai": "^4.4.1",
49
49
  "chalk": "^5.3.0",