@flock/wirespec 0.17.6 → 0.17.7

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.
@@ -37,16 +37,6 @@ if (typeof Array.prototype.fill === 'undefined') {
37
37
  Object.defineProperty(TypedArray.prototype, 'fill', {value: Array.prototype.fill});
38
38
  }
39
39
  });
40
- if (typeof Math.log10 === 'undefined') {
41
- Math.log10 = function (x) {
42
- return Math.log(x) * Math.LOG10E;
43
- };
44
- }
45
- if (typeof Math.log2 === 'undefined') {
46
- Math.log2 = function (x) {
47
- return Math.log(x) * Math.LOG2E;
48
- };
49
- }
50
40
  if (typeof Math.clz32 === 'undefined') {
51
41
  Math.clz32 = function (log, LN2) {
52
42
  return function (x) {
@@ -58,11 +48,15 @@ if (typeof Math.clz32 === 'undefined') {
58
48
  };
59
49
  }(Math.log, Math.LN2);
60
50
  }
61
- if (typeof String.prototype.startsWith === 'undefined') {
62
- Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
63
- position = position || 0;
64
- return this.lastIndexOf(searchString, position) === position;
65
- }});
51
+ if (typeof Math.log10 === 'undefined') {
52
+ Math.log10 = function (x) {
53
+ return Math.log(x) * Math.LOG10E;
54
+ };
55
+ }
56
+ if (typeof Math.log2 === 'undefined') {
57
+ Math.log2 = function (x) {
58
+ return Math.log(x) * Math.LOG2E;
59
+ };
66
60
  }
67
61
  if (typeof String.prototype.endsWith === 'undefined') {
68
62
  Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
@@ -75,6 +69,12 @@ if (typeof String.prototype.endsWith === 'undefined') {
75
69
  return lastIndex !== -1 && lastIndex === position;
76
70
  }});
77
71
  }
72
+ if (typeof String.prototype.startsWith === 'undefined') {
73
+ Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
74
+ position = position || 0;
75
+ return this.lastIndexOf(searchString, position) === position;
76
+ }});
77
+ }
78
78
  //endregion
79
79
  //region block: imports
80
80
  var imul_0 = Math.imul;
@@ -100,8 +100,8 @@ initMetadataForInterface(KtSet, 'Set', VOID, VOID, [Collection]);
100
100
  initMetadataForInterface(Entry, 'Entry');
101
101
  initMetadataForInterface(KtMap, 'Map');
102
102
  initMetadataForInterface(MutableIterable, 'MutableIterable');
103
- initMetadataForInterface(KtMutableList, 'MutableList', VOID, VOID, [KtList, Collection, MutableIterable]);
104
- initMetadataForInterface(KtMutableSet, 'MutableSet', VOID, VOID, [KtSet, Collection, MutableIterable]);
103
+ initMetadataForInterface(KtMutableList, 'MutableList', VOID, VOID, [KtList, MutableIterable, Collection]);
104
+ initMetadataForInterface(KtMutableSet, 'MutableSet', VOID, VOID, [KtSet, MutableIterable, Collection]);
105
105
  initMetadataForInterface(KtMutableMap, 'MutableMap', VOID, VOID, [KtMap]);
106
106
  initMetadataForCompanion(Companion_0);
107
107
  initMetadataForClass(Enum, 'Enum', VOID, VOID, [Comparable]);
@@ -121,7 +121,7 @@ initMetadataForObject(Letter, 'Letter');
121
121
  initMetadataForObject(OtherLowercase, 'OtherLowercase');
122
122
  initMetadataForInterface(Comparator, 'Comparator');
123
123
  initMetadataForClass(AbstractCollection, 'AbstractCollection', VOID, VOID, [Collection]);
124
- initMetadataForClass(AbstractMutableCollection, 'AbstractMutableCollection', VOID, AbstractCollection, [AbstractCollection, Collection, MutableIterable]);
124
+ initMetadataForClass(AbstractMutableCollection, 'AbstractMutableCollection', VOID, AbstractCollection, [AbstractCollection, MutableIterable, Collection]);
125
125
  initMetadataForClass(IteratorImpl, 'IteratorImpl');
126
126
  initMetadataForClass(ListIteratorImpl, 'ListIteratorImpl', VOID, IteratorImpl);
127
127
  initMetadataForClass(AbstractMutableList, 'AbstractMutableList', VOID, AbstractMutableCollection, [AbstractMutableCollection, KtMutableList]);