@flock/wirespec 0.14.3 → 0.14.4

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,16 @@ 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.log10 === 'undefined') {
46
41
  Math.log10 = function (x) {
47
42
  return Math.log(x) * Math.LOG10E;
48
43
  };
49
44
  }
45
+ if (typeof Math.log2 === 'undefined') {
46
+ Math.log2 = function (x) {
47
+ return Math.log(x) * Math.LOG2E;
48
+ };
49
+ }
50
50
  if (typeof Math.clz32 === 'undefined') {
51
51
  Math.clz32 = function (log, LN2) {
52
52
  return function (x) {
@@ -58,12 +58,6 @@ if (typeof Math.clz32 === 'undefined') {
58
58
  };
59
59
  }(Math.log, Math.LN2);
60
60
  }
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
- }});
66
- }
67
61
  if (typeof String.prototype.endsWith === 'undefined') {
68
62
  Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
69
63
  var subjectString = this.toString();
@@ -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;
@@ -10531,25 +10531,6 @@ function removeSurrounding(_this__u8e3s4, prefix, suffix) {
10531
10531
  }
10532
10532
  return _this__u8e3s4;
10533
10533
  }
10534
- function split_1(_this__u8e3s4, delimiters, ignoreCase, limit) {
10535
- ignoreCase = ignoreCase === VOID ? false : ignoreCase;
10536
- limit = limit === VOID ? 0 : limit;
10537
- if (delimiters.length === 1) {
10538
- return split_0(_this__u8e3s4, toString(delimiters[0]), ignoreCase, limit);
10539
- }
10540
- // Inline function 'kotlin.collections.map' call
10541
- var this_0 = asIterable(rangesDelimitedBy_0(_this__u8e3s4, delimiters, VOID, ignoreCase, limit));
10542
- // Inline function 'kotlin.collections.mapTo' call
10543
- var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
10544
- var _iterator__ex2g4s = this_0.g();
10545
- while (_iterator__ex2g4s.h()) {
10546
- var item = _iterator__ex2g4s.i();
10547
- // Inline function 'kotlin.text.split.<anonymous>' call
10548
- var tmp$ret$0 = substring(_this__u8e3s4, item);
10549
- destination.e(tmp$ret$0);
10550
- }
10551
- return destination;
10552
- }
10553
10534
  function substringAfter_0(_this__u8e3s4, delimiter, missingDelimiterValue) {
10554
10535
  missingDelimiterValue = missingDelimiterValue === VOID ? _this__u8e3s4 : missingDelimiterValue;
10555
10536
  var index = indexOf_6(_this__u8e3s4, delimiter);
@@ -10622,13 +10603,6 @@ function startsWith_2(_this__u8e3s4, prefix, ignoreCase) {
10622
10603
  return regionMatchesImpl(_this__u8e3s4, 0, prefix, 0, charSequenceLength(prefix), ignoreCase);
10623
10604
  }
10624
10605
  }
10625
- function rangesDelimitedBy_0(_this__u8e3s4, delimiters, startIndex, ignoreCase, limit) {
10626
- startIndex = startIndex === VOID ? 0 : startIndex;
10627
- ignoreCase = ignoreCase === VOID ? false : ignoreCase;
10628
- limit = limit === VOID ? 0 : limit;
10629
- requireNonNegativeLimit(limit);
10630
- return new DelimitedRangesSequence(_this__u8e3s4, startIndex, limit, rangesDelimitedBy$lambda_0(delimiters, ignoreCase));
10631
- }
10632
10606
  function lastIndexOf_0(_this__u8e3s4, char, startIndex, ignoreCase) {
10633
10607
  startIndex = startIndex === VOID ? get_lastIndex_4(_this__u8e3s4) : startIndex;
10634
10608
  ignoreCase = ignoreCase === VOID ? false : ignoreCase;
@@ -10697,6 +10671,32 @@ function lastIndexOfAny(_this__u8e3s4, chars, startIndex, ignoreCase) {
10697
10671
  while (0 <= inductionVariable);
10698
10672
  return -1;
10699
10673
  }
10674
+ function split_1(_this__u8e3s4, delimiters, ignoreCase, limit) {
10675
+ ignoreCase = ignoreCase === VOID ? false : ignoreCase;
10676
+ limit = limit === VOID ? 0 : limit;
10677
+ if (delimiters.length === 1) {
10678
+ return split_0(_this__u8e3s4, toString(delimiters[0]), ignoreCase, limit);
10679
+ }
10680
+ // Inline function 'kotlin.collections.map' call
10681
+ var this_0 = asIterable(rangesDelimitedBy_0(_this__u8e3s4, delimiters, VOID, ignoreCase, limit));
10682
+ // Inline function 'kotlin.collections.mapTo' call
10683
+ var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
10684
+ var _iterator__ex2g4s = this_0.g();
10685
+ while (_iterator__ex2g4s.h()) {
10686
+ var item = _iterator__ex2g4s.i();
10687
+ // Inline function 'kotlin.text.split.<anonymous>' call
10688
+ var tmp$ret$0 = substring(_this__u8e3s4, item);
10689
+ destination.e(tmp$ret$0);
10690
+ }
10691
+ return destination;
10692
+ }
10693
+ function rangesDelimitedBy_0(_this__u8e3s4, delimiters, startIndex, ignoreCase, limit) {
10694
+ startIndex = startIndex === VOID ? 0 : startIndex;
10695
+ ignoreCase = ignoreCase === VOID ? false : ignoreCase;
10696
+ limit = limit === VOID ? 0 : limit;
10697
+ requireNonNegativeLimit(limit);
10698
+ return new DelimitedRangesSequence(_this__u8e3s4, startIndex, limit, rangesDelimitedBy$lambda_0(delimiters, ignoreCase));
10699
+ }
10700
10700
  function iterator$1($this_iterator) {
10701
10701
  this.lh_1 = $this_iterator;
10702
10702
  CharIterator.call(this);