git-semver-tagger 1.8.31 → 1.8.34
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.
- package/kotlin/clikt-clikt-mordant.js +98 -98
- package/kotlin/clikt-clikt-mordant.js.map +1 -1
- package/kotlin/clikt-clikt.js +2215 -2218
- package/kotlin/clikt-clikt.js.map +1 -1
- package/kotlin/colormath-root-colormath.js +485 -485
- package/kotlin/colormath-root-colormath.js.map +1 -1
- package/kotlin/command-line-tools-tagger-cli.js +124 -124
- package/kotlin/command-line-tools-tagger-cli.js.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib.js +3989 -3608
- package/kotlin/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1953 -1952
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1733 -1733
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/kotlin/mordant-mordant.js +1758 -1758
- package/kotlin/mordant-mordant.js.map +1 -1
- package/kotlin/tools-cli-tools.js +3 -3
- package/kotlin/tools-digger-core.js +8 -8
- package/kotlin/tools-git-adapter.js +120 -120
- package/kotlin/tools-git-adapter.js.map +1 -1
- package/kotlin/tools-tagger-core.js +160 -160
- package/kotlin/tools-tagger-core.js.map +1 -1
- package/kotlin/tools-tagger-json.js +138 -138
- package/package.json +1 -1
|
@@ -2,47 +2,47 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
//region block: imports
|
|
4
4
|
var imul = Math.imul;
|
|
5
|
-
var split = kotlin_kotlin.$_$.
|
|
5
|
+
var split = kotlin_kotlin.$_$.mc;
|
|
6
6
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.t4;
|
|
7
7
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.f;
|
|
8
|
-
var toInt = kotlin_kotlin.$_$.
|
|
8
|
+
var toInt = kotlin_kotlin.$_$.zc;
|
|
9
9
|
var Unit_instance = kotlin_kotlin.$_$.v3;
|
|
10
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
11
|
-
var charSequenceGet = kotlin_kotlin.$_$.
|
|
12
|
-
var digitToIntOrNull = kotlin_kotlin.$_$.
|
|
13
|
-
var substring = kotlin_kotlin.$_$.
|
|
10
|
+
var charSequenceLength = kotlin_kotlin.$_$.w8;
|
|
11
|
+
var charSequenceGet = kotlin_kotlin.$_$.v8;
|
|
12
|
+
var digitToIntOrNull = kotlin_kotlin.$_$.qb;
|
|
13
|
+
var substring = kotlin_kotlin.$_$.sc;
|
|
14
14
|
var listOf = kotlin_kotlin.$_$.f6;
|
|
15
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
16
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
15
|
+
var protoOf = kotlin_kotlin.$_$.da;
|
|
16
|
+
var initMetadataForClass = kotlin_kotlin.$_$.f9;
|
|
17
17
|
var VOID = kotlin_kotlin.$_$.c;
|
|
18
18
|
var enumEntries = kotlin_kotlin.$_$.s7;
|
|
19
|
-
var Enum = kotlin_kotlin.$_$.
|
|
19
|
+
var Enum = kotlin_kotlin.$_$.td;
|
|
20
20
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.g;
|
|
21
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
22
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
23
|
-
var isCharSequence = kotlin_kotlin.$_$.
|
|
24
|
-
var trim = kotlin_kotlin.$_$.
|
|
25
|
-
var toString = kotlin_kotlin.$_$.
|
|
21
|
+
var getStringHashCode = kotlin_kotlin.$_$.d9;
|
|
22
|
+
var THROW_CCE = kotlin_kotlin.$_$.be;
|
|
23
|
+
var isCharSequence = kotlin_kotlin.$_$.p9;
|
|
24
|
+
var trim = kotlin_kotlin.$_$.kd;
|
|
25
|
+
var toString = kotlin_kotlin.$_$.fa;
|
|
26
26
|
var Companion_instance = kotlin_kotlin.$_$.q3;
|
|
27
|
-
var get = kotlin_kotlin.$_$.
|
|
27
|
+
var get = kotlin_kotlin.$_$.vb;
|
|
28
28
|
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.o1;
|
|
29
|
-
var createFailure = kotlin_kotlin.$_$.
|
|
29
|
+
var createFailure = kotlin_kotlin.$_$.qe;
|
|
30
30
|
var _Result___get_isFailure__impl__jpiriv = kotlin_kotlin.$_$.q1;
|
|
31
31
|
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.s1;
|
|
32
|
-
var substringBefore = kotlin_kotlin.$_$.
|
|
33
|
-
var contains = kotlin_kotlin.$_$.
|
|
34
|
-
var to = kotlin_kotlin.$_$.
|
|
32
|
+
var substringBefore = kotlin_kotlin.$_$.qc;
|
|
33
|
+
var contains = kotlin_kotlin.$_$.ob;
|
|
34
|
+
var to = kotlin_kotlin.$_$.bf;
|
|
35
35
|
var _Result___get_isSuccess__impl__sndoy8 = kotlin_kotlin.$_$.r1;
|
|
36
36
|
var Result__exceptionOrNull_impl_p6xea9 = kotlin_kotlin.$_$.p1;
|
|
37
37
|
var mapOf = kotlin_kotlin.$_$.j6;
|
|
38
38
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.p;
|
|
39
39
|
var joinToString = kotlin_kotlin.$_$.v5;
|
|
40
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
41
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
42
|
-
var equals = kotlin_kotlin.$_$.
|
|
40
|
+
var initMetadataForObject = kotlin_kotlin.$_$.k9;
|
|
41
|
+
var hashCode = kotlin_kotlin.$_$.e9;
|
|
42
|
+
var equals = kotlin_kotlin.$_$.z8;
|
|
43
43
|
var Defaults_getInstance = kotlin_com_zegreatrob_tools_digger_core.$_$.a;
|
|
44
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
45
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
44
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.g9;
|
|
45
|
+
var toString_0 = kotlin_kotlin.$_$.af;
|
|
46
46
|
var emptyList = kotlin_kotlin.$_$.j5;
|
|
47
47
|
//endregion
|
|
48
48
|
//region block: pre-declaration
|
|
@@ -75,14 +75,14 @@
|
|
|
75
75
|
var this_0 = split(stripPrefix(_this__u8e3s4), ['.']);
|
|
76
76
|
// Inline function 'kotlin.collections.mapTo' call
|
|
77
77
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
78
|
-
var _iterator__ex2g4s = this_0.
|
|
79
|
-
while (_iterator__ex2g4s.
|
|
80
|
-
var item = _iterator__ex2g4s.
|
|
78
|
+
var _iterator__ex2g4s = this_0.t();
|
|
79
|
+
while (_iterator__ex2g4s.u()) {
|
|
80
|
+
var item = _iterator__ex2g4s.v();
|
|
81
81
|
var tmp$ret$0 = toInt(item);
|
|
82
|
-
destination.
|
|
82
|
+
destination.x(tmp$ret$0);
|
|
83
83
|
}
|
|
84
84
|
// Inline function 'kotlin.let' call
|
|
85
|
-
return destination.
|
|
85
|
+
return destination.f1() === 3 ? destination : null;
|
|
86
86
|
}
|
|
87
87
|
function stripPrefix(_this__u8e3s4) {
|
|
88
88
|
var tmp$ret$1;
|
|
@@ -107,11 +107,11 @@
|
|
|
107
107
|
return substring(_this__u8e3s4, startIndex);
|
|
108
108
|
}
|
|
109
109
|
function calculateNextVersion(_this__u8e3s4, implicitPatch, disableDetached, versionRegex, releaseBranch) {
|
|
110
|
-
var gitStatus = _this__u8e3s4.
|
|
110
|
+
var gitStatus = _this__u8e3s4.bm_1.rl();
|
|
111
111
|
var tmp;
|
|
112
112
|
if (disableDetached) {
|
|
113
113
|
// Inline function 'kotlin.text.isEmpty' call
|
|
114
|
-
var this_0 = gitStatus.
|
|
114
|
+
var this_0 = gitStatus.xl_1;
|
|
115
115
|
tmp = charSequenceLength(this_0) === 0;
|
|
116
116
|
} else {
|
|
117
117
|
tmp = false;
|
|
@@ -127,8 +127,8 @@
|
|
|
127
127
|
tmp_0 = tmp0_elvis_lhs;
|
|
128
128
|
}
|
|
129
129
|
var _destruct__k2r9zo = tmp_0;
|
|
130
|
-
var previousVersionNumber = _destruct__k2r9zo.
|
|
131
|
-
var lastTagDescription = _destruct__k2r9zo.
|
|
130
|
+
var previousVersionNumber = _destruct__k2r9zo.fa();
|
|
131
|
+
var lastTagDescription = _destruct__k2r9zo.ga();
|
|
132
132
|
var tmp1_elvis_lhs = asSemverComponents(previousVersionNumber);
|
|
133
133
|
var tmp_1;
|
|
134
134
|
if (tmp1_elvis_lhs == null) {
|
|
@@ -137,50 +137,50 @@
|
|
|
137
137
|
tmp_1 = tmp1_elvis_lhs;
|
|
138
138
|
}
|
|
139
139
|
var previousVersionComponents = tmp_1;
|
|
140
|
-
var incrementComponent = findAppropriateIncrement(_this__u8e3s4.
|
|
141
|
-
var tmp3_elvis_lhs = incrementComponent == null ? null : incrementComponent.
|
|
140
|
+
var incrementComponent = findAppropriateIncrement(_this__u8e3s4.bm_1, lastTagDescription, implicitPatch, versionRegex);
|
|
141
|
+
var tmp3_elvis_lhs = incrementComponent == null ? null : incrementComponent.fm(previousVersionComponents);
|
|
142
142
|
var currentVersionNumber = tmp3_elvis_lhs == null ? previousVersionNumber : tmp3_elvis_lhs;
|
|
143
143
|
var reasonsToUseSnapshot = snapshotReasons(releaseBranch, currentVersionNumber, previousVersionNumber, gitStatus);
|
|
144
|
-
return new Success_0(reasonsToUseSnapshot.
|
|
144
|
+
return new Success_0(reasonsToUseSnapshot.r() ? currentVersionNumber : currentVersionNumber + '-SNAPSHOT', reasonsToUseSnapshot);
|
|
145
145
|
}
|
|
146
146
|
function SnapshotReason$DIRTY() {
|
|
147
147
|
SnapshotReason.call(this, 'DIRTY', 0);
|
|
148
148
|
SnapshotReason_DIRTY_instance = this;
|
|
149
149
|
}
|
|
150
|
-
protoOf(SnapshotReason$DIRTY).
|
|
151
|
-
return !_this__u8e3s4.
|
|
150
|
+
protoOf(SnapshotReason$DIRTY).im = function (_this__u8e3s4) {
|
|
151
|
+
return !_this__u8e3s4.jm_1.tl_1;
|
|
152
152
|
};
|
|
153
153
|
var SnapshotReason_DIRTY_instance;
|
|
154
154
|
function SnapshotReason$AHEAD() {
|
|
155
155
|
SnapshotReason.call(this, 'AHEAD', 1);
|
|
156
156
|
SnapshotReason_AHEAD_instance = this;
|
|
157
157
|
}
|
|
158
|
-
protoOf(SnapshotReason$AHEAD).
|
|
159
|
-
return !(_this__u8e3s4.
|
|
158
|
+
protoOf(SnapshotReason$AHEAD).im = function (_this__u8e3s4) {
|
|
159
|
+
return !(_this__u8e3s4.jm_1.ul_1 === 0);
|
|
160
160
|
};
|
|
161
161
|
var SnapshotReason_AHEAD_instance;
|
|
162
162
|
function SnapshotReason$BEHIND() {
|
|
163
163
|
SnapshotReason.call(this, 'BEHIND', 2);
|
|
164
164
|
SnapshotReason_BEHIND_instance = this;
|
|
165
165
|
}
|
|
166
|
-
protoOf(SnapshotReason$BEHIND).
|
|
167
|
-
return !(_this__u8e3s4.
|
|
166
|
+
protoOf(SnapshotReason$BEHIND).im = function (_this__u8e3s4) {
|
|
167
|
+
return !(_this__u8e3s4.jm_1.vl_1 === 0);
|
|
168
168
|
};
|
|
169
169
|
var SnapshotReason_BEHIND_instance;
|
|
170
170
|
function SnapshotReason$NOT_RELEASE_BRANCH() {
|
|
171
171
|
SnapshotReason.call(this, 'NOT_RELEASE_BRANCH', 3);
|
|
172
172
|
SnapshotReason_NOT_RELEASE_BRANCH_instance = this;
|
|
173
173
|
}
|
|
174
|
-
protoOf(SnapshotReason$NOT_RELEASE_BRANCH).
|
|
175
|
-
return !(_this__u8e3s4.
|
|
174
|
+
protoOf(SnapshotReason$NOT_RELEASE_BRANCH).im = function (_this__u8e3s4) {
|
|
175
|
+
return !(_this__u8e3s4.jm_1.wl_1 === _this__u8e3s4.km_1);
|
|
176
176
|
};
|
|
177
177
|
var SnapshotReason_NOT_RELEASE_BRANCH_instance;
|
|
178
178
|
function SnapshotReason$NO_NEW_VERSION() {
|
|
179
179
|
SnapshotReason.call(this, 'NO_NEW_VERSION', 4);
|
|
180
180
|
SnapshotReason_NO_NEW_VERSION_instance = this;
|
|
181
181
|
}
|
|
182
|
-
protoOf(SnapshotReason$NO_NEW_VERSION).
|
|
183
|
-
return _this__u8e3s4.
|
|
182
|
+
protoOf(SnapshotReason$NO_NEW_VERSION).im = function (_this__u8e3s4) {
|
|
183
|
+
return _this__u8e3s4.lm_1 === _this__u8e3s4.mm_1;
|
|
184
184
|
};
|
|
185
185
|
var SnapshotReason_NO_NEW_VERSION_instance;
|
|
186
186
|
function values() {
|
|
@@ -206,16 +206,16 @@
|
|
|
206
206
|
function SnapshotReason(name, ordinal) {
|
|
207
207
|
Enum.call(this, name, ordinal);
|
|
208
208
|
}
|
|
209
|
-
protoOf(SnapshotReason).
|
|
210
|
-
return this.
|
|
209
|
+
protoOf(SnapshotReason).pm = function (check) {
|
|
210
|
+
return this.im(check);
|
|
211
211
|
};
|
|
212
212
|
function ChangeType$Major() {
|
|
213
213
|
ChangeType.call(this, 'Major', 0, 3);
|
|
214
214
|
ChangeType_Major_instance = this;
|
|
215
215
|
}
|
|
216
|
-
protoOf(ChangeType$Major).
|
|
216
|
+
protoOf(ChangeType$Major).fm = function (components) {
|
|
217
217
|
// Inline function 'kotlin.collections.component1' call
|
|
218
|
-
var major = components.
|
|
218
|
+
var major = components.e1(0);
|
|
219
219
|
return '' + (major + 1 | 0) + '.0.0';
|
|
220
220
|
};
|
|
221
221
|
var ChangeType_Major_instance;
|
|
@@ -223,11 +223,11 @@
|
|
|
223
223
|
ChangeType.call(this, 'Minor', 1, 2);
|
|
224
224
|
ChangeType_Minor_instance = this;
|
|
225
225
|
}
|
|
226
|
-
protoOf(ChangeType$Minor).
|
|
226
|
+
protoOf(ChangeType$Minor).fm = function (components) {
|
|
227
227
|
// Inline function 'kotlin.collections.component1' call
|
|
228
|
-
var major = components.
|
|
228
|
+
var major = components.e1(0);
|
|
229
229
|
// Inline function 'kotlin.collections.component2' call
|
|
230
|
-
var minor = components.
|
|
230
|
+
var minor = components.e1(1);
|
|
231
231
|
return '' + major + '.' + (minor + 1 | 0) + '.0';
|
|
232
232
|
};
|
|
233
233
|
var ChangeType_Minor_instance;
|
|
@@ -235,13 +235,13 @@
|
|
|
235
235
|
ChangeType.call(this, 'Patch', 2, 1);
|
|
236
236
|
ChangeType_Patch_instance = this;
|
|
237
237
|
}
|
|
238
|
-
protoOf(ChangeType$Patch).
|
|
238
|
+
protoOf(ChangeType$Patch).fm = function (components) {
|
|
239
239
|
// Inline function 'kotlin.collections.component1' call
|
|
240
|
-
var major = components.
|
|
240
|
+
var major = components.e1(0);
|
|
241
241
|
// Inline function 'kotlin.collections.component2' call
|
|
242
|
-
var minor = components.
|
|
242
|
+
var minor = components.e1(1);
|
|
243
243
|
// Inline function 'kotlin.collections.component3' call
|
|
244
|
-
var patch = components.
|
|
244
|
+
var patch = components.e1(2);
|
|
245
245
|
return '' + major + '.' + minor + '.' + (patch + 1 | 0);
|
|
246
246
|
};
|
|
247
247
|
var ChangeType_Patch_instance;
|
|
@@ -249,13 +249,13 @@
|
|
|
249
249
|
ChangeType.call(this, 'None', 3, 0);
|
|
250
250
|
ChangeType_None_instance = this;
|
|
251
251
|
}
|
|
252
|
-
protoOf(ChangeType$None).
|
|
252
|
+
protoOf(ChangeType$None).fm = function (components) {
|
|
253
253
|
// Inline function 'kotlin.collections.component1' call
|
|
254
|
-
var major = components.
|
|
254
|
+
var major = components.e1(0);
|
|
255
255
|
// Inline function 'kotlin.collections.component2' call
|
|
256
|
-
var minor = components.
|
|
256
|
+
var minor = components.e1(1);
|
|
257
257
|
// Inline function 'kotlin.collections.component3' call
|
|
258
|
-
var patch = components.
|
|
258
|
+
var patch = components.e1(2);
|
|
259
259
|
return '' + major + '.' + minor + '.' + patch;
|
|
260
260
|
};
|
|
261
261
|
var ChangeType_None_instance;
|
|
@@ -271,28 +271,28 @@
|
|
|
271
271
|
}
|
|
272
272
|
function ChangeType(name, ordinal, priority) {
|
|
273
273
|
Enum.call(this, name, ordinal);
|
|
274
|
-
this.
|
|
274
|
+
this.em_1 = priority;
|
|
275
275
|
}
|
|
276
276
|
function findAppropriateIncrement(gitAdapter, previousTag, implicitPatch, minorRegex) {
|
|
277
277
|
// Inline function 'kotlin.also' call
|
|
278
|
-
var this_0 = gitAdapter.
|
|
279
|
-
if (this_0.
|
|
278
|
+
var this_0 = gitAdapter.ql('HEAD', '^' + previousTag);
|
|
279
|
+
if (this_0.r())
|
|
280
280
|
return null;
|
|
281
281
|
// Inline function 'kotlin.collections.map' call
|
|
282
282
|
// Inline function 'kotlin.collections.mapTo' call
|
|
283
283
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
284
|
-
var _iterator__ex2g4s = this_0.
|
|
285
|
-
while (_iterator__ex2g4s.
|
|
286
|
-
var item = _iterator__ex2g4s.
|
|
284
|
+
var _iterator__ex2g4s = this_0.t();
|
|
285
|
+
while (_iterator__ex2g4s.u()) {
|
|
286
|
+
var item = _iterator__ex2g4s.v();
|
|
287
287
|
var tmp0_elvis_lhs = changeType(item, minorRegex);
|
|
288
288
|
var tmp$ret$2 = tmp0_elvis_lhs == null ? implicitPatch ? ChangeType_Patch_getInstance() : null : tmp0_elvis_lhs;
|
|
289
|
-
destination.
|
|
289
|
+
destination.x(tmp$ret$2);
|
|
290
290
|
}
|
|
291
291
|
// Inline function 'kotlin.collections.fold' call
|
|
292
292
|
var accumulator = null;
|
|
293
|
-
var _iterator__ex2g4s_0 = destination.
|
|
294
|
-
while (_iterator__ex2g4s_0.
|
|
295
|
-
var element = _iterator__ex2g4s_0.
|
|
293
|
+
var _iterator__ex2g4s_0 = destination.t();
|
|
294
|
+
while (_iterator__ex2g4s_0.u()) {
|
|
295
|
+
var element = _iterator__ex2g4s_0.v();
|
|
296
296
|
var p0 = accumulator;
|
|
297
297
|
accumulator = highestPriority(p0, element);
|
|
298
298
|
}
|
|
@@ -306,29 +306,29 @@
|
|
|
306
306
|
var tmp0 = get_entries();
|
|
307
307
|
// Inline function 'kotlin.collections.filterTo' call
|
|
308
308
|
var destination = ArrayList_init_$Create$_0();
|
|
309
|
-
var _iterator__ex2g4s = tmp0.
|
|
310
|
-
while (_iterator__ex2g4s.
|
|
311
|
-
var element = _iterator__ex2g4s.
|
|
312
|
-
if (element.
|
|
313
|
-
destination.
|
|
309
|
+
var _iterator__ex2g4s = tmp0.t();
|
|
310
|
+
while (_iterator__ex2g4s.u()) {
|
|
311
|
+
var element = _iterator__ex2g4s.v();
|
|
312
|
+
if (element.pm(statusCheck)) {
|
|
313
|
+
destination.x(element);
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
316
|
return destination;
|
|
317
317
|
}
|
|
318
318
|
function StatusCheck(gitStatus, releaseBranch, currentVersionNumber, previousVersionNumber) {
|
|
319
|
-
this.
|
|
320
|
-
this.
|
|
321
|
-
this.
|
|
322
|
-
this.
|
|
319
|
+
this.jm_1 = gitStatus;
|
|
320
|
+
this.km_1 = releaseBranch;
|
|
321
|
+
this.lm_1 = currentVersionNumber;
|
|
322
|
+
this.mm_1 = previousVersionNumber;
|
|
323
323
|
}
|
|
324
324
|
protoOf(StatusCheck).toString = function () {
|
|
325
|
-
return 'StatusCheck(gitStatus=' + this.
|
|
325
|
+
return 'StatusCheck(gitStatus=' + this.jm_1.toString() + ', releaseBranch=' + this.km_1 + ', currentVersionNumber=' + this.lm_1 + ', previousVersionNumber=' + this.mm_1 + ')';
|
|
326
326
|
};
|
|
327
327
|
protoOf(StatusCheck).hashCode = function () {
|
|
328
|
-
var result = this.
|
|
329
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
330
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
331
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
328
|
+
var result = this.jm_1.hashCode();
|
|
329
|
+
result = imul(result, 31) + getStringHashCode(this.km_1) | 0;
|
|
330
|
+
result = imul(result, 31) + getStringHashCode(this.lm_1) | 0;
|
|
331
|
+
result = imul(result, 31) + getStringHashCode(this.mm_1) | 0;
|
|
332
332
|
return result;
|
|
333
333
|
};
|
|
334
334
|
protoOf(StatusCheck).equals = function (other) {
|
|
@@ -336,41 +336,41 @@
|
|
|
336
336
|
return true;
|
|
337
337
|
if (!(other instanceof StatusCheck))
|
|
338
338
|
return false;
|
|
339
|
-
if (!this.
|
|
339
|
+
if (!this.jm_1.equals(other.jm_1))
|
|
340
340
|
return false;
|
|
341
|
-
if (!(this.
|
|
341
|
+
if (!(this.km_1 === other.km_1))
|
|
342
342
|
return false;
|
|
343
|
-
if (!(this.
|
|
343
|
+
if (!(this.lm_1 === other.lm_1))
|
|
344
344
|
return false;
|
|
345
|
-
if (!(this.
|
|
345
|
+
if (!(this.mm_1 === other.mm_1))
|
|
346
346
|
return false;
|
|
347
347
|
return true;
|
|
348
348
|
};
|
|
349
349
|
function changeType(_this__u8e3s4, versionRegex) {
|
|
350
350
|
// Inline function 'kotlin.text.trim' call
|
|
351
|
-
var this_0 = _this__u8e3s4.
|
|
351
|
+
var this_0 = _this__u8e3s4.il_1;
|
|
352
352
|
var tmp$ret$0 = toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE()));
|
|
353
353
|
return changeType_0(versionRegex, tmp$ret$0);
|
|
354
354
|
}
|
|
355
355
|
function highestPriority(left, right) {
|
|
356
|
-
return left == null ? right : right == null ? left : left.
|
|
356
|
+
return left == null ? right : right == null ? left : left.em_1 > right.em_1 ? left : right;
|
|
357
357
|
}
|
|
358
358
|
function changeType_0(_this__u8e3s4, message) {
|
|
359
359
|
var tmp;
|
|
360
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
361
|
-
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
362
|
-
tmp = findMatchType(message, _this__u8e3s4.
|
|
360
|
+
var tmp0_safe_receiver = _this__u8e3s4.on_1;
|
|
361
|
+
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.fc(message)) === true) {
|
|
362
|
+
tmp = findMatchType(message, _this__u8e3s4.on_1);
|
|
363
363
|
} else {
|
|
364
|
-
if (_this__u8e3s4.
|
|
364
|
+
if (_this__u8e3s4.nn_1.fc(message)) {
|
|
365
365
|
tmp = ChangeType_Major_getInstance();
|
|
366
366
|
} else {
|
|
367
|
-
if (_this__u8e3s4.
|
|
367
|
+
if (_this__u8e3s4.mn_1.fc(message)) {
|
|
368
368
|
tmp = ChangeType_Minor_getInstance();
|
|
369
369
|
} else {
|
|
370
|
-
if (_this__u8e3s4.
|
|
370
|
+
if (_this__u8e3s4.ln_1.fc(message)) {
|
|
371
371
|
tmp = ChangeType_Patch_getInstance();
|
|
372
372
|
} else {
|
|
373
|
-
if (_this__u8e3s4.
|
|
373
|
+
if (_this__u8e3s4.kn_1.fc(message)) {
|
|
374
374
|
tmp = ChangeType_None_getInstance();
|
|
375
375
|
} else {
|
|
376
376
|
tmp = null;
|
|
@@ -382,8 +382,8 @@
|
|
|
382
382
|
return tmp;
|
|
383
383
|
}
|
|
384
384
|
function findMatchType(message, regex) {
|
|
385
|
-
var tmp0_safe_receiver = regex.
|
|
386
|
-
var groups = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
385
|
+
var tmp0_safe_receiver = regex.jc(message);
|
|
386
|
+
var groups = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.sc();
|
|
387
387
|
return groupExists(groups, 'major') ? ChangeType_Major_getInstance() : groupExists(groups, 'minor') ? ChangeType_Minor_getInstance() : groupExists(groups, 'patch') ? ChangeType_Patch_getInstance() : groupExists(groups, 'none') ? ChangeType_None_getInstance() : null;
|
|
388
388
|
}
|
|
389
389
|
function groupExists(_this__u8e3s4, groupName) {
|
|
@@ -467,7 +467,7 @@
|
|
|
467
467
|
}
|
|
468
468
|
function FailureVersionReasons(name, ordinal, message) {
|
|
469
469
|
Enum.call(this, name, ordinal);
|
|
470
|
-
this.
|
|
470
|
+
this.rn_1 = message;
|
|
471
471
|
}
|
|
472
472
|
function FailureVersionReasons_NoRemote_getInstance() {
|
|
473
473
|
FailureVersionReasons_initEntries();
|
|
@@ -482,7 +482,7 @@
|
|
|
482
482
|
return FailureVersionReasons_VersionMissingElements_instance;
|
|
483
483
|
}
|
|
484
484
|
function lastVersionAndTag(_this__u8e3s4) {
|
|
485
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
485
|
+
var tmp0_elvis_lhs = _this__u8e3s4.bm_1.sl(0);
|
|
486
486
|
var tmp;
|
|
487
487
|
if (tmp0_elvis_lhs == null) {
|
|
488
488
|
return null;
|
|
@@ -517,9 +517,9 @@
|
|
|
517
517
|
}
|
|
518
518
|
function tag(_this__u8e3s4, version, releaseBranch, userName, userEmail) {
|
|
519
519
|
var isSnapshot_0 = isSnapshot(version);
|
|
520
|
-
var headTag = _this__u8e3s4.
|
|
520
|
+
var headTag = _this__u8e3s4.bm_1.pl('HEAD');
|
|
521
521
|
var alreadyTagged = !(headTag == null);
|
|
522
|
-
var headBranch = _this__u8e3s4.
|
|
522
|
+
var headBranch = _this__u8e3s4.bm_1.rl().wl_1;
|
|
523
523
|
var isNotOnReleaseBranch = !(headBranch === releaseBranch);
|
|
524
524
|
var tmp;
|
|
525
525
|
if (isSnapshot_0 || alreadyTagged || isNotOnReleaseBranch) {
|
|
@@ -527,22 +527,22 @@
|
|
|
527
527
|
var tmp_1 = to(isSnapshot_0, 'being snapshot');
|
|
528
528
|
var tmp_2 = TagErrors_instance;
|
|
529
529
|
// Inline function 'kotlin.collections.filterKeys' call
|
|
530
|
-
var this_0 = mapOf([tmp_1, to(alreadyTagged, tmp_2.
|
|
530
|
+
var this_0 = mapOf([tmp_1, to(alreadyTagged, tmp_2.tn(headTag == null ? null : headTag.yl_1)), to(isNotOnReleaseBranch, TagErrors_instance.un(releaseBranch, headBranch))]);
|
|
531
531
|
var result = LinkedHashMap_init_$Create$();
|
|
532
532
|
// Inline function 'kotlin.collections.iterator' call
|
|
533
|
-
var _iterator__ex2g4s = this_0.
|
|
534
|
-
while (_iterator__ex2g4s.
|
|
535
|
-
var entry = _iterator__ex2g4s.
|
|
536
|
-
if (entry.
|
|
537
|
-
result.
|
|
533
|
+
var _iterator__ex2g4s = this_0.m1().t();
|
|
534
|
+
while (_iterator__ex2g4s.u()) {
|
|
535
|
+
var entry = _iterator__ex2g4s.v();
|
|
536
|
+
if (entry.n1()) {
|
|
537
|
+
result.r2(entry.n1(), entry.o1());
|
|
538
538
|
}
|
|
539
539
|
}
|
|
540
|
-
tmp = new Error_0(tmp_0.
|
|
540
|
+
tmp = new Error_0(tmp_0.vn(joinToString(result.q2(), ', ')));
|
|
541
541
|
} else {
|
|
542
542
|
// Inline function 'kotlin.runCatching' call
|
|
543
543
|
var tmp_3;
|
|
544
544
|
try {
|
|
545
|
-
_this__u8e3s4.
|
|
545
|
+
_this__u8e3s4.bm_1.nl(version, 'HEAD', userName, userEmail);
|
|
546
546
|
// Inline function 'kotlin.Companion.success' call
|
|
547
547
|
tmp_3 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
548
548
|
} catch ($p) {
|
|
@@ -563,7 +563,7 @@
|
|
|
563
563
|
var tmp_6 = _Result___get_value__impl__bjfvqg(this_1);
|
|
564
564
|
if (!(tmp_6 == null ? true : !(tmp_6 == null)))
|
|
565
565
|
THROW_CCE();
|
|
566
|
-
_this__u8e3s4.
|
|
566
|
+
_this__u8e3s4.bm_1.ol();
|
|
567
567
|
// Inline function 'kotlin.Companion.success' call
|
|
568
568
|
var value = Success_getInstance();
|
|
569
569
|
tmp_5 = _Result___init__impl__xyqfz8(value);
|
|
@@ -589,15 +589,15 @@
|
|
|
589
589
|
return contains(_this__u8e3s4, 'SNAPSHOT');
|
|
590
590
|
}
|
|
591
591
|
function TagErrors() {
|
|
592
|
-
this.
|
|
592
|
+
this.sn_1 = 'being snapshot';
|
|
593
593
|
}
|
|
594
|
-
protoOf(TagErrors).
|
|
594
|
+
protoOf(TagErrors).vn = function (messages) {
|
|
595
595
|
return 'skipping tag due to ' + messages;
|
|
596
596
|
};
|
|
597
|
-
protoOf(TagErrors).
|
|
597
|
+
protoOf(TagErrors).tn = function (headTag) {
|
|
598
598
|
return 'already tagged ' + headTag;
|
|
599
599
|
};
|
|
600
|
-
protoOf(TagErrors).
|
|
600
|
+
protoOf(TagErrors).un = function (releaseBranch, headBranch) {
|
|
601
601
|
return 'not on release branch ' + releaseBranch + ' - branch was ' + headBranch;
|
|
602
602
|
};
|
|
603
603
|
var TagErrors_instance;
|
|
@@ -629,49 +629,49 @@
|
|
|
629
629
|
}
|
|
630
630
|
function Error_0(message) {
|
|
631
631
|
TagResult.call(this);
|
|
632
|
-
this.
|
|
632
|
+
this.wn_1 = message;
|
|
633
633
|
}
|
|
634
634
|
protoOf(Error_0).toString = function () {
|
|
635
|
-
return 'Error(message=' + this.
|
|
635
|
+
return 'Error(message=' + this.wn_1 + ')';
|
|
636
636
|
};
|
|
637
637
|
protoOf(Error_0).hashCode = function () {
|
|
638
|
-
return getStringHashCode(this.
|
|
638
|
+
return getStringHashCode(this.wn_1);
|
|
639
639
|
};
|
|
640
640
|
protoOf(Error_0).equals = function (other) {
|
|
641
641
|
if (this === other)
|
|
642
642
|
return true;
|
|
643
643
|
if (!(other instanceof Error_0))
|
|
644
644
|
return false;
|
|
645
|
-
if (!(this.
|
|
645
|
+
if (!(this.wn_1 === other.wn_1))
|
|
646
646
|
return false;
|
|
647
647
|
return true;
|
|
648
648
|
};
|
|
649
649
|
function TagResult() {
|
|
650
650
|
}
|
|
651
651
|
function TaggerCore(adapter) {
|
|
652
|
-
this.
|
|
652
|
+
this.bm_1 = adapter;
|
|
653
653
|
}
|
|
654
654
|
protoOf(TaggerCore).toString = function () {
|
|
655
|
-
return 'TaggerCore(adapter=' + toString(this.
|
|
655
|
+
return 'TaggerCore(adapter=' + toString(this.bm_1) + ')';
|
|
656
656
|
};
|
|
657
657
|
protoOf(TaggerCore).hashCode = function () {
|
|
658
|
-
return hashCode(this.
|
|
658
|
+
return hashCode(this.bm_1);
|
|
659
659
|
};
|
|
660
660
|
protoOf(TaggerCore).equals = function (other) {
|
|
661
661
|
if (this === other)
|
|
662
662
|
return true;
|
|
663
663
|
if (!(other instanceof TaggerCore))
|
|
664
664
|
return false;
|
|
665
|
-
if (!equals(this.
|
|
665
|
+
if (!equals(this.bm_1, other.bm_1))
|
|
666
666
|
return false;
|
|
667
667
|
return true;
|
|
668
668
|
};
|
|
669
669
|
function Defaults() {
|
|
670
670
|
Defaults_instance = this;
|
|
671
|
-
this.
|
|
672
|
-
this.
|
|
673
|
-
this.
|
|
674
|
-
this.
|
|
671
|
+
this.xn_1 = Defaults_getInstance().al_1;
|
|
672
|
+
this.yn_1 = Defaults_getInstance().zk_1;
|
|
673
|
+
this.zn_1 = Defaults_getInstance().yk_1;
|
|
674
|
+
this.ao_1 = Defaults_getInstance().xk_1;
|
|
675
675
|
}
|
|
676
676
|
var Defaults_instance;
|
|
677
677
|
function Defaults_getInstance_0() {
|
|
@@ -680,9 +680,9 @@
|
|
|
680
680
|
return Defaults_instance;
|
|
681
681
|
}
|
|
682
682
|
function Companion() {
|
|
683
|
-
this.
|
|
683
|
+
this.bo_1 = "version regex must include groups named 'major', 'minor', 'patch', and 'none'.";
|
|
684
684
|
}
|
|
685
|
-
protoOf(Companion).
|
|
685
|
+
protoOf(Companion).co = function (regexPattern) {
|
|
686
686
|
return contains(regexPattern, '?<major>') && contains(regexPattern, '?<minor>') && contains(regexPattern, '?<patch>') && contains(regexPattern, '?<none>');
|
|
687
687
|
};
|
|
688
688
|
var Companion_instance_0;
|
|
@@ -690,21 +690,21 @@
|
|
|
690
690
|
return Companion_instance_0;
|
|
691
691
|
}
|
|
692
692
|
function VersionRegex(none, patch, minor, major, unified) {
|
|
693
|
-
this.
|
|
694
|
-
this.
|
|
695
|
-
this.
|
|
696
|
-
this.
|
|
697
|
-
this.
|
|
693
|
+
this.kn_1 = none;
|
|
694
|
+
this.ln_1 = patch;
|
|
695
|
+
this.mn_1 = minor;
|
|
696
|
+
this.nn_1 = major;
|
|
697
|
+
this.on_1 = unified;
|
|
698
698
|
}
|
|
699
699
|
protoOf(VersionRegex).toString = function () {
|
|
700
|
-
return 'VersionRegex(none=' + this.
|
|
700
|
+
return 'VersionRegex(none=' + this.kn_1.toString() + ', patch=' + this.ln_1.toString() + ', minor=' + this.mn_1.toString() + ', major=' + this.nn_1.toString() + ', unified=' + toString_0(this.on_1) + ')';
|
|
701
701
|
};
|
|
702
702
|
protoOf(VersionRegex).hashCode = function () {
|
|
703
|
-
var result = hashCode(this.
|
|
704
|
-
result = imul(result, 31) + hashCode(this.
|
|
705
|
-
result = imul(result, 31) + hashCode(this.
|
|
706
|
-
result = imul(result, 31) + hashCode(this.
|
|
707
|
-
result = imul(result, 31) + (this.
|
|
703
|
+
var result = hashCode(this.kn_1);
|
|
704
|
+
result = imul(result, 31) + hashCode(this.ln_1) | 0;
|
|
705
|
+
result = imul(result, 31) + hashCode(this.mn_1) | 0;
|
|
706
|
+
result = imul(result, 31) + hashCode(this.nn_1) | 0;
|
|
707
|
+
result = imul(result, 31) + (this.on_1 == null ? 0 : hashCode(this.on_1)) | 0;
|
|
708
708
|
return result;
|
|
709
709
|
};
|
|
710
710
|
protoOf(VersionRegex).equals = function (other) {
|
|
@@ -712,32 +712,32 @@
|
|
|
712
712
|
return true;
|
|
713
713
|
if (!(other instanceof VersionRegex))
|
|
714
714
|
return false;
|
|
715
|
-
if (!equals(this.
|
|
715
|
+
if (!equals(this.kn_1, other.kn_1))
|
|
716
716
|
return false;
|
|
717
|
-
if (!equals(this.
|
|
717
|
+
if (!equals(this.ln_1, other.ln_1))
|
|
718
718
|
return false;
|
|
719
|
-
if (!equals(this.
|
|
719
|
+
if (!equals(this.mn_1, other.mn_1))
|
|
720
720
|
return false;
|
|
721
|
-
if (!equals(this.
|
|
721
|
+
if (!equals(this.nn_1, other.nn_1))
|
|
722
722
|
return false;
|
|
723
|
-
if (!equals(this.
|
|
723
|
+
if (!equals(this.on_1, other.on_1))
|
|
724
724
|
return false;
|
|
725
725
|
return true;
|
|
726
726
|
};
|
|
727
727
|
function VersionResult$Failure$_get_message_$lambda_nuugae(it) {
|
|
728
|
-
return it.
|
|
728
|
+
return it.rn_1;
|
|
729
729
|
}
|
|
730
730
|
function Success_0(version, snapshotReasons) {
|
|
731
731
|
snapshotReasons = snapshotReasons === VOID ? emptyList() : snapshotReasons;
|
|
732
|
-
this.
|
|
733
|
-
this.
|
|
732
|
+
this.do_1 = version;
|
|
733
|
+
this.eo_1 = snapshotReasons;
|
|
734
734
|
}
|
|
735
735
|
protoOf(Success_0).toString = function () {
|
|
736
|
-
return 'Success(version=' + this.
|
|
736
|
+
return 'Success(version=' + this.do_1 + ', snapshotReasons=' + toString(this.eo_1) + ')';
|
|
737
737
|
};
|
|
738
738
|
protoOf(Success_0).hashCode = function () {
|
|
739
|
-
var result = getStringHashCode(this.
|
|
740
|
-
result = imul(result, 31) + hashCode(this.
|
|
739
|
+
var result = getStringHashCode(this.do_1);
|
|
740
|
+
result = imul(result, 31) + hashCode(this.eo_1) | 0;
|
|
741
741
|
return result;
|
|
742
742
|
};
|
|
743
743
|
protoOf(Success_0).equals = function (other) {
|
|
@@ -745,30 +745,30 @@
|
|
|
745
745
|
return true;
|
|
746
746
|
if (!(other instanceof Success_0))
|
|
747
747
|
return false;
|
|
748
|
-
if (!(this.
|
|
748
|
+
if (!(this.do_1 === other.do_1))
|
|
749
749
|
return false;
|
|
750
|
-
if (!equals(this.
|
|
750
|
+
if (!equals(this.eo_1, other.eo_1))
|
|
751
751
|
return false;
|
|
752
752
|
return true;
|
|
753
753
|
};
|
|
754
754
|
function Failure(reasons) {
|
|
755
|
-
this.
|
|
755
|
+
this.fo_1 = reasons;
|
|
756
756
|
}
|
|
757
757
|
protoOf(Failure).e = function () {
|
|
758
|
-
return 'Inappropriate configuration: ' + joinToString(this.
|
|
758
|
+
return 'Inappropriate configuration: ' + joinToString(this.fo_1, '\n', VOID, VOID, VOID, VOID, VersionResult$Failure$_get_message_$lambda_nuugae);
|
|
759
759
|
};
|
|
760
760
|
protoOf(Failure).toString = function () {
|
|
761
|
-
return 'Failure(reasons=' + toString(this.
|
|
761
|
+
return 'Failure(reasons=' + toString(this.fo_1) + ')';
|
|
762
762
|
};
|
|
763
763
|
protoOf(Failure).hashCode = function () {
|
|
764
|
-
return hashCode(this.
|
|
764
|
+
return hashCode(this.fo_1);
|
|
765
765
|
};
|
|
766
766
|
protoOf(Failure).equals = function (other) {
|
|
767
767
|
if (this === other)
|
|
768
768
|
return true;
|
|
769
769
|
if (!(other instanceof Failure))
|
|
770
770
|
return false;
|
|
771
|
-
if (!equals(this.
|
|
771
|
+
if (!equals(this.fo_1, other.fo_1))
|
|
772
772
|
return false;
|
|
773
773
|
return true;
|
|
774
774
|
};
|