@flock/wirespec 0.22.7 → 0.22.8

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,11 +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.log2 === 'undefined') {
41
- Math.log2 = function (x) {
42
- return Math.log(x) * Math.LOG2E;
43
- };
44
- }
45
40
  if (typeof Math.clz32 === 'undefined') {
46
41
  Math.clz32 = function (log, LN2) {
47
42
  return function (x) {
@@ -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
  //endregion
74
74
  //region block: imports
75
75
  var imul_0 = Math.imul;
@@ -951,9 +951,6 @@ function drop(_this__u8e3s4, n) {
951
951
  }
952
952
  return optimizeReadOnlyList(list);
953
953
  }
954
- function firstOrNull(_this__u8e3s4) {
955
- return _this__u8e3s4.r() ? null : _this__u8e3s4.b1(0);
956
- }
957
954
  function single_0(_this__u8e3s4) {
958
955
  var tmp;
959
956
  switch (_this__u8e3s4.c1()) {
@@ -967,6 +964,9 @@ function single_0(_this__u8e3s4) {
967
964
  }
968
965
  return tmp;
969
966
  }
967
+ function firstOrNull(_this__u8e3s4) {
968
+ return _this__u8e3s4.r() ? null : _this__u8e3s4.b1(0);
969
+ }
970
970
  function single_1(_this__u8e3s4) {
971
971
  if (isInterface(_this__u8e3s4, KtList))
972
972
  return single_0(_this__u8e3s4);