git-digger 1.5.8 → 1.5.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js +51 -51
- package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
- package/kotlin/bin/digger +0 -0
- package/kotlin/clikt-clikt.js +1173 -1173
- package/kotlin/colormath-root-colormath.js +421 -421
- package/kotlin/kotlin-kotlin-stdlib.js +354 -342
- package/kotlin/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +64 -64
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +230 -230
- package/kotlin/markdown.js +1870 -1870
- package/kotlin/mordant-mordant.js +1600 -1600
- package/kotlin/tools-cli-tools.js +2 -2
- package/kotlin/tools-digger-cli.js +72 -72
- package/kotlin/tools-digger-core.js +108 -108
- package/kotlin/tools-digger-json.js +67 -67
- package/kotlin/tools-digger-model.js +7 -7
- package/kotlin/tools-git-adapter.js +55 -46
- package/kotlin/tools-git-adapter.js.map +1 -1
- package/package.json +1 -1
|
@@ -7,59 +7,59 @@
|
|
|
7
7
|
var Unit_instance = kotlin_kotlin.$_$.l3;
|
|
8
8
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.i4;
|
|
9
9
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.l;
|
|
10
|
-
var to = kotlin_kotlin.$_$.
|
|
10
|
+
var to = kotlin_kotlin.$_$.fd;
|
|
11
11
|
var firstOrNull = kotlin_kotlin.$_$.y4;
|
|
12
|
-
var Pair = kotlin_kotlin.$_$.
|
|
12
|
+
var Pair = kotlin_kotlin.$_$.hc;
|
|
13
13
|
var listOf = kotlin_kotlin.$_$.s5;
|
|
14
14
|
var checkIndexOverflow = kotlin_kotlin.$_$.h4;
|
|
15
15
|
var getOrNull = kotlin_kotlin.$_$.c5;
|
|
16
|
-
var plus = kotlin_kotlin.$_$.
|
|
16
|
+
var plus = kotlin_kotlin.$_$.d6;
|
|
17
17
|
var emptyList = kotlin_kotlin.$_$.u4;
|
|
18
|
-
var plus_0 = kotlin_kotlin.$_$.
|
|
18
|
+
var plus_0 = kotlin_kotlin.$_$.e6;
|
|
19
19
|
var last = kotlin_kotlin.$_$.q5;
|
|
20
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
21
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
22
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
23
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
24
|
-
var equals = kotlin_kotlin.$_$.
|
|
25
|
-
var classMeta = kotlin_kotlin.$_$.
|
|
26
|
-
var setMetadataFor = kotlin_kotlin.$_$.
|
|
20
|
+
var protoOf = kotlin_kotlin.$_$.z8;
|
|
21
|
+
var getStringHashCode = kotlin_kotlin.$_$.c8;
|
|
22
|
+
var hashCode = kotlin_kotlin.$_$.d8;
|
|
23
|
+
var THROW_CCE = kotlin_kotlin.$_$.kc;
|
|
24
|
+
var equals = kotlin_kotlin.$_$.x7;
|
|
25
|
+
var classMeta = kotlin_kotlin.$_$.v7;
|
|
26
|
+
var setMetadataFor = kotlin_kotlin.$_$.a9;
|
|
27
27
|
var lastOrNull = kotlin_kotlin.$_$.n5;
|
|
28
28
|
var maxOrNull = kotlin_kotlin.$_$.w5;
|
|
29
29
|
var Contribution = kotlin_com_zegreatrob_tools_digger_model.$_$.a;
|
|
30
30
|
var listOf_0 = kotlin_kotlin.$_$.t5;
|
|
31
31
|
var addAll = kotlin_kotlin.$_$.z3;
|
|
32
|
-
var toSet = kotlin_kotlin.$_$.
|
|
33
|
-
var sorted = kotlin_kotlin.$_$.
|
|
34
|
-
var toList = kotlin_kotlin.$_$.
|
|
32
|
+
var toSet = kotlin_kotlin.$_$.c7;
|
|
33
|
+
var sorted = kotlin_kotlin.$_$.p6;
|
|
34
|
+
var toList = kotlin_kotlin.$_$.x6;
|
|
35
35
|
var joinToString = kotlin_kotlin.$_$.h5;
|
|
36
36
|
var Regex_init_$Create$ = kotlin_kotlin.$_$.u;
|
|
37
|
-
var objectMeta = kotlin_kotlin.$_$.
|
|
37
|
+
var objectMeta = kotlin_kotlin.$_$.y8;
|
|
38
38
|
var VOID = kotlin_kotlin.$_$.g;
|
|
39
|
-
var take = kotlin_kotlin.$_$.
|
|
39
|
+
var take = kotlin_kotlin.$_$.t6;
|
|
40
40
|
var RegexOption_IGNORE_CASE_getInstance = kotlin_kotlin.$_$.h;
|
|
41
41
|
var Regex_init_$Create$_0 = kotlin_kotlin.$_$.v;
|
|
42
42
|
var RuntimeException_init_$Create$ = kotlin_kotlin.$_$.o1;
|
|
43
|
-
var contains = kotlin_kotlin.$_$.
|
|
43
|
+
var contains = kotlin_kotlin.$_$.fa;
|
|
44
44
|
var mapOf = kotlin_kotlin.$_$.v5;
|
|
45
45
|
var RegexOption_MULTILINE_getInstance = kotlin_kotlin.$_$.i;
|
|
46
|
-
var setOf = kotlin_kotlin.$_$.
|
|
47
|
-
var Regex = kotlin_kotlin.$_$.
|
|
48
|
-
var firstOrNull_0 = kotlin_kotlin.$_$.
|
|
49
|
-
var lastIndexOf = kotlin_kotlin.$_$.
|
|
50
|
-
var Char = kotlin_kotlin.$_$.
|
|
46
|
+
var setOf = kotlin_kotlin.$_$.j6;
|
|
47
|
+
var Regex = kotlin_kotlin.$_$.ba;
|
|
48
|
+
var firstOrNull_0 = kotlin_kotlin.$_$.ka;
|
|
49
|
+
var lastIndexOf = kotlin_kotlin.$_$.wa;
|
|
50
|
+
var Char = kotlin_kotlin.$_$.yb;
|
|
51
51
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.s1;
|
|
52
|
-
var mapNotNull = kotlin_kotlin.$_$.
|
|
53
|
-
var toList_0 = kotlin_kotlin.$_$.
|
|
54
|
-
var maxOrNull_0 = kotlin_kotlin.$_$.
|
|
55
|
-
var get = kotlin_kotlin.$_$.
|
|
56
|
-
var toIntOrNull = kotlin_kotlin.$_$.
|
|
52
|
+
var mapNotNull = kotlin_kotlin.$_$.x9;
|
|
53
|
+
var toList_0 = kotlin_kotlin.$_$.aa;
|
|
54
|
+
var maxOrNull_0 = kotlin_kotlin.$_$.z9;
|
|
55
|
+
var get = kotlin_kotlin.$_$.ma;
|
|
56
|
+
var toIntOrNull = kotlin_kotlin.$_$.pb;
|
|
57
57
|
var Companion_instance = kotlin_kotlin.$_$.g3;
|
|
58
58
|
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.x1;
|
|
59
|
-
var createFailure = kotlin_kotlin.$_$.
|
|
59
|
+
var createFailure = kotlin_kotlin.$_$.xc;
|
|
60
60
|
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.a2;
|
|
61
61
|
var _Result___get_isFailure__impl__jpiriv = kotlin_kotlin.$_$.y1;
|
|
62
|
-
var Enum = kotlin_kotlin.$_$.
|
|
62
|
+
var Enum = kotlin_kotlin.$_$.cc;
|
|
63
63
|
//endregion
|
|
64
64
|
//region block: pre-declaration
|
|
65
65
|
setMetadataFor(CommitInspectionResult, 'CommitInspectionResult', classMeta);
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
while (tmp0_iterator.s()) {
|
|
80
80
|
var e = tmp0_iterator.u();
|
|
81
81
|
// Inline function 'com.zegreatrob.tools.digger.core.allContributionCommits.<anonymous>' call
|
|
82
|
-
var key = e.
|
|
82
|
+
var key = e.y17_1;
|
|
83
83
|
if (set.o(key)) {
|
|
84
84
|
list.o(e);
|
|
85
85
|
}
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
var tmp$ret$2 = item.i17_1;
|
|
100
100
|
destination_0.o(tmp$ret$2);
|
|
101
101
|
}
|
|
102
|
-
if (destination_0.n(element.
|
|
102
|
+
if (destination_0.n(element.y17_1)) {
|
|
103
103
|
destination.o(element);
|
|
104
104
|
}
|
|
105
105
|
}
|
|
@@ -119,11 +119,11 @@
|
|
|
119
119
|
var nextTag = item.b6();
|
|
120
120
|
var tmp;
|
|
121
121
|
if (earlierTag == null ? !(nextTag == null) : false) {
|
|
122
|
-
tmp = _this__u8e3s4.
|
|
122
|
+
tmp = _this__u8e3s4.v17('^' + nextTag.y17_1, 'HEAD');
|
|
123
123
|
} else if (!(earlierTag == null) ? !(nextTag == null) : false) {
|
|
124
|
-
tmp = _this__u8e3s4.
|
|
124
|
+
tmp = _this__u8e3s4.v17('^' + nextTag.y17_1, earlierTag.y17_1);
|
|
125
125
|
} else if (!(earlierTag == null)) {
|
|
126
|
-
tmp = _this__u8e3s4.
|
|
126
|
+
tmp = _this__u8e3s4.w17(earlierTag.y17_1);
|
|
127
127
|
} else {
|
|
128
128
|
tmp = alwaysLeftParent(log);
|
|
129
129
|
}
|
|
@@ -182,19 +182,19 @@
|
|
|
182
182
|
return accumulator;
|
|
183
183
|
}
|
|
184
184
|
function CommitInspectionResult(storyId, ease, authors, semver) {
|
|
185
|
-
this.
|
|
186
|
-
this.
|
|
187
|
-
this.
|
|
188
|
-
this.
|
|
185
|
+
this.a18_1 = storyId;
|
|
186
|
+
this.b18_1 = ease;
|
|
187
|
+
this.c18_1 = authors;
|
|
188
|
+
this.d18_1 = semver;
|
|
189
189
|
}
|
|
190
190
|
protoOf(CommitInspectionResult).toString = function () {
|
|
191
|
-
return 'CommitInspectionResult(storyId=' + this.
|
|
191
|
+
return 'CommitInspectionResult(storyId=' + this.a18_1 + ', ease=' + this.b18_1 + ', authors=' + this.c18_1 + ', semver=' + this.d18_1 + ')';
|
|
192
192
|
};
|
|
193
193
|
protoOf(CommitInspectionResult).hashCode = function () {
|
|
194
|
-
var result = this.
|
|
195
|
-
result = imul(result, 31) + (this.
|
|
196
|
-
result = imul(result, 31) + hashCode(this.
|
|
197
|
-
result = imul(result, 31) + (this.
|
|
194
|
+
var result = this.a18_1 == null ? 0 : getStringHashCode(this.a18_1);
|
|
195
|
+
result = imul(result, 31) + (this.b18_1 == null ? 0 : this.b18_1) | 0;
|
|
196
|
+
result = imul(result, 31) + hashCode(this.c18_1) | 0;
|
|
197
|
+
result = imul(result, 31) + (this.d18_1 == null ? 0 : this.d18_1.hashCode()) | 0;
|
|
198
198
|
return result;
|
|
199
199
|
};
|
|
200
200
|
protoOf(CommitInspectionResult).equals = function (other) {
|
|
@@ -203,14 +203,14 @@
|
|
|
203
203
|
if (!(other instanceof CommitInspectionResult))
|
|
204
204
|
return false;
|
|
205
205
|
var tmp0_other_with_cast = other instanceof CommitInspectionResult ? other : THROW_CCE();
|
|
206
|
-
if (!(this.z17_1 == tmp0_other_with_cast.z17_1))
|
|
207
|
-
return false;
|
|
208
206
|
if (!(this.a18_1 == tmp0_other_with_cast.a18_1))
|
|
209
207
|
return false;
|
|
210
|
-
if (!
|
|
208
|
+
if (!(this.b18_1 == tmp0_other_with_cast.b18_1))
|
|
211
209
|
return false;
|
|
212
210
|
if (!equals(this.c18_1, tmp0_other_with_cast.c18_1))
|
|
213
211
|
return false;
|
|
212
|
+
if (!equals(this.d18_1, tmp0_other_with_cast.d18_1))
|
|
213
|
+
return false;
|
|
214
214
|
return true;
|
|
215
215
|
};
|
|
216
216
|
function contribution(_this__u8e3s4, commitRefs) {
|
|
@@ -221,7 +221,7 @@
|
|
|
221
221
|
while (tmp0_iterator.s()) {
|
|
222
222
|
var item = tmp0_iterator.u();
|
|
223
223
|
// Inline function 'com.zegreatrob.tools.digger.core.contribution.<anonymous>' call
|
|
224
|
-
var tmp$ret$0 = commitInspectionResult(item, _this__u8e3s4.
|
|
224
|
+
var tmp$ret$0 = commitInspectionResult(item, _this__u8e3s4.k18(item.n17_1));
|
|
225
225
|
destination.o(tmp$ret$0);
|
|
226
226
|
}
|
|
227
227
|
var messageDigResults = destination;
|
|
@@ -243,7 +243,7 @@
|
|
|
243
243
|
var element = tmp0_iterator_0.u();
|
|
244
244
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
245
245
|
// Inline function 'com.zegreatrob.tools.digger.core.contribution.<anonymous>' call
|
|
246
|
-
var tmp0_safe_receiver = element.
|
|
246
|
+
var tmp0_safe_receiver = element.b18_1;
|
|
247
247
|
if (tmp0_safe_receiver == null)
|
|
248
248
|
null;
|
|
249
249
|
else {
|
|
@@ -263,7 +263,7 @@
|
|
|
263
263
|
var element_0 = tmp0_iterator_1.u();
|
|
264
264
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
265
265
|
// Inline function 'com.zegreatrob.tools.digger.core.contribution.<anonymous>' call
|
|
266
|
-
var tmp0_safe_receiver_0 = element_0.
|
|
266
|
+
var tmp0_safe_receiver_0 = element_0.d18_1;
|
|
267
267
|
if (tmp0_safe_receiver_0 == null)
|
|
268
268
|
null;
|
|
269
269
|
else {
|
|
@@ -279,7 +279,7 @@
|
|
|
279
279
|
return new Contribution(tmp7_lastCommit, tmp8_firstCommit, tmp9_authors, tmp15_commitCount, tmp10_dateTime, tmp11_firstCommitDateTime, tmp12_ease, tmp13_storyId, tmp14_semver, null, null, null);
|
|
280
280
|
}
|
|
281
281
|
function commitInspectionResult(_this__u8e3s4, digResult) {
|
|
282
|
-
return new CommitInspectionResult(digResult.
|
|
282
|
+
return new CommitInspectionResult(digResult.l18_1, digResult.m18_1, plus(listOf_0([_this__u8e3s4.k17_1, _this__u8e3s4.j17_1]), digResult.n18_1), digResult.o18_1);
|
|
283
283
|
}
|
|
284
284
|
function allAuthors(messageDigResults) {
|
|
285
285
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -289,7 +289,7 @@
|
|
|
289
289
|
var tmp0_iterator = messageDigResults.r();
|
|
290
290
|
while (tmp0_iterator.s()) {
|
|
291
291
|
var element = tmp0_iterator.u();
|
|
292
|
-
var list = element.
|
|
292
|
+
var list = element.c18_1;
|
|
293
293
|
addAll(destination, list);
|
|
294
294
|
}
|
|
295
295
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -315,7 +315,7 @@
|
|
|
315
315
|
while (tmp0_iterator.s()) {
|
|
316
316
|
var element = tmp0_iterator.u();
|
|
317
317
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
318
|
-
var tmp0_safe_receiver = element.
|
|
318
|
+
var tmp0_safe_receiver = element.a18_1;
|
|
319
319
|
if (tmp0_safe_receiver == null)
|
|
320
320
|
null;
|
|
321
321
|
else {
|
|
@@ -338,22 +338,22 @@
|
|
|
338
338
|
function currentContributionCommits(_this__u8e3s4, previousTag) {
|
|
339
339
|
var tmp;
|
|
340
340
|
if (previousTag == null) {
|
|
341
|
-
tmp = _this__u8e3s4.
|
|
341
|
+
tmp = _this__u8e3s4.u17();
|
|
342
342
|
} else {
|
|
343
|
-
tmp = _this__u8e3s4.
|
|
343
|
+
tmp = _this__u8e3s4.v17('^' + previousTag.x17_1, 'HEAD');
|
|
344
344
|
}
|
|
345
345
|
return tmp;
|
|
346
346
|
}
|
|
347
347
|
function tagRefs($this) {
|
|
348
348
|
// Inline function 'kotlin.collections.filter' call
|
|
349
349
|
// Inline function 'kotlin.collections.filterTo' call
|
|
350
|
-
var this_0 = $this.
|
|
350
|
+
var this_0 = $this.q18_1.t17();
|
|
351
351
|
var destination = ArrayList_init_$Create$();
|
|
352
352
|
var tmp0_iterator = this_0.r();
|
|
353
353
|
while (tmp0_iterator.s()) {
|
|
354
354
|
var element = tmp0_iterator.u();
|
|
355
355
|
// Inline function 'com.zegreatrob.tools.digger.core.DiggerCore.tagRefs.<anonymous>' call
|
|
356
|
-
if ($this.
|
|
356
|
+
if ($this.s18_1.j8(element.x17_1)) {
|
|
357
357
|
destination.o(element);
|
|
358
358
|
}
|
|
359
359
|
}
|
|
@@ -365,7 +365,7 @@
|
|
|
365
365
|
// Inline function 'com.zegreatrob.tools.digger.core.DiggerCore.currentRelevantTags.<anonymous>' call
|
|
366
366
|
var latestTag = getOrNull(lastTwoTags, 0);
|
|
367
367
|
var tmp;
|
|
368
|
-
if ((latestTag == null ? null : latestTag.
|
|
368
|
+
if ((latestTag == null ? null : latestTag.y17_1) === headCommitId) {
|
|
369
369
|
tmp = to(latestTag, getOrNull(lastTwoTags, 1));
|
|
370
370
|
} else {
|
|
371
371
|
tmp = to(null, latestTag);
|
|
@@ -374,7 +374,7 @@
|
|
|
374
374
|
}
|
|
375
375
|
function Defaults() {
|
|
376
376
|
Defaults_instance = this;
|
|
377
|
-
this.
|
|
377
|
+
this.t18_1 = Regex_init_$Create$('.*');
|
|
378
378
|
}
|
|
379
379
|
var Defaults_instance;
|
|
380
380
|
function Defaults_getInstance() {
|
|
@@ -383,35 +383,35 @@
|
|
|
383
383
|
return Defaults_instance;
|
|
384
384
|
}
|
|
385
385
|
function DiggerCore(label, gitWrapper, messageDigger, tagRegex) {
|
|
386
|
-
tagRegex = tagRegex === VOID ? Defaults_getInstance().
|
|
387
|
-
this.
|
|
388
|
-
this.
|
|
389
|
-
this.
|
|
390
|
-
this.
|
|
386
|
+
tagRegex = tagRegex === VOID ? Defaults_getInstance().t18_1 : tagRegex;
|
|
387
|
+
this.p18_1 = label;
|
|
388
|
+
this.q18_1 = gitWrapper;
|
|
389
|
+
this.r18_1 = messageDigger;
|
|
390
|
+
this.s18_1 = tagRegex;
|
|
391
391
|
}
|
|
392
|
-
protoOf(DiggerCore).
|
|
392
|
+
protoOf(DiggerCore).u18 = function () {
|
|
393
393
|
// Inline function 'kotlin.with' call
|
|
394
394
|
// Inline function 'kotlin.contracts.contract' call
|
|
395
395
|
// Inline function 'com.zegreatrob.tools.digger.core.DiggerCore.currentContributionData.<anonymous>' call
|
|
396
|
-
var $this$with = this.
|
|
397
|
-
var tmp0_container = currentRelevantTags(this, $this$with.
|
|
396
|
+
var $this$with = this.q18_1;
|
|
397
|
+
var tmp0_container = currentRelevantTags(this, $this$with.s17(), take(tagRefs(this), 2));
|
|
398
398
|
var currentTag = tmp0_container.a6();
|
|
399
399
|
var previousTag = tmp0_container.b6();
|
|
400
|
-
var tmp = contribution(this.
|
|
401
|
-
var tmp_0 = currentTag == null ? null : currentTag.
|
|
402
|
-
return tmp.h17(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.
|
|
400
|
+
var tmp = contribution(this.r18_1, currentContributionCommits($this$with, previousTag));
|
|
401
|
+
var tmp_0 = currentTag == null ? null : currentTag.x17_1;
|
|
402
|
+
return tmp.h17(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.p18_1, tmp_0, currentTag == null ? null : currentTag.z17_1);
|
|
403
403
|
};
|
|
404
|
-
protoOf(DiggerCore).
|
|
404
|
+
protoOf(DiggerCore).v18 = function () {
|
|
405
405
|
// Inline function 'kotlin.collections.map' call
|
|
406
406
|
// Inline function 'kotlin.collections.map' call
|
|
407
|
-
var this_0 = allContributionCommits(this.
|
|
407
|
+
var this_0 = allContributionCommits(this.q18_1, tagRefs(this), this.q18_1.u17());
|
|
408
408
|
// Inline function 'kotlin.collections.mapTo' call
|
|
409
409
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
410
410
|
var tmp0_iterator = this_0.r();
|
|
411
411
|
while (tmp0_iterator.s()) {
|
|
412
412
|
var item = tmp0_iterator.u();
|
|
413
413
|
// Inline function 'com.zegreatrob.tools.digger.core.DiggerCore.allContributionData.<anonymous>' call
|
|
414
|
-
var tmp$ret$0 = to(item.y5_1, contribution(this.
|
|
414
|
+
var tmp$ret$0 = to(item.y5_1, contribution(this.r18_1, toList(item.z5_1)));
|
|
415
415
|
destination.o(tmp$ret$0);
|
|
416
416
|
}
|
|
417
417
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -422,26 +422,26 @@
|
|
|
422
422
|
// Inline function 'com.zegreatrob.tools.digger.core.DiggerCore.allContributionData.<anonymous>' call
|
|
423
423
|
var tag = item_0.a6();
|
|
424
424
|
var contribution_0 = item_0.b6();
|
|
425
|
-
var tmp = tag == null ? null : tag.
|
|
426
|
-
var tmp$ret$3 = contribution_0.h17(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.
|
|
425
|
+
var tmp = tag == null ? null : tag.x17_1;
|
|
426
|
+
var tmp$ret$3 = contribution_0.h17(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.p18_1, tmp, tag == null ? null : tag.z17_1);
|
|
427
427
|
destination_0.o(tmp$ret$3);
|
|
428
428
|
}
|
|
429
429
|
return destination_0;
|
|
430
430
|
};
|
|
431
431
|
function MessageDigResult(storyId, ease, coauthors, semver) {
|
|
432
|
-
this.
|
|
433
|
-
this.
|
|
434
|
-
this.
|
|
435
|
-
this.
|
|
432
|
+
this.l18_1 = storyId;
|
|
433
|
+
this.m18_1 = ease;
|
|
434
|
+
this.n18_1 = coauthors;
|
|
435
|
+
this.o18_1 = semver;
|
|
436
436
|
}
|
|
437
437
|
protoOf(MessageDigResult).toString = function () {
|
|
438
|
-
return 'MessageDigResult(storyId=' + this.
|
|
438
|
+
return 'MessageDigResult(storyId=' + this.l18_1 + ', ease=' + this.m18_1 + ', coauthors=' + this.n18_1 + ', semver=' + this.o18_1 + ')';
|
|
439
439
|
};
|
|
440
440
|
protoOf(MessageDigResult).hashCode = function () {
|
|
441
|
-
var result = this.
|
|
442
|
-
result = imul(result, 31) + (this.
|
|
443
|
-
result = imul(result, 31) + hashCode(this.
|
|
444
|
-
result = imul(result, 31) + (this.
|
|
441
|
+
var result = this.l18_1 == null ? 0 : getStringHashCode(this.l18_1);
|
|
442
|
+
result = imul(result, 31) + (this.m18_1 == null ? 0 : this.m18_1) | 0;
|
|
443
|
+
result = imul(result, 31) + hashCode(this.n18_1) | 0;
|
|
444
|
+
result = imul(result, 31) + (this.o18_1 == null ? 0 : this.o18_1.hashCode()) | 0;
|
|
445
445
|
return result;
|
|
446
446
|
};
|
|
447
447
|
protoOf(MessageDigResult).equals = function (other) {
|
|
@@ -450,24 +450,24 @@
|
|
|
450
450
|
if (!(other instanceof MessageDigResult))
|
|
451
451
|
return false;
|
|
452
452
|
var tmp0_other_with_cast = other instanceof MessageDigResult ? other : THROW_CCE();
|
|
453
|
-
if (!(this.k18_1 == tmp0_other_with_cast.k18_1))
|
|
454
|
-
return false;
|
|
455
453
|
if (!(this.l18_1 == tmp0_other_with_cast.l18_1))
|
|
456
454
|
return false;
|
|
457
|
-
if (!
|
|
455
|
+
if (!(this.m18_1 == tmp0_other_with_cast.m18_1))
|
|
458
456
|
return false;
|
|
459
457
|
if (!equals(this.n18_1, tmp0_other_with_cast.n18_1))
|
|
460
458
|
return false;
|
|
459
|
+
if (!equals(this.o18_1, tmp0_other_with_cast.o18_1))
|
|
460
|
+
return false;
|
|
461
461
|
return true;
|
|
462
462
|
};
|
|
463
463
|
function Defaults_0() {
|
|
464
464
|
Defaults_instance_0 = this;
|
|
465
|
-
this.
|
|
466
|
-
this.
|
|
467
|
-
this.
|
|
468
|
-
this.
|
|
469
|
-
this.
|
|
470
|
-
this.
|
|
465
|
+
this.w18_1 = Regex_init_$Create$_0('\\[major\\]', RegexOption_IGNORE_CASE_getInstance());
|
|
466
|
+
this.x18_1 = Regex_init_$Create$_0('\\[minor\\]', RegexOption_IGNORE_CASE_getInstance());
|
|
467
|
+
this.y18_1 = Regex_init_$Create$_0('\\[patch\\]', RegexOption_IGNORE_CASE_getInstance());
|
|
468
|
+
this.z18_1 = Regex_init_$Create$_0('\\[none\\]', RegexOption_IGNORE_CASE_getInstance());
|
|
469
|
+
this.a19_1 = Regex_init_$Create$('\\[(?<storyId>.*?)\\]');
|
|
470
|
+
this.b19_1 = Regex_init_$Create$('-(?<ease>[1-5])-');
|
|
471
471
|
}
|
|
472
472
|
var Defaults_instance_0;
|
|
473
473
|
function Defaults_getInstance_0() {
|
|
@@ -476,22 +476,22 @@
|
|
|
476
476
|
return Defaults_instance_0;
|
|
477
477
|
}
|
|
478
478
|
function MessageDigger(majorRegex, minorRegex, patchRegex, noneRegex, storyIdRegex, easeRegex) {
|
|
479
|
-
majorRegex = majorRegex === VOID ? Defaults_getInstance_0().
|
|
480
|
-
minorRegex = minorRegex === VOID ? Defaults_getInstance_0().
|
|
481
|
-
patchRegex = patchRegex === VOID ? Defaults_getInstance_0().
|
|
482
|
-
noneRegex = noneRegex === VOID ? Defaults_getInstance_0().
|
|
483
|
-
storyIdRegex = storyIdRegex === VOID ? Defaults_getInstance_0().
|
|
484
|
-
easeRegex = easeRegex === VOID ? Defaults_getInstance_0().
|
|
479
|
+
majorRegex = majorRegex === VOID ? Defaults_getInstance_0().w18_1 : majorRegex;
|
|
480
|
+
minorRegex = minorRegex === VOID ? Defaults_getInstance_0().x18_1 : minorRegex;
|
|
481
|
+
patchRegex = patchRegex === VOID ? Defaults_getInstance_0().y18_1 : patchRegex;
|
|
482
|
+
noneRegex = noneRegex === VOID ? Defaults_getInstance_0().z18_1 : noneRegex;
|
|
483
|
+
storyIdRegex = storyIdRegex === VOID ? Defaults_getInstance_0().a19_1 : storyIdRegex;
|
|
484
|
+
easeRegex = easeRegex === VOID ? Defaults_getInstance_0().b19_1 : easeRegex;
|
|
485
485
|
if (!contains(storyIdRegex.d8_1, '?<storyId>')) {
|
|
486
486
|
throw RuntimeException_init_$Create$('StoryIdRegex must include a storyId group. The regex was: ' + storyIdRegex.d8_1);
|
|
487
487
|
}
|
|
488
488
|
if (!contains(easeRegex.d8_1, '?<ease>')) {
|
|
489
489
|
throw RuntimeException_init_$Create$('EaseRegex must include an ease group. The regex was: ' + easeRegex.d8_1);
|
|
490
490
|
}
|
|
491
|
-
this.
|
|
491
|
+
this.e18_1 = mapOf([to('major', majorRegex), to('minor', minorRegex), to('patch', patchRegex), to('none', noneRegex)]);
|
|
492
492
|
var tmp = this;
|
|
493
493
|
// Inline function 'kotlin.collections.map' call
|
|
494
|
-
var this_0 = this.
|
|
494
|
+
var this_0 = this.e18_1;
|
|
495
495
|
// Inline function 'kotlin.collections.mapTo' call
|
|
496
496
|
var destination = ArrayList_init_$Create$_0(this_0.l());
|
|
497
497
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -506,14 +506,14 @@
|
|
|
506
506
|
var tmp$ret$3 = '(?<' + group + '>' + cleaned(regex) + ')?';
|
|
507
507
|
destination.o(tmp$ret$3);
|
|
508
508
|
}
|
|
509
|
-
tmp.
|
|
510
|
-
this.
|
|
511
|
-
this.
|
|
512
|
-
this.
|
|
513
|
-
this.
|
|
514
|
-
}
|
|
515
|
-
protoOf(MessageDigger).
|
|
516
|
-
return messageDigResult(this.
|
|
509
|
+
tmp.f18_1 = joinToString(destination, '');
|
|
510
|
+
this.g18_1 = '(' + cleaned(storyIdRegex) + ')?';
|
|
511
|
+
this.h18_1 = '(' + cleaned(easeRegex) + ')?';
|
|
512
|
+
this.i18_1 = '(Co-authored-by: .* <(?<coAuthors>.*)>)?';
|
|
513
|
+
this.j18_1 = new Regex(this.f18_1 + this.g18_1 + this.h18_1 + this.i18_1, setOf([RegexOption_IGNORE_CASE_getInstance(), RegexOption_MULTILINE_getInstance()]));
|
|
514
|
+
}
|
|
515
|
+
protoOf(MessageDigger).k18 = function (input) {
|
|
516
|
+
return messageDigResult(this.j18_1.m8(input));
|
|
517
517
|
};
|
|
518
518
|
function cleaned(_this__u8e3s4) {
|
|
519
519
|
var first = firstOrNull_0(_this__u8e3s4.d8_1);
|