@abaplint/runtime 2.3.38 → 2.3.40
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { INumeric } from "../types/_numeric";
|
|
2
|
-
import {
|
|
2
|
+
import { Float } from "../types";
|
|
3
3
|
export interface INmaxInput {
|
|
4
4
|
val1: number | INumeric;
|
|
5
5
|
val2: number | INumeric;
|
|
@@ -11,4 +11,4 @@ export interface INmaxInput {
|
|
|
11
11
|
val8?: number | INumeric;
|
|
12
12
|
val9?: number | INumeric;
|
|
13
13
|
}
|
|
14
|
-
export declare function nmax(input: INmaxInput):
|
|
14
|
+
export declare function nmax(input: INmaxInput): Float;
|
|
@@ -1,42 +1,35 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.nmax = void 0;
|
|
4
|
-
const
|
|
4
|
+
const _parse_1 = require("../operators/_parse");
|
|
5
|
+
const types_1 = require("../types");
|
|
5
6
|
function nmax(input) {
|
|
6
7
|
const values = [];
|
|
7
|
-
values.push(
|
|
8
|
-
values.push(
|
|
8
|
+
values.push((0, _parse_1.parse)(input.val1));
|
|
9
|
+
values.push((0, _parse_1.parse)(input.val2));
|
|
9
10
|
if (input.val3) {
|
|
10
|
-
values.push(
|
|
11
|
+
values.push((0, _parse_1.parse)(input.val3));
|
|
11
12
|
}
|
|
12
13
|
if (input.val4) {
|
|
13
|
-
values.push(
|
|
14
|
+
values.push((0, _parse_1.parse)(input.val4));
|
|
14
15
|
}
|
|
15
16
|
if (input.val5) {
|
|
16
|
-
values.push(
|
|
17
|
+
values.push((0, _parse_1.parse)(input.val5));
|
|
17
18
|
}
|
|
18
19
|
if (input.val6) {
|
|
19
|
-
values.push(
|
|
20
|
+
values.push((0, _parse_1.parse)(input.val6));
|
|
20
21
|
}
|
|
21
22
|
if (input.val7) {
|
|
22
|
-
values.push(
|
|
23
|
+
values.push((0, _parse_1.parse)(input.val7));
|
|
23
24
|
}
|
|
24
25
|
if (input.val8) {
|
|
25
|
-
values.push(
|
|
26
|
+
values.push((0, _parse_1.parse)(input.val8));
|
|
26
27
|
}
|
|
27
28
|
if (input.val9) {
|
|
28
|
-
values.push(
|
|
29
|
+
values.push((0, _parse_1.parse)(input.val9));
|
|
29
30
|
}
|
|
30
31
|
values.sort((a, b) => (b - a));
|
|
31
|
-
return new
|
|
32
|
+
return new types_1.Float().set(values[0]);
|
|
32
33
|
}
|
|
33
34
|
exports.nmax = nmax;
|
|
34
|
-
function get_nmax_val_input(val) {
|
|
35
|
-
if (typeof val === "number") {
|
|
36
|
-
return val;
|
|
37
|
-
}
|
|
38
|
-
else {
|
|
39
|
-
return val.get();
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
35
|
//# sourceMappingURL=nmax.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { INumeric } from "../types/_numeric";
|
|
2
|
-
import {
|
|
2
|
+
import { Float } from "../types";
|
|
3
3
|
export interface INminInput {
|
|
4
4
|
val1: number | INumeric;
|
|
5
5
|
val2: number | INumeric;
|
|
@@ -11,4 +11,4 @@ export interface INminInput {
|
|
|
11
11
|
val8?: number | INumeric;
|
|
12
12
|
val9?: number | INumeric;
|
|
13
13
|
}
|
|
14
|
-
export declare function nmin(input: INminInput):
|
|
14
|
+
export declare function nmin(input: INminInput): Float;
|
|
@@ -1,42 +1,35 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.nmin = void 0;
|
|
4
|
-
const
|
|
4
|
+
const _parse_1 = require("../operators/_parse");
|
|
5
|
+
const types_1 = require("../types");
|
|
5
6
|
function nmin(input) {
|
|
6
7
|
const values = [];
|
|
7
|
-
values.push(
|
|
8
|
-
values.push(
|
|
8
|
+
values.push((0, _parse_1.parse)(input.val1));
|
|
9
|
+
values.push((0, _parse_1.parse)(input.val2));
|
|
9
10
|
if (input.val3) {
|
|
10
|
-
values.push(
|
|
11
|
+
values.push((0, _parse_1.parse)(input.val3));
|
|
11
12
|
}
|
|
12
13
|
if (input.val4) {
|
|
13
|
-
values.push(
|
|
14
|
+
values.push((0, _parse_1.parse)(input.val4));
|
|
14
15
|
}
|
|
15
16
|
if (input.val5) {
|
|
16
|
-
values.push(
|
|
17
|
+
values.push((0, _parse_1.parse)(input.val5));
|
|
17
18
|
}
|
|
18
19
|
if (input.val6) {
|
|
19
|
-
values.push(
|
|
20
|
+
values.push((0, _parse_1.parse)(input.val6));
|
|
20
21
|
}
|
|
21
22
|
if (input.val7) {
|
|
22
|
-
values.push(
|
|
23
|
+
values.push((0, _parse_1.parse)(input.val7));
|
|
23
24
|
}
|
|
24
25
|
if (input.val8) {
|
|
25
|
-
values.push(
|
|
26
|
+
values.push((0, _parse_1.parse)(input.val8));
|
|
26
27
|
}
|
|
27
28
|
if (input.val9) {
|
|
28
|
-
values.push(
|
|
29
|
+
values.push((0, _parse_1.parse)(input.val9));
|
|
29
30
|
}
|
|
30
31
|
values.sort((a, b) => (a - b));
|
|
31
|
-
return new
|
|
32
|
+
return new types_1.Float().set(values[0]);
|
|
32
33
|
}
|
|
33
34
|
exports.nmin = nmin;
|
|
34
|
-
function get_nmin_val_input(val) {
|
|
35
|
-
if (typeof val === "number") {
|
|
36
|
-
return val;
|
|
37
|
-
}
|
|
38
|
-
else {
|
|
39
|
-
return val.get();
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
35
|
//# sourceMappingURL=nmin.js.map
|
|
@@ -14,6 +14,11 @@ function assign(input) {
|
|
|
14
14
|
// @ts-ignore
|
|
15
15
|
input.dynamicSource = input.dynamicSource.get()[split[1].toLowerCase()];
|
|
16
16
|
}
|
|
17
|
+
else if (input.dynamicSource instanceof types_1.DataReference) {
|
|
18
|
+
const [_before, after] = input.dynamicName.split("->");
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
input.dynamicSource = input.dynamicSource.get()[after.toLowerCase()];
|
|
21
|
+
}
|
|
17
22
|
else {
|
|
18
23
|
// @ts-ignore
|
|
19
24
|
abap.builtin.sy.get().subrc.set(4);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/runtime",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.40",
|
|
4
4
|
"description": "Transpiler - Runtime",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"typings": "build/src/index.d.ts",
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
"author": "abaplint",
|
|
29
29
|
"license": "MIT",
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@types/chai": "^4.3.
|
|
31
|
+
"@types/chai": "^4.3.4",
|
|
32
32
|
"@types/mocha": "^10.0.0",
|
|
33
|
-
"chai": "^4.3.
|
|
33
|
+
"chai": "^4.3.7",
|
|
34
34
|
"mocha": "^10.1.0",
|
|
35
35
|
"source-map-support": "^0.5.21",
|
|
36
36
|
"typescript": "^4.8.4"
|