git-semver-tagger 1.6.4 → 1.7.0

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.
@@ -10,20 +10,18 @@
10
10
  var charSequenceLength = kotlin_kotlin.$_$.r8;
11
11
  var charSequenceGet = kotlin_kotlin.$_$.q8;
12
12
  var digitToIntOrNull = kotlin_kotlin.$_$.pb;
13
- var emptyList = kotlin_kotlin.$_$.t5;
14
- var VOID = kotlin_kotlin.$_$.f;
15
- var toString = kotlin_kotlin.$_$.fa;
16
13
  var protoOf = kotlin_kotlin.$_$.ba;
17
- var getStringHashCode = kotlin_kotlin.$_$.z8;
18
- var hashCode = kotlin_kotlin.$_$.a9;
19
- var THROW_CCE = kotlin_kotlin.$_$.de;
20
- var equals = kotlin_kotlin.$_$.u8;
21
14
  var initMetadataForClass = kotlin_kotlin.$_$.b9;
15
+ var VOID = kotlin_kotlin.$_$.f;
22
16
  var enumEntries = kotlin_kotlin.$_$.g8;
23
17
  var Enum = kotlin_kotlin.$_$.vd;
18
+ var listOf = kotlin_kotlin.$_$.p6;
19
+ var getStringHashCode = kotlin_kotlin.$_$.z8;
20
+ var THROW_CCE = kotlin_kotlin.$_$.de;
24
21
  var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.j;
25
22
  var isCharSequence = kotlin_kotlin.$_$.l9;
26
23
  var trim = kotlin_kotlin.$_$.ld;
24
+ var toString = kotlin_kotlin.$_$.fa;
27
25
  var Companion_instance = kotlin_kotlin.$_$.z3;
28
26
  var get = kotlin_kotlin.$_$.ub;
29
27
  var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.y1;
@@ -39,12 +37,14 @@
39
37
  var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.s;
40
38
  var joinToString = kotlin_kotlin.$_$.f6;
41
39
  var initMetadataForObject = kotlin_kotlin.$_$.g9;
40
+ var hashCode = kotlin_kotlin.$_$.a9;
41
+ var equals = kotlin_kotlin.$_$.u8;
42
42
  var Defaults_getInstance = kotlin_com_zegreatrob_tools_digger_core.$_$.a;
43
43
  var initMetadataForCompanion = kotlin_kotlin.$_$.c9;
44
44
  var toString_0 = kotlin_kotlin.$_$.df;
45
+ var emptyList = kotlin_kotlin.$_$.t5;
45
46
  //endregion
46
47
  //region block: pre-declaration
47
- initMetadataForClass(VersionResult, 'VersionResult');
48
48
  initMetadataForClass(SnapshotReason, 'SnapshotReason', VOID, Enum);
49
49
  initMetadataForClass(SnapshotReason$DIRTY, 'DIRTY', VOID, SnapshotReason);
50
50
  initMetadataForClass(SnapshotReason$AHEAD, 'AHEAD', VOID, SnapshotReason);
@@ -57,6 +57,7 @@
57
57
  initMetadataForClass(ChangeType$Minor, 'Minor', VOID, ChangeType);
58
58
  initMetadataForClass(ChangeType$Patch, 'Patch', VOID, ChangeType);
59
59
  initMetadataForClass(ChangeType$None, 'None', VOID, ChangeType);
60
+ initMetadataForClass(FailureVersionReasons, 'FailureVersionReasons', VOID, Enum);
60
61
  initMetadataForObject(TagErrors, 'TagErrors');
61
62
  initMetadataForClass(TagResult, 'TagResult');
62
63
  initMetadataForObject(Success, 'Success', VOID, TagResult);
@@ -65,6 +66,8 @@
65
66
  initMetadataForObject(Defaults, 'Defaults');
66
67
  initMetadataForCompanion(Companion);
67
68
  initMetadataForClass(VersionRegex, 'VersionRegex');
69
+ initMetadataForClass(Success_0, 'Success');
70
+ initMetadataForClass(Failure, 'Failure');
68
71
  //endregion
69
72
  function asSemverComponents(_this__u8e3s4) {
70
73
  // Inline function 'kotlin.collections.map' call
@@ -105,69 +108,44 @@
105
108
  // Inline function 'kotlin.js.asDynamic' call
106
109
  return _this__u8e3s4.substring(startIndex);
107
110
  }
108
- function VersionResult(version, snapshotReasons) {
109
- snapshotReasons = snapshotReasons === VOID ? emptyList() : snapshotReasons;
110
- this.t1m_1 = version;
111
- this.u1m_1 = snapshotReasons;
112
- }
113
- protoOf(VersionResult).toString = function () {
114
- return 'VersionResult(version=' + this.t1m_1 + ', snapshotReasons=' + toString(this.u1m_1) + ')';
115
- };
116
- protoOf(VersionResult).hashCode = function () {
117
- var result = getStringHashCode(this.t1m_1);
118
- result = imul(result, 31) + hashCode(this.u1m_1) | 0;
119
- return result;
120
- };
121
- protoOf(VersionResult).equals = function (other) {
122
- if (this === other)
123
- return true;
124
- if (!(other instanceof VersionResult))
125
- return false;
126
- var tmp0_other_with_cast = other instanceof VersionResult ? other : THROW_CCE();
127
- if (!(this.t1m_1 === tmp0_other_with_cast.t1m_1))
128
- return false;
129
- if (!equals(this.u1m_1, tmp0_other_with_cast.u1m_1))
130
- return false;
131
- return true;
132
- };
133
111
  function SnapshotReason$DIRTY() {
134
112
  SnapshotReason.call(this, 'DIRTY', 0);
135
113
  SnapshotReason_DIRTY_instance = this;
136
114
  }
137
- protoOf(SnapshotReason$DIRTY).x1m = function (_this__u8e3s4) {
138
- return !_this__u8e3s4.y1m_1.f1m_1;
115
+ protoOf(SnapshotReason$DIRTY).v1m = function (_this__u8e3s4) {
116
+ return !_this__u8e3s4.w1m_1.f1m_1;
139
117
  };
140
118
  var SnapshotReason_DIRTY_instance;
141
119
  function SnapshotReason$AHEAD() {
142
120
  SnapshotReason.call(this, 'AHEAD', 1);
143
121
  SnapshotReason_AHEAD_instance = this;
144
122
  }
145
- protoOf(SnapshotReason$AHEAD).x1m = function (_this__u8e3s4) {
146
- return !(_this__u8e3s4.y1m_1.g1m_1 === 0);
123
+ protoOf(SnapshotReason$AHEAD).v1m = function (_this__u8e3s4) {
124
+ return !(_this__u8e3s4.w1m_1.g1m_1 === 0);
147
125
  };
148
126
  var SnapshotReason_AHEAD_instance;
149
127
  function SnapshotReason$BEHIND() {
150
128
  SnapshotReason.call(this, 'BEHIND', 2);
151
129
  SnapshotReason_BEHIND_instance = this;
152
130
  }
153
- protoOf(SnapshotReason$BEHIND).x1m = function (_this__u8e3s4) {
154
- return !(_this__u8e3s4.y1m_1.h1m_1 === 0);
131
+ protoOf(SnapshotReason$BEHIND).v1m = function (_this__u8e3s4) {
132
+ return !(_this__u8e3s4.w1m_1.h1m_1 === 0);
155
133
  };
156
134
  var SnapshotReason_BEHIND_instance;
157
135
  function SnapshotReason$NOT_RELEASE_BRANCH() {
158
136
  SnapshotReason.call(this, 'NOT_RELEASE_BRANCH', 3);
159
137
  SnapshotReason_NOT_RELEASE_BRANCH_instance = this;
160
138
  }
161
- protoOf(SnapshotReason$NOT_RELEASE_BRANCH).x1m = function (_this__u8e3s4) {
162
- return !(_this__u8e3s4.y1m_1.i1m_1 === _this__u8e3s4.z1m_1);
139
+ protoOf(SnapshotReason$NOT_RELEASE_BRANCH).v1m = function (_this__u8e3s4) {
140
+ return !(_this__u8e3s4.w1m_1.i1m_1 === _this__u8e3s4.x1m_1);
163
141
  };
164
142
  var SnapshotReason_NOT_RELEASE_BRANCH_instance;
165
143
  function SnapshotReason$NO_NEW_VERSION() {
166
144
  SnapshotReason.call(this, 'NO_NEW_VERSION', 4);
167
145
  SnapshotReason_NO_NEW_VERSION_instance = this;
168
146
  }
169
- protoOf(SnapshotReason$NO_NEW_VERSION).x1m = function (_this__u8e3s4) {
170
- return _this__u8e3s4.a1n_1 === _this__u8e3s4.b1n_1;
147
+ protoOf(SnapshotReason$NO_NEW_VERSION).v1m = function (_this__u8e3s4) {
148
+ return _this__u8e3s4.y1m_1 === _this__u8e3s4.z1m_1;
171
149
  };
172
150
  var SnapshotReason_NO_NEW_VERSION_instance;
173
151
  function values() {
@@ -193,46 +171,52 @@
193
171
  function SnapshotReason(name, ordinal) {
194
172
  Enum.call(this, name, ordinal);
195
173
  }
196
- protoOf(SnapshotReason).e1n = function (check) {
197
- return this.x1m(check);
174
+ protoOf(SnapshotReason).c1n = function (check) {
175
+ return this.v1m(check);
198
176
  };
199
177
  function calculateNextVersion(_this__u8e3s4, implicitPatch, versionRegex, releaseBranch) {
178
+ var gitStatus = _this__u8e3s4.l1n_1.d1m();
179
+ // Inline function 'kotlin.text.isEmpty' call
180
+ var this_0 = gitStatus.j1m_1;
181
+ if (charSequenceLength(this_0) === 0) {
182
+ return new Failure(listOf(FailureVersionReasons_NoRemote_getInstance()));
183
+ }
200
184
  var tmp0_elvis_lhs = lastVersionAndTag(_this__u8e3s4);
201
185
  var tmp;
202
186
  if (tmp0_elvis_lhs == null) {
203
- return new VersionResult('0.0.0');
187
+ return new Failure(listOf(FailureVersionReasons_NoTagsExist_getInstance()));
204
188
  } else {
205
189
  tmp = tmp0_elvis_lhs;
206
190
  }
207
191
  var _destruct__k2r9zo = tmp;
208
192
  var previousVersionNumber = _destruct__k2r9zo.qa();
209
193
  var lastTagDescription = _destruct__k2r9zo.ra();
210
- var incrementComponent = findAppropriateIncrement(_this__u8e3s4.n1n_1, lastTagDescription, implicitPatch, versionRegex);
211
- var tmp2_elvis_lhs = incrementComponent == null ? null : incrementComponent.r1n(asSemverComponents(previousVersionNumber));
194
+ var incrementComponent = findAppropriateIncrement(_this__u8e3s4.l1n_1, lastTagDescription, implicitPatch, versionRegex);
195
+ var tmp2_elvis_lhs = incrementComponent == null ? null : incrementComponent.p1n(asSemverComponents(previousVersionNumber));
212
196
  var currentVersionNumber = tmp2_elvis_lhs == null ? previousVersionNumber : tmp2_elvis_lhs;
213
- var reasonsToUseSnapshot = snapshotReasons(_this__u8e3s4, releaseBranch, currentVersionNumber, previousVersionNumber);
197
+ var reasonsToUseSnapshot = snapshotReasons(releaseBranch, currentVersionNumber, previousVersionNumber, gitStatus);
214
198
  var tmp_0;
215
199
  if (reasonsToUseSnapshot.m()) {
216
- tmp_0 = new VersionResult(currentVersionNumber);
200
+ tmp_0 = new Success_0(currentVersionNumber);
217
201
  } else {
218
- tmp_0 = new VersionResult(currentVersionNumber + '-SNAPSHOT', reasonsToUseSnapshot);
202
+ tmp_0 = new Success_0(currentVersionNumber + '-SNAPSHOT', reasonsToUseSnapshot);
219
203
  }
220
204
  return tmp_0;
221
205
  }
222
206
  function StatusCheck(gitStatus, releaseBranch, currentVersionNumber, previousVersionNumber) {
223
- this.y1m_1 = gitStatus;
224
- this.z1m_1 = releaseBranch;
225
- this.a1n_1 = currentVersionNumber;
226
- this.b1n_1 = previousVersionNumber;
207
+ this.w1m_1 = gitStatus;
208
+ this.x1m_1 = releaseBranch;
209
+ this.y1m_1 = currentVersionNumber;
210
+ this.z1m_1 = previousVersionNumber;
227
211
  }
228
212
  protoOf(StatusCheck).toString = function () {
229
- return 'StatusCheck(gitStatus=' + this.y1m_1.toString() + ', releaseBranch=' + this.z1m_1 + ', currentVersionNumber=' + this.a1n_1 + ', previousVersionNumber=' + this.b1n_1 + ')';
213
+ return 'StatusCheck(gitStatus=' + this.w1m_1.toString() + ', releaseBranch=' + this.x1m_1 + ', currentVersionNumber=' + this.y1m_1 + ', previousVersionNumber=' + this.z1m_1 + ')';
230
214
  };
231
215
  protoOf(StatusCheck).hashCode = function () {
232
- var result = this.y1m_1.hashCode();
216
+ var result = this.w1m_1.hashCode();
217
+ result = imul(result, 31) + getStringHashCode(this.x1m_1) | 0;
218
+ result = imul(result, 31) + getStringHashCode(this.y1m_1) | 0;
233
219
  result = imul(result, 31) + getStringHashCode(this.z1m_1) | 0;
234
- result = imul(result, 31) + getStringHashCode(this.a1n_1) | 0;
235
- result = imul(result, 31) + getStringHashCode(this.b1n_1) | 0;
236
220
  return result;
237
221
  };
238
222
  protoOf(StatusCheck).equals = function (other) {
@@ -241,13 +225,13 @@
241
225
  if (!(other instanceof StatusCheck))
242
226
  return false;
243
227
  var tmp0_other_with_cast = other instanceof StatusCheck ? other : THROW_CCE();
244
- if (!this.y1m_1.equals(tmp0_other_with_cast.y1m_1))
228
+ if (!this.w1m_1.equals(tmp0_other_with_cast.w1m_1))
245
229
  return false;
246
- if (!(this.z1m_1 === tmp0_other_with_cast.z1m_1))
230
+ if (!(this.x1m_1 === tmp0_other_with_cast.x1m_1))
247
231
  return false;
248
- if (!(this.a1n_1 === tmp0_other_with_cast.a1n_1))
232
+ if (!(this.y1m_1 === tmp0_other_with_cast.y1m_1))
249
233
  return false;
250
- if (!(this.b1n_1 === tmp0_other_with_cast.b1n_1))
234
+ if (!(this.z1m_1 === tmp0_other_with_cast.z1m_1))
251
235
  return false;
252
236
  return true;
253
237
  };
@@ -255,7 +239,7 @@
255
239
  ChangeType.call(this, 'Major', 0, 3);
256
240
  ChangeType_Major_instance = this;
257
241
  }
258
- protoOf(ChangeType$Major).r1n = function (components) {
242
+ protoOf(ChangeType$Major).p1n = function (components) {
259
243
  // Inline function 'kotlin.collections.component1' call
260
244
  var major = components.t(0);
261
245
  return '' + (major + 1 | 0) + '.0.0';
@@ -265,7 +249,7 @@
265
249
  ChangeType.call(this, 'Minor', 1, 2);
266
250
  ChangeType_Minor_instance = this;
267
251
  }
268
- protoOf(ChangeType$Minor).r1n = function (components) {
252
+ protoOf(ChangeType$Minor).p1n = function (components) {
269
253
  // Inline function 'kotlin.collections.component1' call
270
254
  var major = components.t(0);
271
255
  // Inline function 'kotlin.collections.component2' call
@@ -277,7 +261,7 @@
277
261
  ChangeType.call(this, 'Patch', 2, 1);
278
262
  ChangeType_Patch_instance = this;
279
263
  }
280
- protoOf(ChangeType$Patch).r1n = function (components) {
264
+ protoOf(ChangeType$Patch).p1n = function (components) {
281
265
  // Inline function 'kotlin.collections.component1' call
282
266
  var major = components.t(0);
283
267
  // Inline function 'kotlin.collections.component2' call
@@ -291,7 +275,7 @@
291
275
  ChangeType.call(this, 'None', 3, 0);
292
276
  ChangeType_None_instance = this;
293
277
  }
294
- protoOf(ChangeType$None).r1n = function (components) {
278
+ protoOf(ChangeType$None).p1n = function (components) {
295
279
  // Inline function 'kotlin.collections.component1' call
296
280
  var major = components.t(0);
297
281
  // Inline function 'kotlin.collections.component2' call
@@ -313,7 +297,7 @@
313
297
  }
314
298
  function ChangeType(name, ordinal, priority) {
315
299
  Enum.call(this, name, ordinal);
316
- this.q1n_1 = priority;
300
+ this.o1n_1 = priority;
317
301
  }
318
302
  function findAppropriateIncrement(gitAdapter, previousTag, implicitPatch, minorRegex) {
319
303
  // Inline function 'kotlin.also' call
@@ -344,10 +328,10 @@
344
328
  var tmp0_elvis_lhs_0 = accumulator;
345
329
  return tmp0_elvis_lhs_0 == null ? implicitPatch ? ChangeType_Patch_getInstance() : ChangeType_None_getInstance() : tmp0_elvis_lhs_0;
346
330
  }
347
- function snapshotReasons(_this__u8e3s4, releaseBranch, currentVersionNumber, previousVersionNumber) {
331
+ function snapshotReasons(releaseBranch, currentVersionNumber, previousVersionNumber, gitStatus) {
348
332
  // Inline function 'kotlin.let' call
349
333
  // Inline function 'com.zegreatrob.tools.tagger.core.snapshotReasons.<anonymous>' call
350
- var statusCheck = new StatusCheck(_this__u8e3s4.n1n_1.d1m(), releaseBranch, currentVersionNumber, previousVersionNumber);
334
+ var statusCheck = new StatusCheck(gitStatus, releaseBranch, currentVersionNumber, previousVersionNumber);
351
335
  // Inline function 'kotlin.collections.filter' call
352
336
  var tmp0 = get_entries();
353
337
  // Inline function 'kotlin.collections.filterTo' call
@@ -356,14 +340,14 @@
356
340
  while (_iterator__ex2g4s.q()) {
357
341
  var element = _iterator__ex2g4s.r();
358
342
  // Inline function 'com.zegreatrob.tools.tagger.core.snapshotReasons.<anonymous>.<anonymous>' call
359
- if (element.e1n(statusCheck)) {
343
+ if (element.c1n(statusCheck)) {
360
344
  destination.e(element);
361
345
  }
362
346
  }
363
347
  return destination;
364
348
  }
365
349
  function highestPriority(left, right) {
366
- return left == null ? right : right == null ? left : left.q1n_1 > right.q1n_1 ? left : right;
350
+ return left == null ? right : right == null ? left : left.o1n_1 > right.o1n_1 ? left : right;
367
351
  }
368
352
  function changeType(_this__u8e3s4, versionRegex) {
369
353
  // Inline function 'kotlin.text.trim' call
@@ -373,20 +357,20 @@
373
357
  }
374
358
  function changeType_0(_this__u8e3s4, message) {
375
359
  var tmp;
376
- var tmp0_safe_receiver = _this__u8e3s4.i1o_1;
360
+ var tmp0_safe_receiver = _this__u8e3s4.g1o_1;
377
361
  if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.zc(message)) === true) {
378
- tmp = findMatchType(message, _this__u8e3s4.i1o_1);
362
+ tmp = findMatchType(message, _this__u8e3s4.g1o_1);
379
363
  } else {
380
- if (_this__u8e3s4.h1o_1.zc(message)) {
364
+ if (_this__u8e3s4.f1o_1.zc(message)) {
381
365
  tmp = ChangeType_Major_getInstance();
382
366
  } else {
383
- if (_this__u8e3s4.g1o_1.zc(message)) {
367
+ if (_this__u8e3s4.e1o_1.zc(message)) {
384
368
  tmp = ChangeType_Minor_getInstance();
385
369
  } else {
386
- if (_this__u8e3s4.f1o_1.zc(message)) {
370
+ if (_this__u8e3s4.d1o_1.zc(message)) {
387
371
  tmp = ChangeType_Patch_getInstance();
388
372
  } else {
389
- if (_this__u8e3s4.e1o_1.zc(message)) {
373
+ if (_this__u8e3s4.c1o_1.zc(message)) {
390
374
  tmp = ChangeType_None_getInstance();
391
375
  } else {
392
376
  tmp = null;
@@ -470,8 +454,30 @@
470
454
  ChangeType_initEntries();
471
455
  return ChangeType_None_instance;
472
456
  }
457
+ var FailureVersionReasons_NoRemote_instance;
458
+ var FailureVersionReasons_NoTagsExist_instance;
459
+ var FailureVersionReasons_entriesInitialized;
460
+ function FailureVersionReasons_initEntries() {
461
+ if (FailureVersionReasons_entriesInitialized)
462
+ return Unit_instance;
463
+ FailureVersionReasons_entriesInitialized = true;
464
+ FailureVersionReasons_NoRemote_instance = new FailureVersionReasons('NoRemote', 0, 'repository has no remote.');
465
+ FailureVersionReasons_NoTagsExist_instance = new FailureVersionReasons('NoTagsExist', 1, 'repository has no tags.\nIf this is a new repository, use `tag` to set the initial version.');
466
+ }
467
+ function FailureVersionReasons(name, ordinal, message) {
468
+ Enum.call(this, name, ordinal);
469
+ this.j1o_1 = message;
470
+ }
471
+ function FailureVersionReasons_NoRemote_getInstance() {
472
+ FailureVersionReasons_initEntries();
473
+ return FailureVersionReasons_NoRemote_instance;
474
+ }
475
+ function FailureVersionReasons_NoTagsExist_getInstance() {
476
+ FailureVersionReasons_initEntries();
477
+ return FailureVersionReasons_NoTagsExist_instance;
478
+ }
473
479
  function lastVersionAndTag(_this__u8e3s4) {
474
- var tmp0_elvis_lhs = _this__u8e3s4.n1n_1.e1m(0);
480
+ var tmp0_elvis_lhs = _this__u8e3s4.l1n_1.e1m(0);
475
481
  var tmp;
476
482
  if (tmp0_elvis_lhs == null) {
477
483
  return null;
@@ -508,9 +514,9 @@
508
514
  }
509
515
  function tag(_this__u8e3s4, version, releaseBranch, userName, userEmail) {
510
516
  var isSnapshot_0 = isSnapshot(version);
511
- var headTag = _this__u8e3s4.n1n_1.b1m('HEAD');
517
+ var headTag = _this__u8e3s4.l1n_1.b1m('HEAD');
512
518
  var alreadyTagged = !(headTag == null);
513
- var headBranch = _this__u8e3s4.n1n_1.d1m().i1m_1;
519
+ var headBranch = _this__u8e3s4.l1n_1.d1m().i1m_1;
514
520
  var isNotOnReleaseBranch = !(headBranch === releaseBranch);
515
521
  var tmp;
516
522
  if (isSnapshot_0 || alreadyTagged || isNotOnReleaseBranch) {
@@ -518,7 +524,7 @@
518
524
  var tmp_1 = to(isSnapshot_0, 'being snapshot');
519
525
  var tmp_2 = TagErrors_instance;
520
526
  // Inline function 'kotlin.collections.filterKeys' call
521
- var this_0 = mapOf([tmp_1, to(alreadyTagged, tmp_2.k1o(headTag == null ? null : headTag.k1m_1)), to(isNotOnReleaseBranch, TagErrors_instance.l1o(releaseBranch, headBranch))]);
527
+ var this_0 = mapOf([tmp_1, to(alreadyTagged, tmp_2.l1o(headTag == null ? null : headTag.k1m_1)), to(isNotOnReleaseBranch, TagErrors_instance.m1o(releaseBranch, headBranch))]);
522
528
  var result = LinkedHashMap_init_$Create$();
523
529
  // Inline function 'kotlin.collections.iterator' call
524
530
  var _iterator__ex2g4s = this_0.x().p();
@@ -529,12 +535,12 @@
529
535
  result.m2(entry.y(), entry.z());
530
536
  }
531
537
  }
532
- tmp = new Error_0(tmp_0.m1o(joinToString(result.g2(), ', ')));
538
+ tmp = new Error_0(tmp_0.n1o(joinToString(result.g2(), ', ')));
533
539
  } else {
534
540
  // Inline function 'kotlin.runCatching' call
535
541
  var tmp_3;
536
542
  try {
537
- _this__u8e3s4.n1n_1.z1l(version, 'HEAD', userName, userEmail);
543
+ _this__u8e3s4.l1n_1.z1l(version, 'HEAD', userName, userEmail);
538
544
  // Inline function 'kotlin.Companion.success' call
539
545
  tmp_3 = _Result___init__impl__xyqfz8(Unit_instance);
540
546
  } catch ($p) {
@@ -555,7 +561,7 @@
555
561
  var tmp_6 = _Result___get_value__impl__bjfvqg(this_1);
556
562
  // Inline function 'com.zegreatrob.tools.tagger.core.tag.<anonymous>' call
557
563
  (tmp_6 == null ? true : !(tmp_6 == null)) || THROW_CCE();
558
- _this__u8e3s4.n1n_1.a1m();
564
+ _this__u8e3s4.l1n_1.a1m();
559
565
  // Inline function 'kotlin.Companion.success' call
560
566
  var value = Success_getInstance();
561
567
  tmp_5 = _Result___init__impl__xyqfz8(value);
@@ -582,15 +588,15 @@
582
588
  return contains(_this__u8e3s4, 'SNAPSHOT');
583
589
  }
584
590
  function TagErrors() {
585
- this.j1o_1 = 'being snapshot';
591
+ this.k1o_1 = 'being snapshot';
586
592
  }
587
- protoOf(TagErrors).m1o = function (messages) {
593
+ protoOf(TagErrors).n1o = function (messages) {
588
594
  return 'skipping tag due to ' + messages;
589
595
  };
590
- protoOf(TagErrors).k1o = function (headTag) {
596
+ protoOf(TagErrors).l1o = function (headTag) {
591
597
  return 'already tagged ' + headTag;
592
598
  };
593
- protoOf(TagErrors).l1o = function (releaseBranch, headBranch) {
599
+ protoOf(TagErrors).m1o = function (releaseBranch, headBranch) {
594
600
  return 'not on release branch ' + releaseBranch + ' - branch was ' + headBranch;
595
601
  };
596
602
  var TagErrors_instance;
@@ -623,13 +629,13 @@
623
629
  }
624
630
  function Error_0(message) {
625
631
  TagResult.call(this);
626
- this.n1o_1 = message;
632
+ this.o1o_1 = message;
627
633
  }
628
634
  protoOf(Error_0).toString = function () {
629
- return 'Error(message=' + this.n1o_1 + ')';
635
+ return 'Error(message=' + this.o1o_1 + ')';
630
636
  };
631
637
  protoOf(Error_0).hashCode = function () {
632
- return getStringHashCode(this.n1o_1);
638
+ return getStringHashCode(this.o1o_1);
633
639
  };
634
640
  protoOf(Error_0).equals = function (other) {
635
641
  if (this === other)
@@ -637,20 +643,20 @@
637
643
  if (!(other instanceof Error_0))
638
644
  return false;
639
645
  var tmp0_other_with_cast = other instanceof Error_0 ? other : THROW_CCE();
640
- if (!(this.n1o_1 === tmp0_other_with_cast.n1o_1))
646
+ if (!(this.o1o_1 === tmp0_other_with_cast.o1o_1))
641
647
  return false;
642
648
  return true;
643
649
  };
644
650
  function TagResult() {
645
651
  }
646
652
  function TaggerCore(adapter) {
647
- this.n1n_1 = adapter;
653
+ this.l1n_1 = adapter;
648
654
  }
649
655
  protoOf(TaggerCore).toString = function () {
650
- return 'TaggerCore(adapter=' + toString(this.n1n_1) + ')';
656
+ return 'TaggerCore(adapter=' + toString(this.l1n_1) + ')';
651
657
  };
652
658
  protoOf(TaggerCore).hashCode = function () {
653
- return hashCode(this.n1n_1);
659
+ return hashCode(this.l1n_1);
654
660
  };
655
661
  protoOf(TaggerCore).equals = function (other) {
656
662
  if (this === other)
@@ -658,16 +664,16 @@
658
664
  if (!(other instanceof TaggerCore))
659
665
  return false;
660
666
  var tmp0_other_with_cast = other instanceof TaggerCore ? other : THROW_CCE();
661
- if (!equals(this.n1n_1, tmp0_other_with_cast.n1n_1))
667
+ if (!equals(this.l1n_1, tmp0_other_with_cast.l1n_1))
662
668
  return false;
663
669
  return true;
664
670
  };
665
671
  function Defaults() {
666
672
  Defaults_instance = this;
667
- this.o1o_1 = Defaults_getInstance().q1m_1;
668
- this.p1o_1 = Defaults_getInstance().p1m_1;
669
- this.q1o_1 = Defaults_getInstance().o1m_1;
670
- this.r1o_1 = Defaults_getInstance().n1m_1;
673
+ this.p1o_1 = Defaults_getInstance().q1m_1;
674
+ this.q1o_1 = Defaults_getInstance().p1m_1;
675
+ this.r1o_1 = Defaults_getInstance().o1m_1;
676
+ this.s1o_1 = Defaults_getInstance().n1m_1;
671
677
  }
672
678
  var Defaults_instance;
673
679
  function Defaults_getInstance_0() {
@@ -676,9 +682,9 @@
676
682
  return Defaults_instance;
677
683
  }
678
684
  function Companion() {
679
- this.s1o_1 = "version regex must include groups named 'major', 'minor', 'patch', and 'none'.";
685
+ this.t1o_1 = "version regex must include groups named 'major', 'minor', 'patch', and 'none'.";
680
686
  }
681
- protoOf(Companion).t1o = function (regexPattern) {
687
+ protoOf(Companion).u1o = function (regexPattern) {
682
688
  return contains(regexPattern, '?<major>') && contains(regexPattern, '?<minor>') && contains(regexPattern, '?<patch>') && contains(regexPattern, '?<none>');
683
689
  };
684
690
  var Companion_instance_0;
@@ -686,21 +692,21 @@
686
692
  return Companion_instance_0;
687
693
  }
688
694
  function VersionRegex(none, patch, minor, major, unified) {
689
- this.e1o_1 = none;
690
- this.f1o_1 = patch;
691
- this.g1o_1 = minor;
692
- this.h1o_1 = major;
693
- this.i1o_1 = unified;
695
+ this.c1o_1 = none;
696
+ this.d1o_1 = patch;
697
+ this.e1o_1 = minor;
698
+ this.f1o_1 = major;
699
+ this.g1o_1 = unified;
694
700
  }
695
701
  protoOf(VersionRegex).toString = function () {
696
- return 'VersionRegex(none=' + this.e1o_1.toString() + ', patch=' + this.f1o_1.toString() + ', minor=' + this.g1o_1.toString() + ', major=' + this.h1o_1.toString() + ', unified=' + toString_0(this.i1o_1) + ')';
702
+ return 'VersionRegex(none=' + this.c1o_1.toString() + ', patch=' + this.d1o_1.toString() + ', minor=' + this.e1o_1.toString() + ', major=' + this.f1o_1.toString() + ', unified=' + toString_0(this.g1o_1) + ')';
697
703
  };
698
704
  protoOf(VersionRegex).hashCode = function () {
699
- var result = hashCode(this.e1o_1);
705
+ var result = hashCode(this.c1o_1);
706
+ result = imul(result, 31) + hashCode(this.d1o_1) | 0;
707
+ result = imul(result, 31) + hashCode(this.e1o_1) | 0;
700
708
  result = imul(result, 31) + hashCode(this.f1o_1) | 0;
701
- result = imul(result, 31) + hashCode(this.g1o_1) | 0;
702
- result = imul(result, 31) + hashCode(this.h1o_1) | 0;
703
- result = imul(result, 31) + (this.i1o_1 == null ? 0 : hashCode(this.i1o_1)) | 0;
709
+ result = imul(result, 31) + (this.g1o_1 == null ? 0 : hashCode(this.g1o_1)) | 0;
704
710
  return result;
705
711
  };
706
712
  protoOf(VersionRegex).equals = function (other) {
@@ -709,15 +715,65 @@
709
715
  if (!(other instanceof VersionRegex))
710
716
  return false;
711
717
  var tmp0_other_with_cast = other instanceof VersionRegex ? other : THROW_CCE();
718
+ if (!equals(this.c1o_1, tmp0_other_with_cast.c1o_1))
719
+ return false;
720
+ if (!equals(this.d1o_1, tmp0_other_with_cast.d1o_1))
721
+ return false;
712
722
  if (!equals(this.e1o_1, tmp0_other_with_cast.e1o_1))
713
723
  return false;
714
724
  if (!equals(this.f1o_1, tmp0_other_with_cast.f1o_1))
715
725
  return false;
716
726
  if (!equals(this.g1o_1, tmp0_other_with_cast.g1o_1))
717
727
  return false;
718
- if (!equals(this.h1o_1, tmp0_other_with_cast.h1o_1))
728
+ return true;
729
+ };
730
+ function VersionResult$Failure$_get_message_$lambda_nuugae(it) {
731
+ return it.j1o_1;
732
+ }
733
+ function Success_0(version, snapshotReasons) {
734
+ snapshotReasons = snapshotReasons === VOID ? emptyList() : snapshotReasons;
735
+ this.v1o_1 = version;
736
+ this.w1o_1 = snapshotReasons;
737
+ }
738
+ protoOf(Success_0).toString = function () {
739
+ return 'Success(version=' + this.v1o_1 + ', snapshotReasons=' + toString(this.w1o_1) + ')';
740
+ };
741
+ protoOf(Success_0).hashCode = function () {
742
+ var result = getStringHashCode(this.v1o_1);
743
+ result = imul(result, 31) + hashCode(this.w1o_1) | 0;
744
+ return result;
745
+ };
746
+ protoOf(Success_0).equals = function (other) {
747
+ if (this === other)
748
+ return true;
749
+ if (!(other instanceof Success_0))
750
+ return false;
751
+ var tmp0_other_with_cast = other instanceof Success_0 ? other : THROW_CCE();
752
+ if (!(this.v1o_1 === tmp0_other_with_cast.v1o_1))
753
+ return false;
754
+ if (!equals(this.w1o_1, tmp0_other_with_cast.w1o_1))
755
+ return false;
756
+ return true;
757
+ };
758
+ function Failure(reasons) {
759
+ this.x1o_1 = reasons;
760
+ }
761
+ protoOf(Failure).ma = function () {
762
+ return 'Inappropriate configuration: ' + joinToString(this.x1o_1, '\n', VOID, VOID, VOID, VOID, VersionResult$Failure$_get_message_$lambda_nuugae);
763
+ };
764
+ protoOf(Failure).toString = function () {
765
+ return 'Failure(reasons=' + toString(this.x1o_1) + ')';
766
+ };
767
+ protoOf(Failure).hashCode = function () {
768
+ return hashCode(this.x1o_1);
769
+ };
770
+ protoOf(Failure).equals = function (other) {
771
+ if (this === other)
772
+ return true;
773
+ if (!(other instanceof Failure))
719
774
  return false;
720
- if (!equals(this.i1o_1, tmp0_other_with_cast.i1o_1))
775
+ var tmp0_other_with_cast = other instanceof Failure ? other : THROW_CCE();
776
+ if (!equals(this.x1o_1, tmp0_other_with_cast.x1o_1))
721
777
  return false;
722
778
  return true;
723
779
  };
@@ -730,11 +786,13 @@
730
786
  _.$_$.a = Error_0;
731
787
  _.$_$.b = TaggerCore;
732
788
  _.$_$.c = VersionRegex;
733
- _.$_$.d = calculateNextVersion;
734
- _.$_$.e = tag;
735
- _.$_$.f = Success_getInstance;
736
- _.$_$.g = Companion_instance_0;
737
- _.$_$.h = Defaults_getInstance_0;
789
+ _.$_$.d = Failure;
790
+ _.$_$.e = Success_0;
791
+ _.$_$.f = calculateNextVersion;
792
+ _.$_$.g = tag;
793
+ _.$_$.h = Success_getInstance;
794
+ _.$_$.i = Companion_instance_0;
795
+ _.$_$.j = Defaults_getInstance_0;
738
796
  //endregion
739
797
  return _;
740
798
  }(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./tools-digger-core.js')));