@abaplint/runtime 1.8.8 → 1.8.11
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.
- package/build/src/builtin/index.js +5 -1
- package/build/src/compare/index.js +5 -1
- package/build/src/index.d.ts +16 -5
- package/build/src/index.js +4 -1
- package/build/src/operators/index.js +5 -1
- package/build/src/rfc.d.ts +1 -1
- package/build/src/statements/call_function.d.ts +2 -1
- package/build/src/statements/call_function.js +14 -4
- package/build/src/types/index.js +5 -1
- package/package.json +3 -3
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/build/src/index.d.ts
CHANGED
|
@@ -8,12 +8,23 @@ import { Console } from "./console";
|
|
|
8
8
|
import { UnitTestResult } from "./unit_test";
|
|
9
9
|
import { OffsetLength } from "./offset_length";
|
|
10
10
|
import { templateFormatting } from "./template_formatting";
|
|
11
|
-
export { UnitTestResult, RFC };
|
|
11
|
+
export { UnitTestResult, RFC, types };
|
|
12
12
|
export declare class ABAP {
|
|
13
|
-
FunctionModules: {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
FunctionModules: {
|
|
14
|
+
[name: string]: any;
|
|
15
|
+
};
|
|
16
|
+
Classes: {
|
|
17
|
+
[name: string]: any;
|
|
18
|
+
};
|
|
19
|
+
Interfaces: {
|
|
20
|
+
[name: string]: any;
|
|
21
|
+
};
|
|
22
|
+
DDIC: {
|
|
23
|
+
[name: string]: any;
|
|
24
|
+
};
|
|
25
|
+
RFCDestinations: {
|
|
26
|
+
[name: string]: RFC.RFCClient;
|
|
27
|
+
};
|
|
17
28
|
statements: Statements;
|
|
18
29
|
types: typeof types;
|
|
19
30
|
builtin: typeof builtin;
|
package/build/src/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ABAP = exports.RFC = exports.UnitTestResult = void 0;
|
|
3
|
+
exports.ABAP = exports.types = exports.RFC = exports.UnitTestResult = void 0;
|
|
4
4
|
const types = require("./types");
|
|
5
|
+
exports.types = types;
|
|
5
6
|
const builtin = require("./builtin");
|
|
6
7
|
const compare = require("./compare");
|
|
7
8
|
const operators = require("./operators");
|
|
@@ -21,6 +22,8 @@ class ABAP {
|
|
|
21
22
|
this.Classes = {};
|
|
22
23
|
this.Interfaces = {};
|
|
23
24
|
this.DDIC = {};
|
|
25
|
+
// RFC Destinations
|
|
26
|
+
this.RFCDestinations = {};
|
|
24
27
|
this.types = types;
|
|
25
28
|
this.builtin = builtin;
|
|
26
29
|
this.operators = operators;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/build/src/rfc.d.ts
CHANGED
|
@@ -5,5 +5,6 @@ export interface ICallFunctionOptions {
|
|
|
5
5
|
importing?: any;
|
|
6
6
|
tables?: any;
|
|
7
7
|
changing?: any;
|
|
8
|
+
exceptions?: any;
|
|
8
9
|
}
|
|
9
|
-
export declare function callFunction(
|
|
10
|
+
export declare function callFunction(options: ICallFunctionOptions): Promise<void>;
|
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.callFunction = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
//
|
|
7
|
-
|
|
4
|
+
// note: this is only called if DESTNIATION is supplied
|
|
5
|
+
async function callFunction(options) {
|
|
6
|
+
// @ts-ignore
|
|
7
|
+
const dest = abap.RFCDestinations[options.destination];
|
|
8
|
+
if (dest === undefined) {
|
|
9
|
+
throw new Error(`RFC destination ${options.destination} does not exist`);
|
|
10
|
+
}
|
|
11
|
+
await dest.call(options.name, {
|
|
12
|
+
exporting: options.exporting,
|
|
13
|
+
importing: options.importing,
|
|
14
|
+
tables: options.tables,
|
|
15
|
+
changing: options.changing,
|
|
16
|
+
exceptions: options.exceptions,
|
|
17
|
+
});
|
|
8
18
|
}
|
|
9
19
|
exports.callFunction = callFunction;
|
|
10
20
|
//# sourceMappingURL=call_function.js.map
|
package/build/src/types/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/runtime",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.11",
|
|
4
4
|
"description": "Transpiler - Runtime",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"typings": "build/src/index.d.ts",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"@types/mocha": "^9.1.0",
|
|
36
36
|
"@types/sql.js": "^1.4.3",
|
|
37
37
|
"chai": "^4.3.6",
|
|
38
|
-
"mocha": "^9.2.
|
|
38
|
+
"mocha": "^9.2.1",
|
|
39
39
|
"source-map-support": "^0.5.21",
|
|
40
|
-
"typescript": "^4.
|
|
40
|
+
"typescript": "^4.6.2"
|
|
41
41
|
}
|
|
42
42
|
}
|