git-semver-tagger 1.9.13 → 1.9.15
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 +95 -95
- package/kotlin/clikt-clikt-mordant.js.map +1 -1
- package/kotlin/clikt-clikt.js +2148 -2150
- package/kotlin/clikt-clikt.js.map +1 -1
- package/kotlin/colormath-root-colormath.js +472 -472
- package/kotlin/colormath-root-colormath.js.map +1 -1
- package/kotlin/command-line-tools-tagger-cli.js +119 -119
- package/kotlin/command-line-tools-tagger-cli.js.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib.js +2331 -2475
- package/kotlin/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1979 -1989
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1796 -1795
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/kotlin/mordant-mordant.js +1748 -1751
- package/kotlin/mordant-mordant.js.map +1 -1
- package/kotlin/tools-cli-tools.js +1 -1
- package/kotlin/tools-digger-core.js +9 -9
- package/kotlin/tools-git-adapter.js +119 -129
- package/kotlin/tools-git-adapter.js.map +1 -1
- package/kotlin/tools-tagger-core.js +159 -163
- package/kotlin/tools-tagger-core.js.map +1 -1
- package/kotlin/tools-tagger-json.js +134 -134
- package/kotlin/tools-tagger-json.js.map +1 -1
- package/package.json +1 -1
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
var imul = Math.imul;
|
|
5
5
|
var split = kotlin_kotlin.$_$.mc;
|
|
6
6
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.t4;
|
|
7
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.
|
|
7
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.y;
|
|
8
8
|
var toInt = kotlin_kotlin.$_$.zc;
|
|
9
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
9
|
+
var Unit_instance = kotlin_kotlin.$_$.v;
|
|
10
10
|
var charSequenceLength = kotlin_kotlin.$_$.w8;
|
|
11
11
|
var charSequenceGet = kotlin_kotlin.$_$.v8;
|
|
12
12
|
var digitToIntOrNull = kotlin_kotlin.$_$.qb;
|
|
@@ -17,26 +17,26 @@
|
|
|
17
17
|
var VOID = kotlin_kotlin.$_$.c;
|
|
18
18
|
var enumEntries = kotlin_kotlin.$_$.s7;
|
|
19
19
|
var Enum = kotlin_kotlin.$_$.td;
|
|
20
|
-
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
20
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.z;
|
|
21
21
|
var getStringHashCode = kotlin_kotlin.$_$.d9;
|
|
22
22
|
var getBooleanHashCode = kotlin_kotlin.$_$.a9;
|
|
23
23
|
var THROW_CCE = kotlin_kotlin.$_$.be;
|
|
24
24
|
var isCharSequence = kotlin_kotlin.$_$.p9;
|
|
25
25
|
var trim = kotlin_kotlin.$_$.kd;
|
|
26
26
|
var toString = kotlin_kotlin.$_$.fa;
|
|
27
|
-
var Companion_instance = kotlin_kotlin.$_$.
|
|
27
|
+
var Companion_instance = kotlin_kotlin.$_$.q;
|
|
28
28
|
var get = kotlin_kotlin.$_$.vb;
|
|
29
|
-
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.
|
|
29
|
+
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.h2;
|
|
30
30
|
var createFailure = kotlin_kotlin.$_$.qe;
|
|
31
|
-
var _Result___get_isFailure__impl__jpiriv = kotlin_kotlin.$_$.
|
|
32
|
-
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.
|
|
31
|
+
var _Result___get_isFailure__impl__jpiriv = kotlin_kotlin.$_$.j2;
|
|
32
|
+
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.l2;
|
|
33
33
|
var substringBefore = kotlin_kotlin.$_$.qc;
|
|
34
34
|
var contains = kotlin_kotlin.$_$.ob;
|
|
35
35
|
var to = kotlin_kotlin.$_$.bf;
|
|
36
|
-
var _Result___get_isSuccess__impl__sndoy8 = kotlin_kotlin.$_$.
|
|
37
|
-
var Result__exceptionOrNull_impl_p6xea9 = kotlin_kotlin.$_$.
|
|
36
|
+
var _Result___get_isSuccess__impl__sndoy8 = kotlin_kotlin.$_$.k2;
|
|
37
|
+
var Result__exceptionOrNull_impl_p6xea9 = kotlin_kotlin.$_$.i2;
|
|
38
38
|
var mapOf = kotlin_kotlin.$_$.j6;
|
|
39
|
-
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.
|
|
39
|
+
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.i1;
|
|
40
40
|
var joinToString = kotlin_kotlin.$_$.v5;
|
|
41
41
|
var initMetadataForObject = kotlin_kotlin.$_$.k9;
|
|
42
42
|
var hashCode = kotlin_kotlin.$_$.e9;
|
|
@@ -77,17 +77,17 @@
|
|
|
77
77
|
var this_0 = split(stripPrefix(_this__u8e3s4), ['.']);
|
|
78
78
|
// Inline function 'kotlin.collections.mapTo' call
|
|
79
79
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
80
|
-
var _iterator__ex2g4s = this_0.
|
|
81
|
-
while (_iterator__ex2g4s.
|
|
82
|
-
var item = _iterator__ex2g4s.
|
|
83
|
-
var tmp$ret$
|
|
84
|
-
destination.
|
|
80
|
+
var _iterator__ex2g4s = this_0.r();
|
|
81
|
+
while (_iterator__ex2g4s.s()) {
|
|
82
|
+
var item = _iterator__ex2g4s.t();
|
|
83
|
+
var tmp$ret$2 = toInt(item);
|
|
84
|
+
destination.v(tmp$ret$2);
|
|
85
85
|
}
|
|
86
86
|
// Inline function 'kotlin.let' call
|
|
87
|
-
return destination.
|
|
87
|
+
return destination.d1() === 3 ? destination : null;
|
|
88
88
|
}
|
|
89
89
|
function stripPrefix(_this__u8e3s4) {
|
|
90
|
-
var tmp$ret$
|
|
90
|
+
var tmp$ret$0;
|
|
91
91
|
$l$block: {
|
|
92
92
|
// Inline function 'kotlin.text.indexOfFirst' call
|
|
93
93
|
var inductionVariable = 0;
|
|
@@ -98,22 +98,22 @@
|
|
|
98
98
|
inductionVariable = inductionVariable + 1 | 0;
|
|
99
99
|
var it = charSequenceGet(_this__u8e3s4, index);
|
|
100
100
|
if (!(digitToIntOrNull(it) == null)) {
|
|
101
|
-
tmp$ret$
|
|
101
|
+
tmp$ret$0 = index;
|
|
102
102
|
break $l$block;
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
while (inductionVariable <= last);
|
|
106
|
-
tmp$ret$
|
|
106
|
+
tmp$ret$0 = -1;
|
|
107
107
|
}
|
|
108
|
-
var startIndex = tmp$ret$
|
|
108
|
+
var startIndex = tmp$ret$0;
|
|
109
109
|
return substring(_this__u8e3s4, startIndex);
|
|
110
110
|
}
|
|
111
111
|
function calculateNextVersion(_this__u8e3s4, implicitPatch, disableDetached, versionRegex, forceSnapshot, releaseBranch) {
|
|
112
|
-
var gitStatus = _this__u8e3s4.
|
|
112
|
+
var gitStatus = _this__u8e3s4.yl_1.ol();
|
|
113
113
|
var tmp;
|
|
114
114
|
if (disableDetached) {
|
|
115
115
|
// Inline function 'kotlin.text.isEmpty' call
|
|
116
|
-
var this_0 = gitStatus.
|
|
116
|
+
var this_0 = gitStatus.ul_1;
|
|
117
117
|
tmp = charSequenceLength(this_0) === 0;
|
|
118
118
|
} else {
|
|
119
119
|
tmp = false;
|
|
@@ -139,60 +139,60 @@
|
|
|
139
139
|
tmp_1 = tmp1_elvis_lhs;
|
|
140
140
|
}
|
|
141
141
|
var previousVersionComponents = tmp_1;
|
|
142
|
-
var incrementComponent = findAppropriateIncrement(_this__u8e3s4.
|
|
143
|
-
var tmp3_elvis_lhs = incrementComponent == null ? null : incrementComponent.
|
|
142
|
+
var incrementComponent = findAppropriateIncrement(_this__u8e3s4.yl_1, lastTagDescription, implicitPatch, versionRegex);
|
|
143
|
+
var tmp3_elvis_lhs = incrementComponent == null ? null : incrementComponent.cm(previousVersionComponents);
|
|
144
144
|
var currentVersionNumber = tmp3_elvis_lhs == null ? previousVersionNumber : tmp3_elvis_lhs;
|
|
145
145
|
var reasonsToUseSnapshot = snapshotReasons(releaseBranch, currentVersionNumber, previousVersionNumber, gitStatus, forceSnapshot);
|
|
146
146
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
147
|
-
var shouldSnapshot = !reasonsToUseSnapshot.
|
|
147
|
+
var shouldSnapshot = !reasonsToUseSnapshot.p();
|
|
148
148
|
return new Success_0(!shouldSnapshot ? currentVersionNumber : currentVersionNumber + '-SNAPSHOT', reasonsToUseSnapshot);
|
|
149
149
|
}
|
|
150
150
|
function SnapshotReason$FORCED() {
|
|
151
151
|
SnapshotReason.call(this, 'FORCED', 0);
|
|
152
152
|
SnapshotReason_FORCED_instance = this;
|
|
153
153
|
}
|
|
154
|
-
protoOf(SnapshotReason$FORCED).
|
|
155
|
-
return _this__u8e3s4.
|
|
154
|
+
protoOf(SnapshotReason$FORCED).fm = function (_this__u8e3s4) {
|
|
155
|
+
return _this__u8e3s4.km_1;
|
|
156
156
|
};
|
|
157
157
|
var SnapshotReason_FORCED_instance;
|
|
158
158
|
function SnapshotReason$DIRTY() {
|
|
159
159
|
SnapshotReason.call(this, 'DIRTY', 1);
|
|
160
160
|
SnapshotReason_DIRTY_instance = this;
|
|
161
161
|
}
|
|
162
|
-
protoOf(SnapshotReason$DIRTY).
|
|
163
|
-
return !_this__u8e3s4.
|
|
162
|
+
protoOf(SnapshotReason$DIRTY).fm = function (_this__u8e3s4) {
|
|
163
|
+
return !_this__u8e3s4.gm_1.ql_1;
|
|
164
164
|
};
|
|
165
165
|
var SnapshotReason_DIRTY_instance;
|
|
166
166
|
function SnapshotReason$AHEAD() {
|
|
167
167
|
SnapshotReason.call(this, 'AHEAD', 2);
|
|
168
168
|
SnapshotReason_AHEAD_instance = this;
|
|
169
169
|
}
|
|
170
|
-
protoOf(SnapshotReason$AHEAD).
|
|
171
|
-
return !(_this__u8e3s4.
|
|
170
|
+
protoOf(SnapshotReason$AHEAD).fm = function (_this__u8e3s4) {
|
|
171
|
+
return !(_this__u8e3s4.gm_1.rl_1 === 0);
|
|
172
172
|
};
|
|
173
173
|
var SnapshotReason_AHEAD_instance;
|
|
174
174
|
function SnapshotReason$BEHIND() {
|
|
175
175
|
SnapshotReason.call(this, 'BEHIND', 3);
|
|
176
176
|
SnapshotReason_BEHIND_instance = this;
|
|
177
177
|
}
|
|
178
|
-
protoOf(SnapshotReason$BEHIND).
|
|
179
|
-
return !(_this__u8e3s4.
|
|
178
|
+
protoOf(SnapshotReason$BEHIND).fm = function (_this__u8e3s4) {
|
|
179
|
+
return !(_this__u8e3s4.gm_1.sl_1 === 0);
|
|
180
180
|
};
|
|
181
181
|
var SnapshotReason_BEHIND_instance;
|
|
182
182
|
function SnapshotReason$NOT_RELEASE_BRANCH() {
|
|
183
183
|
SnapshotReason.call(this, 'NOT_RELEASE_BRANCH', 4);
|
|
184
184
|
SnapshotReason_NOT_RELEASE_BRANCH_instance = this;
|
|
185
185
|
}
|
|
186
|
-
protoOf(SnapshotReason$NOT_RELEASE_BRANCH).
|
|
187
|
-
return !(_this__u8e3s4.
|
|
186
|
+
protoOf(SnapshotReason$NOT_RELEASE_BRANCH).fm = function (_this__u8e3s4) {
|
|
187
|
+
return !(_this__u8e3s4.gm_1.tl_1 === _this__u8e3s4.hm_1);
|
|
188
188
|
};
|
|
189
189
|
var SnapshotReason_NOT_RELEASE_BRANCH_instance;
|
|
190
190
|
function SnapshotReason$NO_NEW_VERSION() {
|
|
191
191
|
SnapshotReason.call(this, 'NO_NEW_VERSION', 5);
|
|
192
192
|
SnapshotReason_NO_NEW_VERSION_instance = this;
|
|
193
193
|
}
|
|
194
|
-
protoOf(SnapshotReason$NO_NEW_VERSION).
|
|
195
|
-
return _this__u8e3s4.
|
|
194
|
+
protoOf(SnapshotReason$NO_NEW_VERSION).fm = function (_this__u8e3s4) {
|
|
195
|
+
return _this__u8e3s4.im_1 === _this__u8e3s4.jm_1;
|
|
196
196
|
};
|
|
197
197
|
var SnapshotReason_NO_NEW_VERSION_instance;
|
|
198
198
|
function values() {
|
|
@@ -219,16 +219,16 @@
|
|
|
219
219
|
function SnapshotReason(name, ordinal) {
|
|
220
220
|
Enum.call(this, name, ordinal);
|
|
221
221
|
}
|
|
222
|
-
protoOf(SnapshotReason).
|
|
223
|
-
return this.
|
|
222
|
+
protoOf(SnapshotReason).nm = function (check) {
|
|
223
|
+
return this.fm(check);
|
|
224
224
|
};
|
|
225
225
|
function ChangeType$Major() {
|
|
226
226
|
ChangeType.call(this, 'Major', 0, 3);
|
|
227
227
|
ChangeType_Major_instance = this;
|
|
228
228
|
}
|
|
229
|
-
protoOf(ChangeType$Major).
|
|
229
|
+
protoOf(ChangeType$Major).cm = function (components) {
|
|
230
230
|
// Inline function 'kotlin.collections.component1' call
|
|
231
|
-
var major = components.
|
|
231
|
+
var major = components.c1(0);
|
|
232
232
|
return '' + (major + 1 | 0) + '.0.0';
|
|
233
233
|
};
|
|
234
234
|
var ChangeType_Major_instance;
|
|
@@ -236,11 +236,11 @@
|
|
|
236
236
|
ChangeType.call(this, 'Minor', 1, 2);
|
|
237
237
|
ChangeType_Minor_instance = this;
|
|
238
238
|
}
|
|
239
|
-
protoOf(ChangeType$Minor).
|
|
239
|
+
protoOf(ChangeType$Minor).cm = function (components) {
|
|
240
240
|
// Inline function 'kotlin.collections.component1' call
|
|
241
|
-
var major = components.
|
|
241
|
+
var major = components.c1(0);
|
|
242
242
|
// Inline function 'kotlin.collections.component2' call
|
|
243
|
-
var minor = components.
|
|
243
|
+
var minor = components.c1(1);
|
|
244
244
|
return '' + major + '.' + (minor + 1 | 0) + '.0';
|
|
245
245
|
};
|
|
246
246
|
var ChangeType_Minor_instance;
|
|
@@ -248,13 +248,13 @@
|
|
|
248
248
|
ChangeType.call(this, 'Patch', 2, 1);
|
|
249
249
|
ChangeType_Patch_instance = this;
|
|
250
250
|
}
|
|
251
|
-
protoOf(ChangeType$Patch).
|
|
251
|
+
protoOf(ChangeType$Patch).cm = function (components) {
|
|
252
252
|
// Inline function 'kotlin.collections.component1' call
|
|
253
|
-
var major = components.
|
|
253
|
+
var major = components.c1(0);
|
|
254
254
|
// Inline function 'kotlin.collections.component2' call
|
|
255
|
-
var minor = components.
|
|
255
|
+
var minor = components.c1(1);
|
|
256
256
|
// Inline function 'kotlin.collections.component3' call
|
|
257
|
-
var patch = components.
|
|
257
|
+
var patch = components.c1(2);
|
|
258
258
|
return '' + major + '.' + minor + '.' + (patch + 1 | 0);
|
|
259
259
|
};
|
|
260
260
|
var ChangeType_Patch_instance;
|
|
@@ -262,13 +262,13 @@
|
|
|
262
262
|
ChangeType.call(this, 'None', 3, 0);
|
|
263
263
|
ChangeType_None_instance = this;
|
|
264
264
|
}
|
|
265
|
-
protoOf(ChangeType$None).
|
|
265
|
+
protoOf(ChangeType$None).cm = function (components) {
|
|
266
266
|
// Inline function 'kotlin.collections.component1' call
|
|
267
|
-
var major = components.
|
|
267
|
+
var major = components.c1(0);
|
|
268
268
|
// Inline function 'kotlin.collections.component2' call
|
|
269
|
-
var minor = components.
|
|
269
|
+
var minor = components.c1(1);
|
|
270
270
|
// Inline function 'kotlin.collections.component3' call
|
|
271
|
-
var patch = components.
|
|
271
|
+
var patch = components.c1(2);
|
|
272
272
|
return '' + major + '.' + minor + '.' + patch;
|
|
273
273
|
};
|
|
274
274
|
var ChangeType_None_instance;
|
|
@@ -284,28 +284,28 @@
|
|
|
284
284
|
}
|
|
285
285
|
function ChangeType(name, ordinal, priority) {
|
|
286
286
|
Enum.call(this, name, ordinal);
|
|
287
|
-
this.
|
|
287
|
+
this.bm_1 = priority;
|
|
288
288
|
}
|
|
289
289
|
function findAppropriateIncrement(gitAdapter, previousTag, implicitPatch, minorRegex) {
|
|
290
290
|
// Inline function 'kotlin.also' call
|
|
291
|
-
var this_0 = gitAdapter.
|
|
292
|
-
if (this_0.
|
|
291
|
+
var this_0 = gitAdapter.nl('HEAD', '^' + previousTag);
|
|
292
|
+
if (this_0.p())
|
|
293
293
|
return null;
|
|
294
294
|
// Inline function 'kotlin.collections.map' call
|
|
295
295
|
// Inline function 'kotlin.collections.mapTo' call
|
|
296
296
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
297
|
-
var _iterator__ex2g4s = this_0.
|
|
298
|
-
while (_iterator__ex2g4s.
|
|
299
|
-
var item = _iterator__ex2g4s.
|
|
297
|
+
var _iterator__ex2g4s = this_0.r();
|
|
298
|
+
while (_iterator__ex2g4s.s()) {
|
|
299
|
+
var item = _iterator__ex2g4s.t();
|
|
300
300
|
var tmp0_elvis_lhs = changeType(item, minorRegex);
|
|
301
|
-
var tmp$ret$
|
|
302
|
-
destination.
|
|
301
|
+
var tmp$ret$4 = tmp0_elvis_lhs == null ? implicitPatch ? ChangeType_Patch_getInstance() : null : tmp0_elvis_lhs;
|
|
302
|
+
destination.v(tmp$ret$4);
|
|
303
303
|
}
|
|
304
304
|
// Inline function 'kotlin.collections.fold' call
|
|
305
305
|
var accumulator = null;
|
|
306
|
-
var _iterator__ex2g4s_0 = destination.
|
|
307
|
-
while (_iterator__ex2g4s_0.
|
|
308
|
-
var element = _iterator__ex2g4s_0.
|
|
306
|
+
var _iterator__ex2g4s_0 = destination.r();
|
|
307
|
+
while (_iterator__ex2g4s_0.s()) {
|
|
308
|
+
var element = _iterator__ex2g4s_0.t();
|
|
309
309
|
var p0 = accumulator;
|
|
310
310
|
accumulator = highestPriority(p0, element);
|
|
311
311
|
}
|
|
@@ -319,31 +319,31 @@
|
|
|
319
319
|
var tmp0 = get_entries();
|
|
320
320
|
// Inline function 'kotlin.collections.filterTo' call
|
|
321
321
|
var destination = ArrayList_init_$Create$_0();
|
|
322
|
-
var _iterator__ex2g4s = tmp0.
|
|
323
|
-
while (_iterator__ex2g4s.
|
|
324
|
-
var element = _iterator__ex2g4s.
|
|
325
|
-
if (element.
|
|
326
|
-
destination.
|
|
322
|
+
var _iterator__ex2g4s = tmp0.r();
|
|
323
|
+
while (_iterator__ex2g4s.s()) {
|
|
324
|
+
var element = _iterator__ex2g4s.t();
|
|
325
|
+
if (element.nm(statusCheck)) {
|
|
326
|
+
destination.v(element);
|
|
327
327
|
}
|
|
328
328
|
}
|
|
329
329
|
return destination;
|
|
330
330
|
}
|
|
331
331
|
function StatusCheck(gitStatus, releaseBranch, currentVersionNumber, previousVersionNumber, forceSnapshot) {
|
|
332
|
-
this.
|
|
333
|
-
this.
|
|
334
|
-
this.
|
|
335
|
-
this.
|
|
336
|
-
this.
|
|
332
|
+
this.gm_1 = gitStatus;
|
|
333
|
+
this.hm_1 = releaseBranch;
|
|
334
|
+
this.im_1 = currentVersionNumber;
|
|
335
|
+
this.jm_1 = previousVersionNumber;
|
|
336
|
+
this.km_1 = forceSnapshot;
|
|
337
337
|
}
|
|
338
338
|
protoOf(StatusCheck).toString = function () {
|
|
339
|
-
return 'StatusCheck(gitStatus=' + this.
|
|
339
|
+
return 'StatusCheck(gitStatus=' + this.gm_1.toString() + ', releaseBranch=' + this.hm_1 + ', currentVersionNumber=' + this.im_1 + ', previousVersionNumber=' + this.jm_1 + ', forceSnapshot=' + this.km_1 + ')';
|
|
340
340
|
};
|
|
341
341
|
protoOf(StatusCheck).hashCode = function () {
|
|
342
|
-
var result = this.
|
|
343
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
344
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
345
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
346
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
342
|
+
var result = this.gm_1.hashCode();
|
|
343
|
+
result = imul(result, 31) + getStringHashCode(this.hm_1) | 0;
|
|
344
|
+
result = imul(result, 31) + getStringHashCode(this.im_1) | 0;
|
|
345
|
+
result = imul(result, 31) + getStringHashCode(this.jm_1) | 0;
|
|
346
|
+
result = imul(result, 31) + getBooleanHashCode(this.km_1) | 0;
|
|
347
347
|
return result;
|
|
348
348
|
};
|
|
349
349
|
protoOf(StatusCheck).equals = function (other) {
|
|
@@ -351,43 +351,43 @@
|
|
|
351
351
|
return true;
|
|
352
352
|
if (!(other instanceof StatusCheck))
|
|
353
353
|
return false;
|
|
354
|
-
if (!this.
|
|
354
|
+
if (!this.gm_1.equals(other.gm_1))
|
|
355
355
|
return false;
|
|
356
|
-
if (!(this.
|
|
356
|
+
if (!(this.hm_1 === other.hm_1))
|
|
357
357
|
return false;
|
|
358
|
-
if (!(this.
|
|
358
|
+
if (!(this.im_1 === other.im_1))
|
|
359
359
|
return false;
|
|
360
|
-
if (!(this.
|
|
360
|
+
if (!(this.jm_1 === other.jm_1))
|
|
361
361
|
return false;
|
|
362
|
-
if (!(this.
|
|
362
|
+
if (!(this.km_1 === other.km_1))
|
|
363
363
|
return false;
|
|
364
364
|
return true;
|
|
365
365
|
};
|
|
366
366
|
function changeType(_this__u8e3s4, versionRegex) {
|
|
367
367
|
// Inline function 'kotlin.text.trim' call
|
|
368
|
-
var this_0 = _this__u8e3s4.
|
|
368
|
+
var this_0 = _this__u8e3s4.fl_1;
|
|
369
369
|
var tmp$ret$0 = toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE()));
|
|
370
370
|
return changeType_0(versionRegex, tmp$ret$0);
|
|
371
371
|
}
|
|
372
372
|
function highestPriority(left, right) {
|
|
373
|
-
return left == null ? right : right == null ? left : left.
|
|
373
|
+
return left == null ? right : right == null ? left : left.bm_1 > right.bm_1 ? left : right;
|
|
374
374
|
}
|
|
375
375
|
function changeType_0(_this__u8e3s4, message) {
|
|
376
376
|
var tmp;
|
|
377
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
377
|
+
var tmp0_safe_receiver = _this__u8e3s4.on_1;
|
|
378
378
|
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.fc(message)) === true) {
|
|
379
|
-
tmp = findMatchType(message, _this__u8e3s4.
|
|
379
|
+
tmp = findMatchType(message, _this__u8e3s4.on_1);
|
|
380
380
|
} else {
|
|
381
|
-
if (_this__u8e3s4.
|
|
381
|
+
if (_this__u8e3s4.nn_1.fc(message)) {
|
|
382
382
|
tmp = ChangeType_Major_getInstance();
|
|
383
383
|
} else {
|
|
384
|
-
if (_this__u8e3s4.
|
|
384
|
+
if (_this__u8e3s4.mn_1.fc(message)) {
|
|
385
385
|
tmp = ChangeType_Minor_getInstance();
|
|
386
386
|
} else {
|
|
387
|
-
if (_this__u8e3s4.
|
|
387
|
+
if (_this__u8e3s4.ln_1.fc(message)) {
|
|
388
388
|
tmp = ChangeType_Patch_getInstance();
|
|
389
389
|
} else {
|
|
390
|
-
if (_this__u8e3s4.
|
|
390
|
+
if (_this__u8e3s4.kn_1.fc(message)) {
|
|
391
391
|
tmp = ChangeType_None_getInstance();
|
|
392
392
|
} else {
|
|
393
393
|
tmp = null;
|
|
@@ -429,8 +429,7 @@
|
|
|
429
429
|
tmp$ret$4 = false;
|
|
430
430
|
break $l$block;
|
|
431
431
|
}
|
|
432
|
-
|
|
433
|
-
tmp$ret$4 = (tmp_1 == null ? true : !(tmp_1 == null)) ? tmp_1 : THROW_CCE();
|
|
432
|
+
tmp$ret$4 = _Result___get_value__impl__bjfvqg(tmp0);
|
|
434
433
|
}
|
|
435
434
|
return tmp$ret$4;
|
|
436
435
|
}
|
|
@@ -488,7 +487,7 @@
|
|
|
488
487
|
}
|
|
489
488
|
function FailureVersionReasons(name, ordinal, message) {
|
|
490
489
|
Enum.call(this, name, ordinal);
|
|
491
|
-
this.
|
|
490
|
+
this.rn_1 = message;
|
|
492
491
|
}
|
|
493
492
|
function FailureVersionReasons_NoRemote_getInstance() {
|
|
494
493
|
FailureVersionReasons_initEntries();
|
|
@@ -503,7 +502,7 @@
|
|
|
503
502
|
return FailureVersionReasons_VersionMissingElements_instance;
|
|
504
503
|
}
|
|
505
504
|
function lastVersionAndTag(_this__u8e3s4) {
|
|
506
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
505
|
+
var tmp0_elvis_lhs = _this__u8e3s4.yl_1.pl(0);
|
|
507
506
|
var tmp;
|
|
508
507
|
if (tmp0_elvis_lhs == null) {
|
|
509
508
|
return null;
|
|
@@ -538,9 +537,9 @@
|
|
|
538
537
|
}
|
|
539
538
|
function tag(_this__u8e3s4, version, releaseBranch, userName, userEmail) {
|
|
540
539
|
var isSnapshot_0 = isSnapshot(version);
|
|
541
|
-
var headTag = _this__u8e3s4.
|
|
540
|
+
var headTag = _this__u8e3s4.yl_1.ml('HEAD');
|
|
542
541
|
var alreadyTagged = !(headTag == null);
|
|
543
|
-
var headBranch = _this__u8e3s4.
|
|
542
|
+
var headBranch = _this__u8e3s4.yl_1.ol().tl_1;
|
|
544
543
|
var isNotOnReleaseBranch = !(headBranch === releaseBranch);
|
|
545
544
|
var tmp;
|
|
546
545
|
if (isSnapshot_0 || alreadyTagged || isNotOnReleaseBranch) {
|
|
@@ -548,22 +547,22 @@
|
|
|
548
547
|
var tmp_1 = to(isSnapshot_0, 'being snapshot');
|
|
549
548
|
var tmp_2 = TagErrors_instance;
|
|
550
549
|
// Inline function 'kotlin.collections.filterKeys' call
|
|
551
|
-
var this_0 = mapOf([tmp_1, to(alreadyTagged, tmp_2.
|
|
550
|
+
var this_0 = mapOf([tmp_1, to(alreadyTagged, tmp_2.tn(headTag == null ? null : headTag.vl_1)), to(isNotOnReleaseBranch, TagErrors_instance.un(releaseBranch, headBranch))]);
|
|
552
551
|
var result = LinkedHashMap_init_$Create$();
|
|
553
552
|
// Inline function 'kotlin.collections.iterator' call
|
|
554
|
-
var _iterator__ex2g4s = this_0.
|
|
555
|
-
while (_iterator__ex2g4s.
|
|
556
|
-
var entry = _iterator__ex2g4s.
|
|
557
|
-
if (entry.
|
|
558
|
-
result.
|
|
553
|
+
var _iterator__ex2g4s = this_0.k1().r();
|
|
554
|
+
while (_iterator__ex2g4s.s()) {
|
|
555
|
+
var entry = _iterator__ex2g4s.t();
|
|
556
|
+
if (entry.l1()) {
|
|
557
|
+
result.p2(entry.l1(), entry.m1());
|
|
559
558
|
}
|
|
560
559
|
}
|
|
561
|
-
tmp = new Error_0(tmp_0.
|
|
560
|
+
tmp = new Error_0(tmp_0.vn(joinToString(result.o2(), ', ')));
|
|
562
561
|
} else {
|
|
563
562
|
// Inline function 'kotlin.runCatching' call
|
|
564
563
|
var tmp_3;
|
|
565
564
|
try {
|
|
566
|
-
_this__u8e3s4.
|
|
565
|
+
_this__u8e3s4.yl_1.kl(version, 'HEAD', userName, userEmail);
|
|
567
566
|
// Inline function 'kotlin.Companion.success' call
|
|
568
567
|
tmp_3 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
569
568
|
} catch ($p) {
|
|
@@ -581,10 +580,8 @@
|
|
|
581
580
|
var this_1 = tmp_3;
|
|
582
581
|
var tmp_5;
|
|
583
582
|
if (_Result___get_isSuccess__impl__sndoy8(this_1)) {
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
THROW_CCE();
|
|
587
|
-
_this__u8e3s4.bm_1.ol();
|
|
583
|
+
_Result___get_value__impl__bjfvqg(this_1);
|
|
584
|
+
_this__u8e3s4.yl_1.ll();
|
|
588
585
|
// Inline function 'kotlin.Companion.success' call
|
|
589
586
|
var value = Success_getInstance();
|
|
590
587
|
tmp_5 = _Result___init__impl__xyqfz8(value);
|
|
@@ -594,15 +591,14 @@
|
|
|
594
591
|
// Inline function 'kotlin.getOrElse' call
|
|
595
592
|
var this_2 = tmp_5;
|
|
596
593
|
var exception = Result__exceptionOrNull_impl_p6xea9(this_2);
|
|
597
|
-
var
|
|
594
|
+
var tmp_6;
|
|
598
595
|
if (exception == null) {
|
|
599
|
-
|
|
600
|
-
tmp_7 = (tmp_8 == null ? true : !(tmp_8 == null)) ? tmp_8 : THROW_CCE();
|
|
596
|
+
tmp_6 = _Result___get_value__impl__bjfvqg(this_2);
|
|
601
597
|
} else {
|
|
602
598
|
var tmp0_elvis_lhs = exception.message;
|
|
603
|
-
|
|
599
|
+
tmp_6 = new Error_0(tmp0_elvis_lhs == null ? 'Unknown error during tagging' : tmp0_elvis_lhs);
|
|
604
600
|
}
|
|
605
|
-
tmp =
|
|
601
|
+
tmp = tmp_6;
|
|
606
602
|
}
|
|
607
603
|
return tmp;
|
|
608
604
|
}
|
|
@@ -610,15 +606,15 @@
|
|
|
610
606
|
return contains(_this__u8e3s4, 'SNAPSHOT');
|
|
611
607
|
}
|
|
612
608
|
function TagErrors() {
|
|
613
|
-
this.
|
|
609
|
+
this.sn_1 = 'being snapshot';
|
|
614
610
|
}
|
|
615
|
-
protoOf(TagErrors).
|
|
611
|
+
protoOf(TagErrors).vn = function (messages) {
|
|
616
612
|
return 'skipping tag due to ' + messages;
|
|
617
613
|
};
|
|
618
|
-
protoOf(TagErrors).
|
|
614
|
+
protoOf(TagErrors).tn = function (headTag) {
|
|
619
615
|
return 'already tagged ' + headTag;
|
|
620
616
|
};
|
|
621
|
-
protoOf(TagErrors).
|
|
617
|
+
protoOf(TagErrors).un = function (releaseBranch, headBranch) {
|
|
622
618
|
return 'not on release branch ' + releaseBranch + ' - branch was ' + headBranch;
|
|
623
619
|
};
|
|
624
620
|
var TagErrors_instance;
|
|
@@ -650,49 +646,49 @@
|
|
|
650
646
|
}
|
|
651
647
|
function Error_0(message) {
|
|
652
648
|
TagResult.call(this);
|
|
653
|
-
this.
|
|
649
|
+
this.wn_1 = message;
|
|
654
650
|
}
|
|
655
651
|
protoOf(Error_0).toString = function () {
|
|
656
|
-
return 'Error(message=' + this.
|
|
652
|
+
return 'Error(message=' + this.wn_1 + ')';
|
|
657
653
|
};
|
|
658
654
|
protoOf(Error_0).hashCode = function () {
|
|
659
|
-
return getStringHashCode(this.
|
|
655
|
+
return getStringHashCode(this.wn_1);
|
|
660
656
|
};
|
|
661
657
|
protoOf(Error_0).equals = function (other) {
|
|
662
658
|
if (this === other)
|
|
663
659
|
return true;
|
|
664
660
|
if (!(other instanceof Error_0))
|
|
665
661
|
return false;
|
|
666
|
-
if (!(this.
|
|
662
|
+
if (!(this.wn_1 === other.wn_1))
|
|
667
663
|
return false;
|
|
668
664
|
return true;
|
|
669
665
|
};
|
|
670
666
|
function TagResult() {
|
|
671
667
|
}
|
|
672
668
|
function TaggerCore(adapter) {
|
|
673
|
-
this.
|
|
669
|
+
this.yl_1 = adapter;
|
|
674
670
|
}
|
|
675
671
|
protoOf(TaggerCore).toString = function () {
|
|
676
|
-
return 'TaggerCore(adapter=' + toString(this.
|
|
672
|
+
return 'TaggerCore(adapter=' + toString(this.yl_1) + ')';
|
|
677
673
|
};
|
|
678
674
|
protoOf(TaggerCore).hashCode = function () {
|
|
679
|
-
return hashCode(this.
|
|
675
|
+
return hashCode(this.yl_1);
|
|
680
676
|
};
|
|
681
677
|
protoOf(TaggerCore).equals = function (other) {
|
|
682
678
|
if (this === other)
|
|
683
679
|
return true;
|
|
684
680
|
if (!(other instanceof TaggerCore))
|
|
685
681
|
return false;
|
|
686
|
-
if (!equals(this.
|
|
682
|
+
if (!equals(this.yl_1, other.yl_1))
|
|
687
683
|
return false;
|
|
688
684
|
return true;
|
|
689
685
|
};
|
|
690
686
|
function Defaults() {
|
|
691
687
|
Defaults_instance = this;
|
|
692
|
-
this.
|
|
693
|
-
this.
|
|
694
|
-
this.
|
|
695
|
-
this.
|
|
688
|
+
this.xn_1 = Defaults_getInstance().xk_1;
|
|
689
|
+
this.yn_1 = Defaults_getInstance().wk_1;
|
|
690
|
+
this.zn_1 = Defaults_getInstance().vk_1;
|
|
691
|
+
this.ao_1 = Defaults_getInstance().uk_1;
|
|
696
692
|
}
|
|
697
693
|
var Defaults_instance;
|
|
698
694
|
function Defaults_getInstance_0() {
|
|
@@ -701,9 +697,9 @@
|
|
|
701
697
|
return Defaults_instance;
|
|
702
698
|
}
|
|
703
699
|
function Companion() {
|
|
704
|
-
this.
|
|
700
|
+
this.bo_1 = "version regex must include groups named 'major', 'minor', 'patch', and 'none'.";
|
|
705
701
|
}
|
|
706
|
-
protoOf(Companion).
|
|
702
|
+
protoOf(Companion).co = function (regexPattern) {
|
|
707
703
|
return contains(regexPattern, '?<major>') && contains(regexPattern, '?<minor>') && contains(regexPattern, '?<patch>') && contains(regexPattern, '?<none>');
|
|
708
704
|
};
|
|
709
705
|
var Companion_instance_0;
|
|
@@ -711,21 +707,21 @@
|
|
|
711
707
|
return Companion_instance_0;
|
|
712
708
|
}
|
|
713
709
|
function VersionRegex(none, patch, minor, major, unified) {
|
|
714
|
-
this.
|
|
715
|
-
this.
|
|
716
|
-
this.
|
|
717
|
-
this.
|
|
718
|
-
this.
|
|
710
|
+
this.kn_1 = none;
|
|
711
|
+
this.ln_1 = patch;
|
|
712
|
+
this.mn_1 = minor;
|
|
713
|
+
this.nn_1 = major;
|
|
714
|
+
this.on_1 = unified;
|
|
719
715
|
}
|
|
720
716
|
protoOf(VersionRegex).toString = function () {
|
|
721
|
-
return 'VersionRegex(none=' + this.
|
|
717
|
+
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) + ')';
|
|
722
718
|
};
|
|
723
719
|
protoOf(VersionRegex).hashCode = function () {
|
|
724
|
-
var result = hashCode(this.
|
|
725
|
-
result = imul(result, 31) + hashCode(this.
|
|
726
|
-
result = imul(result, 31) + hashCode(this.
|
|
727
|
-
result = imul(result, 31) + hashCode(this.
|
|
728
|
-
result = imul(result, 31) + (this.
|
|
720
|
+
var result = hashCode(this.kn_1);
|
|
721
|
+
result = imul(result, 31) + hashCode(this.ln_1) | 0;
|
|
722
|
+
result = imul(result, 31) + hashCode(this.mn_1) | 0;
|
|
723
|
+
result = imul(result, 31) + hashCode(this.nn_1) | 0;
|
|
724
|
+
result = imul(result, 31) + (this.on_1 == null ? 0 : hashCode(this.on_1)) | 0;
|
|
729
725
|
return result;
|
|
730
726
|
};
|
|
731
727
|
protoOf(VersionRegex).equals = function (other) {
|
|
@@ -733,32 +729,32 @@
|
|
|
733
729
|
return true;
|
|
734
730
|
if (!(other instanceof VersionRegex))
|
|
735
731
|
return false;
|
|
736
|
-
if (!equals(this.
|
|
732
|
+
if (!equals(this.kn_1, other.kn_1))
|
|
737
733
|
return false;
|
|
738
|
-
if (!equals(this.
|
|
734
|
+
if (!equals(this.ln_1, other.ln_1))
|
|
739
735
|
return false;
|
|
740
|
-
if (!equals(this.
|
|
736
|
+
if (!equals(this.mn_1, other.mn_1))
|
|
741
737
|
return false;
|
|
742
|
-
if (!equals(this.
|
|
738
|
+
if (!equals(this.nn_1, other.nn_1))
|
|
743
739
|
return false;
|
|
744
|
-
if (!equals(this.
|
|
740
|
+
if (!equals(this.on_1, other.on_1))
|
|
745
741
|
return false;
|
|
746
742
|
return true;
|
|
747
743
|
};
|
|
748
744
|
function VersionResult$Failure$_get_message_$lambda_nuugae(it) {
|
|
749
|
-
return it.
|
|
745
|
+
return it.rn_1;
|
|
750
746
|
}
|
|
751
747
|
function Success_0(version, snapshotReasons) {
|
|
752
748
|
snapshotReasons = snapshotReasons === VOID ? emptyList() : snapshotReasons;
|
|
753
|
-
this.
|
|
754
|
-
this.
|
|
749
|
+
this.do_1 = version;
|
|
750
|
+
this.eo_1 = snapshotReasons;
|
|
755
751
|
}
|
|
756
752
|
protoOf(Success_0).toString = function () {
|
|
757
|
-
return 'Success(version=' + this.
|
|
753
|
+
return 'Success(version=' + this.do_1 + ', snapshotReasons=' + toString(this.eo_1) + ')';
|
|
758
754
|
};
|
|
759
755
|
protoOf(Success_0).hashCode = function () {
|
|
760
|
-
var result = getStringHashCode(this.
|
|
761
|
-
result = imul(result, 31) + hashCode(this.
|
|
756
|
+
var result = getStringHashCode(this.do_1);
|
|
757
|
+
result = imul(result, 31) + hashCode(this.eo_1) | 0;
|
|
762
758
|
return result;
|
|
763
759
|
};
|
|
764
760
|
protoOf(Success_0).equals = function (other) {
|
|
@@ -766,30 +762,30 @@
|
|
|
766
762
|
return true;
|
|
767
763
|
if (!(other instanceof Success_0))
|
|
768
764
|
return false;
|
|
769
|
-
if (!(this.
|
|
765
|
+
if (!(this.do_1 === other.do_1))
|
|
770
766
|
return false;
|
|
771
|
-
if (!equals(this.
|
|
767
|
+
if (!equals(this.eo_1, other.eo_1))
|
|
772
768
|
return false;
|
|
773
769
|
return true;
|
|
774
770
|
};
|
|
775
771
|
function Failure(reasons) {
|
|
776
|
-
this.
|
|
772
|
+
this.fo_1 = reasons;
|
|
777
773
|
}
|
|
778
|
-
protoOf(Failure).
|
|
779
|
-
return 'Inappropriate configuration: ' + joinToString(this.
|
|
774
|
+
protoOf(Failure).ba = function () {
|
|
775
|
+
return 'Inappropriate configuration: ' + joinToString(this.fo_1, '\n', VOID, VOID, VOID, VOID, VersionResult$Failure$_get_message_$lambda_nuugae);
|
|
780
776
|
};
|
|
781
777
|
protoOf(Failure).toString = function () {
|
|
782
|
-
return 'Failure(reasons=' + toString(this.
|
|
778
|
+
return 'Failure(reasons=' + toString(this.fo_1) + ')';
|
|
783
779
|
};
|
|
784
780
|
protoOf(Failure).hashCode = function () {
|
|
785
|
-
return hashCode(this.
|
|
781
|
+
return hashCode(this.fo_1);
|
|
786
782
|
};
|
|
787
783
|
protoOf(Failure).equals = function (other) {
|
|
788
784
|
if (this === other)
|
|
789
785
|
return true;
|
|
790
786
|
if (!(other instanceof Failure))
|
|
791
787
|
return false;
|
|
792
|
-
if (!equals(this.
|
|
788
|
+
if (!equals(this.fo_1, other.fo_1))
|
|
793
789
|
return false;
|
|
794
790
|
return true;
|
|
795
791
|
};
|