@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-js.js CHANGED
@@ -10,7 +10,7 @@
10
10
  var CoroutineImpl = kotlin_kotlin.$_$.o4;
11
11
  var Unit_instance = kotlin_kotlin.$_$.n2;
12
12
  var protoOf = kotlin_kotlin.$_$.y5;
13
- var THROW_CCE = kotlin_kotlin.$_$.z7;
13
+ var THROW_CCE = kotlin_kotlin.$_$.b8;
14
14
  var SequenceScope = kotlin_kotlin.$_$.m6;
15
15
  var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.n4;
16
16
  var initMetadataForLambda = kotlin_kotlin.$_$.j5;
@@ -57,11 +57,6 @@ 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
- }
65
60
  if (typeof Math.clz32 === 'undefined') {
66
61
  Math.clz32 = function (log, LN2) {
67
62
  return function (x) {
@@ -73,6 +68,11 @@ if (typeof Math.clz32 === 'undefined') {
73
68
  };
74
69
  }(Math.log, Math.LN2);
75
70
  }
71
+ if (typeof Math.log10 === 'undefined') {
72
+ Math.log10 = function (x) {
73
+ return Math.log(x) * Math.LOG10E;
74
+ };
75
+ }
76
76
  if (typeof String.prototype.endsWith === 'undefined') {
77
77
  Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
78
78
  var subjectString = this.toString();
@@ -988,6 +988,29 @@ if (typeof String.prototype.startsWith === 'undefined') {
988
988
  // Inline function 'kotlin.sequences.asIterable.<anonymous>' call
989
989
  return this.c1_1.j();
990
990
  };
991
+ function dropLast(_this__u8e3s4, n) {
992
+ // Inline function 'kotlin.require' call
993
+ // Inline function 'kotlin.contracts.contract' call
994
+ if (!(n >= 0)) {
995
+ // Inline function 'kotlin.text.dropLast.<anonymous>' call
996
+ var message = 'Requested character count ' + n + ' is less than zero.';
997
+ throw IllegalArgumentException_init_$Create$_0(toString_1(message));
998
+ }
999
+ return take_1(_this__u8e3s4, coerceAtLeast(_this__u8e3s4.length - n | 0, 0));
1000
+ }
1001
+ function take_1(_this__u8e3s4, n) {
1002
+ // Inline function 'kotlin.require' call
1003
+ // Inline function 'kotlin.contracts.contract' call
1004
+ if (!(n >= 0)) {
1005
+ // Inline function 'kotlin.text.take.<anonymous>' call
1006
+ var message = 'Requested character count ' + n + ' is less than zero.';
1007
+ throw IllegalArgumentException_init_$Create$_0(toString_1(message));
1008
+ }
1009
+ // Inline function 'kotlin.text.substring' call
1010
+ var endIndex = coerceAtMost(n, _this__u8e3s4.length);
1011
+ // Inline function 'kotlin.js.asDynamic' call
1012
+ return _this__u8e3s4.substring(0, endIndex);
1013
+ }
991
1014
  function reversed(_this__u8e3s4) {
992
1015
  return StringBuilder_init_$Create$_0(_this__u8e3s4).e1();
993
1016
  }
@@ -8971,59 +8994,61 @@ if (typeof String.prototype.startsWith === 'undefined') {
8971
8994
  _.$_$.t6 = concatToString_0;
8972
8995
  _.$_$.u6 = contains_6;
8973
8996
  _.$_$.v6 = contains_5;
8974
- _.$_$.w6 = endsWith;
8975
- _.$_$.x6 = indexOf_3;
8976
- _.$_$.y6 = isDigit;
8977
- _.$_$.z6 = isLetter;
8978
- _.$_$.a7 = get_lastIndex_1;
8979
- _.$_$.b7 = padStart;
8980
- _.$_$.c7 = repeat;
8981
- _.$_$.d7 = replace;
8982
- _.$_$.e7 = reversed;
8983
- _.$_$.f7 = split;
8984
- _.$_$.g7 = split_0;
8985
- _.$_$.h7 = startsWith;
8986
- _.$_$.i7 = substring;
8987
- _.$_$.j7 = toBoolean;
8988
- _.$_$.k7 = toCharArray;
8989
- _.$_$.l7 = toDouble;
8990
- _.$_$.m7 = toInt;
8991
- _.$_$.n7 = toInt_0;
8992
- _.$_$.o7 = toLong_0;
8993
- _.$_$.p7 = toString_4;
8994
- _.$_$.q7 = Char;
8995
- _.$_$.r7 = Comparable;
8996
- _.$_$.s7 = Comparator;
8997
- _.$_$.t7 = Enum;
8998
- _.$_$.u7 = Exception;
8999
- _.$_$.v7 = IllegalArgumentException;
9000
- _.$_$.w7 = Long;
9001
- _.$_$.x7 = Pair;
9002
- _.$_$.y7 = RuntimeException;
9003
- _.$_$.z7 = THROW_CCE;
9004
- _.$_$.a8 = THROW_IAE;
9005
- _.$_$.b8 = Triple;
9006
- _.$_$.c8 = UByte;
9007
- _.$_$.d8 = UIntArray;
9008
- _.$_$.e8 = UInt;
9009
- _.$_$.f8 = ULongArray;
9010
- _.$_$.g8 = ULong;
9011
- _.$_$.h8 = UShort;
9012
- _.$_$.i8 = UnsupportedOperationException;
9013
- _.$_$.j8 = ensureNotNull;
9014
- _.$_$.k8 = isInfinite;
9015
- _.$_$.l8 = isNaN_0;
9016
- _.$_$.m8 = lazy;
9017
- _.$_$.n8 = noWhenBranchMatchedException;
9018
- _.$_$.o8 = throwKotlinNothingValueException;
9019
- _.$_$.p8 = toString_0;
9020
- _.$_$.q8 = to;
9021
- _.$_$.r8 = uintCompare;
9022
- _.$_$.s8 = uintDivide;
9023
- _.$_$.t8 = uintRemainder;
9024
- _.$_$.u8 = ulongCompare;
9025
- _.$_$.v8 = ulongDivide;
9026
- _.$_$.w8 = ulongRemainder;
8997
+ _.$_$.w6 = dropLast;
8998
+ _.$_$.x6 = endsWith;
8999
+ _.$_$.y6 = indexOf_3;
9000
+ _.$_$.z6 = isDigit;
9001
+ _.$_$.a7 = isLetter;
9002
+ _.$_$.b7 = get_lastIndex_1;
9003
+ _.$_$.c7 = padStart;
9004
+ _.$_$.d7 = repeat;
9005
+ _.$_$.e7 = replace;
9006
+ _.$_$.f7 = reversed;
9007
+ _.$_$.g7 = split;
9008
+ _.$_$.h7 = split_0;
9009
+ _.$_$.i7 = startsWith;
9010
+ _.$_$.j7 = substring;
9011
+ _.$_$.k7 = take_1;
9012
+ _.$_$.l7 = toBoolean;
9013
+ _.$_$.m7 = toCharArray;
9014
+ _.$_$.n7 = toDouble;
9015
+ _.$_$.o7 = toInt;
9016
+ _.$_$.p7 = toInt_0;
9017
+ _.$_$.q7 = toLong_0;
9018
+ _.$_$.r7 = toString_4;
9019
+ _.$_$.s7 = Char;
9020
+ _.$_$.t7 = Comparable;
9021
+ _.$_$.u7 = Comparator;
9022
+ _.$_$.v7 = Enum;
9023
+ _.$_$.w7 = Exception;
9024
+ _.$_$.x7 = IllegalArgumentException;
9025
+ _.$_$.y7 = Long;
9026
+ _.$_$.z7 = Pair;
9027
+ _.$_$.a8 = RuntimeException;
9028
+ _.$_$.b8 = THROW_CCE;
9029
+ _.$_$.c8 = THROW_IAE;
9030
+ _.$_$.d8 = Triple;
9031
+ _.$_$.e8 = UByte;
9032
+ _.$_$.f8 = UIntArray;
9033
+ _.$_$.g8 = UInt;
9034
+ _.$_$.h8 = ULongArray;
9035
+ _.$_$.i8 = ULong;
9036
+ _.$_$.j8 = UShort;
9037
+ _.$_$.k8 = UnsupportedOperationException;
9038
+ _.$_$.l8 = ensureNotNull;
9039
+ _.$_$.m8 = isInfinite;
9040
+ _.$_$.n8 = isNaN_0;
9041
+ _.$_$.o8 = lazy;
9042
+ _.$_$.p8 = noWhenBranchMatchedException;
9043
+ _.$_$.q8 = throwKotlinNothingValueException;
9044
+ _.$_$.r8 = toString_0;
9045
+ _.$_$.s8 = to;
9046
+ _.$_$.t8 = uintCompare;
9047
+ _.$_$.u8 = uintDivide;
9048
+ _.$_$.v8 = uintRemainder;
9049
+ _.$_$.w8 = ulongCompare;
9050
+ _.$_$.x8 = ulongDivide;
9051
+ _.$_$.y8 = ulongRemainder;
9027
9052
  //endregion
9028
9053
  return _;
9029
9054
  }(module.exports));