@abaplint/transpiler-cli 2.7.153 → 2.7.154

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/bundle.js +7 -3
  2. package/package.json +3 -3
package/build/bundle.js CHANGED
@@ -21481,7 +21481,7 @@ class TypeUtils {
21481
21481
  else if (target instanceof basic_1.XStringType) {
21482
21482
  return false;
21483
21483
  }
21484
- else if (target instanceof basic_1.IntegerType) {
21484
+ else if (target instanceof basic_1.IntegerType || target instanceof basic_1.Integer8Type) {
21485
21485
  if (((_e = source.getAbstractTypeData()) === null || _e === void 0 ? void 0 : _e.derivedFromConstant) === true) {
21486
21486
  return true;
21487
21487
  }
@@ -50111,7 +50111,7 @@ class Registry {
50111
50111
  }
50112
50112
  static abaplintVersion() {
50113
50113
  // magic, see build script "version.sh"
50114
- return "2.105.14";
50114
+ return "2.105.15";
50115
50115
  }
50116
50116
  getDDICReferences() {
50117
50117
  return this.ddicReferences;
@@ -69160,7 +69160,7 @@ class UncaughtException extends _abap_rule_1.ABAPRule {
69160
69160
  return this.issues;
69161
69161
  }
69162
69162
  traverse(n, file) {
69163
- var _a, _b, _c, _d;
69163
+ var _a, _b, _c, _d, _e, _f;
69164
69164
  const get = n.get();
69165
69165
  if (get instanceof Structures.ClassDefinition
69166
69166
  || get instanceof Structures.Interface) {
@@ -69212,6 +69212,10 @@ class UncaughtException extends _abap_rule_1.ABAPRule {
69212
69212
  if (concat.startsWith("RAISE EXCEPTION TYPE ")) {
69213
69213
  name = (_d = n.findFirstExpression(Expressions.ClassName)) === null || _d === void 0 ? void 0 : _d.getFirstToken().getStr().toUpperCase();
69214
69214
  }
69215
+ else if (concat.startsWith("RAISE EXCEPTION NEW ")) {
69216
+ 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();
69217
+ // todo: else its a normal Source, infer the type from it
69218
+ }
69215
69219
  this.check(name, n, file);
69216
69220
  }
69217
69221
  else if (get instanceof Statements.Perform) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler-cli",
3
- "version": "2.7.153",
3
+ "version": "2.7.154",
4
4
  "description": "Transpiler - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -26,12 +26,12 @@
26
26
  "author": "abaplint",
27
27
  "license": "MIT",
28
28
  "devDependencies": {
29
- "@abaplint/transpiler": "^2.7.153",
29
+ "@abaplint/transpiler": "^2.7.154",
30
30
  "@types/glob": "^8.1.0",
31
31
  "glob": "=7.2.0",
32
32
  "@types/progress": "^2.0.7",
33
33
  "@types/node": "^20.11.10",
34
- "@abaplint/core": "^2.105.14",
34
+ "@abaplint/core": "^2.105.15",
35
35
  "progress": "^2.0.3",
36
36
  "webpack": "^5.90.0",
37
37
  "webpack-cli": "^5.1.4",