@dhis2/expression-parser 1.1.4 → 1.1.5
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-ir.js +6 -6
- package/KotlinBigInteger-bignum-js-ir.js +27 -27
- 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 +93 -68
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-kotlin-stdlib.mjs +25 -0
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/package.json +1 -1
package/kotlin-js.js
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
var CoroutineImpl = kotlin_kotlin.$_$.g4;
|
|
11
11
|
var Unit_instance = kotlin_kotlin.$_$.l2;
|
|
12
12
|
var protoOf = kotlin_kotlin.$_$.m5;
|
|
13
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
13
|
+
var THROW_CCE = kotlin_kotlin.$_$.n7;
|
|
14
14
|
var SequenceScope = kotlin_kotlin.$_$.z5;
|
|
15
15
|
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.f4;
|
|
16
16
|
var classMeta = kotlin_kotlin.$_$.o4;
|
package/kotlin-kotlin-stdlib.js
CHANGED
|
@@ -52,11 +52,6 @@ if (typeof Array.prototype.fill === 'undefined') {
|
|
|
52
52
|
}});
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
|
-
if (typeof Math.log10 === 'undefined') {
|
|
56
|
-
Math.log10 = function (x) {
|
|
57
|
-
return Math.log(x) * Math.LOG10E;
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
55
|
if (typeof Math.clz32 === 'undefined') {
|
|
61
56
|
Math.clz32 = function (log, LN2) {
|
|
62
57
|
return function (x) {
|
|
@@ -68,11 +63,10 @@ if (typeof Math.clz32 === 'undefined') {
|
|
|
68
63
|
};
|
|
69
64
|
}(Math.log, Math.LN2);
|
|
70
65
|
}
|
|
71
|
-
if (typeof
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}});
|
|
66
|
+
if (typeof Math.log10 === 'undefined') {
|
|
67
|
+
Math.log10 = function (x) {
|
|
68
|
+
return Math.log(x) * Math.LOG10E;
|
|
69
|
+
};
|
|
76
70
|
}
|
|
77
71
|
if (typeof String.prototype.endsWith === 'undefined') {
|
|
78
72
|
Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
|
|
@@ -85,6 +79,12 @@ if (typeof String.prototype.endsWith === 'undefined') {
|
|
|
85
79
|
return lastIndex !== -1 && lastIndex === position;
|
|
86
80
|
}});
|
|
87
81
|
}
|
|
82
|
+
if (typeof String.prototype.startsWith === 'undefined') {
|
|
83
|
+
Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
|
|
84
|
+
position = position || 0;
|
|
85
|
+
return this.lastIndexOf(searchString, position) === position;
|
|
86
|
+
}});
|
|
87
|
+
}
|
|
88
88
|
if (typeof Math.imul === 'undefined') {
|
|
89
89
|
Math.imul = function imul(a, b) {
|
|
90
90
|
return (a & 4.29490176E9) * (b & 65535) + (a & 65535) * (b | 0) | 0;
|
|
@@ -113,22 +113,22 @@ if (typeof Math.imul === 'undefined') {
|
|
|
113
113
|
setMetadataFor(IteratorImpl, 'IteratorImpl', classMeta);
|
|
114
114
|
setMetadataFor(ListIteratorImpl, 'ListIteratorImpl', classMeta, IteratorImpl);
|
|
115
115
|
setMetadataFor(List, 'List', interfaceMeta, VOID, [Collection]);
|
|
116
|
-
setMetadataFor(AbstractMutableList, 'AbstractMutableList', classMeta, AbstractMutableCollection, [AbstractMutableCollection,
|
|
116
|
+
setMetadataFor(AbstractMutableList, 'AbstractMutableList', classMeta, AbstractMutableCollection, [AbstractMutableCollection, List, Collection]);
|
|
117
117
|
setMetadataFor(Map_0, 'Map', interfaceMeta);
|
|
118
118
|
setMetadataFor(AbstractMap, 'AbstractMap', classMeta, VOID, [Map_0]);
|
|
119
119
|
setMetadataFor(AbstractMutableMap, 'AbstractMutableMap', classMeta, AbstractMap, [AbstractMap, Map_0]);
|
|
120
120
|
setMetadataFor(Set, 'Set', interfaceMeta, VOID, [Collection]);
|
|
121
|
-
setMetadataFor(AbstractMutableSet, 'AbstractMutableSet', classMeta, AbstractMutableCollection, [AbstractMutableCollection,
|
|
121
|
+
setMetadataFor(AbstractMutableSet, 'AbstractMutableSet', classMeta, AbstractMutableCollection, [AbstractMutableCollection, Collection, Set]);
|
|
122
122
|
setMetadataFor(Companion, 'Companion', objectMeta);
|
|
123
123
|
setMetadataFor(RandomAccess, 'RandomAccess', interfaceMeta);
|
|
124
|
-
setMetadataFor(ArrayList, 'ArrayList', classMeta, AbstractMutableList, [AbstractMutableList,
|
|
124
|
+
setMetadataFor(ArrayList, 'ArrayList', classMeta, AbstractMutableList, [AbstractMutableList, List, Collection, RandomAccess], ArrayList_init_$Create$);
|
|
125
125
|
setMetadataFor(HashMap, 'HashMap', classMeta, AbstractMutableMap, [AbstractMutableMap, Map_0], HashMap_init_$Create$);
|
|
126
|
-
setMetadataFor(HashMapKeys, 'HashMapKeys', classMeta, AbstractMutableSet, [
|
|
127
|
-
setMetadataFor(HashMapEntrySetBase, 'HashMapEntrySetBase', classMeta, AbstractMutableSet, [
|
|
126
|
+
setMetadataFor(HashMapKeys, 'HashMapKeys', classMeta, AbstractMutableSet, [Collection, Set, AbstractMutableSet]);
|
|
127
|
+
setMetadataFor(HashMapEntrySetBase, 'HashMapEntrySetBase', classMeta, AbstractMutableSet, [Collection, Set, AbstractMutableSet]);
|
|
128
128
|
setMetadataFor(HashMapEntrySet, 'HashMapEntrySet', classMeta, HashMapEntrySetBase);
|
|
129
129
|
setMetadataFor(HashMapKeysDefault$iterator$1, VOID, classMeta);
|
|
130
130
|
setMetadataFor(HashMapKeysDefault, 'HashMapKeysDefault', classMeta, AbstractMutableSet);
|
|
131
|
-
setMetadataFor(HashSet, 'HashSet', classMeta, AbstractMutableSet, [AbstractMutableSet,
|
|
131
|
+
setMetadataFor(HashSet, 'HashSet', classMeta, AbstractMutableSet, [AbstractMutableSet, Collection, Set], HashSet_init_$Create$);
|
|
132
132
|
setMetadataFor(Companion_0, 'Companion', objectMeta);
|
|
133
133
|
setMetadataFor(Itr, 'Itr', classMeta);
|
|
134
134
|
setMetadataFor(KeysItr, 'KeysItr', classMeta, Itr);
|
|
@@ -174,7 +174,7 @@ if (typeof Math.imul === 'undefined') {
|
|
|
174
174
|
setMetadataFor(InternalMap, 'InternalMap', interfaceMeta);
|
|
175
175
|
setMetadataFor(InternalHashMap, 'InternalHashMap', classMeta, VOID, [InternalMap], InternalHashMap_init_$Create$);
|
|
176
176
|
setMetadataFor(LinkedHashMap, 'LinkedHashMap', classMeta, HashMap, [HashMap, Map_0], LinkedHashMap_init_$Create$);
|
|
177
|
-
setMetadataFor(LinkedHashSet, 'LinkedHashSet', classMeta, HashSet, [HashSet,
|
|
177
|
+
setMetadataFor(LinkedHashSet, 'LinkedHashSet', classMeta, HashSet, [HashSet, Collection, Set], LinkedHashSet_init_$Create$);
|
|
178
178
|
setMetadataFor(BaseOutput, 'BaseOutput', classMeta);
|
|
179
179
|
setMetadataFor(NodeJsOutput, 'NodeJsOutput', classMeta, BaseOutput);
|
|
180
180
|
setMetadataFor(BufferedOutput, 'BufferedOutput', classMeta, BaseOutput, VOID, BufferedOutput);
|
|
@@ -3580,6 +3580,29 @@ if (typeof Math.imul === 'undefined') {
|
|
|
3580
3580
|
// Inline function 'kotlin.sequences.asIterable.<anonymous>' call
|
|
3581
3581
|
return this.k8_1.s();
|
|
3582
3582
|
};
|
|
3583
|
+
function dropLast(_this__u8e3s4, n) {
|
|
3584
|
+
// Inline function 'kotlin.require' call
|
|
3585
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
3586
|
+
if (!(n >= 0)) {
|
|
3587
|
+
// Inline function 'kotlin.text.dropLast.<anonymous>' call
|
|
3588
|
+
var message = 'Requested character count ' + n + ' is less than zero.';
|
|
3589
|
+
throw IllegalArgumentException_init_$Create$_0(toString_1(message));
|
|
3590
|
+
}
|
|
3591
|
+
return take_1(_this__u8e3s4, coerceAtLeast(_this__u8e3s4.length - n | 0, 0));
|
|
3592
|
+
}
|
|
3593
|
+
function take_1(_this__u8e3s4, n) {
|
|
3594
|
+
// Inline function 'kotlin.require' call
|
|
3595
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
3596
|
+
if (!(n >= 0)) {
|
|
3597
|
+
// Inline function 'kotlin.text.take.<anonymous>' call
|
|
3598
|
+
var message = 'Requested character count ' + n + ' is less than zero.';
|
|
3599
|
+
throw IllegalArgumentException_init_$Create$_0(toString_1(message));
|
|
3600
|
+
}
|
|
3601
|
+
// Inline function 'kotlin.text.substring' call
|
|
3602
|
+
var endIndex = coerceAtMost(n, _this__u8e3s4.length);
|
|
3603
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
3604
|
+
return _this__u8e3s4.substring(0, endIndex);
|
|
3605
|
+
}
|
|
3583
3606
|
function reversed(_this__u8e3s4) {
|
|
3584
3607
|
return StringBuilder_init_$Create$_0(_this__u8e3s4).s6();
|
|
3585
3608
|
}
|
|
@@ -8930,57 +8953,59 @@ if (typeof Math.imul === 'undefined') {
|
|
|
8930
8953
|
_.$_$.g6 = concatToString_0;
|
|
8931
8954
|
_.$_$.h6 = contains_6;
|
|
8932
8955
|
_.$_$.i6 = contains_5;
|
|
8933
|
-
_.$_$.j6 =
|
|
8934
|
-
_.$_$.k6 =
|
|
8935
|
-
_.$_$.l6 =
|
|
8936
|
-
_.$_$.m6 =
|
|
8937
|
-
_.$_$.n6 =
|
|
8938
|
-
_.$_$.o6 =
|
|
8939
|
-
_.$_$.p6 =
|
|
8940
|
-
_.$_$.q6 =
|
|
8941
|
-
_.$_$.r6 =
|
|
8942
|
-
_.$_$.s6 =
|
|
8943
|
-
_.$_$.t6 =
|
|
8944
|
-
_.$_$.u6 =
|
|
8945
|
-
_.$_$.v6 =
|
|
8946
|
-
_.$_$.w6 =
|
|
8947
|
-
_.$_$.x6 =
|
|
8948
|
-
_.$_$.y6 =
|
|
8949
|
-
_.$_$.z6 =
|
|
8950
|
-
_.$_$.a7 =
|
|
8951
|
-
_.$_$.b7 =
|
|
8952
|
-
_.$_$.c7 =
|
|
8953
|
-
_.$_$.d7 =
|
|
8954
|
-
_.$_$.e7 =
|
|
8955
|
-
_.$_$.f7 =
|
|
8956
|
-
_.$_$.g7 =
|
|
8957
|
-
_.$_$.h7 =
|
|
8958
|
-
_.$_$.i7 =
|
|
8959
|
-
_.$_$.j7 =
|
|
8960
|
-
_.$_$.k7 =
|
|
8961
|
-
_.$_$.l7 =
|
|
8962
|
-
_.$_$.m7 =
|
|
8963
|
-
_.$_$.n7 =
|
|
8964
|
-
_.$_$.o7 =
|
|
8965
|
-
_.$_$.p7 =
|
|
8966
|
-
_.$_$.q7 =
|
|
8967
|
-
_.$_$.r7 =
|
|
8968
|
-
_.$_$.s7 =
|
|
8969
|
-
_.$_$.t7 =
|
|
8970
|
-
_.$_$.u7 =
|
|
8971
|
-
_.$_$.v7 =
|
|
8972
|
-
_.$_$.w7 =
|
|
8973
|
-
_.$_$.x7 =
|
|
8974
|
-
_.$_$.y7 =
|
|
8975
|
-
_.$_$.z7 =
|
|
8976
|
-
_.$_$.a8 =
|
|
8977
|
-
_.$_$.b8 =
|
|
8978
|
-
_.$_$.c8 =
|
|
8979
|
-
_.$_$.d8 =
|
|
8980
|
-
_.$_$.e8 =
|
|
8981
|
-
_.$_$.f8 =
|
|
8982
|
-
_.$_$.g8 =
|
|
8983
|
-
_.$_$.h8 =
|
|
8956
|
+
_.$_$.j6 = dropLast;
|
|
8957
|
+
_.$_$.k6 = endsWith;
|
|
8958
|
+
_.$_$.l6 = indexOf_3;
|
|
8959
|
+
_.$_$.m6 = isDigit;
|
|
8960
|
+
_.$_$.n6 = isLetter;
|
|
8961
|
+
_.$_$.o6 = get_lastIndex_1;
|
|
8962
|
+
_.$_$.p6 = padStart;
|
|
8963
|
+
_.$_$.q6 = repeat;
|
|
8964
|
+
_.$_$.r6 = replace;
|
|
8965
|
+
_.$_$.s6 = reversed;
|
|
8966
|
+
_.$_$.t6 = split;
|
|
8967
|
+
_.$_$.u6 = split_0;
|
|
8968
|
+
_.$_$.v6 = startsWith;
|
|
8969
|
+
_.$_$.w6 = substring;
|
|
8970
|
+
_.$_$.x6 = take_1;
|
|
8971
|
+
_.$_$.y6 = toBoolean;
|
|
8972
|
+
_.$_$.z6 = toCharArray;
|
|
8973
|
+
_.$_$.a7 = toDouble;
|
|
8974
|
+
_.$_$.b7 = toInt;
|
|
8975
|
+
_.$_$.c7 = toInt_0;
|
|
8976
|
+
_.$_$.d7 = toLong;
|
|
8977
|
+
_.$_$.e7 = toString_4;
|
|
8978
|
+
_.$_$.f7 = Char;
|
|
8979
|
+
_.$_$.g7 = Comparable;
|
|
8980
|
+
_.$_$.h7 = Enum;
|
|
8981
|
+
_.$_$.i7 = Exception;
|
|
8982
|
+
_.$_$.j7 = IllegalArgumentException;
|
|
8983
|
+
_.$_$.k7 = Long;
|
|
8984
|
+
_.$_$.l7 = Pair;
|
|
8985
|
+
_.$_$.m7 = RuntimeException;
|
|
8986
|
+
_.$_$.n7 = THROW_CCE;
|
|
8987
|
+
_.$_$.o7 = THROW_IAE;
|
|
8988
|
+
_.$_$.p7 = Triple;
|
|
8989
|
+
_.$_$.q7 = UByte;
|
|
8990
|
+
_.$_$.r7 = UIntArray;
|
|
8991
|
+
_.$_$.s7 = UInt;
|
|
8992
|
+
_.$_$.t7 = ULongArray;
|
|
8993
|
+
_.$_$.u7 = ULong;
|
|
8994
|
+
_.$_$.v7 = UShort;
|
|
8995
|
+
_.$_$.w7 = UnsupportedOperationException;
|
|
8996
|
+
_.$_$.x7 = ensureNotNull;
|
|
8997
|
+
_.$_$.y7 = isInfinite;
|
|
8998
|
+
_.$_$.z7 = isNaN_0;
|
|
8999
|
+
_.$_$.a8 = noWhenBranchMatchedException;
|
|
9000
|
+
_.$_$.b8 = throwKotlinNothingValueException;
|
|
9001
|
+
_.$_$.c8 = toString_0;
|
|
9002
|
+
_.$_$.d8 = to;
|
|
9003
|
+
_.$_$.e8 = uintCompare;
|
|
9004
|
+
_.$_$.f8 = uintDivide;
|
|
9005
|
+
_.$_$.g8 = uintRemainder;
|
|
9006
|
+
_.$_$.h8 = ulongCompare;
|
|
9007
|
+
_.$_$.i8 = ulongDivide;
|
|
9008
|
+
_.$_$.j8 = ulongRemainder;
|
|
8984
9009
|
//endregion
|
|
8985
9010
|
return _;
|
|
8986
9011
|
}(module.exports));
|