@cruglobal/godtools-shared 1.1.1-SNAPSHOT.1678 → 1.1.1-SNAPSHOT.1682

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.
@@ -46,11 +46,6 @@ if (typeof Array.prototype.fill === 'undefined') {
46
46
  Object.defineProperty(TypedArray.prototype, 'fill', {value: Array.prototype.fill});
47
47
  }
48
48
  });
49
- if (typeof Math.log2 === 'undefined') {
50
- Math.log2 = function (x) {
51
- return Math.log(x) * Math.LOG2E;
52
- };
53
- }
54
49
  if (typeof Math.clz32 === 'undefined') {
55
50
  Math.clz32 = function (log, LN2) {
56
51
  return function (x) {
@@ -62,6 +57,17 @@ if (typeof Math.clz32 === 'undefined') {
62
57
  };
63
58
  }(Math.log, Math.LN2);
64
59
  }
60
+ if (typeof Math.log2 === 'undefined') {
61
+ Math.log2 = function (x) {
62
+ return Math.log(x) * Math.LOG2E;
63
+ };
64
+ }
65
+ if (typeof String.prototype.startsWith === 'undefined') {
66
+ Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
67
+ position = position || 0;
68
+ return this.lastIndexOf(searchString, position) === position;
69
+ }});
70
+ }
65
71
  if (typeof String.prototype.endsWith === 'undefined') {
66
72
  Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
67
73
  var subjectString = this.toString();
@@ -73,12 +79,6 @@ if (typeof String.prototype.endsWith === 'undefined') {
73
79
  return lastIndex !== -1 && lastIndex === position;
74
80
  }});
75
81
  }
76
- if (typeof String.prototype.startsWith === 'undefined') {
77
- Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
78
- position = position || 0;
79
- return this.lastIndexOf(searchString, position) === position;
80
- }});
81
- }
82
82
  //endregion
83
83
  (function (factory) {
84
84
  if (typeof define === 'function' && define.amd)
@@ -120,12 +120,12 @@ if (typeof String.prototype.startsWith === 'undefined') {
120
120
  function asJsSetView() {
121
121
  return createJsSetViewFrom(this);
122
122
  }
123
- initMetadataForInterface(KtMutableSet, 'MutableSet', VOID, VOID, [KtSet, Collection, MutableIterable]);
123
+ initMetadataForInterface(KtMutableSet, 'MutableSet', VOID, VOID, [KtSet, MutableIterable, Collection]);
124
124
  initMetadataForCompanion(Companion_2);
125
125
  function asJsArrayView() {
126
126
  return createJsArrayViewFrom(this);
127
127
  }
128
- initMetadataForInterface(KtMutableList, 'MutableList', VOID, VOID, [KtList, Collection, MutableIterable]);
128
+ initMetadataForInterface(KtMutableList, 'MutableList', VOID, VOID, [KtList, MutableIterable, Collection]);
129
129
  initMetadataForInterface(Entry, 'Entry');
130
130
  initMetadataForInterface(MutableEntry, 'MutableEntry', VOID, VOID, [Entry]);
131
131
  initMetadataForCompanion(Companion_3);
@@ -148,7 +148,7 @@ if (typeof String.prototype.startsWith === 'undefined') {
148
148
  initMetadataForInterface(Comparator, 'Comparator');
149
149
  initMetadataForObject(Unit, 'Unit');
150
150
  initMetadataForClass(AbstractCollection, 'AbstractCollection', VOID, VOID, [Collection]);
151
- initMetadataForClass(AbstractMutableCollection, 'AbstractMutableCollection', VOID, AbstractCollection, [AbstractCollection, Collection, MutableIterable]);
151
+ initMetadataForClass(AbstractMutableCollection, 'AbstractMutableCollection', VOID, AbstractCollection, [AbstractCollection, MutableIterable, Collection]);
152
152
  initMetadataForClass(IteratorImpl, 'IteratorImpl');
153
153
  initMetadataForClass(ListIteratorImpl, 'ListIteratorImpl', VOID, IteratorImpl);
154
154
  initMetadataForClass(AbstractMutableList, 'AbstractMutableList', VOID, AbstractMutableCollection, [AbstractMutableCollection, KtMutableList]);
@@ -161,7 +161,7 @@ if (typeof String.prototype.startsWith === 'undefined') {
161
161
  initMetadataForClass(ArrayList, 'ArrayList', ArrayList_init_$Create$, AbstractMutableList, [AbstractMutableList, KtMutableList, RandomAccess]);
162
162
  initMetadataForClass(HashMap, 'HashMap', HashMap_init_$Create$, AbstractMutableMap, [AbstractMutableMap, KtMap]);
163
163
  initMetadataForClass(HashMapKeys, 'HashMapKeys', VOID, AbstractMutableSet, [KtMutableSet, AbstractMutableSet]);
164
- initMetadataForClass(HashMapValues, 'HashMapValues', VOID, AbstractMutableCollection, [Collection, MutableIterable, AbstractMutableCollection]);
164
+ initMetadataForClass(HashMapValues, 'HashMapValues', VOID, AbstractMutableCollection, [MutableIterable, Collection, AbstractMutableCollection]);
165
165
  initMetadataForClass(HashMapEntrySetBase, 'HashMapEntrySetBase', VOID, AbstractMutableSet, [KtMutableSet, AbstractMutableSet]);
166
166
  initMetadataForClass(HashMapEntrySet, 'HashMapEntrySet', VOID, HashMapEntrySetBase);
167
167
  initMetadataForClass(HashMapKeysDefault$iterator$1);