@dhis2/expression-parser 1.1.0-beta.7 → 1.1.0-beta.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.
@@ -52,6 +52,11 @@ 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
+ }
55
60
  if (typeof Math.clz32 === 'undefined') {
56
61
  Math.clz32 = function (log, LN2) {
57
62
  return function (x) {
@@ -63,17 +68,6 @@ if (typeof Math.clz32 === 'undefined') {
63
68
  };
64
69
  }(Math.log, Math.LN2);
65
70
  }
66
- if (typeof Math.log10 === 'undefined') {
67
- Math.log10 = function (x) {
68
- return Math.log(x) * Math.LOG10E;
69
- };
70
- }
71
- if (typeof String.prototype.startsWith === 'undefined') {
72
- Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
73
- position = position || 0;
74
- return this.lastIndexOf(searchString, position) === position;
75
- }});
76
- }
77
71
  if (typeof String.prototype.endsWith === 'undefined') {
78
72
  Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
79
73
  var subjectString = this.toString();
@@ -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;
@@ -116,17 +116,17 @@ setMetadataFor(Map_0, 'Map', interfaceMeta);
116
116
  setMetadataFor(AbstractMap, 'AbstractMap', classMeta, VOID, [Map_0]);
117
117
  setMetadataFor(AbstractMutableMap, 'AbstractMutableMap', classMeta, AbstractMap, [AbstractMap, Map_0]);
118
118
  setMetadataFor(Set, 'Set', interfaceMeta, VOID, [Collection]);
119
- setMetadataFor(AbstractMutableSet, 'AbstractMutableSet', classMeta, AbstractMutableCollection, [AbstractMutableCollection, Set, Collection]);
119
+ setMetadataFor(AbstractMutableSet, 'AbstractMutableSet', classMeta, AbstractMutableCollection, [AbstractMutableCollection, Collection, Set]);
120
120
  setMetadataFor(Companion, 'Companion', objectMeta);
121
121
  setMetadataFor(RandomAccess, 'RandomAccess', interfaceMeta);
122
122
  setMetadataFor(ArrayList, 'ArrayList', classMeta, AbstractMutableList, [AbstractMutableList, Collection, List, RandomAccess], ArrayList_init_$Create$);
123
123
  setMetadataFor(HashMap, 'HashMap', classMeta, AbstractMutableMap, [AbstractMutableMap, Map_0], HashMap_init_$Create$);
124
- setMetadataFor(HashMapKeys, 'HashMapKeys', classMeta, AbstractMutableSet, [Set, Collection, AbstractMutableSet]);
125
- setMetadataFor(HashMapEntrySetBase, 'HashMapEntrySetBase', classMeta, AbstractMutableSet, [Set, Collection, AbstractMutableSet]);
124
+ setMetadataFor(HashMapKeys, 'HashMapKeys', classMeta, AbstractMutableSet, [Collection, Set, AbstractMutableSet]);
125
+ setMetadataFor(HashMapEntrySetBase, 'HashMapEntrySetBase', classMeta, AbstractMutableSet, [Collection, Set, AbstractMutableSet]);
126
126
  setMetadataFor(HashMapEntrySet, 'HashMapEntrySet', classMeta, HashMapEntrySetBase);
127
127
  setMetadataFor(HashMapKeysDefault$iterator$1, VOID, classMeta);
128
128
  setMetadataFor(HashMapKeysDefault, 'HashMapKeysDefault', classMeta, AbstractMutableSet);
129
- setMetadataFor(HashSet, 'HashSet', classMeta, AbstractMutableSet, [AbstractMutableSet, Set, Collection], HashSet_init_$Create$);
129
+ setMetadataFor(HashSet, 'HashSet', classMeta, AbstractMutableSet, [AbstractMutableSet, Collection, Set], HashSet_init_$Create$);
130
130
  setMetadataFor(Companion_0, 'Companion', objectMeta);
131
131
  setMetadataFor(Itr, 'Itr', classMeta);
132
132
  setMetadataFor(KeysItr, 'KeysItr', classMeta, Itr);
@@ -172,7 +172,7 @@ function containsAllEntries(m) {
172
172
  setMetadataFor(InternalMap, 'InternalMap', interfaceMeta);
173
173
  setMetadataFor(InternalHashMap, 'InternalHashMap', classMeta, VOID, [InternalMap], InternalHashMap_init_$Create$);
174
174
  setMetadataFor(LinkedHashMap, 'LinkedHashMap', classMeta, HashMap, [HashMap, Map_0], LinkedHashMap_init_$Create$);
175
- setMetadataFor(LinkedHashSet, 'LinkedHashSet', classMeta, HashSet, [HashSet, Set, Collection], LinkedHashSet_init_$Create$);
175
+ setMetadataFor(LinkedHashSet, 'LinkedHashSet', classMeta, HashSet, [HashSet, Collection, Set], LinkedHashSet_init_$Create$);
176
176
  setMetadataFor(BaseOutput, 'BaseOutput', classMeta);
177
177
  setMetadataFor(NodeJsOutput, 'NodeJsOutput', classMeta, BaseOutput);
178
178
  setMetadataFor(BufferedOutput, 'BufferedOutput', classMeta, BaseOutput, VOID, BufferedOutput);