@abaplint/runtime 2.5.38 → 2.5.39
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/abap_regex.d.ts +4 -4
- package/build/src/abap_regex.js +18 -18
- package/build/src/binary_search.d.ts +5 -5
- package/build/src/binary_search.js +48 -48
- package/build/src/builtin/abs.d.ts +5 -5
- package/build/src/builtin/abs.js +17 -17
- package/build/src/builtin/boolc.d.ts +4 -4
- package/build/src/builtin/boolc.js +22 -22
- package/build/src/builtin/ceil.d.ts +5 -5
- package/build/src/builtin/ceil.js +17 -17
- package/build/src/builtin/concat_lines_of.d.ts +7 -7
- package/build/src/builtin/concat_lines_of.js +15 -15
- package/build/src/builtin/condense.d.ts +9 -9
- package/build/src/builtin/condense.js +28 -28
- package/build/src/builtin/contains.d.ts +12 -12
- package/build/src/builtin/contains.js +15 -15
- package/build/src/builtin/cos.d.ts +5 -5
- package/build/src/builtin/cos.js +22 -22
- package/build/src/builtin/count.d.ts +12 -12
- package/build/src/builtin/count.js +37 -37
- package/build/src/builtin/count_any_of.d.ts +8 -8
- package/build/src/builtin/count_any_of.js +17 -17
- package/build/src/builtin/escape.d.ts +7 -7
- package/build/src/builtin/escape.js +30 -30
- package/build/src/builtin/find.d.ts +13 -13
- package/build/src/builtin/find.js +57 -57
- package/build/src/builtin/floor.d.ts +5 -5
- package/build/src/builtin/floor.js +17 -17
- package/build/src/builtin/frac.d.ts +6 -6
- package/build/src/builtin/frac.js +40 -40
- package/build/src/builtin/index.d.ts +47 -47
- package/build/src/builtin/index.js +64 -64
- package/build/src/builtin/insert.d.ts +9 -9
- package/build/src/builtin/insert.js +15 -15
- package/build/src/builtin/ipow.d.ts +6 -6
- package/build/src/builtin/ipow.js +27 -27
- package/build/src/builtin/lines.d.ts +4 -4
- package/build/src/builtin/lines.js +8 -8
- package/build/src/builtin/match.d.ts +5 -5
- package/build/src/builtin/match.js +22 -22
- package/build/src/builtin/matches.d.ts +6 -6
- package/build/src/builtin/matches.js +29 -29
- package/build/src/builtin/nmax.d.ts +14 -14
- package/build/src/builtin/nmax.js +34 -34
- package/build/src/builtin/nmin.d.ts +14 -14
- package/build/src/builtin/nmin.js +34 -34
- package/build/src/builtin/numofchar.d.ts +5 -5
- package/build/src/builtin/numofchar.js +15 -15
- package/build/src/builtin/repeat.d.ts +6 -6
- package/build/src/builtin/repeat.js +9 -9
- package/build/src/builtin/replace.d.ts +13 -13
- package/build/src/builtin/replace.js +65 -65
- package/build/src/builtin/reverse.d.ts +5 -5
- package/build/src/builtin/reverse.js +16 -16
- package/build/src/builtin/round.d.ts +8 -8
- package/build/src/builtin/round.js +41 -41
- package/build/src/builtin/segment.d.ts +8 -8
- package/build/src/builtin/segment.js +32 -32
- package/build/src/builtin/shift_left.d.ts +9 -9
- package/build/src/builtin/shift_left.js +30 -30
- package/build/src/builtin/sign.d.ts +5 -5
- package/build/src/builtin/sign.js +17 -17
- package/build/src/builtin/sin.d.ts +5 -5
- package/build/src/builtin/sin.js +22 -22
- package/build/src/builtin/sqrt.d.ts +5 -5
- package/build/src/builtin/sqrt.js +22 -22
- package/build/src/builtin/strlen.d.ts +5 -5
- package/build/src/builtin/strlen.js +15 -15
- package/build/src/builtin/substring.d.ts +8 -8
- package/build/src/builtin/substring.js +28 -28
- package/build/src/builtin/substring_after.d.ts +6 -6
- package/build/src/builtin/substring_after.js +28 -28
- package/build/src/builtin/substring_before.d.ts +6 -6
- package/build/src/builtin/substring_before.js +28 -28
- package/build/src/builtin/sy.d.ts +2 -2
- package/build/src/builtin/sy.js +30 -30
- package/build/src/builtin/tan.d.ts +5 -5
- package/build/src/builtin/tan.js +22 -22
- package/build/src/builtin/to_lower.d.ts +4 -4
- package/build/src/builtin/to_lower.js +9 -9
- package/build/src/builtin/to_mixed.d.ts +9 -9
- package/build/src/builtin/to_mixed.js +48 -48
- package/build/src/builtin/to_upper.d.ts +4 -4
- package/build/src/builtin/to_upper.js +9 -9
- package/build/src/builtin/translate.d.ts +6 -6
- package/build/src/builtin/translate.js +19 -19
- package/build/src/builtin/trunc.d.ts +5 -5
- package/build/src/builtin/trunc.js +17 -17
- package/build/src/builtin/xstrlen.d.ts +5 -5
- package/build/src/builtin/xstrlen.js +13 -13
- package/build/src/classic_error.d.ts +6 -6
- package/build/src/classic_error.js +10 -10
- package/build/src/clone.d.ts +1 -1
- package/build/src/clone.js +37 -37
- package/build/src/compare/assigned.d.ts +2 -2
- package/build/src/compare/assigned.js +7 -7
- package/build/src/compare/between.d.ts +2 -2
- package/build/src/compare/between.js +9 -9
- package/build/src/compare/ca.d.ts +3 -3
- package/build/src/compare/ca.js +36 -36
- package/build/src/compare/cn.d.ts +3 -3
- package/build/src/compare/cn.js +8 -8
- package/build/src/compare/co.d.ts +4 -4
- package/build/src/compare/co.js +37 -37
- package/build/src/compare/cp.d.ts +4 -4
- package/build/src/compare/cp.js +48 -48
- package/build/src/compare/cs.d.ts +3 -3
- package/build/src/compare/cs.js +33 -33
- package/build/src/compare/eq.d.ts +4 -4
- package/build/src/compare/eq.js +134 -134
- package/build/src/compare/ge.d.ts +3 -3
- package/build/src/compare/ge.js +8 -8
- package/build/src/compare/gt.d.ts +4 -4
- package/build/src/compare/gt.js +107 -107
- package/build/src/compare/in.d.ts +4 -4
- package/build/src/compare/in.js +34 -34
- package/build/src/compare/index.d.ts +22 -22
- package/build/src/compare/index.js +40 -40
- package/build/src/compare/initial.d.ts +4 -4
- package/build/src/compare/initial.js +63 -63
- package/build/src/compare/instance_of.d.ts +2 -2
- package/build/src/compare/instance_of.js +7 -7
- package/build/src/compare/le.d.ts +3 -3
- package/build/src/compare/le.js +8 -8
- package/build/src/compare/lt.d.ts +4 -4
- package/build/src/compare/lt.js +8 -8
- package/build/src/compare/m.d.ts +3 -3
- package/build/src/compare/m.js +37 -37
- package/build/src/compare/na.d.ts +3 -3
- package/build/src/compare/na.js +8 -8
- package/build/src/compare/ne.d.ts +3 -3
- package/build/src/compare/ne.js +8 -8
- package/build/src/compare/np.d.ts +3 -3
- package/build/src/compare/np.js +8 -8
- package/build/src/compare/ns.d.ts +3 -3
- package/build/src/compare/ns.js +8 -8
- package/build/src/compare/o.d.ts +2 -2
- package/build/src/compare/o.js +28 -28
- package/build/src/compare/z.d.ts +2 -2
- package/build/src/compare/z.js +28 -28
- package/build/src/console.d.ts +7 -7
- package/build/src/console.js +21 -21
- package/build/src/context.d.ts +13 -13
- package/build/src/context.js +17 -17
- package/build/src/db/db.d.ts +55 -55
- package/build/src/db/db.js +2 -2
- package/build/src/expand_dynamic.d.ts +2 -2
- package/build/src/expand_dynamic.js +22 -22
- package/build/src/expand_in.d.ts +2 -2
- package/build/src/expand_in.js +24 -24
- package/build/src/index.d.ts +52 -52
- package/build/src/index.js +54 -54
- package/build/src/offset_length.d.ts +16 -16
- package/build/src/offset_length.js +78 -78
- package/build/src/operators/_bit_operations.d.ts +6 -6
- package/build/src/operators/_bit_operations.js +29 -29
- package/build/src/operators/_parse.d.ts +4 -4
- package/build/src/operators/_parse.js +45 -45
- package/build/src/operators/add.d.ts +4 -4
- package/build/src/operators/add.js +42 -42
- package/build/src/operators/bit-and.d.ts +2 -2
- package/build/src/operators/bit-and.js +18 -18
- package/build/src/operators/bit-not.d.ts +2 -2
- package/build/src/operators/bit-not.js +14 -14
- package/build/src/operators/bit-or.d.ts +2 -2
- package/build/src/operators/bit-or.js +18 -18
- package/build/src/operators/bit-xor.d.ts +2 -2
- package/build/src/operators/bit-xor.js +18 -18
- package/build/src/operators/concat.d.ts +4 -4
- package/build/src/operators/concat.js +35 -35
- package/build/src/operators/div.d.ts +4 -4
- package/build/src/operators/div.js +12 -12
- package/build/src/operators/divide.d.ts +4 -4
- package/build/src/operators/divide.js +16 -16
- package/build/src/operators/index.d.ts +12 -12
- package/build/src/operators/index.js +28 -28
- package/build/src/operators/minus.d.ts +4 -4
- package/build/src/operators/minus.js +41 -41
- package/build/src/operators/mod.d.ts +4 -4
- package/build/src/operators/mod.js +12 -12
- package/build/src/operators/multiply.d.ts +4 -4
- package/build/src/operators/multiply.js +29 -29
- package/build/src/operators/power.d.ts +4 -4
- package/build/src/operators/power.js +9 -9
- package/build/src/rfc.d.ts +25 -25
- package/build/src/rfc.js +2 -2
- package/build/src/statements/append.d.ts +13 -13
- package/build/src/statements/append.js +66 -66
- package/build/src/statements/assert.d.ts +1 -1
- package/build/src/statements/assert.js +9 -9
- package/build/src/statements/assign.d.ts +12 -12
- package/build/src/statements/assign.js +136 -136
- package/build/src/statements/call_function.d.ts +15 -15
- package/build/src/statements/call_function.js +35 -35
- package/build/src/statements/cast.d.ts +2 -2
- package/build/src/statements/cast.js +56 -56
- package/build/src/statements/clear.d.ts +4 -4
- package/build/src/statements/clear.js +7 -7
- package/build/src/statements/collect.d.ts +3 -3
- package/build/src/statements/collect.js +13 -13
- package/build/src/statements/commit.d.ts +1 -1
- package/build/src/statements/commit.js +7 -7
- package/build/src/statements/concatenate.d.ts +11 -11
- package/build/src/statements/concatenate.js +47 -47
- package/build/src/statements/condense.d.ts +4 -4
- package/build/src/statements/condense.js +15 -15
- package/build/src/statements/convert.d.ts +14 -14
- package/build/src/statements/convert.js +78 -78
- package/build/src/statements/create_data.d.ts +16 -16
- package/build/src/statements/create_data.js +154 -154
- package/build/src/statements/delete_database.d.ts +13 -13
- package/build/src/statements/delete_database.js +51 -51
- package/build/src/statements/delete_internal.d.ts +12 -12
- package/build/src/statements/delete_internal.js +106 -99
- package/build/src/statements/describe.d.ts +13 -13
- package/build/src/statements/describe.js +89 -89
- package/build/src/statements/find.d.ts +17 -17
- package/build/src/statements/find.js +173 -168
- package/build/src/statements/get_bit.d.ts +4 -4
- package/build/src/statements/get_bit.js +12 -12
- package/build/src/statements/get_locale.d.ts +2 -2
- package/build/src/statements/get_locale.js +8 -8
- package/build/src/statements/get_parameter.d.ts +2 -2
- package/build/src/statements/get_parameter.js +9 -9
- package/build/src/statements/get_run_time.d.ts +2 -2
- package/build/src/statements/get_run_time.js +16 -16
- package/build/src/statements/get_time.d.ts +9 -9
- package/build/src/statements/get_time.js +30 -30
- package/build/src/statements/index.d.ts +96 -96
- package/build/src/statements/index.js +115 -115
- package/build/src/statements/insert_database.d.ts +13 -13
- package/build/src/statements/insert_database.js +56 -56
- package/build/src/statements/insert_internal.d.ts +13 -13
- package/build/src/statements/insert_internal.js +113 -113
- package/build/src/statements/loop.d.ts +15 -15
- package/build/src/statements/loop.js +115 -115
- package/build/src/statements/message.d.ts +17 -17
- package/build/src/statements/message.js +89 -89
- package/build/src/statements/modify_database.d.ts +12 -12
- package/build/src/statements/modify_database.js +39 -39
- package/build/src/statements/modify_internal.d.ts +7 -7
- package/build/src/statements/modify_internal.js +29 -29
- package/build/src/statements/move_corresponding.d.ts +2 -2
- package/build/src/statements/move_corresponding.js +10 -10
- package/build/src/statements/overlay.d.ts +3 -3
- package/build/src/statements/overlay.js +16 -16
- package/build/src/statements/raise_event.d.ts +1 -1
- package/build/src/statements/raise_event.js +8 -8
- package/build/src/statements/read_report.d.ts +8 -8
- package/build/src/statements/read_report.js +14 -14
- package/build/src/statements/read_table.d.ts +22 -22
- package/build/src/statements/read_table.js +130 -130
- package/build/src/statements/replace.d.ts +13 -13
- package/build/src/statements/replace.js +60 -60
- package/build/src/statements/rollback.d.ts +1 -1
- package/build/src/statements/rollback.js +7 -7
- package/build/src/statements/select.d.ts +8 -8
- package/build/src/statements/select.js +77 -77
- package/build/src/statements/set_bit.d.ts +4 -4
- package/build/src/statements/set_bit.js +41 -41
- package/build/src/statements/set_handler.d.ts +3 -3
- package/build/src/statements/set_handler.js +8 -8
- package/build/src/statements/set_locale.d.ts +2 -2
- package/build/src/statements/set_locale.js +7 -7
- package/build/src/statements/shift.d.ts +12 -12
- package/build/src/statements/shift.js +113 -113
- package/build/src/statements/sort.d.ts +9 -9
- package/build/src/statements/sort.js +82 -82
- package/build/src/statements/split.d.ts +9 -9
- package/build/src/statements/split.js +38 -38
- package/build/src/statements/translate.d.ts +2 -2
- package/build/src/statements/translate.js +39 -39
- package/build/src/statements/update_database.d.ts +14 -14
- package/build/src/statements/update_database.js +53 -53
- package/build/src/statements/write.d.ts +17 -17
- package/build/src/statements/write.js +56 -56
- package/build/src/template_formatting.d.ts +14 -14
- package/build/src/template_formatting.js +82 -82
- package/build/src/throw_error.d.ts +1 -1
- package/build/src/throw_error.js +14 -14
- package/build/src/types/_abstract_type_data.d.ts +5 -5
- package/build/src/types/_abstract_type_data.js +2 -2
- package/build/src/types/_character.d.ts +11 -11
- package/build/src/types/_character.js +2 -2
- package/build/src/types/_date_helper.d.ts +2 -2
- package/build/src/types/_date_helper.js +40 -40
- package/build/src/types/_numeric.d.ts +5 -5
- package/build/src/types/_numeric.js +2 -2
- package/build/src/types/abap_object.d.ts +11 -11
- package/build/src/types/abap_object.js +32 -32
- package/build/src/types/character.d.ts +26 -26
- package/build/src/types/character.js +111 -111
- package/build/src/types/data_reference.d.ts +28 -28
- package/build/src/types/data_reference.js +88 -88
- package/build/src/types/date.d.ts +20 -20
- package/build/src/types/date.js +66 -66
- package/build/src/types/decfloat34.d.ts +11 -11
- package/build/src/types/decfloat34.js +45 -45
- package/build/src/types/field_symbol.d.ts +32 -32
- package/build/src/types/field_symbol.js +115 -115
- package/build/src/types/float.d.ts +15 -15
- package/build/src/types/float.js +74 -74
- package/build/src/types/hex.d.ts +20 -20
- package/build/src/types/hex.js +81 -81
- package/build/src/types/index.d.ts +17 -17
- package/build/src/types/index.js +33 -33
- package/build/src/types/integer.d.ts +15 -15
- package/build/src/types/integer.js +56 -56
- package/build/src/types/numc.d.ts +21 -21
- package/build/src/types/numc.js +48 -48
- package/build/src/types/packed.d.ts +19 -19
- package/build/src/types/packed.js +53 -53
- package/build/src/types/string.d.ts +19 -19
- package/build/src/types/string.js +86 -86
- package/build/src/types/structure.d.ts +23 -23
- package/build/src/types/structure.js +113 -113
- package/build/src/types/table.d.ts +55 -55
- package/build/src/types/table.js +220 -220
- package/build/src/types/time.d.ts +20 -20
- package/build/src/types/time.js +67 -67
- package/build/src/types/utc_long.d.ts +18 -18
- package/build/src/types/utc_long.js +26 -26
- package/build/src/types/xstring.d.ts +18 -18
- package/build/src/types/xstring.js +70 -70
- package/build/src/unit_test.d.ts +26 -26
- package/build/src/unit_test.js +75 -75
- package/package.json +2 -2
package/build/src/compare/o.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.o = void 0;
|
|
4
|
-
const m_1 = require("./m");
|
|
5
|
-
// bitwise compare
|
|
6
|
-
function o(operand1, operand2) {
|
|
7
|
-
let operand1Bits = (0, m_1.hexToBinary)(operand1);
|
|
8
|
-
const operand2Bits = (0, m_1.hexToBinary)(operand2);
|
|
9
|
-
if (operand1Bits.length < operand2Bits.length) {
|
|
10
|
-
operand1Bits = operand1Bits.padEnd(operand2Bits.length, "0");
|
|
11
|
-
}
|
|
12
|
-
// let oneFound = false;
|
|
13
|
-
let zeroFound = false;
|
|
14
|
-
for (let index = 0; index < operand2Bits.length; index++) {
|
|
15
|
-
const o1bit = operand1Bits.substring(index, index + 1);
|
|
16
|
-
const o2bit = operand2Bits.substring(index, index + 1);
|
|
17
|
-
if (o2bit === "1") {
|
|
18
|
-
if (o1bit === "1") {
|
|
19
|
-
// oneFound = true;
|
|
20
|
-
}
|
|
21
|
-
else {
|
|
22
|
-
zeroFound = true;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
return zeroFound === false;
|
|
27
|
-
}
|
|
28
|
-
exports.o = o;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.o = void 0;
|
|
4
|
+
const m_1 = require("./m");
|
|
5
|
+
// bitwise compare
|
|
6
|
+
function o(operand1, operand2) {
|
|
7
|
+
let operand1Bits = (0, m_1.hexToBinary)(operand1);
|
|
8
|
+
const operand2Bits = (0, m_1.hexToBinary)(operand2);
|
|
9
|
+
if (operand1Bits.length < operand2Bits.length) {
|
|
10
|
+
operand1Bits = operand1Bits.padEnd(operand2Bits.length, "0");
|
|
11
|
+
}
|
|
12
|
+
// let oneFound = false;
|
|
13
|
+
let zeroFound = false;
|
|
14
|
+
for (let index = 0; index < operand2Bits.length; index++) {
|
|
15
|
+
const o1bit = operand1Bits.substring(index, index + 1);
|
|
16
|
+
const o2bit = operand2Bits.substring(index, index + 1);
|
|
17
|
+
if (o2bit === "1") {
|
|
18
|
+
if (o1bit === "1") {
|
|
19
|
+
// oneFound = true;
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
zeroFound = true;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
return zeroFound === false;
|
|
27
|
+
}
|
|
28
|
+
exports.o = o;
|
|
29
29
|
//# sourceMappingURL=o.js.map
|
package/build/src/compare/z.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Hex, XString } from "../types";
|
|
2
|
-
export declare function z(operand1: Hex | XString, operand2: Hex | XString): boolean;
|
|
1
|
+
import { Hex, XString } from "../types";
|
|
2
|
+
export declare function z(operand1: Hex | XString, operand2: Hex | XString): boolean;
|
package/build/src/compare/z.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.z = void 0;
|
|
4
|
-
const m_1 = require("./m");
|
|
5
|
-
// bitwise compare
|
|
6
|
-
function z(operand1, operand2) {
|
|
7
|
-
let operand1Bits = (0, m_1.hexToBinary)(operand1);
|
|
8
|
-
const operand2Bits = (0, m_1.hexToBinary)(operand2);
|
|
9
|
-
if (operand1Bits.length < operand2Bits.length) {
|
|
10
|
-
operand1Bits = operand1Bits.padEnd(operand2Bits.length, "0");
|
|
11
|
-
}
|
|
12
|
-
let oneFound = false;
|
|
13
|
-
// let zeroFound = false;
|
|
14
|
-
for (let index = 0; index < operand2Bits.length; index++) {
|
|
15
|
-
const o1bit = operand1Bits.substring(index, index + 1);
|
|
16
|
-
const o2bit = operand2Bits.substring(index, index + 1);
|
|
17
|
-
if (o2bit === "1") {
|
|
18
|
-
if (o1bit === "1") {
|
|
19
|
-
oneFound = true;
|
|
20
|
-
}
|
|
21
|
-
else {
|
|
22
|
-
// zeroFound = true;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
return oneFound === false;
|
|
27
|
-
}
|
|
28
|
-
exports.z = z;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.z = void 0;
|
|
4
|
+
const m_1 = require("./m");
|
|
5
|
+
// bitwise compare
|
|
6
|
+
function z(operand1, operand2) {
|
|
7
|
+
let operand1Bits = (0, m_1.hexToBinary)(operand1);
|
|
8
|
+
const operand2Bits = (0, m_1.hexToBinary)(operand2);
|
|
9
|
+
if (operand1Bits.length < operand2Bits.length) {
|
|
10
|
+
operand1Bits = operand1Bits.padEnd(operand2Bits.length, "0");
|
|
11
|
+
}
|
|
12
|
+
let oneFound = false;
|
|
13
|
+
// let zeroFound = false;
|
|
14
|
+
for (let index = 0; index < operand2Bits.length; index++) {
|
|
15
|
+
const o1bit = operand1Bits.substring(index, index + 1);
|
|
16
|
+
const o2bit = operand2Bits.substring(index, index + 1);
|
|
17
|
+
if (o2bit === "1") {
|
|
18
|
+
if (o1bit === "1") {
|
|
19
|
+
oneFound = true;
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
// zeroFound = true;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
return oneFound === false;
|
|
27
|
+
}
|
|
28
|
+
exports.z = z;
|
|
29
29
|
//# sourceMappingURL=z.js.map
|
package/build/src/console.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare class Console {
|
|
2
|
-
private data;
|
|
3
|
-
clear(): void;
|
|
4
|
-
add(data: string): void;
|
|
5
|
-
get(): string;
|
|
6
|
-
getTrimmed(): string;
|
|
7
|
-
}
|
|
1
|
+
export declare class Console {
|
|
2
|
+
private data;
|
|
3
|
+
clear(): void;
|
|
4
|
+
add(data: string): void;
|
|
5
|
+
get(): string;
|
|
6
|
+
getTrimmed(): string;
|
|
7
|
+
}
|
package/build/src/console.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Console = void 0;
|
|
4
|
-
class Console {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.data = "";
|
|
7
|
-
}
|
|
8
|
-
clear() {
|
|
9
|
-
this.data = "";
|
|
10
|
-
}
|
|
11
|
-
add(data) {
|
|
12
|
-
this.data = this.data + data;
|
|
13
|
-
}
|
|
14
|
-
get() {
|
|
15
|
-
return this.data;
|
|
16
|
-
}
|
|
17
|
-
getTrimmed() {
|
|
18
|
-
return this.data.split("\n").map(a => a.trimEnd()).join("\n");
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
exports.Console = Console;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Console = void 0;
|
|
4
|
+
class Console {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.data = "";
|
|
7
|
+
}
|
|
8
|
+
clear() {
|
|
9
|
+
this.data = "";
|
|
10
|
+
}
|
|
11
|
+
add(data) {
|
|
12
|
+
this.data = this.data + data;
|
|
13
|
+
}
|
|
14
|
+
get() {
|
|
15
|
+
return this.data;
|
|
16
|
+
}
|
|
17
|
+
getTrimmed() {
|
|
18
|
+
return this.data.split("\n").map(a => a.trimEnd()).join("\n");
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.Console = Console;
|
|
22
22
|
//# sourceMappingURL=console.js.map
|
package/build/src/context.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Console } from "./console";
|
|
2
|
-
import { DatabaseClient } from "./db/db";
|
|
3
|
-
import * as RFC from "./rfc";
|
|
4
|
-
export declare class Context {
|
|
5
|
-
console: Console;
|
|
6
|
-
databaseConnections: {
|
|
7
|
-
[name: string]: DatabaseClient;
|
|
8
|
-
};
|
|
9
|
-
RFCDestinations: {
|
|
10
|
-
[name: string]: RFC.RFCClient;
|
|
11
|
-
};
|
|
12
|
-
defaultDB(): DatabaseClient;
|
|
13
|
-
}
|
|
1
|
+
import { Console } from "./console";
|
|
2
|
+
import { DatabaseClient } from "./db/db";
|
|
3
|
+
import * as RFC from "./rfc";
|
|
4
|
+
export declare class Context {
|
|
5
|
+
console: Console;
|
|
6
|
+
databaseConnections: {
|
|
7
|
+
[name: string]: DatabaseClient;
|
|
8
|
+
};
|
|
9
|
+
RFCDestinations: {
|
|
10
|
+
[name: string]: RFC.RFCClient;
|
|
11
|
+
};
|
|
12
|
+
defaultDB(): DatabaseClient;
|
|
13
|
+
}
|
package/build/src/context.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Context = void 0;
|
|
4
|
-
class Context {
|
|
5
|
-
constructor() {
|
|
6
|
-
// DEFAULT and secondary database connections
|
|
7
|
-
this.databaseConnections = {};
|
|
8
|
-
this.RFCDestinations = {};
|
|
9
|
-
}
|
|
10
|
-
defaultDB() {
|
|
11
|
-
if (this.databaseConnections["DEFAULT"] === undefined) {
|
|
12
|
-
throw new Error("Runtime, database not initialized");
|
|
13
|
-
}
|
|
14
|
-
return this.databaseConnections["DEFAULT"];
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
exports.Context = Context;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Context = void 0;
|
|
4
|
+
class Context {
|
|
5
|
+
constructor() {
|
|
6
|
+
// DEFAULT and secondary database connections
|
|
7
|
+
this.databaseConnections = {};
|
|
8
|
+
this.RFCDestinations = {};
|
|
9
|
+
}
|
|
10
|
+
defaultDB() {
|
|
11
|
+
if (this.databaseConnections["DEFAULT"] === undefined) {
|
|
12
|
+
throw new Error("Runtime, database not initialized");
|
|
13
|
+
}
|
|
14
|
+
return this.databaseConnections["DEFAULT"];
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.Context = Context;
|
|
18
18
|
//# sourceMappingURL=context.js.map
|
package/build/src/db/db.d.ts
CHANGED
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
export interface DeleteDatabaseOptions {
|
|
2
|
-
table: string;
|
|
3
|
-
where: string;
|
|
4
|
-
}
|
|
5
|
-
export interface UpdateDatabaseOptions {
|
|
6
|
-
table: string;
|
|
7
|
-
where: string;
|
|
8
|
-
set: string[];
|
|
9
|
-
}
|
|
10
|
-
export interface InsertDatabaseOptions {
|
|
11
|
-
table: string;
|
|
12
|
-
columns: string[];
|
|
13
|
-
values: string[];
|
|
14
|
-
}
|
|
15
|
-
export interface SelectDatabaseOptions {
|
|
16
|
-
/** select statement, in ABAP SQL syntax */
|
|
17
|
-
select: string;
|
|
18
|
-
/** list of primary key fields, in lower case, if known */
|
|
19
|
-
primaryKey?: string[];
|
|
20
|
-
}
|
|
21
|
-
export interface SelectRuntimeOptions {
|
|
22
|
-
appending?: boolean;
|
|
23
|
-
}
|
|
24
|
-
export
|
|
25
|
-
export
|
|
26
|
-
[name: string]: DatabaseValue;
|
|
27
|
-
};
|
|
28
|
-
export
|
|
29
|
-
export interface SelectDatabaseResult {
|
|
30
|
-
rows: DatabaseRows;
|
|
31
|
-
}
|
|
32
|
-
export interface DatabaseClient {
|
|
33
|
-
/*** the type/name/identifier of the database */
|
|
34
|
-
name: string;
|
|
35
|
-
connect(): Promise<void>;
|
|
36
|
-
disconnect(): Promise<void>;
|
|
37
|
-
/*** execute any native SQL command */
|
|
38
|
-
execute(sql: string | string[]): Promise<void>;
|
|
39
|
-
beginTransaction(): Promise<void>;
|
|
40
|
-
commit(): Promise<void>;
|
|
41
|
-
rollback(): Promise<void>;
|
|
42
|
-
delete(options: DeleteDatabaseOptions): Promise<{
|
|
43
|
-
subrc: number;
|
|
44
|
-
dbcnt: number;
|
|
45
|
-
}>;
|
|
46
|
-
update(options: UpdateDatabaseOptions): Promise<{
|
|
47
|
-
subrc: number;
|
|
48
|
-
dbcnt: number;
|
|
49
|
-
}>;
|
|
50
|
-
insert(options: InsertDatabaseOptions): Promise<{
|
|
51
|
-
subrc: number;
|
|
52
|
-
dbcnt: number;
|
|
53
|
-
}>;
|
|
54
|
-
select(options: SelectDatabaseOptions): Promise<SelectDatabaseResult>;
|
|
55
|
-
}
|
|
1
|
+
export interface DeleteDatabaseOptions {
|
|
2
|
+
table: string;
|
|
3
|
+
where: string;
|
|
4
|
+
}
|
|
5
|
+
export interface UpdateDatabaseOptions {
|
|
6
|
+
table: string;
|
|
7
|
+
where: string;
|
|
8
|
+
set: string[];
|
|
9
|
+
}
|
|
10
|
+
export interface InsertDatabaseOptions {
|
|
11
|
+
table: string;
|
|
12
|
+
columns: string[];
|
|
13
|
+
values: string[];
|
|
14
|
+
}
|
|
15
|
+
export interface SelectDatabaseOptions {
|
|
16
|
+
/** select statement, in ABAP SQL syntax */
|
|
17
|
+
select: string;
|
|
18
|
+
/** list of primary key fields, in lower case, if known */
|
|
19
|
+
primaryKey?: string[];
|
|
20
|
+
}
|
|
21
|
+
export interface SelectRuntimeOptions {
|
|
22
|
+
appending?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export type DatabaseValue = number | string | Uint8Array | null;
|
|
25
|
+
export type DatabaseRow = {
|
|
26
|
+
[name: string]: DatabaseValue;
|
|
27
|
+
};
|
|
28
|
+
export type DatabaseRows = DatabaseRow[];
|
|
29
|
+
export interface SelectDatabaseResult {
|
|
30
|
+
rows: DatabaseRows;
|
|
31
|
+
}
|
|
32
|
+
export interface DatabaseClient {
|
|
33
|
+
/*** the type/name/identifier of the database */
|
|
34
|
+
name: string;
|
|
35
|
+
connect(): Promise<void>;
|
|
36
|
+
disconnect(): Promise<void>;
|
|
37
|
+
/*** execute any native SQL command */
|
|
38
|
+
execute(sql: string | string[]): Promise<void>;
|
|
39
|
+
beginTransaction(): Promise<void>;
|
|
40
|
+
commit(): Promise<void>;
|
|
41
|
+
rollback(): Promise<void>;
|
|
42
|
+
delete(options: DeleteDatabaseOptions): Promise<{
|
|
43
|
+
subrc: number;
|
|
44
|
+
dbcnt: number;
|
|
45
|
+
}>;
|
|
46
|
+
update(options: UpdateDatabaseOptions): Promise<{
|
|
47
|
+
subrc: number;
|
|
48
|
+
dbcnt: number;
|
|
49
|
+
}>;
|
|
50
|
+
insert(options: InsertDatabaseOptions): Promise<{
|
|
51
|
+
subrc: number;
|
|
52
|
+
dbcnt: number;
|
|
53
|
+
}>;
|
|
54
|
+
select(options: SelectDatabaseOptions): Promise<SelectDatabaseResult>;
|
|
55
|
+
}
|
package/build/src/db/db.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=db.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { FieldSymbol } from "./types";
|
|
2
|
-
export declare function expandDynamic(code: string, ev: (name: string) => FieldSymbol | undefined): string;
|
|
1
|
+
import { FieldSymbol } from "./types";
|
|
2
|
+
export declare function expandDynamic(code: string, ev: (name: string) => FieldSymbol | undefined): string;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.expandDynamic = void 0;
|
|
4
|
-
const types_1 = require("./types");
|
|
5
|
-
function expandDynamic(code, ev) {
|
|
6
|
-
if (code === "") {
|
|
7
|
-
return "1 = 1";
|
|
8
|
-
}
|
|
9
|
-
else {
|
|
10
|
-
// todo more here, this is just one simple case,
|
|
11
|
-
const match = code.match(/ <(\w+)>/);
|
|
12
|
-
if (match && match[1]) {
|
|
13
|
-
const name = "fs_" + match[1] + "_";
|
|
14
|
-
const found = ev(name);
|
|
15
|
-
if (found instanceof types_1.FieldSymbol) {
|
|
16
|
-
code = code.replace(/ <(\w+)>/, "'" + found.get() + "'");
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
return code;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
exports.expandDynamic = expandDynamic;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.expandDynamic = void 0;
|
|
4
|
+
const types_1 = require("./types");
|
|
5
|
+
function expandDynamic(code, ev) {
|
|
6
|
+
if (code === "") {
|
|
7
|
+
return "1 = 1";
|
|
8
|
+
}
|
|
9
|
+
else {
|
|
10
|
+
// todo more here, this is just one simple case,
|
|
11
|
+
const match = code.match(/ <(\w+)>/);
|
|
12
|
+
if (match && match[1]) {
|
|
13
|
+
const name = "fs_" + match[1] + "_";
|
|
14
|
+
const found = ev(name);
|
|
15
|
+
if (found instanceof types_1.FieldSymbol) {
|
|
16
|
+
code = code.replace(/ <(\w+)>/, "'" + found.get() + "'");
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
return code;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.expandDynamic = expandDynamic;
|
|
23
23
|
//# sourceMappingURL=expand_dynamic.js.map
|
package/build/src/expand_in.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Table } from "./types";
|
|
2
|
-
export declare function expandIN(fieldName: string, table: Table): string;
|
|
1
|
+
import { Table } from "./types";
|
|
2
|
+
export declare function expandIN(fieldName: string, table: Table): string;
|
package/build/src/expand_in.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.expandIN = void 0;
|
|
4
|
-
// note: must always return an expression, never return empty string
|
|
5
|
-
function expandIN(fieldName, table) {
|
|
6
|
-
var _a, _b, _c;
|
|
7
|
-
let ret = "";
|
|
8
|
-
if (table.array().length === 0) {
|
|
9
|
-
ret = fieldName + " NOT IN ()";
|
|
10
|
-
}
|
|
11
|
-
else {
|
|
12
|
-
ret = fieldName + " IN (";
|
|
13
|
-
const values = [];
|
|
14
|
-
for (const row of table.array()) {
|
|
15
|
-
if (((_a = row.get().sign) === null || _a === void 0 ? void 0 : _a.get()) !== "I" || ((_b = row.get().option) === null || _b === void 0 ? void 0 : _b.get()) !== "EQ") {
|
|
16
|
-
throw "Error: IN, only I EQ supported for now";
|
|
17
|
-
}
|
|
18
|
-
values.push("'" + ((_c = row.get().low) === null || _c === void 0 ? void 0 : _c.get().replace(/'/g, "''")) + "'");
|
|
19
|
-
}
|
|
20
|
-
ret += values.join(",") + ")";
|
|
21
|
-
}
|
|
22
|
-
return ret;
|
|
23
|
-
}
|
|
24
|
-
exports.expandIN = expandIN;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.expandIN = void 0;
|
|
4
|
+
// note: must always return an expression, never return empty string
|
|
5
|
+
function expandIN(fieldName, table) {
|
|
6
|
+
var _a, _b, _c;
|
|
7
|
+
let ret = "";
|
|
8
|
+
if (table.array().length === 0) {
|
|
9
|
+
ret = fieldName + " NOT IN ()";
|
|
10
|
+
}
|
|
11
|
+
else {
|
|
12
|
+
ret = fieldName + " IN (";
|
|
13
|
+
const values = [];
|
|
14
|
+
for (const row of table.array()) {
|
|
15
|
+
if (((_a = row.get().sign) === null || _a === void 0 ? void 0 : _a.get()) !== "I" || ((_b = row.get().option) === null || _b === void 0 ? void 0 : _b.get()) !== "EQ") {
|
|
16
|
+
throw "Error: IN, only I EQ supported for now";
|
|
17
|
+
}
|
|
18
|
+
values.push("'" + ((_c = row.get().low) === null || _c === void 0 ? void 0 : _c.get().replace(/'/g, "''")) + "'");
|
|
19
|
+
}
|
|
20
|
+
ret += values.join(",") + ")";
|
|
21
|
+
}
|
|
22
|
+
return ret;
|
|
23
|
+
}
|
|
24
|
+
exports.expandIN = expandIN;
|
|
25
25
|
//# sourceMappingURL=expand_in.js.map
|
package/build/src/index.d.ts
CHANGED
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
import { Console } from "./console";
|
|
2
|
-
import { Context } from "./context";
|
|
3
|
-
import { OffsetLength } from "./offset_length";
|
|
4
|
-
import { Statements } from "./statements";
|
|
5
|
-
import { templateFormatting } from "./template_formatting";
|
|
6
|
-
import { UnitTestResult } from "./unit_test";
|
|
7
|
-
import * as builtin from "./builtin";
|
|
8
|
-
import * as compare from "./compare";
|
|
9
|
-
import * as DB from "./db/db";
|
|
10
|
-
import * as operators from "./operators";
|
|
11
|
-
import * as RFC from "./rfc";
|
|
12
|
-
import * as types from "./types";
|
|
13
|
-
import { expandIN } from "./expand_in";
|
|
14
|
-
import { expandDynamic } from "./expand_dynamic";
|
|
15
|
-
import { ClassicError } from "./classic_error";
|
|
16
|
-
export { UnitTestResult, RFC, types, DB };
|
|
17
|
-
export declare class ABAP {
|
|
18
|
-
FunctionModules: {
|
|
19
|
-
[name: string]: any;
|
|
20
|
-
};
|
|
21
|
-
Classes: {
|
|
22
|
-
[name: string]: any;
|
|
23
|
-
};
|
|
24
|
-
Interfaces: {
|
|
25
|
-
[name: string]: any;
|
|
26
|
-
};
|
|
27
|
-
DDIC: {
|
|
28
|
-
[name: string]: any;
|
|
29
|
-
};
|
|
30
|
-
TypePools: {
|
|
31
|
-
[name: string]: any;
|
|
32
|
-
};
|
|
33
|
-
SMIM: {
|
|
34
|
-
[name: string]: any;
|
|
35
|
-
};
|
|
36
|
-
W3MI: {
|
|
37
|
-
[name: string]: any;
|
|
38
|
-
};
|
|
39
|
-
statements: Statements;
|
|
40
|
-
types: typeof types;
|
|
41
|
-
builtin: typeof builtin;
|
|
42
|
-
operators: typeof operators;
|
|
43
|
-
compare: typeof compare;
|
|
44
|
-
readonly console: Console;
|
|
45
|
-
OffsetLength: typeof OffsetLength;
|
|
46
|
-
templateFormatting: typeof templateFormatting;
|
|
47
|
-
expandIN: typeof expandIN;
|
|
48
|
-
expandDynamic: typeof expandDynamic;
|
|
49
|
-
ClassicError: typeof ClassicError;
|
|
50
|
-
readonly context: Context;
|
|
51
|
-
constructor();
|
|
52
|
-
}
|
|
1
|
+
import { Console } from "./console";
|
|
2
|
+
import { Context } from "./context";
|
|
3
|
+
import { OffsetLength } from "./offset_length";
|
|
4
|
+
import { Statements } from "./statements";
|
|
5
|
+
import { templateFormatting } from "./template_formatting";
|
|
6
|
+
import { UnitTestResult } from "./unit_test";
|
|
7
|
+
import * as builtin from "./builtin";
|
|
8
|
+
import * as compare from "./compare";
|
|
9
|
+
import * as DB from "./db/db";
|
|
10
|
+
import * as operators from "./operators";
|
|
11
|
+
import * as RFC from "./rfc";
|
|
12
|
+
import * as types from "./types";
|
|
13
|
+
import { expandIN } from "./expand_in";
|
|
14
|
+
import { expandDynamic } from "./expand_dynamic";
|
|
15
|
+
import { ClassicError } from "./classic_error";
|
|
16
|
+
export { UnitTestResult, RFC, types, DB };
|
|
17
|
+
export declare class ABAP {
|
|
18
|
+
FunctionModules: {
|
|
19
|
+
[name: string]: any;
|
|
20
|
+
};
|
|
21
|
+
Classes: {
|
|
22
|
+
[name: string]: any;
|
|
23
|
+
};
|
|
24
|
+
Interfaces: {
|
|
25
|
+
[name: string]: any;
|
|
26
|
+
};
|
|
27
|
+
DDIC: {
|
|
28
|
+
[name: string]: any;
|
|
29
|
+
};
|
|
30
|
+
TypePools: {
|
|
31
|
+
[name: string]: any;
|
|
32
|
+
};
|
|
33
|
+
SMIM: {
|
|
34
|
+
[name: string]: any;
|
|
35
|
+
};
|
|
36
|
+
W3MI: {
|
|
37
|
+
[name: string]: any;
|
|
38
|
+
};
|
|
39
|
+
statements: Statements;
|
|
40
|
+
types: typeof types;
|
|
41
|
+
builtin: typeof builtin;
|
|
42
|
+
operators: typeof operators;
|
|
43
|
+
compare: typeof compare;
|
|
44
|
+
readonly console: Console;
|
|
45
|
+
OffsetLength: typeof OffsetLength;
|
|
46
|
+
templateFormatting: typeof templateFormatting;
|
|
47
|
+
expandIN: typeof expandIN;
|
|
48
|
+
expandDynamic: typeof expandDynamic;
|
|
49
|
+
ClassicError: typeof ClassicError;
|
|
50
|
+
readonly context: Context;
|
|
51
|
+
constructor();
|
|
52
|
+
}
|