@abaplint/runtime 2.4.12 → 2.4.13

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.
@@ -7,6 +7,18 @@ class CallFunction {
7
7
  }
8
8
  // note: this is only called if DESTINIATION is supplied
9
9
  async callFunction(options) {
10
+ if (options.destination === "") {
11
+ const param = {
12
+ exporting: options.exporting,
13
+ importing: options.importing,
14
+ tables: options.tables,
15
+ changing: options.changing,
16
+ exceptions: options.exceptions,
17
+ };
18
+ // @ts-ignore
19
+ await abap.FunctionModules[options.name](param);
20
+ return;
21
+ }
10
22
  const dest = this.context.RFCDestinations[options.destination];
11
23
  if (dest === undefined) {
12
24
  throw new Error(`RFC destination ${options.destination} does not exist`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/runtime",
3
- "version": "2.4.12",
3
+ "version": "2.4.13",
4
4
  "description": "Transpiler - Runtime",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",