@abaplint/runtime 2.10.56 → 2.10.58

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.
@@ -9,6 +9,7 @@ export interface IMessageOptions {
9
9
  exception?: ABAPObject;
10
10
  with?: (ICharacter | string)[];
11
11
  into?: ICharacter;
12
+ text?: ICharacter;
12
13
  }
13
14
  export declare class MessageStatement {
14
15
  private readonly context;
@@ -75,7 +75,10 @@ class MessageStatement {
75
75
  // @ts-ignore
76
76
  abap.builtin.sy.get().msgty.set(msgty);
77
77
  let replaced = "";
78
- if (options.exception) {
78
+ if (options.text) {
79
+ replaced = options.text.get();
80
+ }
81
+ else if (options.exception) {
79
82
  replaced = await options.exception.get().if_message$get_text();
80
83
  }
81
84
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/runtime",
3
- "version": "2.10.56",
3
+ "version": "2.10.58",
4
4
  "description": "Transpiler - Runtime",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",
@@ -32,7 +32,7 @@
32
32
  "@types/chai": "^4.3.20",
33
33
  "@types/mocha": "^10.0.10",
34
34
  "chai": "^4.5.0",
35
- "mocha": "^11.4.0",
35
+ "mocha": "^11.5.0",
36
36
  "source-map-support": "^0.5.21",
37
37
  "typescript": "^5.8.3"
38
38
  },