git-semver-tagger 1.7.33 → 1.8.1
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/Kotlin-DateTime-library-kotlinx-datetime.js +2 -6367
- package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
- package/kotlin/clikt-clikt-mordant.js +99 -99
- package/kotlin/clikt-clikt.js +2108 -2108
- package/kotlin/colormath-root-colormath.js +480 -480
- package/kotlin/command-line-tools-tagger-cli.js +115 -115
- package/kotlin/command-line-tools-tagger-cli.js.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib.js +3021 -2514
- package/kotlin/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +2142 -2250
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +2006 -1952
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/kotlin/mordant-mordant.js +1661 -1669
- package/kotlin/mordant-mordant.js.map +1 -1
- package/kotlin/tools-cli-tools.js +6 -6
- package/kotlin/tools-digger-core.js +8 -8
- package/kotlin/tools-git-adapter.js +137 -137
- package/kotlin/tools-git-adapter.js.map +1 -1
- package/kotlin/tools-tagger-core.js +170 -170
- package/kotlin/tools-tagger-core.js.map +1 -1
- package/kotlin/tools-tagger-json.js +147 -147
- package/kotlin/tools-tagger-json.js.map +1 -1
- package/package.json +1 -2
|
@@ -2,48 +2,48 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
//region block: imports
|
|
4
4
|
var imul = Math.imul;
|
|
5
|
-
var split = kotlin_kotlin.$_$.
|
|
6
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
5
|
+
var split = kotlin_kotlin.$_$.xb;
|
|
6
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.w4;
|
|
7
7
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.i;
|
|
8
|
-
var toInt = kotlin_kotlin.$_$.
|
|
9
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
10
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
11
|
-
var charSequenceGet = kotlin_kotlin.$_$.
|
|
12
|
-
var digitToIntOrNull = kotlin_kotlin.$_$.
|
|
13
|
-
var substring = kotlin_kotlin.$_$.
|
|
14
|
-
var listOf = kotlin_kotlin.$_$.
|
|
15
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
16
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
8
|
+
var toInt = kotlin_kotlin.$_$.kc;
|
|
9
|
+
var Unit_instance = kotlin_kotlin.$_$.y3;
|
|
10
|
+
var charSequenceLength = kotlin_kotlin.$_$.h8;
|
|
11
|
+
var charSequenceGet = kotlin_kotlin.$_$.g8;
|
|
12
|
+
var digitToIntOrNull = kotlin_kotlin.$_$.bb;
|
|
13
|
+
var substring = kotlin_kotlin.$_$.dc;
|
|
14
|
+
var listOf = kotlin_kotlin.$_$.i6;
|
|
15
|
+
var protoOf = kotlin_kotlin.$_$.q9;
|
|
16
|
+
var initMetadataForClass = kotlin_kotlin.$_$.q8;
|
|
17
17
|
var VOID = kotlin_kotlin.$_$.f;
|
|
18
|
-
var enumEntries = kotlin_kotlin.$_$.
|
|
19
|
-
var Enum = kotlin_kotlin.$_$.
|
|
18
|
+
var enumEntries = kotlin_kotlin.$_$.v7;
|
|
19
|
+
var Enum = kotlin_kotlin.$_$.ed;
|
|
20
20
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.j;
|
|
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.$_$.
|
|
26
|
-
var Companion_instance = kotlin_kotlin.$_$.
|
|
27
|
-
var get = kotlin_kotlin.$_$.
|
|
28
|
-
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.
|
|
29
|
-
var createFailure = kotlin_kotlin.$_$.
|
|
30
|
-
var _Result___get_isFailure__impl__jpiriv = kotlin_kotlin.$_$.
|
|
31
|
-
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.
|
|
32
|
-
var substringBefore = kotlin_kotlin.$_$.
|
|
33
|
-
var contains = kotlin_kotlin.$_$.
|
|
34
|
-
var to = kotlin_kotlin.$_$.
|
|
35
|
-
var _Result___get_isSuccess__impl__sndoy8 = kotlin_kotlin.$_$.
|
|
36
|
-
var Result__exceptionOrNull_impl_p6xea9 = kotlin_kotlin.$_$.
|
|
37
|
-
var mapOf = kotlin_kotlin.$_$.
|
|
21
|
+
var getStringHashCode = kotlin_kotlin.$_$.o8;
|
|
22
|
+
var THROW_CCE = kotlin_kotlin.$_$.md;
|
|
23
|
+
var isCharSequence = kotlin_kotlin.$_$.a9;
|
|
24
|
+
var trim = kotlin_kotlin.$_$.vc;
|
|
25
|
+
var toString = kotlin_kotlin.$_$.t9;
|
|
26
|
+
var Companion_instance = kotlin_kotlin.$_$.t3;
|
|
27
|
+
var get = kotlin_kotlin.$_$.gb;
|
|
28
|
+
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.r1;
|
|
29
|
+
var createFailure = kotlin_kotlin.$_$.be;
|
|
30
|
+
var _Result___get_isFailure__impl__jpiriv = kotlin_kotlin.$_$.t1;
|
|
31
|
+
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.v1;
|
|
32
|
+
var substringBefore = kotlin_kotlin.$_$.bc;
|
|
33
|
+
var contains = kotlin_kotlin.$_$.za;
|
|
34
|
+
var to = kotlin_kotlin.$_$.ne;
|
|
35
|
+
var _Result___get_isSuccess__impl__sndoy8 = kotlin_kotlin.$_$.u1;
|
|
36
|
+
var Result__exceptionOrNull_impl_p6xea9 = kotlin_kotlin.$_$.s1;
|
|
37
|
+
var mapOf = kotlin_kotlin.$_$.m6;
|
|
38
38
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.s;
|
|
39
|
-
var joinToString = kotlin_kotlin.$_$.
|
|
40
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
41
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
42
|
-
var equals = kotlin_kotlin.$_$.
|
|
39
|
+
var joinToString = kotlin_kotlin.$_$.y5;
|
|
40
|
+
var initMetadataForObject = kotlin_kotlin.$_$.v8;
|
|
41
|
+
var hashCode = kotlin_kotlin.$_$.p8;
|
|
42
|
+
var equals = kotlin_kotlin.$_$.k8;
|
|
43
43
|
var Defaults_getInstance = kotlin_com_zegreatrob_tools_digger_core.$_$.a;
|
|
44
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
45
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
46
|
-
var emptyList = kotlin_kotlin.$_$.
|
|
44
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.r8;
|
|
45
|
+
var toString_0 = kotlin_kotlin.$_$.me;
|
|
46
|
+
var emptyList = kotlin_kotlin.$_$.m5;
|
|
47
47
|
//endregion
|
|
48
48
|
//region block: pre-declaration
|
|
49
49
|
initMetadataForClass(SnapshotReason, 'SnapshotReason', VOID, Enum);
|
|
@@ -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.m();
|
|
79
|
+
while (_iterator__ex2g4s.n()) {
|
|
80
|
+
var item = _iterator__ex2g4s.o();
|
|
81
81
|
var tmp$ret$0 = toInt(item);
|
|
82
82
|
destination.e(tmp$ret$0);
|
|
83
83
|
}
|
|
84
84
|
// Inline function 'kotlin.let' call
|
|
85
|
-
return destination.
|
|
85
|
+
return destination.p() === 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.i17_1.s16();
|
|
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.y16_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.ra();
|
|
131
|
+
var lastTagDescription = _destruct__k2r9zo.sa();
|
|
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.i17_1, lastTagDescription, implicitPatch, versionRegex);
|
|
141
|
+
var tmp3_elvis_lhs = incrementComponent == null ? null : incrementComponent.m17(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.j() ? 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).p17 = function (_this__u8e3s4) {
|
|
151
|
+
return !_this__u8e3s4.q17_1.u16_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).p17 = function (_this__u8e3s4) {
|
|
159
|
+
return !(_this__u8e3s4.q17_1.v16_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).p17 = function (_this__u8e3s4) {
|
|
167
|
+
return !(_this__u8e3s4.q17_1.w16_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).p17 = function (_this__u8e3s4) {
|
|
175
|
+
return !(_this__u8e3s4.q17_1.x16_1 === _this__u8e3s4.r17_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).p17 = function (_this__u8e3s4) {
|
|
183
|
+
return _this__u8e3s4.s17_1 === _this__u8e3s4.t17_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).w17 = function (check) {
|
|
210
|
+
return this.p17(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).m17 = function (components) {
|
|
217
217
|
// Inline function 'kotlin.collections.component1' call
|
|
218
|
-
var major = components.
|
|
218
|
+
var major = components.q(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).m17 = function (components) {
|
|
227
227
|
// Inline function 'kotlin.collections.component1' call
|
|
228
|
-
var major = components.
|
|
228
|
+
var major = components.q(0);
|
|
229
229
|
// Inline function 'kotlin.collections.component2' call
|
|
230
|
-
var minor = components.
|
|
230
|
+
var minor = components.q(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).m17 = function (components) {
|
|
239
239
|
// Inline function 'kotlin.collections.component1' call
|
|
240
|
-
var major = components.
|
|
240
|
+
var major = components.q(0);
|
|
241
241
|
// Inline function 'kotlin.collections.component2' call
|
|
242
|
-
var minor = components.
|
|
242
|
+
var minor = components.q(1);
|
|
243
243
|
// Inline function 'kotlin.collections.component3' call
|
|
244
|
-
var patch = components.
|
|
244
|
+
var patch = components.q(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).m17 = function (components) {
|
|
253
253
|
// Inline function 'kotlin.collections.component1' call
|
|
254
|
-
var major = components.
|
|
254
|
+
var major = components.q(0);
|
|
255
255
|
// Inline function 'kotlin.collections.component2' call
|
|
256
|
-
var minor = components.
|
|
256
|
+
var minor = components.q(1);
|
|
257
257
|
// Inline function 'kotlin.collections.component3' call
|
|
258
|
-
var patch = components.
|
|
258
|
+
var patch = components.q(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.l17_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.r16('HEAD', '^' + previousTag);
|
|
279
|
+
if (this_0.j())
|
|
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.m();
|
|
285
|
+
while (_iterator__ex2g4s.n()) {
|
|
286
|
+
var item = _iterator__ex2g4s.o();
|
|
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
289
|
destination.e(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.m();
|
|
294
|
+
while (_iterator__ex2g4s_0.n()) {
|
|
295
|
+
var element = _iterator__ex2g4s_0.o();
|
|
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.
|
|
309
|
+
var _iterator__ex2g4s = tmp0.m();
|
|
310
|
+
while (_iterator__ex2g4s.n()) {
|
|
311
|
+
var element = _iterator__ex2g4s.o();
|
|
312
|
+
if (element.w17(statusCheck)) {
|
|
313
313
|
destination.e(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.q17_1 = gitStatus;
|
|
320
|
+
this.r17_1 = releaseBranch;
|
|
321
|
+
this.s17_1 = currentVersionNumber;
|
|
322
|
+
this.t17_1 = previousVersionNumber;
|
|
323
323
|
}
|
|
324
324
|
protoOf(StatusCheck).toString = function () {
|
|
325
|
-
return 'StatusCheck(gitStatus=' + this.
|
|
325
|
+
return 'StatusCheck(gitStatus=' + this.q17_1.toString() + ', releaseBranch=' + this.r17_1 + ', currentVersionNumber=' + this.s17_1 + ', previousVersionNumber=' + this.t17_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.q17_1.hashCode();
|
|
329
|
+
result = imul(result, 31) + getStringHashCode(this.r17_1) | 0;
|
|
330
|
+
result = imul(result, 31) + getStringHashCode(this.s17_1) | 0;
|
|
331
|
+
result = imul(result, 31) + getStringHashCode(this.t17_1) | 0;
|
|
332
332
|
return result;
|
|
333
333
|
};
|
|
334
334
|
protoOf(StatusCheck).equals = function (other) {
|
|
@@ -337,41 +337,41 @@
|
|
|
337
337
|
if (!(other instanceof StatusCheck))
|
|
338
338
|
return false;
|
|
339
339
|
var tmp0_other_with_cast = other instanceof StatusCheck ? other : THROW_CCE();
|
|
340
|
-
if (!this.
|
|
340
|
+
if (!this.q17_1.equals(tmp0_other_with_cast.q17_1))
|
|
341
341
|
return false;
|
|
342
|
-
if (!(this.
|
|
342
|
+
if (!(this.r17_1 === tmp0_other_with_cast.r17_1))
|
|
343
343
|
return false;
|
|
344
|
-
if (!(this.
|
|
344
|
+
if (!(this.s17_1 === tmp0_other_with_cast.s17_1))
|
|
345
345
|
return false;
|
|
346
|
-
if (!(this.
|
|
346
|
+
if (!(this.t17_1 === tmp0_other_with_cast.t17_1))
|
|
347
347
|
return false;
|
|
348
348
|
return true;
|
|
349
349
|
};
|
|
350
350
|
function changeType(_this__u8e3s4, versionRegex) {
|
|
351
351
|
// Inline function 'kotlin.text.trim' call
|
|
352
|
-
var this_0 = _this__u8e3s4.
|
|
352
|
+
var this_0 = _this__u8e3s4.j16_1;
|
|
353
353
|
var tmp$ret$0 = toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE()));
|
|
354
354
|
return changeType_0(versionRegex, tmp$ret$0);
|
|
355
355
|
}
|
|
356
356
|
function highestPriority(left, right) {
|
|
357
|
-
return left == null ? right : right == null ? left : left.
|
|
357
|
+
return left == null ? right : right == null ? left : left.l17_1 > right.l17_1 ? left : right;
|
|
358
358
|
}
|
|
359
359
|
function changeType_0(_this__u8e3s4, message) {
|
|
360
360
|
var tmp;
|
|
361
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
362
|
-
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
363
|
-
tmp = findMatchType(message, _this__u8e3s4.
|
|
361
|
+
var tmp0_safe_receiver = _this__u8e3s4.v18_1;
|
|
362
|
+
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.bd(message)) === true) {
|
|
363
|
+
tmp = findMatchType(message, _this__u8e3s4.v18_1);
|
|
364
364
|
} else {
|
|
365
|
-
if (_this__u8e3s4.
|
|
365
|
+
if (_this__u8e3s4.u18_1.bd(message)) {
|
|
366
366
|
tmp = ChangeType_Major_getInstance();
|
|
367
367
|
} else {
|
|
368
|
-
if (_this__u8e3s4.
|
|
368
|
+
if (_this__u8e3s4.t18_1.bd(message)) {
|
|
369
369
|
tmp = ChangeType_Minor_getInstance();
|
|
370
370
|
} else {
|
|
371
|
-
if (_this__u8e3s4.
|
|
371
|
+
if (_this__u8e3s4.s18_1.bd(message)) {
|
|
372
372
|
tmp = ChangeType_Patch_getInstance();
|
|
373
373
|
} else {
|
|
374
|
-
if (_this__u8e3s4.
|
|
374
|
+
if (_this__u8e3s4.r18_1.bd(message)) {
|
|
375
375
|
tmp = ChangeType_None_getInstance();
|
|
376
376
|
} else {
|
|
377
377
|
tmp = null;
|
|
@@ -383,8 +383,8 @@
|
|
|
383
383
|
return tmp;
|
|
384
384
|
}
|
|
385
385
|
function findMatchType(message, regex) {
|
|
386
|
-
var tmp0_safe_receiver = regex.
|
|
387
|
-
var groups = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
386
|
+
var tmp0_safe_receiver = regex.fd(message);
|
|
387
|
+
var groups = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.nd();
|
|
388
388
|
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;
|
|
389
389
|
}
|
|
390
390
|
function groupExists(_this__u8e3s4, groupName) {
|
|
@@ -468,7 +468,7 @@
|
|
|
468
468
|
}
|
|
469
469
|
function FailureVersionReasons(name, ordinal, message) {
|
|
470
470
|
Enum.call(this, name, ordinal);
|
|
471
|
-
this.
|
|
471
|
+
this.y18_1 = message;
|
|
472
472
|
}
|
|
473
473
|
function FailureVersionReasons_NoRemote_getInstance() {
|
|
474
474
|
FailureVersionReasons_initEntries();
|
|
@@ -483,7 +483,7 @@
|
|
|
483
483
|
return FailureVersionReasons_VersionMissingElements_instance;
|
|
484
484
|
}
|
|
485
485
|
function lastVersionAndTag(_this__u8e3s4) {
|
|
486
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
486
|
+
var tmp0_elvis_lhs = _this__u8e3s4.i17_1.t16(0);
|
|
487
487
|
var tmp;
|
|
488
488
|
if (tmp0_elvis_lhs == null) {
|
|
489
489
|
return null;
|
|
@@ -518,9 +518,9 @@
|
|
|
518
518
|
}
|
|
519
519
|
function tag(_this__u8e3s4, version, releaseBranch, userName, userEmail) {
|
|
520
520
|
var isSnapshot_0 = isSnapshot(version);
|
|
521
|
-
var headTag = _this__u8e3s4.
|
|
521
|
+
var headTag = _this__u8e3s4.i17_1.q16('HEAD');
|
|
522
522
|
var alreadyTagged = !(headTag == null);
|
|
523
|
-
var headBranch = _this__u8e3s4.
|
|
523
|
+
var headBranch = _this__u8e3s4.i17_1.s16().x16_1;
|
|
524
524
|
var isNotOnReleaseBranch = !(headBranch === releaseBranch);
|
|
525
525
|
var tmp;
|
|
526
526
|
if (isSnapshot_0 || alreadyTagged || isNotOnReleaseBranch) {
|
|
@@ -528,22 +528,22 @@
|
|
|
528
528
|
var tmp_1 = to(isSnapshot_0, 'being snapshot');
|
|
529
529
|
var tmp_2 = TagErrors_instance;
|
|
530
530
|
// Inline function 'kotlin.collections.filterKeys' call
|
|
531
|
-
var this_0 = mapOf([tmp_1, to(alreadyTagged, tmp_2.
|
|
531
|
+
var this_0 = mapOf([tmp_1, to(alreadyTagged, tmp_2.a19(headTag == null ? null : headTag.z16_1)), to(isNotOnReleaseBranch, TagErrors_instance.b19(releaseBranch, headBranch))]);
|
|
532
532
|
var result = LinkedHashMap_init_$Create$();
|
|
533
533
|
// Inline function 'kotlin.collections.iterator' call
|
|
534
|
-
var _iterator__ex2g4s = this_0.x().
|
|
535
|
-
while (_iterator__ex2g4s.
|
|
536
|
-
var entry = _iterator__ex2g4s.
|
|
534
|
+
var _iterator__ex2g4s = this_0.x().m();
|
|
535
|
+
while (_iterator__ex2g4s.n()) {
|
|
536
|
+
var entry = _iterator__ex2g4s.o();
|
|
537
537
|
if (entry.y()) {
|
|
538
|
-
result.
|
|
538
|
+
result.l2(entry.y(), entry.z());
|
|
539
539
|
}
|
|
540
540
|
}
|
|
541
|
-
tmp = new Error_0(tmp_0.
|
|
541
|
+
tmp = new Error_0(tmp_0.c19(joinToString(result.f2(), ', ')));
|
|
542
542
|
} else {
|
|
543
543
|
// Inline function 'kotlin.runCatching' call
|
|
544
544
|
var tmp_3;
|
|
545
545
|
try {
|
|
546
|
-
_this__u8e3s4.
|
|
546
|
+
_this__u8e3s4.i17_1.o16(version, 'HEAD', userName, userEmail);
|
|
547
547
|
// Inline function 'kotlin.Companion.success' call
|
|
548
548
|
tmp_3 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
549
549
|
} catch ($p) {
|
|
@@ -564,7 +564,7 @@
|
|
|
564
564
|
var tmp_6 = _Result___get_value__impl__bjfvqg(this_1);
|
|
565
565
|
if (!(tmp_6 == null ? true : !(tmp_6 == null)))
|
|
566
566
|
THROW_CCE();
|
|
567
|
-
_this__u8e3s4.
|
|
567
|
+
_this__u8e3s4.i17_1.p16();
|
|
568
568
|
// Inline function 'kotlin.Companion.success' call
|
|
569
569
|
var value = Success_getInstance();
|
|
570
570
|
tmp_5 = _Result___init__impl__xyqfz8(value);
|
|
@@ -590,15 +590,15 @@
|
|
|
590
590
|
return contains(_this__u8e3s4, 'SNAPSHOT');
|
|
591
591
|
}
|
|
592
592
|
function TagErrors() {
|
|
593
|
-
this.
|
|
593
|
+
this.z18_1 = 'being snapshot';
|
|
594
594
|
}
|
|
595
|
-
protoOf(TagErrors).
|
|
595
|
+
protoOf(TagErrors).c19 = function (messages) {
|
|
596
596
|
return 'skipping tag due to ' + messages;
|
|
597
597
|
};
|
|
598
|
-
protoOf(TagErrors).
|
|
598
|
+
protoOf(TagErrors).a19 = function (headTag) {
|
|
599
599
|
return 'already tagged ' + headTag;
|
|
600
600
|
};
|
|
601
|
-
protoOf(TagErrors).
|
|
601
|
+
protoOf(TagErrors).b19 = function (releaseBranch, headBranch) {
|
|
602
602
|
return 'not on release branch ' + releaseBranch + ' - branch was ' + headBranch;
|
|
603
603
|
};
|
|
604
604
|
var TagErrors_instance;
|
|
@@ -631,13 +631,13 @@
|
|
|
631
631
|
}
|
|
632
632
|
function Error_0(message) {
|
|
633
633
|
TagResult.call(this);
|
|
634
|
-
this.
|
|
634
|
+
this.d19_1 = message;
|
|
635
635
|
}
|
|
636
636
|
protoOf(Error_0).toString = function () {
|
|
637
|
-
return 'Error(message=' + this.
|
|
637
|
+
return 'Error(message=' + this.d19_1 + ')';
|
|
638
638
|
};
|
|
639
639
|
protoOf(Error_0).hashCode = function () {
|
|
640
|
-
return getStringHashCode(this.
|
|
640
|
+
return getStringHashCode(this.d19_1);
|
|
641
641
|
};
|
|
642
642
|
protoOf(Error_0).equals = function (other) {
|
|
643
643
|
if (this === other)
|
|
@@ -645,20 +645,20 @@
|
|
|
645
645
|
if (!(other instanceof Error_0))
|
|
646
646
|
return false;
|
|
647
647
|
var tmp0_other_with_cast = other instanceof Error_0 ? other : THROW_CCE();
|
|
648
|
-
if (!(this.
|
|
648
|
+
if (!(this.d19_1 === tmp0_other_with_cast.d19_1))
|
|
649
649
|
return false;
|
|
650
650
|
return true;
|
|
651
651
|
};
|
|
652
652
|
function TagResult() {
|
|
653
653
|
}
|
|
654
654
|
function TaggerCore(adapter) {
|
|
655
|
-
this.
|
|
655
|
+
this.i17_1 = adapter;
|
|
656
656
|
}
|
|
657
657
|
protoOf(TaggerCore).toString = function () {
|
|
658
|
-
return 'TaggerCore(adapter=' + toString(this.
|
|
658
|
+
return 'TaggerCore(adapter=' + toString(this.i17_1) + ')';
|
|
659
659
|
};
|
|
660
660
|
protoOf(TaggerCore).hashCode = function () {
|
|
661
|
-
return hashCode(this.
|
|
661
|
+
return hashCode(this.i17_1);
|
|
662
662
|
};
|
|
663
663
|
protoOf(TaggerCore).equals = function (other) {
|
|
664
664
|
if (this === other)
|
|
@@ -666,16 +666,16 @@
|
|
|
666
666
|
if (!(other instanceof TaggerCore))
|
|
667
667
|
return false;
|
|
668
668
|
var tmp0_other_with_cast = other instanceof TaggerCore ? other : THROW_CCE();
|
|
669
|
-
if (!equals(this.
|
|
669
|
+
if (!equals(this.i17_1, tmp0_other_with_cast.i17_1))
|
|
670
670
|
return false;
|
|
671
671
|
return true;
|
|
672
672
|
};
|
|
673
673
|
function Defaults() {
|
|
674
674
|
Defaults_instance = this;
|
|
675
|
-
this.
|
|
676
|
-
this.
|
|
677
|
-
this.
|
|
678
|
-
this.
|
|
675
|
+
this.e19_1 = Defaults_getInstance().f17_1;
|
|
676
|
+
this.f19_1 = Defaults_getInstance().e17_1;
|
|
677
|
+
this.g19_1 = Defaults_getInstance().d17_1;
|
|
678
|
+
this.h19_1 = Defaults_getInstance().c17_1;
|
|
679
679
|
}
|
|
680
680
|
var Defaults_instance;
|
|
681
681
|
function Defaults_getInstance_0() {
|
|
@@ -684,9 +684,9 @@
|
|
|
684
684
|
return Defaults_instance;
|
|
685
685
|
}
|
|
686
686
|
function Companion() {
|
|
687
|
-
this.
|
|
687
|
+
this.i19_1 = "version regex must include groups named 'major', 'minor', 'patch', and 'none'.";
|
|
688
688
|
}
|
|
689
|
-
protoOf(Companion).
|
|
689
|
+
protoOf(Companion).j19 = function (regexPattern) {
|
|
690
690
|
return contains(regexPattern, '?<major>') && contains(regexPattern, '?<minor>') && contains(regexPattern, '?<patch>') && contains(regexPattern, '?<none>');
|
|
691
691
|
};
|
|
692
692
|
var Companion_instance_0;
|
|
@@ -694,21 +694,21 @@
|
|
|
694
694
|
return Companion_instance_0;
|
|
695
695
|
}
|
|
696
696
|
function VersionRegex(none, patch, minor, major, unified) {
|
|
697
|
-
this.
|
|
698
|
-
this.
|
|
699
|
-
this.
|
|
700
|
-
this.
|
|
701
|
-
this.
|
|
697
|
+
this.r18_1 = none;
|
|
698
|
+
this.s18_1 = patch;
|
|
699
|
+
this.t18_1 = minor;
|
|
700
|
+
this.u18_1 = major;
|
|
701
|
+
this.v18_1 = unified;
|
|
702
702
|
}
|
|
703
703
|
protoOf(VersionRegex).toString = function () {
|
|
704
|
-
return 'VersionRegex(none=' + this.
|
|
704
|
+
return 'VersionRegex(none=' + this.r18_1.toString() + ', patch=' + this.s18_1.toString() + ', minor=' + this.t18_1.toString() + ', major=' + this.u18_1.toString() + ', unified=' + toString_0(this.v18_1) + ')';
|
|
705
705
|
};
|
|
706
706
|
protoOf(VersionRegex).hashCode = function () {
|
|
707
|
-
var result = hashCode(this.
|
|
708
|
-
result = imul(result, 31) + hashCode(this.
|
|
709
|
-
result = imul(result, 31) + hashCode(this.
|
|
710
|
-
result = imul(result, 31) + hashCode(this.
|
|
711
|
-
result = imul(result, 31) + (this.
|
|
707
|
+
var result = hashCode(this.r18_1);
|
|
708
|
+
result = imul(result, 31) + hashCode(this.s18_1) | 0;
|
|
709
|
+
result = imul(result, 31) + hashCode(this.t18_1) | 0;
|
|
710
|
+
result = imul(result, 31) + hashCode(this.u18_1) | 0;
|
|
711
|
+
result = imul(result, 31) + (this.v18_1 == null ? 0 : hashCode(this.v18_1)) | 0;
|
|
712
712
|
return result;
|
|
713
713
|
};
|
|
714
714
|
protoOf(VersionRegex).equals = function (other) {
|
|
@@ -717,32 +717,32 @@
|
|
|
717
717
|
if (!(other instanceof VersionRegex))
|
|
718
718
|
return false;
|
|
719
719
|
var tmp0_other_with_cast = other instanceof VersionRegex ? other : THROW_CCE();
|
|
720
|
-
if (!equals(this.
|
|
720
|
+
if (!equals(this.r18_1, tmp0_other_with_cast.r18_1))
|
|
721
721
|
return false;
|
|
722
|
-
if (!equals(this.
|
|
722
|
+
if (!equals(this.s18_1, tmp0_other_with_cast.s18_1))
|
|
723
723
|
return false;
|
|
724
|
-
if (!equals(this.
|
|
724
|
+
if (!equals(this.t18_1, tmp0_other_with_cast.t18_1))
|
|
725
725
|
return false;
|
|
726
|
-
if (!equals(this.
|
|
726
|
+
if (!equals(this.u18_1, tmp0_other_with_cast.u18_1))
|
|
727
727
|
return false;
|
|
728
|
-
if (!equals(this.
|
|
728
|
+
if (!equals(this.v18_1, tmp0_other_with_cast.v18_1))
|
|
729
729
|
return false;
|
|
730
730
|
return true;
|
|
731
731
|
};
|
|
732
732
|
function VersionResult$Failure$_get_message_$lambda_nuugae(it) {
|
|
733
|
-
return it.
|
|
733
|
+
return it.y18_1;
|
|
734
734
|
}
|
|
735
735
|
function Success_0(version, snapshotReasons) {
|
|
736
736
|
snapshotReasons = snapshotReasons === VOID ? emptyList() : snapshotReasons;
|
|
737
|
-
this.
|
|
738
|
-
this.
|
|
737
|
+
this.k19_1 = version;
|
|
738
|
+
this.l19_1 = snapshotReasons;
|
|
739
739
|
}
|
|
740
740
|
protoOf(Success_0).toString = function () {
|
|
741
|
-
return 'Success(version=' + this.
|
|
741
|
+
return 'Success(version=' + this.k19_1 + ', snapshotReasons=' + toString(this.l19_1) + ')';
|
|
742
742
|
};
|
|
743
743
|
protoOf(Success_0).hashCode = function () {
|
|
744
|
-
var result = getStringHashCode(this.
|
|
745
|
-
result = imul(result, 31) + hashCode(this.
|
|
744
|
+
var result = getStringHashCode(this.k19_1);
|
|
745
|
+
result = imul(result, 31) + hashCode(this.l19_1) | 0;
|
|
746
746
|
return result;
|
|
747
747
|
};
|
|
748
748
|
protoOf(Success_0).equals = function (other) {
|
|
@@ -751,23 +751,23 @@
|
|
|
751
751
|
if (!(other instanceof Success_0))
|
|
752
752
|
return false;
|
|
753
753
|
var tmp0_other_with_cast = other instanceof Success_0 ? other : THROW_CCE();
|
|
754
|
-
if (!(this.
|
|
754
|
+
if (!(this.k19_1 === tmp0_other_with_cast.k19_1))
|
|
755
755
|
return false;
|
|
756
|
-
if (!equals(this.
|
|
756
|
+
if (!equals(this.l19_1, tmp0_other_with_cast.l19_1))
|
|
757
757
|
return false;
|
|
758
758
|
return true;
|
|
759
759
|
};
|
|
760
760
|
function Failure(reasons) {
|
|
761
|
-
this.
|
|
761
|
+
this.m19_1 = reasons;
|
|
762
762
|
}
|
|
763
|
-
protoOf(Failure).
|
|
764
|
-
return 'Inappropriate configuration: ' + joinToString(this.
|
|
763
|
+
protoOf(Failure).na = function () {
|
|
764
|
+
return 'Inappropriate configuration: ' + joinToString(this.m19_1, '\n', VOID, VOID, VOID, VOID, VersionResult$Failure$_get_message_$lambda_nuugae);
|
|
765
765
|
};
|
|
766
766
|
protoOf(Failure).toString = function () {
|
|
767
|
-
return 'Failure(reasons=' + toString(this.
|
|
767
|
+
return 'Failure(reasons=' + toString(this.m19_1) + ')';
|
|
768
768
|
};
|
|
769
769
|
protoOf(Failure).hashCode = function () {
|
|
770
|
-
return hashCode(this.
|
|
770
|
+
return hashCode(this.m19_1);
|
|
771
771
|
};
|
|
772
772
|
protoOf(Failure).equals = function (other) {
|
|
773
773
|
if (this === other)
|
|
@@ -775,7 +775,7 @@
|
|
|
775
775
|
if (!(other instanceof Failure))
|
|
776
776
|
return false;
|
|
777
777
|
var tmp0_other_with_cast = other instanceof Failure ? other : THROW_CCE();
|
|
778
|
-
if (!equals(this.
|
|
778
|
+
if (!equals(this.m19_1, tmp0_other_with_cast.m19_1))
|
|
779
779
|
return false;
|
|
780
780
|
return true;
|
|
781
781
|
};
|