@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.
@@ -3578,6 +3578,29 @@ protoOf(_no_name_provided__qut3iv_0).s = function () {
3578
3578
  // Inline function 'kotlin.sequences.asIterable.<anonymous>' call
3579
3579
  return this.k8_1.s();
3580
3580
  };
3581
+ function dropLast(_this__u8e3s4, n) {
3582
+ // Inline function 'kotlin.require' call
3583
+ // Inline function 'kotlin.contracts.contract' call
3584
+ if (!(n >= 0)) {
3585
+ // Inline function 'kotlin.text.dropLast.<anonymous>' call
3586
+ var message = 'Requested character count ' + n + ' is less than zero.';
3587
+ throw IllegalArgumentException_init_$Create$_0(toString_1(message));
3588
+ }
3589
+ return take_1(_this__u8e3s4, coerceAtLeast(_this__u8e3s4.length - n | 0, 0));
3590
+ }
3591
+ function take_1(_this__u8e3s4, n) {
3592
+ // Inline function 'kotlin.require' call
3593
+ // Inline function 'kotlin.contracts.contract' call
3594
+ if (!(n >= 0)) {
3595
+ // Inline function 'kotlin.text.take.<anonymous>' call
3596
+ var message = 'Requested character count ' + n + ' is less than zero.';
3597
+ throw IllegalArgumentException_init_$Create$_0(toString_1(message));
3598
+ }
3599
+ // Inline function 'kotlin.text.substring' call
3600
+ var endIndex = coerceAtMost(n, _this__u8e3s4.length);
3601
+ // Inline function 'kotlin.js.asDynamic' call
3602
+ return _this__u8e3s4.substring(0, endIndex);
3603
+ }
3581
3604
  function reversed(_this__u8e3s4) {
3582
3605
  return StringBuilder_init_$Create$_0(_this__u8e3s4).s6();
3583
3606
  }
@@ -8928,6 +8951,7 @@ export {
8928
8951
  concatToString_0 as concatToString3cxf0c1gqonpo,
8929
8952
  contains_6 as contains3ue2qo8xhmpf1,
8930
8953
  contains_5 as contains2el4s70rdq4ld,
8954
+ dropLast as dropLastlqc2oyv04br0,
8931
8955
  endsWith as endsWith3cq61xxngobwh,
8932
8956
  indexOf_3 as indexOf1xbs558u7wr52,
8933
8957
  isDigit as isDigit3mimrri4wkzop,
@@ -8941,6 +8965,7 @@ export {
8941
8965
  split_0 as split2bvyvnrlcifjv,
8942
8966
  startsWith as startsWith26w8qjqapeeq6,
8943
8967
  substring as substring2pnd9wgs9hwtx,
8968
+ take_1 as take9j4462mea726,
8944
8969
  toBoolean as toBoolean2azvnq2ukl7b3,
8945
8970
  toCharArray as toCharArray32huqyw9tt7kx,
8946
8971
  toDouble as toDouble1kn912gjoizjp,