@flock/wirespec 0.9.8 → 0.9.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.
@@ -32,11 +32,6 @@ if (typeof Array.prototype.fill === 'undefined') {
32
32
  Object.defineProperty(TypedArray.prototype, 'fill', {value: Array.prototype.fill});
33
33
  }
34
34
  });
35
- if (typeof Math.log2 === 'undefined') {
36
- Math.log2 = function (x) {
37
- return Math.log(x) * Math.LOG2E;
38
- };
39
- }
40
35
  if (typeof Math.log10 === 'undefined') {
41
36
  Math.log10 = function (x) {
42
37
  return Math.log(x) * Math.LOG10E;
@@ -53,11 +48,10 @@ if (typeof Math.clz32 === 'undefined') {
53
48
  };
54
49
  }(Math.log, Math.LN2);
55
50
  }
56
- if (typeof String.prototype.startsWith === 'undefined') {
57
- Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
58
- position = position || 0;
59
- return this.lastIndexOf(searchString, position) === position;
60
- }});
51
+ if (typeof Math.log2 === 'undefined') {
52
+ Math.log2 = function (x) {
53
+ return Math.log(x) * Math.LOG2E;
54
+ };
61
55
  }
62
56
  if (typeof String.prototype.endsWith === 'undefined') {
63
57
  Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
@@ -70,6 +64,12 @@ if (typeof String.prototype.endsWith === 'undefined') {
70
64
  return lastIndex !== -1 && lastIndex === position;
71
65
  }});
72
66
  }
67
+ if (typeof String.prototype.startsWith === 'undefined') {
68
+ Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
69
+ position = position || 0;
70
+ return this.lastIndexOf(searchString, position) === position;
71
+ }});
72
+ }
73
73
  if (typeof Math.imul === 'undefined') {
74
74
  Math.imul = function imul(a, b) {
75
75
  return (a & 4.29490176E9) * (b & 65535) + (a & 65535) * (b | 0) | 0;
@@ -107,11 +107,11 @@ if (typeof Math.imul === 'undefined') {
107
107
  setMetadataFor(Collection, 'Collection', interfaceMeta, VOID, [Iterable]);
108
108
  setMetadataFor(AbstractCollection, 'AbstractCollection', classMeta, VOID, [Collection]);
109
109
  setMetadataFor(MutableIterable, 'MutableIterable', interfaceMeta, VOID, [Iterable]);
110
- setMetadataFor(AbstractMutableCollection, 'AbstractMutableCollection', classMeta, AbstractCollection, [AbstractCollection, MutableIterable, Collection]);
110
+ setMetadataFor(AbstractMutableCollection, 'AbstractMutableCollection', classMeta, AbstractCollection, [AbstractCollection, Collection, MutableIterable]);
111
111
  setMetadataFor(IteratorImpl, 'IteratorImpl', classMeta);
112
112
  setMetadataFor(ListIteratorImpl, 'ListIteratorImpl', classMeta, IteratorImpl);
113
113
  setMetadataFor(List, 'List', interfaceMeta, VOID, [Collection]);
114
- setMetadataFor(MutableList, 'MutableList', interfaceMeta, VOID, [List, MutableIterable, Collection]);
114
+ setMetadataFor(MutableList, 'MutableList', interfaceMeta, VOID, [List, Collection, MutableIterable]);
115
115
  setMetadataFor(AbstractMutableList, 'AbstractMutableList', classMeta, AbstractMutableCollection, [AbstractMutableCollection, MutableList]);
116
116
  setMetadataFor(RandomAccess, 'RandomAccess', interfaceMeta);
117
117
  setMetadataFor(SubList, 'SubList', classMeta, AbstractMutableList, [AbstractMutableList, RandomAccess]);
@@ -120,7 +120,7 @@ if (typeof Math.imul === 'undefined') {
120
120
  setMetadataFor(MutableMap, 'MutableMap', interfaceMeta, VOID, [Map_0]);
121
121
  setMetadataFor(AbstractMutableMap, 'AbstractMutableMap', classMeta, AbstractMap, [AbstractMap, MutableMap]);
122
122
  setMetadataFor(Set, 'Set', interfaceMeta, VOID, [Collection]);
123
- setMetadataFor(MutableSet, 'MutableSet', interfaceMeta, VOID, [Set, MutableIterable, Collection]);
123
+ setMetadataFor(MutableSet, 'MutableSet', interfaceMeta, VOID, [Set, Collection, MutableIterable]);
124
124
  setMetadataFor(AbstractMutableSet, 'AbstractMutableSet', classMeta, AbstractMutableCollection, [AbstractMutableCollection, MutableSet]);
125
125
  setMetadataFor(Companion, 'Companion', objectMeta);
126
126
  setMetadataFor(ArrayList, 'ArrayList', classMeta, AbstractMutableList, [AbstractMutableList, MutableList, RandomAccess]);