@abaplint/runtime 1.7.26 → 1.7.30
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/compare/cp.js +1 -0
- package/build/src/compare/initial.js +3 -0
- package/build/src/index.d.ts +2 -1
- package/build/src/index.js +3 -1
- package/build/src/rfc.d.ts +25 -0
- package/build/src/rfc.js +3 -0
- package/build/src/statements/call_function.d.ts +9 -0
- package/build/src/statements/call_function.js +10 -0
- package/build/src/statements/index.d.ts +2 -0
- package/build/src/statements/index.js +2 -0
- package/package.json +2 -2
package/build/src/compare/cp.js
CHANGED
|
@@ -12,6 +12,9 @@ function initial(val) {
|
|
|
12
12
|
else if (val instanceof types_1.Date) {
|
|
13
13
|
return val.get() === "00000000";
|
|
14
14
|
}
|
|
15
|
+
else if (val instanceof types_1.Numc) {
|
|
16
|
+
return val.get().match(/^0+$/) !== null;
|
|
17
|
+
}
|
|
15
18
|
else if (val instanceof types_1.Time) {
|
|
16
19
|
return val.get() === "000000";
|
|
17
20
|
}
|
package/build/src/index.d.ts
CHANGED
|
@@ -3,11 +3,12 @@ import * as builtin from "./builtin";
|
|
|
3
3
|
import * as compare from "./compare";
|
|
4
4
|
import * as operators from "./operators";
|
|
5
5
|
import { Statements } from "./statements";
|
|
6
|
+
import * as RFC from "./rfc";
|
|
6
7
|
import { Console } from "./console";
|
|
7
8
|
import { UnitTestResult } from "./unit_test";
|
|
8
9
|
import { OffsetLength } from "./offset_length";
|
|
9
10
|
import { templateFormatting } from "./template_formatting";
|
|
10
|
-
export { UnitTestResult };
|
|
11
|
+
export { UnitTestResult, RFC };
|
|
11
12
|
export declare class ABAP {
|
|
12
13
|
FunctionModules: {};
|
|
13
14
|
Classes: {};
|
package/build/src/index.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ABAP = exports.UnitTestResult = void 0;
|
|
3
|
+
exports.ABAP = exports.RFC = exports.UnitTestResult = void 0;
|
|
4
4
|
const types = require("./types");
|
|
5
5
|
const builtin = require("./builtin");
|
|
6
6
|
const compare = require("./compare");
|
|
7
7
|
const operators = require("./operators");
|
|
8
8
|
const statements_1 = require("./statements");
|
|
9
|
+
const RFC = require("./rfc");
|
|
10
|
+
exports.RFC = RFC;
|
|
9
11
|
const sql_js_1 = require("sql.js");
|
|
10
12
|
const console_1 = require("./console");
|
|
11
13
|
const unit_test_1 = require("./unit_test");
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { FieldSymbol, Structure, Table } from "./types";
|
|
2
|
+
import { ICharacter } from "./types/_character";
|
|
3
|
+
import { INumeric } from "./types/_numeric";
|
|
4
|
+
declare type TypeType = INumeric | Table | ICharacter | Structure | FieldSymbol;
|
|
5
|
+
export declare type RFCCallInput = {
|
|
6
|
+
exporting?: {
|
|
7
|
+
[name: string]: TypeType;
|
|
8
|
+
};
|
|
9
|
+
importing?: {
|
|
10
|
+
[name: string]: TypeType;
|
|
11
|
+
};
|
|
12
|
+
tables?: {
|
|
13
|
+
[name: string]: TypeType;
|
|
14
|
+
};
|
|
15
|
+
changing?: {
|
|
16
|
+
[name: string]: TypeType;
|
|
17
|
+
};
|
|
18
|
+
exceptions?: {
|
|
19
|
+
[name: string]: number;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export interface RFCClient {
|
|
23
|
+
call(name: string, input?: RFCCallInput): Promise<void>;
|
|
24
|
+
}
|
|
25
|
+
export {};
|
package/build/src/rfc.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.callFunction = void 0;
|
|
4
|
+
function callFunction(_options) {
|
|
5
|
+
// note: this is only called if DESTNIATION is supplied
|
|
6
|
+
// todo
|
|
7
|
+
return;
|
|
8
|
+
}
|
|
9
|
+
exports.callFunction = callFunction;
|
|
10
|
+
//# sourceMappingURL=call_function.js.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { append } from "./append";
|
|
2
2
|
import { assert } from "./assert";
|
|
3
3
|
import { assign } from "./assign";
|
|
4
|
+
import { callFunction } from "./call_function";
|
|
4
5
|
import { clear } from "./clear";
|
|
5
6
|
import { commit } from "./commit";
|
|
6
7
|
import { concatenate } from "./concatenate";
|
|
@@ -44,6 +45,7 @@ export declare class Statements {
|
|
|
44
45
|
describe: typeof describe;
|
|
45
46
|
find: typeof find;
|
|
46
47
|
getBit: typeof getBit;
|
|
48
|
+
callFunction: typeof callFunction;
|
|
47
49
|
getRunTime: typeof getRunTime;
|
|
48
50
|
getTime: typeof getTime;
|
|
49
51
|
insertDatabase: typeof insertDatabase;
|
|
@@ -4,6 +4,7 @@ exports.Statements = void 0;
|
|
|
4
4
|
const append_1 = require("./append");
|
|
5
5
|
const assert_1 = require("./assert");
|
|
6
6
|
const assign_1 = require("./assign");
|
|
7
|
+
const call_function_1 = require("./call_function");
|
|
7
8
|
const clear_1 = require("./clear");
|
|
8
9
|
const commit_1 = require("./commit");
|
|
9
10
|
const concatenate_1 = require("./concatenate");
|
|
@@ -49,6 +50,7 @@ class Statements {
|
|
|
49
50
|
this.describe = describe_1.describe;
|
|
50
51
|
this.find = find_1.find;
|
|
51
52
|
this.getBit = get_bit_1.getBit;
|
|
53
|
+
this.callFunction = call_function_1.callFunction;
|
|
52
54
|
this.getRunTime = get_run_time_1.getRunTime;
|
|
53
55
|
this.getTime = get_time_1.getTime;
|
|
54
56
|
this.insertDatabase = insert_database_1.insertDatabase;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/runtime",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.30",
|
|
4
4
|
"description": "Transpiler - Runtime",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"typings": "build/src/index.d.ts",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@types/mocha": "^9.1.0",
|
|
36
36
|
"@types/sql.js": "^1.4.3",
|
|
37
37
|
"chai": "^4.3.4",
|
|
38
|
-
"mocha": "^9.
|
|
38
|
+
"mocha": "^9.2.0",
|
|
39
39
|
"source-map-support": "^0.5.21",
|
|
40
40
|
"typescript": "^4.5.5"
|
|
41
41
|
}
|