git-semver-tagger 1.8.17 → 1.8.19
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 +102 -102
- package/kotlin/clikt-clikt-mordant.js.map +1 -1
- package/kotlin/clikt-clikt.js +2244 -2241
- package/kotlin/clikt-clikt.js.map +1 -1
- package/kotlin/colormath-root-colormath.js +569 -554
- package/kotlin/colormath-root-colormath.js.map +1 -1
- package/kotlin/command-line-tools-tagger-cli.js +136 -136
- package/kotlin/command-line-tools-tagger-cli.js.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib.js +4015 -3972
- package/kotlin/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +2457 -2453
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1802 -1790
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/kotlin/mordant-mordant.js +1806 -1794
- package/kotlin/mordant-mordant.js.map +1 -1
- package/kotlin/tools-cli-tools.js +6 -6
- package/kotlin/tools-cli-tools.js.map +1 -1
- package/kotlin/tools-digger-core.js +11 -11
- package/kotlin/tools-digger-core.js.map +1 -1
- package/kotlin/tools-git-adapter.js +145 -148
- package/kotlin/tools-git-adapter.js.map +1 -1
- package/kotlin/tools-tagger-core.js +178 -185
- package/kotlin/tools-tagger-core.js.map +1 -1
- package/kotlin/tools-tagger-json.js +140 -141
- package/kotlin/tools-tagger-json.js.map +1 -1
- package/package.json +1 -1
|
@@ -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.$_$.
|
|
7
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.
|
|
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.$_$.
|
|
17
|
-
var VOID = kotlin_kotlin.$_$.
|
|
18
|
-
var enumEntries = kotlin_kotlin.$_$.
|
|
19
|
-
var Enum = kotlin_kotlin.$_$.
|
|
20
|
-
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
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.$_$.
|
|
38
|
-
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.
|
|
39
|
-
var joinToString = kotlin_kotlin.$_$.
|
|
40
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
41
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
42
|
-
var equals = kotlin_kotlin.$_$.
|
|
5
|
+
var split = kotlin_kotlin.$_$.kc;
|
|
6
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.t4;
|
|
7
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.f;
|
|
8
|
+
var toInt = kotlin_kotlin.$_$.xc;
|
|
9
|
+
var Unit_instance = kotlin_kotlin.$_$.v3;
|
|
10
|
+
var charSequenceLength = kotlin_kotlin.$_$.t8;
|
|
11
|
+
var charSequenceGet = kotlin_kotlin.$_$.s8;
|
|
12
|
+
var digitToIntOrNull = kotlin_kotlin.$_$.ob;
|
|
13
|
+
var substring = kotlin_kotlin.$_$.qc;
|
|
14
|
+
var listOf = kotlin_kotlin.$_$.f6;
|
|
15
|
+
var protoOf = kotlin_kotlin.$_$.ba;
|
|
16
|
+
var initMetadataForClass = kotlin_kotlin.$_$.c9;
|
|
17
|
+
var VOID = kotlin_kotlin.$_$.c;
|
|
18
|
+
var enumEntries = kotlin_kotlin.$_$.s7;
|
|
19
|
+
var Enum = kotlin_kotlin.$_$.rd;
|
|
20
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.g;
|
|
21
|
+
var getStringHashCode = kotlin_kotlin.$_$.a9;
|
|
22
|
+
var THROW_CCE = kotlin_kotlin.$_$.zd;
|
|
23
|
+
var isCharSequence = kotlin_kotlin.$_$.m9;
|
|
24
|
+
var trim = kotlin_kotlin.$_$.id;
|
|
25
|
+
var toString = kotlin_kotlin.$_$.da;
|
|
26
|
+
var Companion_instance = kotlin_kotlin.$_$.q3;
|
|
27
|
+
var get = kotlin_kotlin.$_$.tb;
|
|
28
|
+
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.o1;
|
|
29
|
+
var createFailure = kotlin_kotlin.$_$.oe;
|
|
30
|
+
var _Result___get_isFailure__impl__jpiriv = kotlin_kotlin.$_$.q1;
|
|
31
|
+
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.s1;
|
|
32
|
+
var substringBefore = kotlin_kotlin.$_$.oc;
|
|
33
|
+
var contains = kotlin_kotlin.$_$.mb;
|
|
34
|
+
var to = kotlin_kotlin.$_$.af;
|
|
35
|
+
var _Result___get_isSuccess__impl__sndoy8 = kotlin_kotlin.$_$.r1;
|
|
36
|
+
var Result__exceptionOrNull_impl_p6xea9 = kotlin_kotlin.$_$.p1;
|
|
37
|
+
var mapOf = kotlin_kotlin.$_$.j6;
|
|
38
|
+
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.p;
|
|
39
|
+
var joinToString = kotlin_kotlin.$_$.v5;
|
|
40
|
+
var initMetadataForObject = kotlin_kotlin.$_$.h9;
|
|
41
|
+
var hashCode = kotlin_kotlin.$_$.b9;
|
|
42
|
+
var equals = kotlin_kotlin.$_$.w8;
|
|
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.$_$.d9;
|
|
45
|
+
var toString_0 = kotlin_kotlin.$_$.ze;
|
|
46
|
+
var emptyList = kotlin_kotlin.$_$.j5;
|
|
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.o();
|
|
79
|
+
while (_iterator__ex2g4s.p()) {
|
|
80
|
+
var item = _iterator__ex2g4s.q();
|
|
81
81
|
var tmp$ret$0 = toInt(item);
|
|
82
|
-
destination.
|
|
82
|
+
destination.g(tmp$ret$0);
|
|
83
83
|
}
|
|
84
84
|
// Inline function 'kotlin.let' call
|
|
85
|
-
return destination.
|
|
85
|
+
return destination.s() === 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.tm_1.jm();
|
|
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.pm_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.z9();
|
|
131
|
+
var lastTagDescription = _destruct__k2r9zo.aa();
|
|
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.tm_1, lastTagDescription, implicitPatch, versionRegex);
|
|
141
|
+
var tmp3_elvis_lhs = incrementComponent == null ? null : incrementComponent.xm(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.l() ? 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).an = function (_this__u8e3s4) {
|
|
151
|
+
return !_this__u8e3s4.bn_1.lm_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).an = function (_this__u8e3s4) {
|
|
159
|
+
return !(_this__u8e3s4.bn_1.mm_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).an = function (_this__u8e3s4) {
|
|
167
|
+
return !(_this__u8e3s4.bn_1.nm_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).an = function (_this__u8e3s4) {
|
|
175
|
+
return !(_this__u8e3s4.bn_1.om_1 === _this__u8e3s4.cn_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).an = function (_this__u8e3s4) {
|
|
183
|
+
return _this__u8e3s4.dn_1 === _this__u8e3s4.en_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).hn = function (check) {
|
|
210
|
+
return this.an(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).xm = function (components) {
|
|
217
217
|
// Inline function 'kotlin.collections.component1' call
|
|
218
|
-
var major = components.
|
|
218
|
+
var major = components.r(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).xm = function (components) {
|
|
227
227
|
// Inline function 'kotlin.collections.component1' call
|
|
228
|
-
var major = components.
|
|
228
|
+
var major = components.r(0);
|
|
229
229
|
// Inline function 'kotlin.collections.component2' call
|
|
230
|
-
var minor = components.
|
|
230
|
+
var minor = components.r(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).xm = function (components) {
|
|
239
239
|
// Inline function 'kotlin.collections.component1' call
|
|
240
|
-
var major = components.
|
|
240
|
+
var major = components.r(0);
|
|
241
241
|
// Inline function 'kotlin.collections.component2' call
|
|
242
|
-
var minor = components.
|
|
242
|
+
var minor = components.r(1);
|
|
243
243
|
// Inline function 'kotlin.collections.component3' call
|
|
244
|
-
var patch = components.
|
|
244
|
+
var patch = components.r(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).xm = function (components) {
|
|
253
253
|
// Inline function 'kotlin.collections.component1' call
|
|
254
|
-
var major = components.
|
|
254
|
+
var major = components.r(0);
|
|
255
255
|
// Inline function 'kotlin.collections.component2' call
|
|
256
|
-
var minor = components.
|
|
256
|
+
var minor = components.r(1);
|
|
257
257
|
// Inline function 'kotlin.collections.component3' call
|
|
258
|
-
var patch = components.
|
|
258
|
+
var patch = components.r(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.wm_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.im('HEAD', '^' + previousTag);
|
|
279
|
+
if (this_0.l())
|
|
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.o();
|
|
285
|
+
while (_iterator__ex2g4s.p()) {
|
|
286
|
+
var item = _iterator__ex2g4s.q();
|
|
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.g(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.o();
|
|
294
|
+
while (_iterator__ex2g4s_0.p()) {
|
|
295
|
+
var element = _iterator__ex2g4s_0.q();
|
|
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.o();
|
|
310
|
+
while (_iterator__ex2g4s.p()) {
|
|
311
|
+
var element = _iterator__ex2g4s.q();
|
|
312
|
+
if (element.hn(statusCheck)) {
|
|
313
|
+
destination.g(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.bn_1 = gitStatus;
|
|
320
|
+
this.cn_1 = releaseBranch;
|
|
321
|
+
this.dn_1 = currentVersionNumber;
|
|
322
|
+
this.en_1 = previousVersionNumber;
|
|
323
323
|
}
|
|
324
324
|
protoOf(StatusCheck).toString = function () {
|
|
325
|
-
return 'StatusCheck(gitStatus=' + this.
|
|
325
|
+
return 'StatusCheck(gitStatus=' + this.bn_1.toString() + ', releaseBranch=' + this.cn_1 + ', currentVersionNumber=' + this.dn_1 + ', previousVersionNumber=' + this.en_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.bn_1.hashCode();
|
|
329
|
+
result = imul(result, 31) + getStringHashCode(this.cn_1) | 0;
|
|
330
|
+
result = imul(result, 31) + getStringHashCode(this.dn_1) | 0;
|
|
331
|
+
result = imul(result, 31) + getStringHashCode(this.en_1) | 0;
|
|
332
332
|
return result;
|
|
333
333
|
};
|
|
334
334
|
protoOf(StatusCheck).equals = function (other) {
|
|
@@ -336,42 +336,41 @@
|
|
|
336
336
|
return true;
|
|
337
337
|
if (!(other instanceof StatusCheck))
|
|
338
338
|
return false;
|
|
339
|
-
|
|
340
|
-
if (!this.q17_1.equals(tmp0_other_with_cast.q17_1))
|
|
339
|
+
if (!this.bn_1.equals(other.bn_1))
|
|
341
340
|
return false;
|
|
342
|
-
if (!(this.
|
|
341
|
+
if (!(this.cn_1 === other.cn_1))
|
|
343
342
|
return false;
|
|
344
|
-
if (!(this.
|
|
343
|
+
if (!(this.dn_1 === other.dn_1))
|
|
345
344
|
return false;
|
|
346
|
-
if (!(this.
|
|
345
|
+
if (!(this.en_1 === other.en_1))
|
|
347
346
|
return false;
|
|
348
347
|
return true;
|
|
349
348
|
};
|
|
350
349
|
function changeType(_this__u8e3s4, versionRegex) {
|
|
351
350
|
// Inline function 'kotlin.text.trim' call
|
|
352
|
-
var this_0 = _this__u8e3s4.
|
|
351
|
+
var this_0 = _this__u8e3s4.am_1;
|
|
353
352
|
var tmp$ret$0 = toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE()));
|
|
354
353
|
return changeType_0(versionRegex, tmp$ret$0);
|
|
355
354
|
}
|
|
356
355
|
function highestPriority(left, right) {
|
|
357
|
-
return left == null ? right : right == null ? left : left.
|
|
356
|
+
return left == null ? right : right == null ? left : left.wm_1 > right.wm_1 ? left : right;
|
|
358
357
|
}
|
|
359
358
|
function changeType_0(_this__u8e3s4, message) {
|
|
360
359
|
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.
|
|
360
|
+
var tmp0_safe_receiver = _this__u8e3s4.go_1;
|
|
361
|
+
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ic(message)) === true) {
|
|
362
|
+
tmp = findMatchType(message, _this__u8e3s4.go_1);
|
|
364
363
|
} else {
|
|
365
|
-
if (_this__u8e3s4.
|
|
364
|
+
if (_this__u8e3s4.fo_1.ic(message)) {
|
|
366
365
|
tmp = ChangeType_Major_getInstance();
|
|
367
366
|
} else {
|
|
368
|
-
if (_this__u8e3s4.
|
|
367
|
+
if (_this__u8e3s4.eo_1.ic(message)) {
|
|
369
368
|
tmp = ChangeType_Minor_getInstance();
|
|
370
369
|
} else {
|
|
371
|
-
if (_this__u8e3s4.
|
|
370
|
+
if (_this__u8e3s4.do_1.ic(message)) {
|
|
372
371
|
tmp = ChangeType_Patch_getInstance();
|
|
373
372
|
} else {
|
|
374
|
-
if (_this__u8e3s4.
|
|
373
|
+
if (_this__u8e3s4.co_1.ic(message)) {
|
|
375
374
|
tmp = ChangeType_None_getInstance();
|
|
376
375
|
} else {
|
|
377
376
|
tmp = null;
|
|
@@ -383,8 +382,8 @@
|
|
|
383
382
|
return tmp;
|
|
384
383
|
}
|
|
385
384
|
function findMatchType(message, regex) {
|
|
386
|
-
var tmp0_safe_receiver = regex.
|
|
387
|
-
var groups = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
385
|
+
var tmp0_safe_receiver = regex.mc(message);
|
|
386
|
+
var groups = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.vc();
|
|
388
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;
|
|
389
388
|
}
|
|
390
389
|
function groupExists(_this__u8e3s4, groupName) {
|
|
@@ -468,7 +467,7 @@
|
|
|
468
467
|
}
|
|
469
468
|
function FailureVersionReasons(name, ordinal, message) {
|
|
470
469
|
Enum.call(this, name, ordinal);
|
|
471
|
-
this.
|
|
470
|
+
this.jo_1 = message;
|
|
472
471
|
}
|
|
473
472
|
function FailureVersionReasons_NoRemote_getInstance() {
|
|
474
473
|
FailureVersionReasons_initEntries();
|
|
@@ -483,7 +482,7 @@
|
|
|
483
482
|
return FailureVersionReasons_VersionMissingElements_instance;
|
|
484
483
|
}
|
|
485
484
|
function lastVersionAndTag(_this__u8e3s4) {
|
|
486
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
485
|
+
var tmp0_elvis_lhs = _this__u8e3s4.tm_1.km(0);
|
|
487
486
|
var tmp;
|
|
488
487
|
if (tmp0_elvis_lhs == null) {
|
|
489
488
|
return null;
|
|
@@ -518,9 +517,9 @@
|
|
|
518
517
|
}
|
|
519
518
|
function tag(_this__u8e3s4, version, releaseBranch, userName, userEmail) {
|
|
520
519
|
var isSnapshot_0 = isSnapshot(version);
|
|
521
|
-
var headTag = _this__u8e3s4.
|
|
520
|
+
var headTag = _this__u8e3s4.tm_1.hm('HEAD');
|
|
522
521
|
var alreadyTagged = !(headTag == null);
|
|
523
|
-
var headBranch = _this__u8e3s4.
|
|
522
|
+
var headBranch = _this__u8e3s4.tm_1.jm().om_1;
|
|
524
523
|
var isNotOnReleaseBranch = !(headBranch === releaseBranch);
|
|
525
524
|
var tmp;
|
|
526
525
|
if (isSnapshot_0 || alreadyTagged || isNotOnReleaseBranch) {
|
|
@@ -528,22 +527,22 @@
|
|
|
528
527
|
var tmp_1 = to(isSnapshot_0, 'being snapshot');
|
|
529
528
|
var tmp_2 = TagErrors_instance;
|
|
530
529
|
// Inline function 'kotlin.collections.filterKeys' call
|
|
531
|
-
var this_0 = mapOf([tmp_1, to(alreadyTagged, tmp_2.
|
|
530
|
+
var this_0 = mapOf([tmp_1, to(alreadyTagged, tmp_2.lo(headTag == null ? null : headTag.qm_1)), to(isNotOnReleaseBranch, TagErrors_instance.mo(releaseBranch, headBranch))]);
|
|
532
531
|
var result = LinkedHashMap_init_$Create$();
|
|
533
532
|
// Inline function 'kotlin.collections.iterator' call
|
|
534
|
-
var _iterator__ex2g4s = this_0.
|
|
535
|
-
while (_iterator__ex2g4s.
|
|
536
|
-
var entry = _iterator__ex2g4s.
|
|
537
|
-
if (entry.
|
|
538
|
-
result.
|
|
533
|
+
var _iterator__ex2g4s = this_0.z().o();
|
|
534
|
+
while (_iterator__ex2g4s.p()) {
|
|
535
|
+
var entry = _iterator__ex2g4s.q();
|
|
536
|
+
if (entry.a1()) {
|
|
537
|
+
result.e2(entry.a1(), entry.b1());
|
|
539
538
|
}
|
|
540
539
|
}
|
|
541
|
-
tmp = new Error_0(tmp_0.
|
|
540
|
+
tmp = new Error_0(tmp_0.no(joinToString(result.d2(), ', ')));
|
|
542
541
|
} else {
|
|
543
542
|
// Inline function 'kotlin.runCatching' call
|
|
544
543
|
var tmp_3;
|
|
545
544
|
try {
|
|
546
|
-
_this__u8e3s4.
|
|
545
|
+
_this__u8e3s4.tm_1.fm(version, 'HEAD', userName, userEmail);
|
|
547
546
|
// Inline function 'kotlin.Companion.success' call
|
|
548
547
|
tmp_3 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
549
548
|
} catch ($p) {
|
|
@@ -564,7 +563,7 @@
|
|
|
564
563
|
var tmp_6 = _Result___get_value__impl__bjfvqg(this_1);
|
|
565
564
|
if (!(tmp_6 == null ? true : !(tmp_6 == null)))
|
|
566
565
|
THROW_CCE();
|
|
567
|
-
_this__u8e3s4.
|
|
566
|
+
_this__u8e3s4.tm_1.gm();
|
|
568
567
|
// Inline function 'kotlin.Companion.success' call
|
|
569
568
|
var value = Success_getInstance();
|
|
570
569
|
tmp_5 = _Result___init__impl__xyqfz8(value);
|
|
@@ -590,15 +589,15 @@
|
|
|
590
589
|
return contains(_this__u8e3s4, 'SNAPSHOT');
|
|
591
590
|
}
|
|
592
591
|
function TagErrors() {
|
|
593
|
-
this.
|
|
592
|
+
this.ko_1 = 'being snapshot';
|
|
594
593
|
}
|
|
595
|
-
protoOf(TagErrors).
|
|
594
|
+
protoOf(TagErrors).no = function (messages) {
|
|
596
595
|
return 'skipping tag due to ' + messages;
|
|
597
596
|
};
|
|
598
|
-
protoOf(TagErrors).
|
|
597
|
+
protoOf(TagErrors).lo = function (headTag) {
|
|
599
598
|
return 'already tagged ' + headTag;
|
|
600
599
|
};
|
|
601
|
-
protoOf(TagErrors).
|
|
600
|
+
protoOf(TagErrors).mo = function (releaseBranch, headBranch) {
|
|
602
601
|
return 'not on release branch ' + releaseBranch + ' - branch was ' + headBranch;
|
|
603
602
|
};
|
|
604
603
|
var TagErrors_instance;
|
|
@@ -620,7 +619,6 @@
|
|
|
620
619
|
return true;
|
|
621
620
|
if (!(other instanceof Success))
|
|
622
621
|
return false;
|
|
623
|
-
other instanceof Success || THROW_CCE();
|
|
624
622
|
return true;
|
|
625
623
|
};
|
|
626
624
|
var Success_instance;
|
|
@@ -631,51 +629,49 @@
|
|
|
631
629
|
}
|
|
632
630
|
function Error_0(message) {
|
|
633
631
|
TagResult.call(this);
|
|
634
|
-
this.
|
|
632
|
+
this.oo_1 = message;
|
|
635
633
|
}
|
|
636
634
|
protoOf(Error_0).toString = function () {
|
|
637
|
-
return 'Error(message=' + this.
|
|
635
|
+
return 'Error(message=' + this.oo_1 + ')';
|
|
638
636
|
};
|
|
639
637
|
protoOf(Error_0).hashCode = function () {
|
|
640
|
-
return getStringHashCode(this.
|
|
638
|
+
return getStringHashCode(this.oo_1);
|
|
641
639
|
};
|
|
642
640
|
protoOf(Error_0).equals = function (other) {
|
|
643
641
|
if (this === other)
|
|
644
642
|
return true;
|
|
645
643
|
if (!(other instanceof Error_0))
|
|
646
644
|
return false;
|
|
647
|
-
|
|
648
|
-
if (!(this.d19_1 === tmp0_other_with_cast.d19_1))
|
|
645
|
+
if (!(this.oo_1 === other.oo_1))
|
|
649
646
|
return false;
|
|
650
647
|
return true;
|
|
651
648
|
};
|
|
652
649
|
function TagResult() {
|
|
653
650
|
}
|
|
654
651
|
function TaggerCore(adapter) {
|
|
655
|
-
this.
|
|
652
|
+
this.tm_1 = adapter;
|
|
656
653
|
}
|
|
657
654
|
protoOf(TaggerCore).toString = function () {
|
|
658
|
-
return 'TaggerCore(adapter=' + toString(this.
|
|
655
|
+
return 'TaggerCore(adapter=' + toString(this.tm_1) + ')';
|
|
659
656
|
};
|
|
660
657
|
protoOf(TaggerCore).hashCode = function () {
|
|
661
|
-
return hashCode(this.
|
|
658
|
+
return hashCode(this.tm_1);
|
|
662
659
|
};
|
|
663
660
|
protoOf(TaggerCore).equals = function (other) {
|
|
664
661
|
if (this === other)
|
|
665
662
|
return true;
|
|
666
663
|
if (!(other instanceof TaggerCore))
|
|
667
664
|
return false;
|
|
668
|
-
|
|
669
|
-
if (!equals(this.i17_1, tmp0_other_with_cast.i17_1))
|
|
665
|
+
if (!equals(this.tm_1, other.tm_1))
|
|
670
666
|
return false;
|
|
671
667
|
return true;
|
|
672
668
|
};
|
|
673
669
|
function Defaults() {
|
|
674
670
|
Defaults_instance = this;
|
|
675
|
-
this.
|
|
676
|
-
this.
|
|
677
|
-
this.
|
|
678
|
-
this.
|
|
671
|
+
this.po_1 = Defaults_getInstance().sl_1;
|
|
672
|
+
this.qo_1 = Defaults_getInstance().rl_1;
|
|
673
|
+
this.ro_1 = Defaults_getInstance().ql_1;
|
|
674
|
+
this.so_1 = Defaults_getInstance().pl_1;
|
|
679
675
|
}
|
|
680
676
|
var Defaults_instance;
|
|
681
677
|
function Defaults_getInstance_0() {
|
|
@@ -684,9 +680,9 @@
|
|
|
684
680
|
return Defaults_instance;
|
|
685
681
|
}
|
|
686
682
|
function Companion() {
|
|
687
|
-
this.
|
|
683
|
+
this.to_1 = "version regex must include groups named 'major', 'minor', 'patch', and 'none'.";
|
|
688
684
|
}
|
|
689
|
-
protoOf(Companion).
|
|
685
|
+
protoOf(Companion).uo = function (regexPattern) {
|
|
690
686
|
return contains(regexPattern, '?<major>') && contains(regexPattern, '?<minor>') && contains(regexPattern, '?<patch>') && contains(regexPattern, '?<none>');
|
|
691
687
|
};
|
|
692
688
|
var Companion_instance_0;
|
|
@@ -694,21 +690,21 @@
|
|
|
694
690
|
return Companion_instance_0;
|
|
695
691
|
}
|
|
696
692
|
function VersionRegex(none, patch, minor, major, unified) {
|
|
697
|
-
this.
|
|
698
|
-
this.
|
|
699
|
-
this.
|
|
700
|
-
this.
|
|
701
|
-
this.
|
|
693
|
+
this.co_1 = none;
|
|
694
|
+
this.do_1 = patch;
|
|
695
|
+
this.eo_1 = minor;
|
|
696
|
+
this.fo_1 = major;
|
|
697
|
+
this.go_1 = unified;
|
|
702
698
|
}
|
|
703
699
|
protoOf(VersionRegex).toString = function () {
|
|
704
|
-
return 'VersionRegex(none=' + this.
|
|
700
|
+
return 'VersionRegex(none=' + this.co_1.toString() + ', patch=' + this.do_1.toString() + ', minor=' + this.eo_1.toString() + ', major=' + this.fo_1.toString() + ', unified=' + toString_0(this.go_1) + ')';
|
|
705
701
|
};
|
|
706
702
|
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.
|
|
703
|
+
var result = hashCode(this.co_1);
|
|
704
|
+
result = imul(result, 31) + hashCode(this.do_1) | 0;
|
|
705
|
+
result = imul(result, 31) + hashCode(this.eo_1) | 0;
|
|
706
|
+
result = imul(result, 31) + hashCode(this.fo_1) | 0;
|
|
707
|
+
result = imul(result, 31) + (this.go_1 == null ? 0 : hashCode(this.go_1)) | 0;
|
|
712
708
|
return result;
|
|
713
709
|
};
|
|
714
710
|
protoOf(VersionRegex).equals = function (other) {
|
|
@@ -716,33 +712,32 @@
|
|
|
716
712
|
return true;
|
|
717
713
|
if (!(other instanceof VersionRegex))
|
|
718
714
|
return false;
|
|
719
|
-
|
|
720
|
-
if (!equals(this.r18_1, tmp0_other_with_cast.r18_1))
|
|
715
|
+
if (!equals(this.co_1, other.co_1))
|
|
721
716
|
return false;
|
|
722
|
-
if (!equals(this.
|
|
717
|
+
if (!equals(this.do_1, other.do_1))
|
|
723
718
|
return false;
|
|
724
|
-
if (!equals(this.
|
|
719
|
+
if (!equals(this.eo_1, other.eo_1))
|
|
725
720
|
return false;
|
|
726
|
-
if (!equals(this.
|
|
721
|
+
if (!equals(this.fo_1, other.fo_1))
|
|
727
722
|
return false;
|
|
728
|
-
if (!equals(this.
|
|
723
|
+
if (!equals(this.go_1, other.go_1))
|
|
729
724
|
return false;
|
|
730
725
|
return true;
|
|
731
726
|
};
|
|
732
727
|
function VersionResult$Failure$_get_message_$lambda_nuugae(it) {
|
|
733
|
-
return it.
|
|
728
|
+
return it.jo_1;
|
|
734
729
|
}
|
|
735
730
|
function Success_0(version, snapshotReasons) {
|
|
736
731
|
snapshotReasons = snapshotReasons === VOID ? emptyList() : snapshotReasons;
|
|
737
|
-
this.
|
|
738
|
-
this.
|
|
732
|
+
this.vo_1 = version;
|
|
733
|
+
this.wo_1 = snapshotReasons;
|
|
739
734
|
}
|
|
740
735
|
protoOf(Success_0).toString = function () {
|
|
741
|
-
return 'Success(version=' + this.
|
|
736
|
+
return 'Success(version=' + this.vo_1 + ', snapshotReasons=' + toString(this.wo_1) + ')';
|
|
742
737
|
};
|
|
743
738
|
protoOf(Success_0).hashCode = function () {
|
|
744
|
-
var result = getStringHashCode(this.
|
|
745
|
-
result = imul(result, 31) + hashCode(this.
|
|
739
|
+
var result = getStringHashCode(this.vo_1);
|
|
740
|
+
result = imul(result, 31) + hashCode(this.wo_1) | 0;
|
|
746
741
|
return result;
|
|
747
742
|
};
|
|
748
743
|
protoOf(Success_0).equals = function (other) {
|
|
@@ -750,32 +745,30 @@
|
|
|
750
745
|
return true;
|
|
751
746
|
if (!(other instanceof Success_0))
|
|
752
747
|
return false;
|
|
753
|
-
|
|
754
|
-
if (!(this.k19_1 === tmp0_other_with_cast.k19_1))
|
|
748
|
+
if (!(this.vo_1 === other.vo_1))
|
|
755
749
|
return false;
|
|
756
|
-
if (!equals(this.
|
|
750
|
+
if (!equals(this.wo_1, other.wo_1))
|
|
757
751
|
return false;
|
|
758
752
|
return true;
|
|
759
753
|
};
|
|
760
754
|
function Failure(reasons) {
|
|
761
|
-
this.
|
|
755
|
+
this.xo_1 = reasons;
|
|
762
756
|
}
|
|
763
|
-
protoOf(Failure).
|
|
764
|
-
return 'Inappropriate configuration: ' + joinToString(this.
|
|
757
|
+
protoOf(Failure).e = function () {
|
|
758
|
+
return 'Inappropriate configuration: ' + joinToString(this.xo_1, '\n', VOID, VOID, VOID, VOID, VersionResult$Failure$_get_message_$lambda_nuugae);
|
|
765
759
|
};
|
|
766
760
|
protoOf(Failure).toString = function () {
|
|
767
|
-
return 'Failure(reasons=' + toString(this.
|
|
761
|
+
return 'Failure(reasons=' + toString(this.xo_1) + ')';
|
|
768
762
|
};
|
|
769
763
|
protoOf(Failure).hashCode = function () {
|
|
770
|
-
return hashCode(this.
|
|
764
|
+
return hashCode(this.xo_1);
|
|
771
765
|
};
|
|
772
766
|
protoOf(Failure).equals = function (other) {
|
|
773
767
|
if (this === other)
|
|
774
768
|
return true;
|
|
775
769
|
if (!(other instanceof Failure))
|
|
776
770
|
return false;
|
|
777
|
-
|
|
778
|
-
if (!equals(this.m19_1, tmp0_other_with_cast.m19_1))
|
|
771
|
+
if (!equals(this.xo_1, other.xo_1))
|
|
779
772
|
return false;
|
|
780
773
|
return true;
|
|
781
774
|
};
|