@abaplint/transpiler-cli 2.10.56 → 2.10.57

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 +8 -2
  2. package/package.json +2 -2
package/build/bundle.js CHANGED
@@ -84877,9 +84877,15 @@ class MessageTranspiler {
84877
84877
  }
84878
84878
  }
84879
84879
  else {
84880
- // exception based
84880
+ // exception or constant based
84881
84881
  const exception = node.findDirectExpression(abaplint.Expressions.SimpleSource3);
84882
- options.push("exception: " + traversal.traverse(exception).getCode());
84882
+ const str = exception?.findFirstExpression(abaplint.Expressions.Constant);
84883
+ if (str) {
84884
+ options.push("text: " + traversal.traverse(str).getCode());
84885
+ }
84886
+ else {
84887
+ options.push("exception: " + traversal.traverse(exception).getCode());
84888
+ }
84883
84889
  const type = node.findExpressionAfterToken("TYPE");
84884
84890
  if (type) {
84885
84891
  options.push("type: " + traversal.traverse(type).getCode());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler-cli",
3
- "version": "2.10.56",
3
+ "version": "2.10.57",
4
4
  "description": "Transpiler - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -28,7 +28,7 @@
28
28
  "license": "MIT",
29
29
  "devDependencies": {
30
30
  "@abaplint/core": "^2.113.121",
31
- "@abaplint/transpiler": "^2.10.56",
31
+ "@abaplint/transpiler": "^2.10.57",
32
32
  "@types/glob": "^8.1.0",
33
33
  "@types/node": "^22.15.21",
34
34
  "@types/progress": "^2.0.7",