@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.
@@ -73,17 +73,6 @@ if (typeof Math.clz32 === 'undefined') {
73
73
  };
74
74
  }(Math.log, Math.LN2);
75
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;
@@ -130,19 +119,19 @@ initMetadataForInterface(Comparator, 'Comparator');
130
119
  initMetadataForClass(AbstractMutableCollection, 'AbstractMutableCollection', VOID, AbstractCollection, [AbstractCollection, Collection]);
131
120
  initMetadataForClass(IteratorImpl, 'IteratorImpl');
132
121
  initMetadataForClass(ListIteratorImpl, 'ListIteratorImpl', VOID, IteratorImpl);
133
- initMetadataForClass(AbstractMutableList, 'AbstractMutableList', VOID, AbstractMutableCollection, [AbstractMutableCollection, KtList, Collection]);
122
+ initMetadataForClass(AbstractMutableList, 'AbstractMutableList', VOID, AbstractMutableCollection, [AbstractMutableCollection, Collection, KtList]);
134
123
  initMetadataForClass(AbstractMap, 'AbstractMap', VOID, VOID, [KtMap]);
135
124
  initMetadataForClass(AbstractMutableMap, 'AbstractMutableMap', VOID, AbstractMap, [AbstractMap, KtMap]);
136
- initMetadataForClass(AbstractMutableSet, 'AbstractMutableSet', VOID, AbstractMutableCollection, [AbstractMutableCollection, KtSet, Collection]);
125
+ initMetadataForClass(AbstractMutableSet, 'AbstractMutableSet', VOID, AbstractMutableCollection, [AbstractMutableCollection, Collection, KtSet]);
137
126
  initMetadataForCompanion(Companion_2);
138
- initMetadataForClass(ArrayList, 'ArrayList', ArrayList_init_$Create$, AbstractMutableList, [AbstractMutableList, KtList, Collection, RandomAccess]);
127
+ initMetadataForClass(ArrayList, 'ArrayList', ArrayList_init_$Create$, AbstractMutableList, [AbstractMutableList, Collection, KtList, RandomAccess]);
139
128
  initMetadataForClass(HashMap, 'HashMap', HashMap_init_$Create$, AbstractMutableMap, [AbstractMutableMap, KtMap]);
140
- initMetadataForClass(HashMapKeys, 'HashMapKeys', VOID, AbstractMutableSet, [KtSet, Collection, AbstractMutableSet]);
141
- initMetadataForClass(HashMapEntrySetBase, 'HashMapEntrySetBase', VOID, AbstractMutableSet, [KtSet, Collection, AbstractMutableSet]);
129
+ initMetadataForClass(HashMapKeys, 'HashMapKeys', VOID, AbstractMutableSet, [Collection, KtSet, AbstractMutableSet]);
130
+ initMetadataForClass(HashMapEntrySetBase, 'HashMapEntrySetBase', VOID, AbstractMutableSet, [Collection, KtSet, AbstractMutableSet]);
142
131
  initMetadataForClass(HashMapEntrySet, 'HashMapEntrySet', VOID, HashMapEntrySetBase);
143
132
  initMetadataForClass(HashMapKeysDefault$iterator$1);
144
133
  initMetadataForClass(HashMapKeysDefault, 'HashMapKeysDefault', VOID, AbstractMutableSet);
145
- initMetadataForClass(HashSet, 'HashSet', HashSet_init_$Create$, AbstractMutableSet, [AbstractMutableSet, KtSet, Collection]);
134
+ initMetadataForClass(HashSet, 'HashSet', HashSet_init_$Create$, AbstractMutableSet, [AbstractMutableSet, Collection, KtSet]);
146
135
  initMetadataForCompanion(Companion_3);
147
136
  initMetadataForClass(Itr, 'Itr');
148
137
  initMetadataForClass(KeysItr, 'KeysItr', VOID, Itr);
@@ -187,7 +176,7 @@ function containsAllEntries(m) {
187
176
  initMetadataForInterface(InternalMap, 'InternalMap');
188
177
  initMetadataForClass(InternalHashMap, 'InternalHashMap', InternalHashMap_init_$Create$, VOID, [InternalMap]);
189
178
  initMetadataForClass(LinkedHashMap, 'LinkedHashMap', LinkedHashMap_init_$Create$, HashMap, [HashMap, KtMap]);
190
- initMetadataForClass(LinkedHashSet, 'LinkedHashSet', LinkedHashSet_init_$Create$, HashSet, [HashSet, KtSet, Collection]);
179
+ initMetadataForClass(LinkedHashSet, 'LinkedHashSet', LinkedHashSet_init_$Create$, HashSet, [HashSet, Collection, KtSet]);
191
180
  initMetadataForClass(BaseOutput, 'BaseOutput');
192
181
  initMetadataForClass(NodeJsOutput, 'NodeJsOutput', VOID, BaseOutput);
193
182
  initMetadataForClass(BufferedOutput, 'BufferedOutput', BufferedOutput, BaseOutput);
@@ -986,29 +975,6 @@ protoOf(_no_name_provided__qut3iv_0).j = function () {
986
975
  // Inline function 'kotlin.sequences.asIterable.<anonymous>' call
987
976
  return this.c1_1.j();
988
977
  };
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
- }
1012
978
  function reversed(_this__u8e3s4) {
1013
979
  return StringBuilder_init_$Create$_0(_this__u8e3s4).e1();
1014
980
  }
@@ -5839,15 +5805,6 @@ function replace(_this__u8e3s4, oldValue, newValue, ignoreCase) {
5839
5805
  // Inline function 'kotlin.js.asDynamic' call
5840
5806
  return _this__u8e3s4.replace(pattern, replacement);
5841
5807
  }
5842
- function endsWith(_this__u8e3s4, suffix, ignoreCase) {
5843
- ignoreCase = ignoreCase === VOID ? false : ignoreCase;
5844
- if (!ignoreCase) {
5845
- // Inline function 'kotlin.text.nativeEndsWith' call
5846
- // Inline function 'kotlin.js.asDynamic' call
5847
- return _this__u8e3s4.endsWith(suffix);
5848
- } else
5849
- return regionMatches(_this__u8e3s4, _this__u8e3s4.length - suffix.length | 0, suffix, 0, suffix.length, ignoreCase);
5850
- }
5851
5808
  function startsWith(_this__u8e3s4, prefix, ignoreCase) {
5852
5809
  ignoreCase = ignoreCase === VOID ? false : ignoreCase;
5853
5810
  if (!ignoreCase) {
@@ -8992,8 +8949,6 @@ export {
8992
8949
  concatToString_0 as concatToString3cxf0c1gqonpo,
8993
8950
  contains_6 as contains3ue2qo8xhmpf1,
8994
8951
  contains_5 as contains2el4s70rdq4ld,
8995
- dropLast as dropLastlqc2oyv04br0,
8996
- endsWith as endsWith3cq61xxngobwh,
8997
8952
  indexOf_3 as indexOf1xbs558u7wr52,
8998
8953
  isDigit as isDigit3mimrri4wkzop,
8999
8954
  isLetter as isLettere1qnx5bysxbd,
@@ -9006,7 +8961,6 @@ export {
9006
8961
  split_0 as split2bvyvnrlcifjv,
9007
8962
  startsWith as startsWith26w8qjqapeeq6,
9008
8963
  substring as substring2pnd9wgs9hwtx,
9009
- take_1 as take9j4462mea726,
9010
8964
  toBoolean as toBoolean2azvnq2ukl7b3,
9011
8965
  toCharArray as toCharArray32huqyw9tt7kx,
9012
8966
  toDouble as toDouble1kn912gjoizjp,