@flock/wirespec 0.9.26 → 0.9.27

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.
@@ -67,6 +67,12 @@ if (typeof Math.log10 === 'undefined') {
67
67
  return Math.log(x) * Math.LOG10E;
68
68
  };
69
69
  }
70
+ if (typeof String.prototype.startsWith === 'undefined') {
71
+ Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
72
+ position = position || 0;
73
+ return this.lastIndexOf(searchString, position) === position;
74
+ }});
75
+ }
70
76
  if (typeof String.prototype.endsWith === 'undefined') {
71
77
  Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
72
78
  var subjectString = this.toString();
@@ -78,12 +84,6 @@ if (typeof String.prototype.endsWith === 'undefined') {
78
84
  return lastIndex !== -1 && lastIndex === position;
79
85
  }});
80
86
  }
81
- if (typeof String.prototype.startsWith === 'undefined') {
82
- Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
83
- position = position || 0;
84
- return this.lastIndexOf(searchString, position) === position;
85
- }});
86
- }
87
87
  //endregion
88
88
  (function (root, factory) {
89
89
  if (typeof define === 'function' && define.amd)
@@ -116,8 +116,8 @@ if (typeof String.prototype.startsWith === 'undefined') {
116
116
  initMetadataForInterface(Entry, 'Entry');
117
117
  initMetadataForInterface(KtMap, 'Map');
118
118
  initMetadataForInterface(MutableIterable, 'MutableIterable', VOID, VOID, [Iterable]);
119
- initMetadataForInterface(KtMutableList, 'MutableList', VOID, VOID, [KtList, MutableIterable, Collection]);
120
- initMetadataForInterface(KtMutableSet, 'MutableSet', VOID, VOID, [KtSet, MutableIterable, Collection]);
119
+ initMetadataForInterface(KtMutableList, 'MutableList', VOID, VOID, [KtList, Collection, MutableIterable]);
120
+ initMetadataForInterface(KtMutableSet, 'MutableSet', VOID, VOID, [KtSet, Collection, MutableIterable]);
121
121
  initMetadataForInterface(KtMutableMap, 'MutableMap', VOID, VOID, [KtMap]);
122
122
  initMetadataForCompanion(Companion_0);
123
123
  initMetadataForClass(Enum, 'Enum', VOID, VOID, [Comparable]);
@@ -136,7 +136,7 @@ if (typeof String.prototype.startsWith === 'undefined') {
136
136
  initMetadataForObject(OtherLowercase, 'OtherLowercase');
137
137
  initMetadataForInterface(Comparator, 'Comparator');
138
138
  initMetadataForClass(AbstractCollection, 'AbstractCollection', VOID, VOID, [Collection]);
139
- initMetadataForClass(AbstractMutableCollection, 'AbstractMutableCollection', VOID, AbstractCollection, [AbstractCollection, MutableIterable, Collection]);
139
+ initMetadataForClass(AbstractMutableCollection, 'AbstractMutableCollection', VOID, AbstractCollection, [AbstractCollection, Collection, MutableIterable]);
140
140
  initMetadataForClass(IteratorImpl, 'IteratorImpl');
141
141
  initMetadataForClass(ListIteratorImpl, 'ListIteratorImpl', VOID, IteratorImpl);
142
142
  initMetadataForClass(AbstractMutableList, 'AbstractMutableList', VOID, AbstractMutableCollection, [AbstractMutableCollection, KtMutableList]);