@abaplint/runtime 2.7.18 → 2.7.19

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.
@@ -24,24 +24,27 @@ export type RuntimeOptions = {
24
24
  database?: RuntimeDatabaseOptions;
25
25
  };
26
26
  export declare class ABAP {
27
- FunctionModules: {
27
+ Classes: {
28
28
  [name: string]: any;
29
29
  };
30
- Classes: {
30
+ DDIC: {
31
31
  [name: string]: any;
32
32
  };
33
- Interfaces: {
33
+ FunctionModules: {
34
34
  [name: string]: any;
35
35
  };
36
- DDIC: {
36
+ Interfaces: {
37
37
  [name: string]: any;
38
38
  };
39
- TypePools: {
39
+ MSAG: {
40
40
  [name: string]: any;
41
41
  };
42
42
  SMIM: {
43
43
  [name: string]: any;
44
44
  };
45
+ TypePools: {
46
+ [name: string]: any;
47
+ };
45
48
  W3MI: {
46
49
  [name: string]: any;
47
50
  };
@@ -25,12 +25,13 @@ Object.defineProperty(exports, "MemoryConsole", { enumerable: true, get: functio
25
25
  class ABAP {
26
26
  constructor(input) {
27
27
  // global objects
28
- this.FunctionModules = {};
29
28
  this.Classes = {};
30
- this.Interfaces = {};
31
29
  this.DDIC = {};
32
- this.TypePools = {};
30
+ this.FunctionModules = {};
31
+ this.Interfaces = {};
32
+ this.MSAG = {};
33
33
  this.SMIM = {};
34
+ this.TypePools = {};
34
35
  this.W3MI = {};
35
36
  this.types = types;
36
37
  this.builtin = builtin;
@@ -24,6 +24,7 @@ function replace(text, w) {
24
24
  return text.trim();
25
25
  }
26
26
  async function findText(context, arbgb, msgnr, msgty) {
27
+ var _a;
27
28
  let text = undefined;
28
29
  if (arbgb && msgnr) {
29
30
  try {
@@ -34,10 +35,14 @@ async function findText(context, arbgb, msgnr, msgty) {
34
35
  text = result[0]["text"];
35
36
  }
36
37
  }
37
- catch (_a) {
38
+ catch (_b) {
38
39
  // use fallback text
39
40
  }
40
41
  }
42
+ if (text === undefined) {
43
+ // @ts-ignore
44
+ text = (_a = abap.MSAG[arbgb === null || arbgb === void 0 ? void 0 : arbgb.trimEnd().toUpperCase()]) === null || _a === void 0 ? void 0 : _a[msgnr];
45
+ }
41
46
  if (text === undefined) {
42
47
  // fallback
43
48
  text = msgty + ":" + (arbgb === null || arbgb === void 0 ? void 0 : arbgb.trim()) + ":" + msgnr + " &1 &2 &3 &4";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/runtime",
3
- "version": "2.7.18",
3
+ "version": "2.7.19",
4
4
  "description": "Transpiler - Runtime",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",