@dhis2/expression-parser 1.1.5-beta.0 → 1.1.6
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/Kotlin-DateTime-library-kotlinx-datetime.js +13 -13
- package/KotlinBigInteger-bignum.js +28 -28
- package/expression-parser.js +42 -50
- package/expression-parser.js.map +1 -1
- package/expression-parser.mjs +14 -22
- package/expression-parser.mjs.map +1 -1
- package/kotlin-js.js +1 -1
- package/kotlin-kotlin-stdlib.js +83 -58
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-kotlin-stdlib.mjs +36 -11
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/package.json +1 -1
package/kotlin-kotlin-stdlib.mjs
CHANGED
|
@@ -57,6 +57,11 @@ if (typeof Array.prototype.fill === 'undefined') {
|
|
|
57
57
|
}});
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
|
+
if (typeof Math.log10 === 'undefined') {
|
|
61
|
+
Math.log10 = function (x) {
|
|
62
|
+
return Math.log(x) * Math.LOG10E;
|
|
63
|
+
};
|
|
64
|
+
}
|
|
60
65
|
if (typeof Math.clz32 === 'undefined') {
|
|
61
66
|
Math.clz32 = function (log, LN2) {
|
|
62
67
|
return function (x) {
|
|
@@ -68,17 +73,6 @@ if (typeof Math.clz32 === 'undefined') {
|
|
|
68
73
|
};
|
|
69
74
|
}(Math.log, Math.LN2);
|
|
70
75
|
}
|
|
71
|
-
if (typeof Math.log10 === 'undefined') {
|
|
72
|
-
Math.log10 = function (x) {
|
|
73
|
-
return Math.log(x) * Math.LOG10E;
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
if (typeof String.prototype.startsWith === 'undefined') {
|
|
77
|
-
Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
|
|
78
|
-
position = position || 0;
|
|
79
|
-
return this.lastIndexOf(searchString, position) === position;
|
|
80
|
-
}});
|
|
81
|
-
}
|
|
82
76
|
if (typeof String.prototype.endsWith === 'undefined') {
|
|
83
77
|
Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
|
|
84
78
|
var subjectString = this.toString();
|
|
@@ -90,6 +84,12 @@ if (typeof String.prototype.endsWith === 'undefined') {
|
|
|
90
84
|
return lastIndex !== -1 && lastIndex === position;
|
|
91
85
|
}});
|
|
92
86
|
}
|
|
87
|
+
if (typeof String.prototype.startsWith === 'undefined') {
|
|
88
|
+
Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
|
|
89
|
+
position = position || 0;
|
|
90
|
+
return this.lastIndexOf(searchString, position) === position;
|
|
91
|
+
}});
|
|
92
|
+
}
|
|
93
93
|
//endregion
|
|
94
94
|
//region block: imports
|
|
95
95
|
var imul_0 = Math.imul;
|
|
@@ -986,6 +986,29 @@ protoOf(_no_name_provided__qut3iv_0).j = function () {
|
|
|
986
986
|
// Inline function 'kotlin.sequences.asIterable.<anonymous>' call
|
|
987
987
|
return this.c1_1.j();
|
|
988
988
|
};
|
|
989
|
+
function dropLast(_this__u8e3s4, n) {
|
|
990
|
+
// Inline function 'kotlin.require' call
|
|
991
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
992
|
+
if (!(n >= 0)) {
|
|
993
|
+
// Inline function 'kotlin.text.dropLast.<anonymous>' call
|
|
994
|
+
var message = 'Requested character count ' + n + ' is less than zero.';
|
|
995
|
+
throw IllegalArgumentException_init_$Create$_0(toString_1(message));
|
|
996
|
+
}
|
|
997
|
+
return take_1(_this__u8e3s4, coerceAtLeast(_this__u8e3s4.length - n | 0, 0));
|
|
998
|
+
}
|
|
999
|
+
function take_1(_this__u8e3s4, n) {
|
|
1000
|
+
// Inline function 'kotlin.require' call
|
|
1001
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
1002
|
+
if (!(n >= 0)) {
|
|
1003
|
+
// Inline function 'kotlin.text.take.<anonymous>' call
|
|
1004
|
+
var message = 'Requested character count ' + n + ' is less than zero.';
|
|
1005
|
+
throw IllegalArgumentException_init_$Create$_0(toString_1(message));
|
|
1006
|
+
}
|
|
1007
|
+
// Inline function 'kotlin.text.substring' call
|
|
1008
|
+
var endIndex = coerceAtMost(n, _this__u8e3s4.length);
|
|
1009
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1010
|
+
return _this__u8e3s4.substring(0, endIndex);
|
|
1011
|
+
}
|
|
989
1012
|
function reversed(_this__u8e3s4) {
|
|
990
1013
|
return StringBuilder_init_$Create$_0(_this__u8e3s4).e1();
|
|
991
1014
|
}
|
|
@@ -8969,6 +8992,7 @@ export {
|
|
|
8969
8992
|
concatToString_0 as concatToString3cxf0c1gqonpo,
|
|
8970
8993
|
contains_6 as contains3ue2qo8xhmpf1,
|
|
8971
8994
|
contains_5 as contains2el4s70rdq4ld,
|
|
8995
|
+
dropLast as dropLastlqc2oyv04br0,
|
|
8972
8996
|
endsWith as endsWith3cq61xxngobwh,
|
|
8973
8997
|
indexOf_3 as indexOf1xbs558u7wr52,
|
|
8974
8998
|
isDigit as isDigit3mimrri4wkzop,
|
|
@@ -8982,6 +9006,7 @@ export {
|
|
|
8982
9006
|
split_0 as split2bvyvnrlcifjv,
|
|
8983
9007
|
startsWith as startsWith26w8qjqapeeq6,
|
|
8984
9008
|
substring as substring2pnd9wgs9hwtx,
|
|
9009
|
+
take_1 as take9j4462mea726,
|
|
8985
9010
|
toBoolean as toBoolean2azvnq2ukl7b3,
|
|
8986
9011
|
toCharArray as toCharArray32huqyw9tt7kx,
|
|
8987
9012
|
toDouble as toDouble1kn912gjoizjp,
|