@dhis2/expression-parser 1.1.6 → 1.1.8

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.$_$.b8;
13
+ var THROW_CCE = kotlin_kotlin.$_$.y7;
14
14
  var SequenceScope = kotlin_kotlin.$_$.m6;
15
15
  var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.n4;
16
16
  var initMetadataForLambda = kotlin_kotlin.$_$.j5;
@@ -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,22 +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.endsWith === 'undefined') {
77
- Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
78
- var subjectString = this.toString();
79
- if (position === undefined || position > subjectString.length) {
80
- position = subjectString.length;
81
- }
82
- position -= searchString.length;
83
- var lastIndex = subjectString.indexOf(searchString, position);
84
- return lastIndex !== -1 && lastIndex === position;
85
- }});
86
- }
87
76
  if (typeof String.prototype.startsWith === 'undefined') {
88
77
  Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
89
78
  position = position || 0;
@@ -988,29 +977,6 @@ if (typeof String.prototype.startsWith === 'undefined') {
988
977
  // Inline function 'kotlin.sequences.asIterable.<anonymous>' call
989
978
  return this.c1_1.j();
990
979
  };
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
- }
1014
980
  function reversed(_this__u8e3s4) {
1015
981
  return StringBuilder_init_$Create$_0(_this__u8e3s4).e1();
1016
982
  }
@@ -5841,15 +5807,6 @@ if (typeof String.prototype.startsWith === 'undefined') {
5841
5807
  // Inline function 'kotlin.js.asDynamic' call
5842
5808
  return _this__u8e3s4.replace(pattern, replacement);
5843
5809
  }
5844
- function endsWith(_this__u8e3s4, suffix, ignoreCase) {
5845
- ignoreCase = ignoreCase === VOID ? false : ignoreCase;
5846
- if (!ignoreCase) {
5847
- // Inline function 'kotlin.text.nativeEndsWith' call
5848
- // Inline function 'kotlin.js.asDynamic' call
5849
- return _this__u8e3s4.endsWith(suffix);
5850
- } else
5851
- return regionMatches(_this__u8e3s4, _this__u8e3s4.length - suffix.length | 0, suffix, 0, suffix.length, ignoreCase);
5852
- }
5853
5810
  function startsWith(_this__u8e3s4, prefix, ignoreCase) {
5854
5811
  ignoreCase = ignoreCase === VOID ? false : ignoreCase;
5855
5812
  if (!ignoreCase) {
@@ -8994,61 +8951,58 @@ if (typeof String.prototype.startsWith === 'undefined') {
8994
8951
  _.$_$.t6 = concatToString_0;
8995
8952
  _.$_$.u6 = contains_6;
8996
8953
  _.$_$.v6 = contains_5;
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;
8954
+ _.$_$.w6 = indexOf_3;
8955
+ _.$_$.x6 = isDigit;
8956
+ _.$_$.y6 = isLetter;
8957
+ _.$_$.z6 = get_lastIndex_1;
8958
+ _.$_$.a7 = padStart;
8959
+ _.$_$.b7 = repeat;
8960
+ _.$_$.c7 = replace;
8961
+ _.$_$.d7 = reversed;
8962
+ _.$_$.e7 = split;
8963
+ _.$_$.f7 = split_0;
8964
+ _.$_$.g7 = startsWith;
8965
+ _.$_$.h7 = substring;
8966
+ _.$_$.i7 = toBoolean;
8967
+ _.$_$.j7 = toCharArray;
8968
+ _.$_$.k7 = toDouble;
8969
+ _.$_$.l7 = toInt;
8970
+ _.$_$.m7 = toInt_0;
8971
+ _.$_$.n7 = toLong_0;
8972
+ _.$_$.o7 = toString_4;
8973
+ _.$_$.p7 = Char;
8974
+ _.$_$.q7 = Comparable;
8975
+ _.$_$.r7 = Comparator;
8976
+ _.$_$.s7 = Enum;
8977
+ _.$_$.t7 = Exception;
8978
+ _.$_$.u7 = IllegalArgumentException;
8979
+ _.$_$.v7 = Long;
8980
+ _.$_$.w7 = Pair;
8981
+ _.$_$.x7 = RuntimeException;
8982
+ _.$_$.y7 = THROW_CCE;
8983
+ _.$_$.z7 = THROW_IAE;
8984
+ _.$_$.a8 = Triple;
8985
+ _.$_$.b8 = UByte;
8986
+ _.$_$.c8 = UIntArray;
8987
+ _.$_$.d8 = UInt;
8988
+ _.$_$.e8 = ULongArray;
8989
+ _.$_$.f8 = ULong;
8990
+ _.$_$.g8 = UShort;
8991
+ _.$_$.h8 = UnsupportedOperationException;
8992
+ _.$_$.i8 = ensureNotNull;
8993
+ _.$_$.j8 = isInfinite;
8994
+ _.$_$.k8 = isNaN_0;
8995
+ _.$_$.l8 = lazy;
8996
+ _.$_$.m8 = noWhenBranchMatchedException;
8997
+ _.$_$.n8 = throwKotlinNothingValueException;
8998
+ _.$_$.o8 = toString_0;
8999
+ _.$_$.p8 = to;
9000
+ _.$_$.q8 = uintCompare;
9001
+ _.$_$.r8 = uintDivide;
9002
+ _.$_$.s8 = uintRemainder;
9003
+ _.$_$.t8 = ulongCompare;
9004
+ _.$_$.u8 = ulongDivide;
9005
+ _.$_$.v8 = ulongRemainder;
9052
9006
  //endregion
9053
9007
  return _;
9054
9008
  }(module.exports));