git-semver-tagger 2.5.1 → 2.5.2

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.log10 === 'undefined') {
41
- Math.log10 = function (x) {
42
- return Math.log(x) * Math.LOG10E;
43
- };
44
- }
45
40
  if (typeof Math.log2 === 'undefined') {
46
41
  Math.log2 = function (x) {
47
42
  return Math.log(x) * Math.LOG2E;
@@ -58,11 +53,10 @@ if (typeof Math.clz32 === 'undefined') {
58
53
  };
59
54
  }(Math.log, Math.LN2);
60
55
  }
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
- }});
56
+ if (typeof Math.log10 === 'undefined') {
57
+ Math.log10 = function (x) {
58
+ return Math.log(x) * Math.LOG10E;
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
  (function (_) {
80
80
  'use strict';
@@ -10215,6 +10215,29 @@ if (typeof String.prototype.endsWith === 'undefined') {
10215
10215
  }
10216
10216
  return tmp;
10217
10217
  }
10218
+ function trim(_this__u8e3s4) {
10219
+ // Inline function 'kotlin.text.trim' call
10220
+ var startIndex = 0;
10221
+ var endIndex = charSequenceLength(_this__u8e3s4) - 1 | 0;
10222
+ var startFound = false;
10223
+ $l$loop: while (startIndex <= endIndex) {
10224
+ var index = !startFound ? startIndex : endIndex;
10225
+ var p0 = charSequenceGet(_this__u8e3s4, index);
10226
+ var match = isWhitespace(p0);
10227
+ if (!startFound) {
10228
+ if (!match)
10229
+ startFound = true;
10230
+ else
10231
+ startIndex = startIndex + 1 | 0;
10232
+ } else {
10233
+ if (!match)
10234
+ break $l$loop;
10235
+ else
10236
+ endIndex = endIndex - 1 | 0;
10237
+ }
10238
+ }
10239
+ return charSequenceSubSequence(_this__u8e3s4, startIndex, endIndex + 1 | 0);
10240
+ }
10218
10241
  function calcNext_1($this) {
10219
10242
  if ($this.og_1 < 0) {
10220
10243
  $this.mg_1 = 0;
@@ -10425,29 +10448,6 @@ if (typeof String.prototype.endsWith === 'undefined') {
10425
10448
  return null;
10426
10449
  }
10427
10450
  }
10428
- function trim(_this__u8e3s4) {
10429
- // Inline function 'kotlin.text.trim' call
10430
- var startIndex = 0;
10431
- var endIndex = charSequenceLength(_this__u8e3s4) - 1 | 0;
10432
- var startFound = false;
10433
- $l$loop: while (startIndex <= endIndex) {
10434
- var index = !startFound ? startIndex : endIndex;
10435
- var p0 = charSequenceGet(_this__u8e3s4, index);
10436
- var match = isWhitespace(p0);
10437
- if (!startFound) {
10438
- if (!match)
10439
- startFound = true;
10440
- else
10441
- startIndex = startIndex + 1 | 0;
10442
- } else {
10443
- if (!match)
10444
- break $l$loop;
10445
- else
10446
- endIndex = endIndex - 1 | 0;
10447
- }
10448
- }
10449
- return charSequenceSubSequence(_this__u8e3s4, startIndex, endIndex + 1 | 0);
10450
- }
10451
10451
  function removeSurrounding(_this__u8e3s4, prefix, suffix) {
10452
10452
  if (_this__u8e3s4.length >= (charSequenceLength(prefix) + charSequenceLength(suffix) | 0) && startsWith_2(_this__u8e3s4, prefix) && endsWith_1(_this__u8e3s4, suffix)) {
10453
10453
  return substring(_this__u8e3s4, charSequenceLength(prefix), _this__u8e3s4.length - charSequenceLength(suffix) | 0);