@dhis2/expression-parser 1.1.0-beta.8 → 1.1.0-beta.9

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,11 +52,6 @@ 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
- }
60
55
  if (typeof Math.clz32 === 'undefined') {
61
56
  Math.clz32 = function (log, LN2) {
62
57
  return function (x) {
@@ -68,11 +63,10 @@ if (typeof Math.clz32 === 'undefined') {
68
63
  };
69
64
  }(Math.log, Math.LN2);
70
65
  }
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
- }});
66
+ if (typeof Math.log10 === 'undefined') {
67
+ Math.log10 = function (x) {
68
+ return Math.log(x) * Math.LOG10E;
69
+ };
76
70
  }
77
71
  if (typeof String.prototype.endsWith === 'undefined') {
78
72
  Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
@@ -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;
@@ -113,7 +113,7 @@ if (typeof Math.imul === 'undefined') {
113
113
  setMetadataFor(IteratorImpl, 'IteratorImpl', classMeta);
114
114
  setMetadataFor(ListIteratorImpl, 'ListIteratorImpl', classMeta, IteratorImpl);
115
115
  setMetadataFor(List, 'List', interfaceMeta, VOID, [Collection]);
116
- setMetadataFor(AbstractMutableList, 'AbstractMutableList', classMeta, AbstractMutableCollection, [AbstractMutableCollection, Collection, List]);
116
+ setMetadataFor(AbstractMutableList, 'AbstractMutableList', classMeta, AbstractMutableCollection, [AbstractMutableCollection, List, Collection]);
117
117
  setMetadataFor(Map_0, 'Map', interfaceMeta);
118
118
  setMetadataFor(AbstractMap, 'AbstractMap', classMeta, VOID, [Map_0]);
119
119
  setMetadataFor(AbstractMutableMap, 'AbstractMutableMap', classMeta, AbstractMap, [AbstractMap, Map_0]);
@@ -121,7 +121,7 @@ if (typeof Math.imul === 'undefined') {
121
121
  setMetadataFor(AbstractMutableSet, 'AbstractMutableSet', classMeta, AbstractMutableCollection, [AbstractMutableCollection, Set, Collection]);
122
122
  setMetadataFor(Companion, 'Companion', objectMeta);
123
123
  setMetadataFor(RandomAccess, 'RandomAccess', interfaceMeta);
124
- setMetadataFor(ArrayList, 'ArrayList', classMeta, AbstractMutableList, [AbstractMutableList, Collection, List, RandomAccess], ArrayList_init_$Create$);
124
+ setMetadataFor(ArrayList, 'ArrayList', classMeta, AbstractMutableList, [AbstractMutableList, List, Collection, RandomAccess], ArrayList_init_$Create$);
125
125
  setMetadataFor(HashMap, 'HashMap', classMeta, AbstractMutableMap, [AbstractMutableMap, Map_0], HashMap_init_$Create$);
126
126
  setMetadataFor(HashMapKeys, 'HashMapKeys', classMeta, AbstractMutableSet, [Set, Collection, AbstractMutableSet]);
127
127
  setMetadataFor(HashMapEntrySetBase, 'HashMapEntrySetBase', classMeta, AbstractMutableSet, [Set, Collection, AbstractMutableSet]);