git-semver-tagger 1.9.25 → 1.9.27
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/README.md +73 -0
- package/kotlin/clikt-clikt-mordant.js +80 -80
- package/kotlin/clikt-clikt.js +1375 -1375
- package/kotlin/colormath-root-colormath.js +439 -439
- package/kotlin/command-line-tools-tagger-cli.js +313 -310
- package/kotlin/command-line-tools-tagger-cli.js.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib.js +108 -80
- package/kotlin/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1787 -1787
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1520 -1520
- package/kotlin/mordant-mordant.js +1215 -1215
- package/kotlin/tools-cli-tools.js +1 -1
- package/kotlin/tools-git-adapter.js +150 -37
- package/kotlin/tools-git-adapter.js.map +1 -1
- package/kotlin/tools-tagger-core.js +198 -124
- package/kotlin/tools-tagger-core.js.map +1 -1
- package/kotlin/tools-tagger-json.js +141 -141
- package/package.json +1 -1
|
@@ -1,50 +1,55 @@
|
|
|
1
|
-
(function (_, kotlin_kotlin, kotlin_com_zegreatrob_tools_digger_core) {
|
|
1
|
+
(function (_, kotlin_kotlin, kotlin_com_zegreatrob_tools_git_adapter, kotlin_com_zegreatrob_tools_digger_core) {
|
|
2
2
|
'use strict';
|
|
3
3
|
//region block: imports
|
|
4
4
|
var imul = Math.imul;
|
|
5
|
-
var split = kotlin_kotlin.$_$.
|
|
5
|
+
var split = kotlin_kotlin.$_$.oc;
|
|
6
6
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.t4;
|
|
7
7
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.y;
|
|
8
|
-
var toInt = kotlin_kotlin.$_$.
|
|
8
|
+
var toInt = kotlin_kotlin.$_$.bd;
|
|
9
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;
|
|
13
|
-
var substring = kotlin_kotlin.$_$.
|
|
13
|
+
var substring = kotlin_kotlin.$_$.uc;
|
|
14
14
|
var listOf = kotlin_kotlin.$_$.f6;
|
|
15
|
+
var emptyList = kotlin_kotlin.$_$.j5;
|
|
15
16
|
var protoOf = kotlin_kotlin.$_$.da;
|
|
16
17
|
var initMetadataForClass = kotlin_kotlin.$_$.f9;
|
|
17
18
|
var VOID = kotlin_kotlin.$_$.c;
|
|
18
19
|
var enumEntries = kotlin_kotlin.$_$.s7;
|
|
19
|
-
var Enum = kotlin_kotlin.$_$.
|
|
20
|
+
var Enum = kotlin_kotlin.$_$.vd;
|
|
20
21
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.z;
|
|
21
22
|
var getStringHashCode = kotlin_kotlin.$_$.d9;
|
|
22
23
|
var getBooleanHashCode = kotlin_kotlin.$_$.a9;
|
|
23
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
24
|
+
var THROW_CCE = kotlin_kotlin.$_$.de;
|
|
24
25
|
var isCharSequence = kotlin_kotlin.$_$.p9;
|
|
25
|
-
var trim = kotlin_kotlin.$_$.
|
|
26
|
+
var trim = kotlin_kotlin.$_$.md;
|
|
26
27
|
var toString = kotlin_kotlin.$_$.fa;
|
|
27
28
|
var Companion_instance = kotlin_kotlin.$_$.q;
|
|
28
29
|
var get = kotlin_kotlin.$_$.vb;
|
|
29
30
|
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.h2;
|
|
30
|
-
var createFailure = kotlin_kotlin.$_$.
|
|
31
|
+
var createFailure = kotlin_kotlin.$_$.se;
|
|
31
32
|
var _Result___get_isFailure__impl__jpiriv = kotlin_kotlin.$_$.j2;
|
|
32
33
|
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.l2;
|
|
33
|
-
var
|
|
34
|
+
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.p1;
|
|
35
|
+
var joinToString = kotlin_kotlin.$_$.v5;
|
|
36
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.d2;
|
|
37
|
+
var removePrefix = kotlin_kotlin.$_$.hc;
|
|
38
|
+
var last = kotlin_kotlin.$_$.c6;
|
|
39
|
+
var substringBefore = kotlin_kotlin.$_$.sc;
|
|
34
40
|
var contains = kotlin_kotlin.$_$.ob;
|
|
35
|
-
var to = kotlin_kotlin.$_$.
|
|
41
|
+
var to = kotlin_kotlin.$_$.df;
|
|
36
42
|
var _Result___get_isSuccess__impl__sndoy8 = kotlin_kotlin.$_$.k2;
|
|
37
43
|
var Result__exceptionOrNull_impl_p6xea9 = kotlin_kotlin.$_$.i2;
|
|
44
|
+
var ProcessError = kotlin_com_zegreatrob_tools_git_adapter.$_$.b;
|
|
38
45
|
var mapOf = kotlin_kotlin.$_$.j6;
|
|
39
46
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.i1;
|
|
40
|
-
var joinToString = kotlin_kotlin.$_$.v5;
|
|
41
47
|
var initMetadataForObject = kotlin_kotlin.$_$.k9;
|
|
42
48
|
var hashCode = kotlin_kotlin.$_$.e9;
|
|
43
49
|
var equals = kotlin_kotlin.$_$.z8;
|
|
44
50
|
var Defaults_getInstance = kotlin_com_zegreatrob_tools_digger_core.$_$.a;
|
|
45
51
|
var initMetadataForCompanion = kotlin_kotlin.$_$.g9;
|
|
46
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
47
|
-
var emptyList = kotlin_kotlin.$_$.j5;
|
|
52
|
+
var toString_0 = kotlin_kotlin.$_$.cf;
|
|
48
53
|
//endregion
|
|
49
54
|
//region block: pre-declaration
|
|
50
55
|
initMetadataForClass(SnapshotReason, 'SnapshotReason', VOID, Enum);
|
|
@@ -109,11 +114,11 @@
|
|
|
109
114
|
return substring(_this__u8e3s4, startIndex);
|
|
110
115
|
}
|
|
111
116
|
function calculateNextVersion(_this__u8e3s4, implicitPatch, disableDetached, versionRegex, forceSnapshot, releaseBranch) {
|
|
112
|
-
var gitStatus = _this__u8e3s4.
|
|
117
|
+
var gitStatus = _this__u8e3s4.em_1.pl();
|
|
113
118
|
var tmp;
|
|
114
119
|
if (disableDetached) {
|
|
115
120
|
// Inline function 'kotlin.text.isEmpty' call
|
|
116
|
-
var this_0 = gitStatus.
|
|
121
|
+
var this_0 = gitStatus.vl_1;
|
|
117
122
|
tmp = charSequenceLength(this_0) === 0;
|
|
118
123
|
} else {
|
|
119
124
|
tmp = false;
|
|
@@ -124,7 +129,16 @@
|
|
|
124
129
|
var tmp0_elvis_lhs = lastVersionAndTag(_this__u8e3s4);
|
|
125
130
|
var tmp_0;
|
|
126
131
|
if (tmp0_elvis_lhs == null) {
|
|
127
|
-
|
|
132
|
+
// Inline function 'kotlin.run' call
|
|
133
|
+
var allTagNames = _this__u8e3s4.em_1.ml();
|
|
134
|
+
var tmp_1;
|
|
135
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
136
|
+
if (!allTagNames.p()) {
|
|
137
|
+
tmp_1 = new Failure(emptyList(), lightweightTagsFound(allTagNames));
|
|
138
|
+
} else {
|
|
139
|
+
tmp_1 = new Failure(listOf(FailureVersionReasons_NoTagsExist_getInstance()));
|
|
140
|
+
}
|
|
141
|
+
return tmp_1;
|
|
128
142
|
} else {
|
|
129
143
|
tmp_0 = tmp0_elvis_lhs;
|
|
130
144
|
}
|
|
@@ -132,15 +146,15 @@
|
|
|
132
146
|
var previousVersionNumber = _destruct__k2r9zo.fa();
|
|
133
147
|
var lastTagDescription = _destruct__k2r9zo.ga();
|
|
134
148
|
var tmp1_elvis_lhs = asSemverComponents(previousVersionNumber);
|
|
135
|
-
var
|
|
149
|
+
var tmp_2;
|
|
136
150
|
if (tmp1_elvis_lhs == null) {
|
|
137
151
|
return new Failure(listOf(FailureVersionReasons_VersionMissingElements_getInstance()));
|
|
138
152
|
} else {
|
|
139
|
-
|
|
153
|
+
tmp_2 = tmp1_elvis_lhs;
|
|
140
154
|
}
|
|
141
|
-
var previousVersionComponents =
|
|
142
|
-
var incrementComponent = findAppropriateIncrement(_this__u8e3s4.
|
|
143
|
-
var tmp3_elvis_lhs = incrementComponent == null ? null : incrementComponent.
|
|
155
|
+
var previousVersionComponents = tmp_2;
|
|
156
|
+
var incrementComponent = findAppropriateIncrement(_this__u8e3s4.em_1, lastTagDescription, implicitPatch, versionRegex);
|
|
157
|
+
var tmp3_elvis_lhs = incrementComponent == null ? null : incrementComponent.im(previousVersionComponents);
|
|
144
158
|
var currentVersionNumber = tmp3_elvis_lhs == null ? previousVersionNumber : tmp3_elvis_lhs;
|
|
145
159
|
var reasonsToUseSnapshot = snapshotReasons(releaseBranch, currentVersionNumber, previousVersionNumber, gitStatus, forceSnapshot);
|
|
146
160
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
@@ -151,48 +165,48 @@
|
|
|
151
165
|
SnapshotReason.call(this, 'FORCED', 0);
|
|
152
166
|
SnapshotReason_FORCED_instance = this;
|
|
153
167
|
}
|
|
154
|
-
protoOf(SnapshotReason$FORCED).
|
|
155
|
-
return _this__u8e3s4.
|
|
168
|
+
protoOf(SnapshotReason$FORCED).lm = function (_this__u8e3s4) {
|
|
169
|
+
return _this__u8e3s4.qm_1;
|
|
156
170
|
};
|
|
157
171
|
var SnapshotReason_FORCED_instance;
|
|
158
172
|
function SnapshotReason$DIRTY() {
|
|
159
173
|
SnapshotReason.call(this, 'DIRTY', 1);
|
|
160
174
|
SnapshotReason_DIRTY_instance = this;
|
|
161
175
|
}
|
|
162
|
-
protoOf(SnapshotReason$DIRTY).
|
|
163
|
-
return !_this__u8e3s4.
|
|
176
|
+
protoOf(SnapshotReason$DIRTY).lm = function (_this__u8e3s4) {
|
|
177
|
+
return !_this__u8e3s4.mm_1.rl_1;
|
|
164
178
|
};
|
|
165
179
|
var SnapshotReason_DIRTY_instance;
|
|
166
180
|
function SnapshotReason$AHEAD() {
|
|
167
181
|
SnapshotReason.call(this, 'AHEAD', 2);
|
|
168
182
|
SnapshotReason_AHEAD_instance = this;
|
|
169
183
|
}
|
|
170
|
-
protoOf(SnapshotReason$AHEAD).
|
|
171
|
-
return !(_this__u8e3s4.
|
|
184
|
+
protoOf(SnapshotReason$AHEAD).lm = function (_this__u8e3s4) {
|
|
185
|
+
return !(_this__u8e3s4.mm_1.sl_1 === 0);
|
|
172
186
|
};
|
|
173
187
|
var SnapshotReason_AHEAD_instance;
|
|
174
188
|
function SnapshotReason$BEHIND() {
|
|
175
189
|
SnapshotReason.call(this, 'BEHIND', 3);
|
|
176
190
|
SnapshotReason_BEHIND_instance = this;
|
|
177
191
|
}
|
|
178
|
-
protoOf(SnapshotReason$BEHIND).
|
|
179
|
-
return !(_this__u8e3s4.
|
|
192
|
+
protoOf(SnapshotReason$BEHIND).lm = function (_this__u8e3s4) {
|
|
193
|
+
return !(_this__u8e3s4.mm_1.tl_1 === 0);
|
|
180
194
|
};
|
|
181
195
|
var SnapshotReason_BEHIND_instance;
|
|
182
196
|
function SnapshotReason$NOT_RELEASE_BRANCH() {
|
|
183
197
|
SnapshotReason.call(this, 'NOT_RELEASE_BRANCH', 4);
|
|
184
198
|
SnapshotReason_NOT_RELEASE_BRANCH_instance = this;
|
|
185
199
|
}
|
|
186
|
-
protoOf(SnapshotReason$NOT_RELEASE_BRANCH).
|
|
187
|
-
return !(_this__u8e3s4.
|
|
200
|
+
protoOf(SnapshotReason$NOT_RELEASE_BRANCH).lm = function (_this__u8e3s4) {
|
|
201
|
+
return !(_this__u8e3s4.mm_1.ul_1 === _this__u8e3s4.nm_1);
|
|
188
202
|
};
|
|
189
203
|
var SnapshotReason_NOT_RELEASE_BRANCH_instance;
|
|
190
204
|
function SnapshotReason$NO_NEW_VERSION() {
|
|
191
205
|
SnapshotReason.call(this, 'NO_NEW_VERSION', 5);
|
|
192
206
|
SnapshotReason_NO_NEW_VERSION_instance = this;
|
|
193
207
|
}
|
|
194
|
-
protoOf(SnapshotReason$NO_NEW_VERSION).
|
|
195
|
-
return _this__u8e3s4.
|
|
208
|
+
protoOf(SnapshotReason$NO_NEW_VERSION).lm = function (_this__u8e3s4) {
|
|
209
|
+
return _this__u8e3s4.om_1 === _this__u8e3s4.pm_1;
|
|
196
210
|
};
|
|
197
211
|
var SnapshotReason_NO_NEW_VERSION_instance;
|
|
198
212
|
function values() {
|
|
@@ -219,14 +233,14 @@
|
|
|
219
233
|
function SnapshotReason(name, ordinal) {
|
|
220
234
|
Enum.call(this, name, ordinal);
|
|
221
235
|
}
|
|
222
|
-
protoOf(SnapshotReason).
|
|
223
|
-
return this.
|
|
236
|
+
protoOf(SnapshotReason).tm = function (check) {
|
|
237
|
+
return this.lm(check);
|
|
224
238
|
};
|
|
225
239
|
function ChangeType$Major() {
|
|
226
240
|
ChangeType.call(this, 'Major', 0, 3);
|
|
227
241
|
ChangeType_Major_instance = this;
|
|
228
242
|
}
|
|
229
|
-
protoOf(ChangeType$Major).
|
|
243
|
+
protoOf(ChangeType$Major).im = function (components) {
|
|
230
244
|
// Inline function 'kotlin.collections.component1' call
|
|
231
245
|
var major = components.c1(0);
|
|
232
246
|
return '' + (major + 1 | 0) + '.0.0';
|
|
@@ -236,7 +250,7 @@
|
|
|
236
250
|
ChangeType.call(this, 'Minor', 1, 2);
|
|
237
251
|
ChangeType_Minor_instance = this;
|
|
238
252
|
}
|
|
239
|
-
protoOf(ChangeType$Minor).
|
|
253
|
+
protoOf(ChangeType$Minor).im = function (components) {
|
|
240
254
|
// Inline function 'kotlin.collections.component1' call
|
|
241
255
|
var major = components.c1(0);
|
|
242
256
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -248,7 +262,7 @@
|
|
|
248
262
|
ChangeType.call(this, 'Patch', 2, 1);
|
|
249
263
|
ChangeType_Patch_instance = this;
|
|
250
264
|
}
|
|
251
|
-
protoOf(ChangeType$Patch).
|
|
265
|
+
protoOf(ChangeType$Patch).im = function (components) {
|
|
252
266
|
// Inline function 'kotlin.collections.component1' call
|
|
253
267
|
var major = components.c1(0);
|
|
254
268
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -262,7 +276,7 @@
|
|
|
262
276
|
ChangeType.call(this, 'None', 3, 0);
|
|
263
277
|
ChangeType_None_instance = this;
|
|
264
278
|
}
|
|
265
|
-
protoOf(ChangeType$None).
|
|
279
|
+
protoOf(ChangeType$None).im = function (components) {
|
|
266
280
|
// Inline function 'kotlin.collections.component1' call
|
|
267
281
|
var major = components.c1(0);
|
|
268
282
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -284,11 +298,11 @@
|
|
|
284
298
|
}
|
|
285
299
|
function ChangeType(name, ordinal, priority) {
|
|
286
300
|
Enum.call(this, name, ordinal);
|
|
287
|
-
this.
|
|
301
|
+
this.hm_1 = priority;
|
|
288
302
|
}
|
|
289
303
|
function findAppropriateIncrement(gitAdapter, previousTag, implicitPatch, minorRegex) {
|
|
290
304
|
// Inline function 'kotlin.also' call
|
|
291
|
-
var this_0 = gitAdapter.
|
|
305
|
+
var this_0 = gitAdapter.ol('HEAD', '^' + previousTag);
|
|
292
306
|
if (this_0.p())
|
|
293
307
|
return null;
|
|
294
308
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -322,28 +336,28 @@
|
|
|
322
336
|
var _iterator__ex2g4s = tmp0.r();
|
|
323
337
|
while (_iterator__ex2g4s.s()) {
|
|
324
338
|
var element = _iterator__ex2g4s.t();
|
|
325
|
-
if (element.
|
|
339
|
+
if (element.tm(statusCheck)) {
|
|
326
340
|
destination.v(element);
|
|
327
341
|
}
|
|
328
342
|
}
|
|
329
343
|
return destination;
|
|
330
344
|
}
|
|
331
345
|
function StatusCheck(gitStatus, releaseBranch, currentVersionNumber, previousVersionNumber, forceSnapshot) {
|
|
332
|
-
this.
|
|
333
|
-
this.
|
|
334
|
-
this.
|
|
335
|
-
this.
|
|
336
|
-
this.
|
|
346
|
+
this.mm_1 = gitStatus;
|
|
347
|
+
this.nm_1 = releaseBranch;
|
|
348
|
+
this.om_1 = currentVersionNumber;
|
|
349
|
+
this.pm_1 = previousVersionNumber;
|
|
350
|
+
this.qm_1 = forceSnapshot;
|
|
337
351
|
}
|
|
338
352
|
protoOf(StatusCheck).toString = function () {
|
|
339
|
-
return 'StatusCheck(gitStatus=' + this.
|
|
353
|
+
return 'StatusCheck(gitStatus=' + this.mm_1.toString() + ', releaseBranch=' + this.nm_1 + ', currentVersionNumber=' + this.om_1 + ', previousVersionNumber=' + this.pm_1 + ', forceSnapshot=' + this.qm_1 + ')';
|
|
340
354
|
};
|
|
341
355
|
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.
|
|
356
|
+
var result = this.mm_1.hashCode();
|
|
357
|
+
result = imul(result, 31) + getStringHashCode(this.nm_1) | 0;
|
|
358
|
+
result = imul(result, 31) + getStringHashCode(this.om_1) | 0;
|
|
359
|
+
result = imul(result, 31) + getStringHashCode(this.pm_1) | 0;
|
|
360
|
+
result = imul(result, 31) + getBooleanHashCode(this.qm_1) | 0;
|
|
347
361
|
return result;
|
|
348
362
|
};
|
|
349
363
|
protoOf(StatusCheck).equals = function (other) {
|
|
@@ -351,15 +365,15 @@
|
|
|
351
365
|
return true;
|
|
352
366
|
if (!(other instanceof StatusCheck))
|
|
353
367
|
return false;
|
|
354
|
-
if (!this.
|
|
368
|
+
if (!this.mm_1.equals(other.mm_1))
|
|
355
369
|
return false;
|
|
356
|
-
if (!(this.
|
|
370
|
+
if (!(this.nm_1 === other.nm_1))
|
|
357
371
|
return false;
|
|
358
|
-
if (!(this.
|
|
372
|
+
if (!(this.om_1 === other.om_1))
|
|
359
373
|
return false;
|
|
360
|
-
if (!(this.
|
|
374
|
+
if (!(this.pm_1 === other.pm_1))
|
|
361
375
|
return false;
|
|
362
|
-
if (!(this.
|
|
376
|
+
if (!(this.qm_1 === other.qm_1))
|
|
363
377
|
return false;
|
|
364
378
|
return true;
|
|
365
379
|
};
|
|
@@ -370,24 +384,24 @@
|
|
|
370
384
|
return changeType_0(versionRegex, tmp$ret$0);
|
|
371
385
|
}
|
|
372
386
|
function highestPriority(left, right) {
|
|
373
|
-
return left == null ? right : right == null ? left : left.
|
|
387
|
+
return left == null ? right : right == null ? left : left.hm_1 > right.hm_1 ? left : right;
|
|
374
388
|
}
|
|
375
389
|
function changeType_0(_this__u8e3s4, message) {
|
|
376
390
|
var tmp;
|
|
377
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
391
|
+
var tmp0_safe_receiver = _this__u8e3s4.un_1;
|
|
378
392
|
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.fc(message)) === true) {
|
|
379
|
-
tmp = findMatchType(message, _this__u8e3s4.
|
|
393
|
+
tmp = findMatchType(message, _this__u8e3s4.un_1);
|
|
380
394
|
} else {
|
|
381
|
-
if (_this__u8e3s4.
|
|
395
|
+
if (_this__u8e3s4.tn_1.fc(message)) {
|
|
382
396
|
tmp = ChangeType_Major_getInstance();
|
|
383
397
|
} else {
|
|
384
|
-
if (_this__u8e3s4.
|
|
398
|
+
if (_this__u8e3s4.sn_1.fc(message)) {
|
|
385
399
|
tmp = ChangeType_Minor_getInstance();
|
|
386
400
|
} else {
|
|
387
|
-
if (_this__u8e3s4.
|
|
401
|
+
if (_this__u8e3s4.rn_1.fc(message)) {
|
|
388
402
|
tmp = ChangeType_Patch_getInstance();
|
|
389
403
|
} else {
|
|
390
|
-
if (_this__u8e3s4.
|
|
404
|
+
if (_this__u8e3s4.qn_1.fc(message)) {
|
|
391
405
|
tmp = ChangeType_None_getInstance();
|
|
392
406
|
} else {
|
|
393
407
|
tmp = null;
|
|
@@ -487,7 +501,48 @@
|
|
|
487
501
|
}
|
|
488
502
|
function FailureVersionReasons(name, ordinal, message) {
|
|
489
503
|
Enum.call(this, name, ordinal);
|
|
490
|
-
this.
|
|
504
|
+
this.xn_1 = message;
|
|
505
|
+
}
|
|
506
|
+
function lightweightTagsFound(tags) {
|
|
507
|
+
// Inline function 'kotlin.text.buildString' call
|
|
508
|
+
// Inline function 'kotlin.apply' call
|
|
509
|
+
var this_0 = StringBuilder_init_$Create$();
|
|
510
|
+
// Inline function 'kotlin.text.appendLine' call
|
|
511
|
+
var value = 'found ' + tags.d1() + ' tag' + (tags.d1() === 1 ? '' : 's') + ' (' + joinToString(tags, ', ') + ') but ' + (tags.d1() === 1 ? 'it is' : 'they are') + ' lightweight.';
|
|
512
|
+
// Inline function 'kotlin.text.appendLine' call
|
|
513
|
+
this_0.o(value).q(_Char___init__impl__6a9atx(10));
|
|
514
|
+
// Inline function 'kotlin.text.appendLine' call
|
|
515
|
+
var value_0 = 'Tagger requires annotated tags so it can record version metadata.';
|
|
516
|
+
// Inline function 'kotlin.text.appendLine' call
|
|
517
|
+
this_0.o(value_0).q(_Char___init__impl__6a9atx(10));
|
|
518
|
+
// Inline function 'kotlin.text.appendLine' call
|
|
519
|
+
this_0.q(_Char___init__impl__6a9atx(10));
|
|
520
|
+
// Inline function 'kotlin.text.appendLine' call
|
|
521
|
+
var value_1 = 'Recreate ' + (tags.d1() === 1 ? 'it' : 'them') + ' with:';
|
|
522
|
+
// Inline function 'kotlin.text.appendLine' call
|
|
523
|
+
this_0.o(value_1).q(_Char___init__impl__6a9atx(10));
|
|
524
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
525
|
+
var _iterator__ex2g4s = tags.r();
|
|
526
|
+
while (_iterator__ex2g4s.s()) {
|
|
527
|
+
var element = _iterator__ex2g4s.t();
|
|
528
|
+
// Inline function 'kotlin.text.appendLine' call
|
|
529
|
+
var value_2 = ' git tag -d ' + element;
|
|
530
|
+
// Inline function 'kotlin.text.appendLine' call
|
|
531
|
+
this_0.o(value_2).q(_Char___init__impl__6a9atx(10));
|
|
532
|
+
// Inline function 'kotlin.text.appendLine' call
|
|
533
|
+
var value_3 = ' git tag -a ' + element + ' <sha> -m "' + removePrefix(element, 'v') + '"';
|
|
534
|
+
// Inline function 'kotlin.text.appendLine' call
|
|
535
|
+
this_0.o(value_3).q(_Char___init__impl__6a9atx(10));
|
|
536
|
+
// Inline function 'kotlin.text.appendLine' call
|
|
537
|
+
var value_4 = ' git push --force origin ' + element;
|
|
538
|
+
// Inline function 'kotlin.text.appendLine' call
|
|
539
|
+
this_0.o(value_4).q(_Char___init__impl__6a9atx(10));
|
|
540
|
+
if (!(element === last(tags))) {
|
|
541
|
+
// Inline function 'kotlin.text.appendLine' call
|
|
542
|
+
this_0.q(_Char___init__impl__6a9atx(10));
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
return this_0.toString();
|
|
491
546
|
}
|
|
492
547
|
function FailureVersionReasons_NoRemote_getInstance() {
|
|
493
548
|
FailureVersionReasons_initEntries();
|
|
@@ -502,7 +557,7 @@
|
|
|
502
557
|
return FailureVersionReasons_VersionMissingElements_instance;
|
|
503
558
|
}
|
|
504
559
|
function lastVersionAndTag(_this__u8e3s4) {
|
|
505
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
560
|
+
var tmp0_elvis_lhs = _this__u8e3s4.em_1.ql(0);
|
|
506
561
|
var tmp;
|
|
507
562
|
if (tmp0_elvis_lhs == null) {
|
|
508
563
|
return null;
|
|
@@ -537,9 +592,9 @@
|
|
|
537
592
|
}
|
|
538
593
|
function tag(_this__u8e3s4, version, releaseBranch, userName, userEmail) {
|
|
539
594
|
var isSnapshot_0 = isSnapshot(version);
|
|
540
|
-
var headTag = _this__u8e3s4.
|
|
595
|
+
var headTag = _this__u8e3s4.em_1.nl('HEAD');
|
|
541
596
|
var alreadyTagged = !(headTag == null);
|
|
542
|
-
var headBranch = _this__u8e3s4.
|
|
597
|
+
var headBranch = _this__u8e3s4.em_1.pl().ul_1;
|
|
543
598
|
var isNotOnReleaseBranch = !(headBranch === releaseBranch);
|
|
544
599
|
var tmp;
|
|
545
600
|
if (isSnapshot_0 || alreadyTagged || isNotOnReleaseBranch) {
|
|
@@ -547,7 +602,7 @@
|
|
|
547
602
|
var tmp_1 = to(isSnapshot_0, 'being snapshot');
|
|
548
603
|
var tmp_2 = TagErrors_instance;
|
|
549
604
|
// Inline function 'kotlin.collections.filterKeys' call
|
|
550
|
-
var this_0 = mapOf([tmp_1, to(alreadyTagged, tmp_2.
|
|
605
|
+
var this_0 = mapOf([tmp_1, to(alreadyTagged, tmp_2.zn(headTag == null ? null : headTag.bm_1)), to(isNotOnReleaseBranch, TagErrors_instance.ao(releaseBranch, headBranch))]);
|
|
551
606
|
var result = LinkedHashMap_init_$Create$();
|
|
552
607
|
// Inline function 'kotlin.collections.iterator' call
|
|
553
608
|
var _iterator__ex2g4s = this_0.k1().r();
|
|
@@ -557,12 +612,12 @@
|
|
|
557
612
|
result.p2(entry.l1(), entry.m1());
|
|
558
613
|
}
|
|
559
614
|
}
|
|
560
|
-
tmp = new Error_0(tmp_0.
|
|
615
|
+
tmp = new Error_0(tmp_0.bo(joinToString(result.o2(), ', ')));
|
|
561
616
|
} else {
|
|
562
617
|
// Inline function 'kotlin.runCatching' call
|
|
563
618
|
var tmp_3;
|
|
564
619
|
try {
|
|
565
|
-
_this__u8e3s4.
|
|
620
|
+
_this__u8e3s4.em_1.kl(version, 'HEAD', userName, userEmail);
|
|
566
621
|
// Inline function 'kotlin.Companion.success' call
|
|
567
622
|
tmp_3 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
568
623
|
} catch ($p) {
|
|
@@ -581,7 +636,7 @@
|
|
|
581
636
|
var tmp_5;
|
|
582
637
|
if (_Result___get_isSuccess__impl__sndoy8(this_1)) {
|
|
583
638
|
_Result___get_value__impl__bjfvqg(this_1);
|
|
584
|
-
_this__u8e3s4.
|
|
639
|
+
_this__u8e3s4.em_1.ll();
|
|
585
640
|
// Inline function 'kotlin.Companion.success' call
|
|
586
641
|
var value = Success_getInstance();
|
|
587
642
|
tmp_5 = _Result___init__impl__xyqfz8(value);
|
|
@@ -595,8 +650,14 @@
|
|
|
595
650
|
if (exception == null) {
|
|
596
651
|
tmp_6 = _Result___get_value__impl__bjfvqg(this_2);
|
|
597
652
|
} else {
|
|
598
|
-
var
|
|
599
|
-
|
|
653
|
+
var tmp_7;
|
|
654
|
+
if (exception instanceof ProcessError) {
|
|
655
|
+
tmp_7 = exception.am();
|
|
656
|
+
} else {
|
|
657
|
+
var tmp1_elvis_lhs = exception.message;
|
|
658
|
+
tmp_7 = tmp1_elvis_lhs == null ? 'Unknown error during tagging' : tmp1_elvis_lhs;
|
|
659
|
+
}
|
|
660
|
+
tmp_6 = new Error_0(tmp_7);
|
|
600
661
|
}
|
|
601
662
|
tmp = tmp_6;
|
|
602
663
|
}
|
|
@@ -606,15 +667,15 @@
|
|
|
606
667
|
return contains(_this__u8e3s4, 'SNAPSHOT');
|
|
607
668
|
}
|
|
608
669
|
function TagErrors() {
|
|
609
|
-
this.
|
|
670
|
+
this.yn_1 = 'being snapshot';
|
|
610
671
|
}
|
|
611
|
-
protoOf(TagErrors).
|
|
672
|
+
protoOf(TagErrors).bo = function (messages) {
|
|
612
673
|
return 'skipping tag due to ' + messages;
|
|
613
674
|
};
|
|
614
|
-
protoOf(TagErrors).
|
|
675
|
+
protoOf(TagErrors).zn = function (headTag) {
|
|
615
676
|
return 'already tagged ' + headTag;
|
|
616
677
|
};
|
|
617
|
-
protoOf(TagErrors).
|
|
678
|
+
protoOf(TagErrors).ao = function (releaseBranch, headBranch) {
|
|
618
679
|
return 'not on release branch ' + releaseBranch + ' - branch was ' + headBranch;
|
|
619
680
|
};
|
|
620
681
|
var TagErrors_instance;
|
|
@@ -646,49 +707,49 @@
|
|
|
646
707
|
}
|
|
647
708
|
function Error_0(message) {
|
|
648
709
|
TagResult.call(this);
|
|
649
|
-
this.
|
|
710
|
+
this.co_1 = message;
|
|
650
711
|
}
|
|
651
712
|
protoOf(Error_0).toString = function () {
|
|
652
|
-
return 'Error(message=' + this.
|
|
713
|
+
return 'Error(message=' + this.co_1 + ')';
|
|
653
714
|
};
|
|
654
715
|
protoOf(Error_0).hashCode = function () {
|
|
655
|
-
return getStringHashCode(this.
|
|
716
|
+
return getStringHashCode(this.co_1);
|
|
656
717
|
};
|
|
657
718
|
protoOf(Error_0).equals = function (other) {
|
|
658
719
|
if (this === other)
|
|
659
720
|
return true;
|
|
660
721
|
if (!(other instanceof Error_0))
|
|
661
722
|
return false;
|
|
662
|
-
if (!(this.
|
|
723
|
+
if (!(this.co_1 === other.co_1))
|
|
663
724
|
return false;
|
|
664
725
|
return true;
|
|
665
726
|
};
|
|
666
727
|
function TagResult() {
|
|
667
728
|
}
|
|
668
729
|
function TaggerCore(adapter) {
|
|
669
|
-
this.
|
|
730
|
+
this.em_1 = adapter;
|
|
670
731
|
}
|
|
671
732
|
protoOf(TaggerCore).toString = function () {
|
|
672
|
-
return 'TaggerCore(adapter=' + toString(this.
|
|
733
|
+
return 'TaggerCore(adapter=' + toString(this.em_1) + ')';
|
|
673
734
|
};
|
|
674
735
|
protoOf(TaggerCore).hashCode = function () {
|
|
675
|
-
return hashCode(this.
|
|
736
|
+
return hashCode(this.em_1);
|
|
676
737
|
};
|
|
677
738
|
protoOf(TaggerCore).equals = function (other) {
|
|
678
739
|
if (this === other)
|
|
679
740
|
return true;
|
|
680
741
|
if (!(other instanceof TaggerCore))
|
|
681
742
|
return false;
|
|
682
|
-
if (!equals(this.
|
|
743
|
+
if (!equals(this.em_1, other.em_1))
|
|
683
744
|
return false;
|
|
684
745
|
return true;
|
|
685
746
|
};
|
|
686
747
|
function Defaults() {
|
|
687
748
|
Defaults_instance = this;
|
|
688
|
-
this.
|
|
689
|
-
this.
|
|
690
|
-
this.
|
|
691
|
-
this.
|
|
749
|
+
this.do_1 = Defaults_getInstance().xk_1;
|
|
750
|
+
this.eo_1 = Defaults_getInstance().wk_1;
|
|
751
|
+
this.fo_1 = Defaults_getInstance().vk_1;
|
|
752
|
+
this.go_1 = Defaults_getInstance().uk_1;
|
|
692
753
|
}
|
|
693
754
|
var Defaults_instance;
|
|
694
755
|
function Defaults_getInstance_0() {
|
|
@@ -697,9 +758,9 @@
|
|
|
697
758
|
return Defaults_instance;
|
|
698
759
|
}
|
|
699
760
|
function Companion() {
|
|
700
|
-
this.
|
|
761
|
+
this.ho_1 = "version regex must include groups named 'major', 'minor', 'patch', and 'none'.";
|
|
701
762
|
}
|
|
702
|
-
protoOf(Companion).
|
|
763
|
+
protoOf(Companion).io = function (regexPattern) {
|
|
703
764
|
return contains(regexPattern, '?<major>') && contains(regexPattern, '?<minor>') && contains(regexPattern, '?<patch>') && contains(regexPattern, '?<none>');
|
|
704
765
|
};
|
|
705
766
|
var Companion_instance_0;
|
|
@@ -707,21 +768,21 @@
|
|
|
707
768
|
return Companion_instance_0;
|
|
708
769
|
}
|
|
709
770
|
function VersionRegex(none, patch, minor, major, unified) {
|
|
710
|
-
this.
|
|
711
|
-
this.
|
|
712
|
-
this.
|
|
713
|
-
this.
|
|
714
|
-
this.
|
|
771
|
+
this.qn_1 = none;
|
|
772
|
+
this.rn_1 = patch;
|
|
773
|
+
this.sn_1 = minor;
|
|
774
|
+
this.tn_1 = major;
|
|
775
|
+
this.un_1 = unified;
|
|
715
776
|
}
|
|
716
777
|
protoOf(VersionRegex).toString = function () {
|
|
717
|
-
return 'VersionRegex(none=' + this.
|
|
778
|
+
return 'VersionRegex(none=' + this.qn_1.toString() + ', patch=' + this.rn_1.toString() + ', minor=' + this.sn_1.toString() + ', major=' + this.tn_1.toString() + ', unified=' + toString_0(this.un_1) + ')';
|
|
718
779
|
};
|
|
719
780
|
protoOf(VersionRegex).hashCode = function () {
|
|
720
|
-
var result = hashCode(this.
|
|
721
|
-
result = imul(result, 31) + hashCode(this.
|
|
722
|
-
result = imul(result, 31) + hashCode(this.
|
|
723
|
-
result = imul(result, 31) + hashCode(this.
|
|
724
|
-
result = imul(result, 31) + (this.
|
|
781
|
+
var result = hashCode(this.qn_1);
|
|
782
|
+
result = imul(result, 31) + hashCode(this.rn_1) | 0;
|
|
783
|
+
result = imul(result, 31) + hashCode(this.sn_1) | 0;
|
|
784
|
+
result = imul(result, 31) + hashCode(this.tn_1) | 0;
|
|
785
|
+
result = imul(result, 31) + (this.un_1 == null ? 0 : hashCode(this.un_1)) | 0;
|
|
725
786
|
return result;
|
|
726
787
|
};
|
|
727
788
|
protoOf(VersionRegex).equals = function (other) {
|
|
@@ -729,32 +790,32 @@
|
|
|
729
790
|
return true;
|
|
730
791
|
if (!(other instanceof VersionRegex))
|
|
731
792
|
return false;
|
|
732
|
-
if (!equals(this.
|
|
793
|
+
if (!equals(this.qn_1, other.qn_1))
|
|
733
794
|
return false;
|
|
734
|
-
if (!equals(this.
|
|
795
|
+
if (!equals(this.rn_1, other.rn_1))
|
|
735
796
|
return false;
|
|
736
|
-
if (!equals(this.
|
|
797
|
+
if (!equals(this.sn_1, other.sn_1))
|
|
737
798
|
return false;
|
|
738
|
-
if (!equals(this.
|
|
799
|
+
if (!equals(this.tn_1, other.tn_1))
|
|
739
800
|
return false;
|
|
740
|
-
if (!equals(this.
|
|
801
|
+
if (!equals(this.un_1, other.un_1))
|
|
741
802
|
return false;
|
|
742
803
|
return true;
|
|
743
804
|
};
|
|
744
805
|
function VersionResult$Failure$_get_message_$lambda_nuugae(it) {
|
|
745
|
-
return it.
|
|
806
|
+
return it.xn_1;
|
|
746
807
|
}
|
|
747
808
|
function Success_0(version, snapshotReasons) {
|
|
748
809
|
snapshotReasons = snapshotReasons === VOID ? emptyList() : snapshotReasons;
|
|
749
|
-
this.
|
|
750
|
-
this.
|
|
810
|
+
this.jo_1 = version;
|
|
811
|
+
this.ko_1 = snapshotReasons;
|
|
751
812
|
}
|
|
752
813
|
protoOf(Success_0).toString = function () {
|
|
753
|
-
return 'Success(version=' + this.
|
|
814
|
+
return 'Success(version=' + this.jo_1 + ', snapshotReasons=' + toString(this.ko_1) + ')';
|
|
754
815
|
};
|
|
755
816
|
protoOf(Success_0).hashCode = function () {
|
|
756
|
-
var result = getStringHashCode(this.
|
|
757
|
-
result = imul(result, 31) + hashCode(this.
|
|
817
|
+
var result = getStringHashCode(this.jo_1);
|
|
818
|
+
result = imul(result, 31) + hashCode(this.ko_1) | 0;
|
|
758
819
|
return result;
|
|
759
820
|
};
|
|
760
821
|
protoOf(Success_0).equals = function (other) {
|
|
@@ -762,30 +823,43 @@
|
|
|
762
823
|
return true;
|
|
763
824
|
if (!(other instanceof Success_0))
|
|
764
825
|
return false;
|
|
765
|
-
if (!(this.
|
|
826
|
+
if (!(this.jo_1 === other.jo_1))
|
|
766
827
|
return false;
|
|
767
|
-
if (!equals(this.
|
|
828
|
+
if (!equals(this.ko_1, other.ko_1))
|
|
768
829
|
return false;
|
|
769
830
|
return true;
|
|
770
831
|
};
|
|
771
|
-
function Failure(reasons) {
|
|
772
|
-
|
|
832
|
+
function Failure(reasons, customMessage) {
|
|
833
|
+
customMessage = customMessage === VOID ? null : customMessage;
|
|
834
|
+
this.lo_1 = reasons;
|
|
835
|
+
this.mo_1 = customMessage;
|
|
773
836
|
}
|
|
774
837
|
protoOf(Failure).ba = function () {
|
|
775
|
-
|
|
838
|
+
var tmp0_elvis_lhs = this.mo_1;
|
|
839
|
+
var tmp;
|
|
840
|
+
if (tmp0_elvis_lhs == null) {
|
|
841
|
+
tmp = 'Inappropriate configuration: ' + joinToString(this.lo_1, '\n', VOID, VOID, VOID, VOID, VersionResult$Failure$_get_message_$lambda_nuugae);
|
|
842
|
+
} else {
|
|
843
|
+
tmp = tmp0_elvis_lhs;
|
|
844
|
+
}
|
|
845
|
+
return tmp;
|
|
776
846
|
};
|
|
777
847
|
protoOf(Failure).toString = function () {
|
|
778
|
-
return 'Failure(reasons=' + toString(this.
|
|
848
|
+
return 'Failure(reasons=' + toString(this.lo_1) + ', customMessage=' + this.mo_1 + ')';
|
|
779
849
|
};
|
|
780
850
|
protoOf(Failure).hashCode = function () {
|
|
781
|
-
|
|
851
|
+
var result = hashCode(this.lo_1);
|
|
852
|
+
result = imul(result, 31) + (this.mo_1 == null ? 0 : getStringHashCode(this.mo_1)) | 0;
|
|
853
|
+
return result;
|
|
782
854
|
};
|
|
783
855
|
protoOf(Failure).equals = function (other) {
|
|
784
856
|
if (this === other)
|
|
785
857
|
return true;
|
|
786
858
|
if (!(other instanceof Failure))
|
|
787
859
|
return false;
|
|
788
|
-
if (!equals(this.
|
|
860
|
+
if (!equals(this.lo_1, other.lo_1))
|
|
861
|
+
return false;
|
|
862
|
+
if (!(this.mo_1 == other.mo_1))
|
|
789
863
|
return false;
|
|
790
864
|
return true;
|
|
791
865
|
};
|
|
@@ -807,6 +881,6 @@
|
|
|
807
881
|
_.$_$.j = Defaults_getInstance_0;
|
|
808
882
|
//endregion
|
|
809
883
|
return _;
|
|
810
|
-
}(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./tools-digger-core.js')));
|
|
884
|
+
}(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./tools-git-adapter.js'), require('./tools-digger-core.js')));
|
|
811
885
|
|
|
812
886
|
//# sourceMappingURL=tools-tagger-core.js.map
|