git-digger 1.5.19 → 1.5.21
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 +1266 -1266
- package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
- package/kotlin/clikt-clikt-mordant.js +91 -91
- package/kotlin/clikt-clikt.js +1806 -1731
- package/kotlin/clikt-clikt.js.map +1 -1
- package/kotlin/colormath-root-colormath.js +473 -473
- package/kotlin/command-line-tools-digger-cli.js +72 -72
- package/kotlin/kotlin-kotlin-stdlib.js +1875 -1669
- package/kotlin/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +921 -921
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +322 -322
- package/kotlin/mordant-mordant.js +1385 -1385
- package/kotlin/tools-cli-tools.js +3 -3
- package/kotlin/tools-digger-core.js +159 -159
- package/kotlin/tools-digger-json.js +114 -114
- package/kotlin/tools-digger-model.js +60 -60
- package/kotlin/tools-git-adapter.js +73 -73
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
(function (_, kotlin_kotlin) {
|
|
2
2
|
'use strict';
|
|
3
3
|
//region block: imports
|
|
4
|
-
var until = kotlin_kotlin.$_$.
|
|
5
|
-
var slice = kotlin_kotlin.$_$.
|
|
6
|
-
var copyToArray = kotlin_kotlin.$_$.
|
|
4
|
+
var until = kotlin_kotlin.$_$.a9;
|
|
5
|
+
var slice = kotlin_kotlin.$_$.z5;
|
|
6
|
+
var copyToArray = kotlin_kotlin.$_$.j4;
|
|
7
7
|
//endregion
|
|
8
8
|
//region block: pre-declaration
|
|
9
9
|
//endregion
|
|
@@ -4,63 +4,63 @@
|
|
|
4
4
|
var imul = Math.imul;
|
|
5
5
|
var HashSet_init_$Create$ = kotlin_kotlin.$_$.p;
|
|
6
6
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.l;
|
|
7
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
8
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
7
|
+
var Unit_instance = kotlin_kotlin.$_$.h3;
|
|
8
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.e4;
|
|
9
9
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.k;
|
|
10
|
-
var to = kotlin_kotlin.$_$.
|
|
11
|
-
var firstOrNull = kotlin_kotlin.$_$.
|
|
12
|
-
var Pair = kotlin_kotlin.$_$.
|
|
13
|
-
var listOf = kotlin_kotlin.$_$.
|
|
14
|
-
var checkIndexOverflow = kotlin_kotlin.$_$.
|
|
15
|
-
var getOrNull = kotlin_kotlin.$_$.
|
|
16
|
-
var plus = kotlin_kotlin.$_$.
|
|
17
|
-
var emptyList = kotlin_kotlin.$_$.
|
|
18
|
-
var plus_0 = kotlin_kotlin.$_$.
|
|
19
|
-
var last = kotlin_kotlin.$_$.
|
|
20
|
-
var toString = kotlin_kotlin.$_$.
|
|
21
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
22
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
23
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
24
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
25
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
26
|
-
var equals = kotlin_kotlin.$_$.
|
|
27
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
28
|
-
var lastOrNull = kotlin_kotlin.$_$.
|
|
29
|
-
var maxOrNull = kotlin_kotlin.$_$.
|
|
10
|
+
var to = kotlin_kotlin.$_$.wc;
|
|
11
|
+
var firstOrNull = kotlin_kotlin.$_$.p4;
|
|
12
|
+
var Pair = kotlin_kotlin.$_$.vb;
|
|
13
|
+
var listOf = kotlin_kotlin.$_$.g5;
|
|
14
|
+
var checkIndexOverflow = kotlin_kotlin.$_$.d4;
|
|
15
|
+
var getOrNull = kotlin_kotlin.$_$.t4;
|
|
16
|
+
var plus = kotlin_kotlin.$_$.r5;
|
|
17
|
+
var emptyList = kotlin_kotlin.$_$.m4;
|
|
18
|
+
var plus_0 = kotlin_kotlin.$_$.s5;
|
|
19
|
+
var last = kotlin_kotlin.$_$.d5;
|
|
20
|
+
var toString = kotlin_kotlin.$_$.r8;
|
|
21
|
+
var toString_0 = kotlin_kotlin.$_$.vc;
|
|
22
|
+
var protoOf = kotlin_kotlin.$_$.p8;
|
|
23
|
+
var getStringHashCode = kotlin_kotlin.$_$.o7;
|
|
24
|
+
var hashCode = kotlin_kotlin.$_$.p7;
|
|
25
|
+
var THROW_CCE = kotlin_kotlin.$_$.yb;
|
|
26
|
+
var equals = kotlin_kotlin.$_$.j7;
|
|
27
|
+
var initMetadataForClass = kotlin_kotlin.$_$.q7;
|
|
28
|
+
var lastOrNull = kotlin_kotlin.$_$.c5;
|
|
29
|
+
var maxOrNull = kotlin_kotlin.$_$.k5;
|
|
30
30
|
var Contribution = kotlin_com_zegreatrob_tools_digger_model.$_$.a;
|
|
31
|
-
var listOf_0 = kotlin_kotlin.$_$.
|
|
32
|
-
var addAll = kotlin_kotlin.$_$.
|
|
33
|
-
var toSet = kotlin_kotlin.$_$.
|
|
34
|
-
var sorted = kotlin_kotlin.$_$.
|
|
35
|
-
var toList = kotlin_kotlin.$_$.
|
|
36
|
-
var joinToString = kotlin_kotlin.$_$.
|
|
31
|
+
var listOf_0 = kotlin_kotlin.$_$.h5;
|
|
32
|
+
var addAll = kotlin_kotlin.$_$.v3;
|
|
33
|
+
var toSet = kotlin_kotlin.$_$.o6;
|
|
34
|
+
var sorted = kotlin_kotlin.$_$.c6;
|
|
35
|
+
var toList = kotlin_kotlin.$_$.j6;
|
|
36
|
+
var joinToString = kotlin_kotlin.$_$.x4;
|
|
37
37
|
var Regex_init_$Create$ = kotlin_kotlin.$_$.t;
|
|
38
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
38
|
+
var initMetadataForObject = kotlin_kotlin.$_$.v7;
|
|
39
39
|
var VOID = kotlin_kotlin.$_$.g;
|
|
40
|
-
var take = kotlin_kotlin.$_$.
|
|
40
|
+
var take = kotlin_kotlin.$_$.f6;
|
|
41
41
|
var RegexOption_IGNORE_CASE_getInstance = kotlin_kotlin.$_$.h;
|
|
42
42
|
var Regex_init_$Create$_0 = kotlin_kotlin.$_$.u;
|
|
43
|
-
var RuntimeException_init_$Create$ = kotlin_kotlin.$_$.
|
|
44
|
-
var contains = kotlin_kotlin.$_$.
|
|
45
|
-
var mapOf = kotlin_kotlin.$_$.
|
|
43
|
+
var RuntimeException_init_$Create$ = kotlin_kotlin.$_$.l1;
|
|
44
|
+
var contains = kotlin_kotlin.$_$.y9;
|
|
45
|
+
var mapOf = kotlin_kotlin.$_$.j5;
|
|
46
46
|
var RegexOption_MULTILINE_getInstance = kotlin_kotlin.$_$.i;
|
|
47
|
-
var setOf = kotlin_kotlin.$_$.
|
|
48
|
-
var Regex = kotlin_kotlin.$_$.
|
|
49
|
-
var firstOrNull_0 = kotlin_kotlin.$_$.
|
|
50
|
-
var lastIndexOf = kotlin_kotlin.$_$.
|
|
51
|
-
var Char = kotlin_kotlin.$_$.
|
|
52
|
-
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.
|
|
53
|
-
var mapNotNull = kotlin_kotlin.$_$.
|
|
54
|
-
var toList_0 = kotlin_kotlin.$_$.
|
|
55
|
-
var maxOrNull_0 = kotlin_kotlin.$_$.
|
|
56
|
-
var get = kotlin_kotlin.$_$.
|
|
57
|
-
var toIntOrNull = kotlin_kotlin.$_$.
|
|
58
|
-
var Companion_instance = kotlin_kotlin.$_$.
|
|
59
|
-
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.
|
|
60
|
-
var createFailure = kotlin_kotlin.$_$.
|
|
61
|
-
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.
|
|
62
|
-
var _Result___get_isFailure__impl__jpiriv = kotlin_kotlin.$_$.
|
|
63
|
-
var Enum = kotlin_kotlin.$_$.
|
|
47
|
+
var setOf = kotlin_kotlin.$_$.x5;
|
|
48
|
+
var Regex = kotlin_kotlin.$_$.v9;
|
|
49
|
+
var firstOrNull_0 = kotlin_kotlin.$_$.da;
|
|
50
|
+
var lastIndexOf = kotlin_kotlin.$_$.ma;
|
|
51
|
+
var Char = kotlin_kotlin.$_$.mb;
|
|
52
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.p1;
|
|
53
|
+
var mapNotNull = kotlin_kotlin.$_$.p9;
|
|
54
|
+
var toList_0 = kotlin_kotlin.$_$.u9;
|
|
55
|
+
var maxOrNull_0 = kotlin_kotlin.$_$.r9;
|
|
56
|
+
var get = kotlin_kotlin.$_$.fa;
|
|
57
|
+
var toIntOrNull = kotlin_kotlin.$_$.db;
|
|
58
|
+
var Companion_instance = kotlin_kotlin.$_$.c3;
|
|
59
|
+
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.t1;
|
|
60
|
+
var createFailure = kotlin_kotlin.$_$.mc;
|
|
61
|
+
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.w1;
|
|
62
|
+
var _Result___get_isFailure__impl__jpiriv = kotlin_kotlin.$_$.u1;
|
|
63
|
+
var Enum = kotlin_kotlin.$_$.qb;
|
|
64
64
|
//endregion
|
|
65
65
|
//region block: pre-declaration
|
|
66
66
|
initMetadataForClass(CommitInspectionResult, 'CommitInspectionResult');
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
while (tmp0_iterator.n()) {
|
|
81
81
|
var e = tmp0_iterator.o();
|
|
82
82
|
// Inline function 'com.zegreatrob.tools.digger.core.allContributionCommits.<anonymous>' call
|
|
83
|
-
var key = e.
|
|
83
|
+
var key = e.x19_1;
|
|
84
84
|
if (set.e(key)) {
|
|
85
85
|
list.e(e);
|
|
86
86
|
}
|
|
@@ -97,10 +97,10 @@
|
|
|
97
97
|
var tmp0_iterator_1 = fullLog.m();
|
|
98
98
|
while (tmp0_iterator_1.n()) {
|
|
99
99
|
var item = tmp0_iterator_1.o();
|
|
100
|
-
var tmp$ret$2 = item.
|
|
100
|
+
var tmp$ret$2 = item.h19_1;
|
|
101
101
|
destination_0.e(tmp$ret$2);
|
|
102
102
|
}
|
|
103
|
-
if (destination_0.d1(element.
|
|
103
|
+
if (destination_0.d1(element.x19_1)) {
|
|
104
104
|
destination.e(element);
|
|
105
105
|
}
|
|
106
106
|
}
|
|
@@ -116,15 +116,15 @@
|
|
|
116
116
|
while (tmp0_iterator.n()) {
|
|
117
117
|
var item = tmp0_iterator.o();
|
|
118
118
|
// Inline function 'com.zegreatrob.tools.digger.core.sortIntoTagSets.<anonymous>' call
|
|
119
|
-
var earlierTag = item.
|
|
120
|
-
var nextTag = item.
|
|
119
|
+
var earlierTag = item.aa();
|
|
120
|
+
var nextTag = item.ba();
|
|
121
121
|
var tmp;
|
|
122
122
|
if (earlierTag == null && !(nextTag == null)) {
|
|
123
|
-
tmp = _this__u8e3s4.
|
|
123
|
+
tmp = _this__u8e3s4.u19('^' + nextTag.x19_1, 'HEAD');
|
|
124
124
|
} else if (!(earlierTag == null) && !(nextTag == null)) {
|
|
125
|
-
tmp = _this__u8e3s4.
|
|
125
|
+
tmp = _this__u8e3s4.u19('^' + nextTag.x19_1, earlierTag.x19_1);
|
|
126
126
|
} else if (!(earlierTag == null)) {
|
|
127
|
-
tmp = _this__u8e3s4.
|
|
127
|
+
tmp = _this__u8e3s4.v19(earlierTag.x19_1);
|
|
128
128
|
} else {
|
|
129
129
|
tmp = alwaysLeftParent(log);
|
|
130
130
|
}
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
var element = tmp0_iterator_0.o();
|
|
139
139
|
// Inline function 'com.zegreatrob.tools.digger.core.sortIntoTagSets.<anonymous>' call
|
|
140
140
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
141
|
-
if (!element.
|
|
141
|
+
if (!element.z9_1.j()) {
|
|
142
142
|
destination_0.e(element);
|
|
143
143
|
}
|
|
144
144
|
}
|
|
@@ -173,7 +173,7 @@
|
|
|
173
173
|
var tmp;
|
|
174
174
|
if (acc.j()) {
|
|
175
175
|
tmp = plus_0(acc, element);
|
|
176
|
-
} else if (element.
|
|
176
|
+
} else if (element.h19_1 === firstOrNull(last(acc).l19_1)) {
|
|
177
177
|
tmp = plus_0(acc, element);
|
|
178
178
|
} else {
|
|
179
179
|
tmp = acc;
|
|
@@ -183,19 +183,19 @@
|
|
|
183
183
|
return accumulator;
|
|
184
184
|
}
|
|
185
185
|
function CommitInspectionResult(storyId, ease, authors, semver) {
|
|
186
|
-
this.
|
|
187
|
-
this.
|
|
188
|
-
this.
|
|
189
|
-
this.
|
|
186
|
+
this.z19_1 = storyId;
|
|
187
|
+
this.a1a_1 = ease;
|
|
188
|
+
this.b1a_1 = authors;
|
|
189
|
+
this.c1a_1 = semver;
|
|
190
190
|
}
|
|
191
191
|
protoOf(CommitInspectionResult).toString = function () {
|
|
192
|
-
return 'CommitInspectionResult(storyId=' + this.
|
|
192
|
+
return 'CommitInspectionResult(storyId=' + this.z19_1 + ', ease=' + this.a1a_1 + ', authors=' + toString(this.b1a_1) + ', semver=' + toString_0(this.c1a_1) + ')';
|
|
193
193
|
};
|
|
194
194
|
protoOf(CommitInspectionResult).hashCode = function () {
|
|
195
|
-
var result = this.
|
|
196
|
-
result = imul(result, 31) + (this.
|
|
197
|
-
result = imul(result, 31) + hashCode(this.
|
|
198
|
-
result = imul(result, 31) + (this.
|
|
195
|
+
var result = this.z19_1 == null ? 0 : getStringHashCode(this.z19_1);
|
|
196
|
+
result = imul(result, 31) + (this.a1a_1 == null ? 0 : this.a1a_1) | 0;
|
|
197
|
+
result = imul(result, 31) + hashCode(this.b1a_1) | 0;
|
|
198
|
+
result = imul(result, 31) + (this.c1a_1 == null ? 0 : this.c1a_1.hashCode()) | 0;
|
|
199
199
|
return result;
|
|
200
200
|
};
|
|
201
201
|
protoOf(CommitInspectionResult).equals = function (other) {
|
|
@@ -204,13 +204,13 @@
|
|
|
204
204
|
if (!(other instanceof CommitInspectionResult))
|
|
205
205
|
return false;
|
|
206
206
|
var tmp0_other_with_cast = other instanceof CommitInspectionResult ? other : THROW_CCE();
|
|
207
|
-
if (!(this.
|
|
207
|
+
if (!(this.z19_1 == tmp0_other_with_cast.z19_1))
|
|
208
208
|
return false;
|
|
209
|
-
if (!(this.
|
|
209
|
+
if (!(this.a1a_1 == tmp0_other_with_cast.a1a_1))
|
|
210
210
|
return false;
|
|
211
|
-
if (!equals(this.
|
|
211
|
+
if (!equals(this.b1a_1, tmp0_other_with_cast.b1a_1))
|
|
212
212
|
return false;
|
|
213
|
-
if (!equals(this.
|
|
213
|
+
if (!equals(this.c1a_1, tmp0_other_with_cast.c1a_1))
|
|
214
214
|
return false;
|
|
215
215
|
return true;
|
|
216
216
|
};
|
|
@@ -222,19 +222,19 @@
|
|
|
222
222
|
while (tmp0_iterator.n()) {
|
|
223
223
|
var item = tmp0_iterator.o();
|
|
224
224
|
// Inline function 'com.zegreatrob.tools.digger.core.contribution.<anonymous>' call
|
|
225
|
-
var tmp$ret$0 = commitInspectionResult(item, _this__u8e3s4.
|
|
225
|
+
var tmp$ret$0 = commitInspectionResult(item, _this__u8e3s4.j1a(item.m19_1));
|
|
226
226
|
destination.e(tmp$ret$0);
|
|
227
227
|
}
|
|
228
228
|
var messageDigResults = destination;
|
|
229
229
|
var lastCommit = firstOrNull(commitRefs);
|
|
230
230
|
var firstCommit = lastOrNull(commitRefs);
|
|
231
|
-
var tmp1_elvis_lhs = lastCommit == null ? null : lastCommit.
|
|
231
|
+
var tmp1_elvis_lhs = lastCommit == null ? null : lastCommit.h19_1;
|
|
232
232
|
var tmp7_lastCommit = tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs;
|
|
233
|
-
var tmp3_elvis_lhs = firstCommit == null ? null : firstCommit.
|
|
233
|
+
var tmp3_elvis_lhs = firstCommit == null ? null : firstCommit.h19_1;
|
|
234
234
|
var tmp8_firstCommit = tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs;
|
|
235
235
|
var tmp9_authors = allAuthors(messageDigResults);
|
|
236
|
-
var tmp10_dateTime = lastCommit == null ? null : lastCommit.
|
|
237
|
-
var tmp11_firstCommitDateTime = firstCommit == null ? null : firstCommit.
|
|
236
|
+
var tmp10_dateTime = lastCommit == null ? null : lastCommit.k19_1;
|
|
237
|
+
var tmp11_firstCommitDateTime = firstCommit == null ? null : firstCommit.k19_1;
|
|
238
238
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
239
239
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
240
240
|
var destination_0 = ArrayList_init_$Create$();
|
|
@@ -244,7 +244,7 @@
|
|
|
244
244
|
var element = tmp0_iterator_0.o();
|
|
245
245
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
246
246
|
// Inline function 'com.zegreatrob.tools.digger.core.contribution.<anonymous>' call
|
|
247
|
-
var tmp0_safe_receiver = element.
|
|
247
|
+
var tmp0_safe_receiver = element.a1a_1;
|
|
248
248
|
if (tmp0_safe_receiver == null)
|
|
249
249
|
null;
|
|
250
250
|
else {
|
|
@@ -264,7 +264,7 @@
|
|
|
264
264
|
var element_0 = tmp0_iterator_1.o();
|
|
265
265
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
266
266
|
// Inline function 'com.zegreatrob.tools.digger.core.contribution.<anonymous>' call
|
|
267
|
-
var tmp0_safe_receiver_0 = element_0.
|
|
267
|
+
var tmp0_safe_receiver_0 = element_0.c1a_1;
|
|
268
268
|
if (tmp0_safe_receiver_0 == null)
|
|
269
269
|
null;
|
|
270
270
|
else {
|
|
@@ -280,7 +280,7 @@
|
|
|
280
280
|
return new Contribution(tmp7_lastCommit, tmp8_firstCommit, tmp9_authors, tmp15_commitCount, tmp10_dateTime, tmp11_firstCommitDateTime, tmp12_ease, tmp13_storyId, tmp14_semver, null, null, null);
|
|
281
281
|
}
|
|
282
282
|
function commitInspectionResult(_this__u8e3s4, digResult) {
|
|
283
|
-
return new CommitInspectionResult(digResult.
|
|
283
|
+
return new CommitInspectionResult(digResult.k1a_1, digResult.l1a_1, plus(listOf_0([_this__u8e3s4.j19_1, _this__u8e3s4.i19_1]), digResult.m1a_1), digResult.n1a_1);
|
|
284
284
|
}
|
|
285
285
|
function allAuthors(messageDigResults) {
|
|
286
286
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -290,7 +290,7 @@
|
|
|
290
290
|
var tmp0_iterator = messageDigResults.m();
|
|
291
291
|
while (tmp0_iterator.n()) {
|
|
292
292
|
var element = tmp0_iterator.o();
|
|
293
|
-
var list = element.
|
|
293
|
+
var list = element.b1a_1;
|
|
294
294
|
addAll(destination, list);
|
|
295
295
|
}
|
|
296
296
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -316,7 +316,7 @@
|
|
|
316
316
|
while (tmp0_iterator.n()) {
|
|
317
317
|
var element = tmp0_iterator.o();
|
|
318
318
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
319
|
-
var tmp0_safe_receiver = element.
|
|
319
|
+
var tmp0_safe_receiver = element.z19_1;
|
|
320
320
|
if (tmp0_safe_receiver == null)
|
|
321
321
|
null;
|
|
322
322
|
else {
|
|
@@ -339,22 +339,22 @@
|
|
|
339
339
|
function currentContributionCommits(_this__u8e3s4, previousTag) {
|
|
340
340
|
var tmp;
|
|
341
341
|
if (previousTag == null) {
|
|
342
|
-
tmp = _this__u8e3s4.
|
|
342
|
+
tmp = _this__u8e3s4.t19();
|
|
343
343
|
} else {
|
|
344
|
-
tmp = _this__u8e3s4.
|
|
344
|
+
tmp = _this__u8e3s4.u19('^' + previousTag.w19_1, 'HEAD');
|
|
345
345
|
}
|
|
346
346
|
return tmp;
|
|
347
347
|
}
|
|
348
348
|
function tagRefs($this) {
|
|
349
349
|
// Inline function 'kotlin.collections.filter' call
|
|
350
350
|
// Inline function 'kotlin.collections.filterTo' call
|
|
351
|
-
var this_0 = $this.
|
|
351
|
+
var this_0 = $this.p1a_1.s19();
|
|
352
352
|
var destination = ArrayList_init_$Create$();
|
|
353
353
|
var tmp0_iterator = this_0.m();
|
|
354
354
|
while (tmp0_iterator.n()) {
|
|
355
355
|
var element = tmp0_iterator.o();
|
|
356
356
|
// Inline function 'com.zegreatrob.tools.digger.core.DiggerCore.tagRefs.<anonymous>' call
|
|
357
|
-
if ($this.
|
|
357
|
+
if ($this.r1a_1.ic(element.w19_1)) {
|
|
358
358
|
destination.e(element);
|
|
359
359
|
}
|
|
360
360
|
}
|
|
@@ -366,7 +366,7 @@
|
|
|
366
366
|
// Inline function 'com.zegreatrob.tools.digger.core.DiggerCore.currentRelevantTags.<anonymous>' call
|
|
367
367
|
var latestTag = getOrNull(lastTwoTags, 0);
|
|
368
368
|
var tmp;
|
|
369
|
-
if ((latestTag == null ? null : latestTag.
|
|
369
|
+
if ((latestTag == null ? null : latestTag.x19_1) === headCommitId) {
|
|
370
370
|
tmp = to(latestTag, getOrNull(lastTwoTags, 1));
|
|
371
371
|
} else {
|
|
372
372
|
tmp = to(null, latestTag);
|
|
@@ -375,7 +375,7 @@
|
|
|
375
375
|
}
|
|
376
376
|
function Defaults() {
|
|
377
377
|
Defaults_instance = this;
|
|
378
|
-
this.
|
|
378
|
+
this.s1a_1 = Regex_init_$Create$('.*');
|
|
379
379
|
}
|
|
380
380
|
var Defaults_instance;
|
|
381
381
|
function Defaults_getInstance() {
|
|
@@ -384,35 +384,35 @@
|
|
|
384
384
|
return Defaults_instance;
|
|
385
385
|
}
|
|
386
386
|
function DiggerCore(label, gitWrapper, messageDigger, tagRegex) {
|
|
387
|
-
tagRegex = tagRegex === VOID ? Defaults_getInstance().
|
|
388
|
-
this.
|
|
389
|
-
this.
|
|
390
|
-
this.
|
|
391
|
-
this.
|
|
387
|
+
tagRegex = tagRegex === VOID ? Defaults_getInstance().s1a_1 : tagRegex;
|
|
388
|
+
this.o1a_1 = label;
|
|
389
|
+
this.p1a_1 = gitWrapper;
|
|
390
|
+
this.q1a_1 = messageDigger;
|
|
391
|
+
this.r1a_1 = tagRegex;
|
|
392
392
|
}
|
|
393
|
-
protoOf(DiggerCore).
|
|
393
|
+
protoOf(DiggerCore).t1a = function () {
|
|
394
394
|
// Inline function 'kotlin.with' call
|
|
395
395
|
// Inline function 'kotlin.contracts.contract' call
|
|
396
396
|
// Inline function 'com.zegreatrob.tools.digger.core.DiggerCore.currentContributionData.<anonymous>' call
|
|
397
|
-
var $this$with = this.
|
|
398
|
-
var tmp0_container = currentRelevantTags(this, $this$with.
|
|
399
|
-
var currentTag = tmp0_container.
|
|
400
|
-
var previousTag = tmp0_container.
|
|
401
|
-
var tmp = contribution(this.
|
|
402
|
-
var tmp_0 = currentTag == null ? null : currentTag.
|
|
403
|
-
return tmp.
|
|
397
|
+
var $this$with = this.p1a_1;
|
|
398
|
+
var tmp0_container = currentRelevantTags(this, $this$with.r19(), take(tagRefs(this), 2));
|
|
399
|
+
var currentTag = tmp0_container.aa();
|
|
400
|
+
var previousTag = tmp0_container.ba();
|
|
401
|
+
var tmp = contribution(this.q1a_1, currentContributionCommits($this$with, previousTag));
|
|
402
|
+
var tmp_0 = currentTag == null ? null : currentTag.w19_1;
|
|
403
|
+
return tmp.g19(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.o1a_1, tmp_0, currentTag == null ? null : currentTag.y19_1);
|
|
404
404
|
};
|
|
405
|
-
protoOf(DiggerCore).
|
|
405
|
+
protoOf(DiggerCore).u1a = function () {
|
|
406
406
|
// Inline function 'kotlin.collections.map' call
|
|
407
407
|
// Inline function 'kotlin.collections.map' call
|
|
408
|
-
var this_0 = allContributionCommits(this.
|
|
408
|
+
var this_0 = allContributionCommits(this.p1a_1, tagRefs(this), this.p1a_1.t19());
|
|
409
409
|
// Inline function 'kotlin.collections.mapTo' call
|
|
410
410
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
411
411
|
var tmp0_iterator = this_0.m();
|
|
412
412
|
while (tmp0_iterator.n()) {
|
|
413
413
|
var item = tmp0_iterator.o();
|
|
414
414
|
// Inline function 'com.zegreatrob.tools.digger.core.DiggerCore.allContributionData.<anonymous>' call
|
|
415
|
-
var tmp$ret$0 = to(item.
|
|
415
|
+
var tmp$ret$0 = to(item.y9_1, contribution(this.q1a_1, toList(item.z9_1)));
|
|
416
416
|
destination.e(tmp$ret$0);
|
|
417
417
|
}
|
|
418
418
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -421,28 +421,28 @@
|
|
|
421
421
|
while (tmp0_iterator_0.n()) {
|
|
422
422
|
var item_0 = tmp0_iterator_0.o();
|
|
423
423
|
// Inline function 'com.zegreatrob.tools.digger.core.DiggerCore.allContributionData.<anonymous>' call
|
|
424
|
-
var tag = item_0.
|
|
425
|
-
var contribution_0 = item_0.
|
|
426
|
-
var tmp = tag == null ? null : tag.
|
|
427
|
-
var tmp$ret$3 = contribution_0.
|
|
424
|
+
var tag = item_0.aa();
|
|
425
|
+
var contribution_0 = item_0.ba();
|
|
426
|
+
var tmp = tag == null ? null : tag.w19_1;
|
|
427
|
+
var tmp$ret$3 = contribution_0.g19(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.o1a_1, tmp, tag == null ? null : tag.y19_1);
|
|
428
428
|
destination_0.e(tmp$ret$3);
|
|
429
429
|
}
|
|
430
430
|
return destination_0;
|
|
431
431
|
};
|
|
432
432
|
function MessageDigResult(storyId, ease, coauthors, semver) {
|
|
433
|
-
this.
|
|
434
|
-
this.
|
|
435
|
-
this.
|
|
436
|
-
this.
|
|
433
|
+
this.k1a_1 = storyId;
|
|
434
|
+
this.l1a_1 = ease;
|
|
435
|
+
this.m1a_1 = coauthors;
|
|
436
|
+
this.n1a_1 = semver;
|
|
437
437
|
}
|
|
438
438
|
protoOf(MessageDigResult).toString = function () {
|
|
439
|
-
return 'MessageDigResult(storyId=' + this.
|
|
439
|
+
return 'MessageDigResult(storyId=' + this.k1a_1 + ', ease=' + this.l1a_1 + ', coauthors=' + toString(this.m1a_1) + ', semver=' + toString_0(this.n1a_1) + ')';
|
|
440
440
|
};
|
|
441
441
|
protoOf(MessageDigResult).hashCode = function () {
|
|
442
|
-
var result = this.
|
|
443
|
-
result = imul(result, 31) + (this.
|
|
444
|
-
result = imul(result, 31) + hashCode(this.
|
|
445
|
-
result = imul(result, 31) + (this.
|
|
442
|
+
var result = this.k1a_1 == null ? 0 : getStringHashCode(this.k1a_1);
|
|
443
|
+
result = imul(result, 31) + (this.l1a_1 == null ? 0 : this.l1a_1) | 0;
|
|
444
|
+
result = imul(result, 31) + hashCode(this.m1a_1) | 0;
|
|
445
|
+
result = imul(result, 31) + (this.n1a_1 == null ? 0 : this.n1a_1.hashCode()) | 0;
|
|
446
446
|
return result;
|
|
447
447
|
};
|
|
448
448
|
protoOf(MessageDigResult).equals = function (other) {
|
|
@@ -451,24 +451,24 @@
|
|
|
451
451
|
if (!(other instanceof MessageDigResult))
|
|
452
452
|
return false;
|
|
453
453
|
var tmp0_other_with_cast = other instanceof MessageDigResult ? other : THROW_CCE();
|
|
454
|
-
if (!(this.
|
|
454
|
+
if (!(this.k1a_1 == tmp0_other_with_cast.k1a_1))
|
|
455
455
|
return false;
|
|
456
|
-
if (!(this.
|
|
456
|
+
if (!(this.l1a_1 == tmp0_other_with_cast.l1a_1))
|
|
457
457
|
return false;
|
|
458
|
-
if (!equals(this.
|
|
458
|
+
if (!equals(this.m1a_1, tmp0_other_with_cast.m1a_1))
|
|
459
459
|
return false;
|
|
460
|
-
if (!equals(this.
|
|
460
|
+
if (!equals(this.n1a_1, tmp0_other_with_cast.n1a_1))
|
|
461
461
|
return false;
|
|
462
462
|
return true;
|
|
463
463
|
};
|
|
464
464
|
function Defaults_0() {
|
|
465
465
|
Defaults_instance_0 = this;
|
|
466
|
-
this.
|
|
467
|
-
this.
|
|
468
|
-
this.
|
|
469
|
-
this.
|
|
470
|
-
this.
|
|
471
|
-
this.
|
|
466
|
+
this.v1a_1 = Regex_init_$Create$_0('\\[major\\]', RegexOption_IGNORE_CASE_getInstance());
|
|
467
|
+
this.w1a_1 = Regex_init_$Create$_0('\\[minor\\]', RegexOption_IGNORE_CASE_getInstance());
|
|
468
|
+
this.x1a_1 = Regex_init_$Create$_0('\\[patch\\]', RegexOption_IGNORE_CASE_getInstance());
|
|
469
|
+
this.y1a_1 = Regex_init_$Create$_0('\\[none\\]', RegexOption_IGNORE_CASE_getInstance());
|
|
470
|
+
this.z1a_1 = Regex_init_$Create$('\\[(?<storyId>.*?)\\]');
|
|
471
|
+
this.a1b_1 = Regex_init_$Create$('-(?<ease>[1-5])-');
|
|
472
472
|
}
|
|
473
473
|
var Defaults_instance_0;
|
|
474
474
|
function Defaults_getInstance_0() {
|
|
@@ -477,22 +477,22 @@
|
|
|
477
477
|
return Defaults_instance_0;
|
|
478
478
|
}
|
|
479
479
|
function MessageDigger(majorRegex, minorRegex, patchRegex, noneRegex, storyIdRegex, easeRegex) {
|
|
480
|
-
majorRegex = majorRegex === VOID ? Defaults_getInstance_0().
|
|
481
|
-
minorRegex = minorRegex === VOID ? Defaults_getInstance_0().
|
|
482
|
-
patchRegex = patchRegex === VOID ? Defaults_getInstance_0().
|
|
483
|
-
noneRegex = noneRegex === VOID ? Defaults_getInstance_0().
|
|
484
|
-
storyIdRegex = storyIdRegex === VOID ? Defaults_getInstance_0().
|
|
485
|
-
easeRegex = easeRegex === VOID ? Defaults_getInstance_0().
|
|
486
|
-
if (!contains(storyIdRegex.
|
|
487
|
-
throw RuntimeException_init_$Create$('StoryIdRegex must include a storyId group. The regex was: ' + storyIdRegex.
|
|
480
|
+
majorRegex = majorRegex === VOID ? Defaults_getInstance_0().v1a_1 : majorRegex;
|
|
481
|
+
minorRegex = minorRegex === VOID ? Defaults_getInstance_0().w1a_1 : minorRegex;
|
|
482
|
+
patchRegex = patchRegex === VOID ? Defaults_getInstance_0().x1a_1 : patchRegex;
|
|
483
|
+
noneRegex = noneRegex === VOID ? Defaults_getInstance_0().y1a_1 : noneRegex;
|
|
484
|
+
storyIdRegex = storyIdRegex === VOID ? Defaults_getInstance_0().z1a_1 : storyIdRegex;
|
|
485
|
+
easeRegex = easeRegex === VOID ? Defaults_getInstance_0().a1b_1 : easeRegex;
|
|
486
|
+
if (!contains(storyIdRegex.cc_1, '?<storyId>')) {
|
|
487
|
+
throw RuntimeException_init_$Create$('StoryIdRegex must include a storyId group. The regex was: ' + storyIdRegex.cc_1);
|
|
488
488
|
}
|
|
489
|
-
if (!contains(easeRegex.
|
|
490
|
-
throw RuntimeException_init_$Create$('EaseRegex must include an ease group. The regex was: ' + easeRegex.
|
|
489
|
+
if (!contains(easeRegex.cc_1, '?<ease>')) {
|
|
490
|
+
throw RuntimeException_init_$Create$('EaseRegex must include an ease group. The regex was: ' + easeRegex.cc_1);
|
|
491
491
|
}
|
|
492
|
-
this.
|
|
492
|
+
this.d1a_1 = mapOf([to('major', majorRegex), to('minor', minorRegex), to('patch', patchRegex), to('none', noneRegex)]);
|
|
493
493
|
var tmp = this;
|
|
494
494
|
// Inline function 'kotlin.collections.map' call
|
|
495
|
-
var this_0 = this.
|
|
495
|
+
var this_0 = this.d1a_1;
|
|
496
496
|
// Inline function 'kotlin.collections.mapTo' call
|
|
497
497
|
var destination = ArrayList_init_$Create$_0(this_0.p());
|
|
498
498
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -507,26 +507,26 @@
|
|
|
507
507
|
var tmp$ret$3 = '(?<' + group + '>' + cleaned(regex) + ')?';
|
|
508
508
|
destination.e(tmp$ret$3);
|
|
509
509
|
}
|
|
510
|
-
tmp.
|
|
511
|
-
this.
|
|
512
|
-
this.
|
|
513
|
-
this.
|
|
514
|
-
this.
|
|
515
|
-
}
|
|
516
|
-
protoOf(MessageDigger).
|
|
517
|
-
return messageDigResult(this.
|
|
510
|
+
tmp.e1a_1 = joinToString(destination, '');
|
|
511
|
+
this.f1a_1 = '(' + cleaned(storyIdRegex) + ')?';
|
|
512
|
+
this.g1a_1 = '(' + cleaned(easeRegex) + ')?';
|
|
513
|
+
this.h1a_1 = '(Co-authored-by: .* <(?<coAuthors>.*)>)?';
|
|
514
|
+
this.i1a_1 = new Regex(this.e1a_1 + this.f1a_1 + this.g1a_1 + this.h1a_1, setOf([RegexOption_IGNORE_CASE_getInstance(), RegexOption_MULTILINE_getInstance()]));
|
|
515
|
+
}
|
|
516
|
+
protoOf(MessageDigger).j1a = function (input) {
|
|
517
|
+
return messageDigResult(this.i1a_1.lc(input));
|
|
518
518
|
};
|
|
519
519
|
function cleaned(_this__u8e3s4) {
|
|
520
|
-
var first = firstOrNull_0(_this__u8e3s4.
|
|
521
|
-
var last = lastIndexOf(_this__u8e3s4.
|
|
520
|
+
var first = firstOrNull_0(_this__u8e3s4.cc_1);
|
|
521
|
+
var last = lastIndexOf(_this__u8e3s4.cc_1, '/');
|
|
522
522
|
var tmp;
|
|
523
523
|
var tmp_0 = first;
|
|
524
524
|
if (equals(tmp_0 == null ? null : new Char(tmp_0), new Char(_Char___init__impl__6a9atx(47)))) {
|
|
525
525
|
// Inline function 'kotlin.text.substring' call
|
|
526
526
|
// Inline function 'kotlin.js.asDynamic' call
|
|
527
|
-
tmp = _this__u8e3s4.
|
|
527
|
+
tmp = _this__u8e3s4.cc_1.substring(1, last);
|
|
528
528
|
} else {
|
|
529
|
-
tmp = _this__u8e3s4.
|
|
529
|
+
tmp = _this__u8e3s4.cc_1;
|
|
530
530
|
}
|
|
531
531
|
return tmp;
|
|
532
532
|
}
|
|
@@ -540,7 +540,7 @@
|
|
|
540
540
|
while (tmp0_iterator.n()) {
|
|
541
541
|
var element = tmp0_iterator.o();
|
|
542
542
|
// Inline function 'com.zegreatrob.tools.digger.core.messageDigResult.<anonymous>' call
|
|
543
|
-
var result = get(element.
|
|
543
|
+
var result = get(element.tc(), 'storyId');
|
|
544
544
|
if (!(result == null)) {
|
|
545
545
|
tmp$ret$1 = result;
|
|
546
546
|
break $l$block;
|
|
@@ -549,7 +549,7 @@
|
|
|
549
549
|
tmp$ret$1 = null;
|
|
550
550
|
}
|
|
551
551
|
var tmp0_safe_receiver = tmp$ret$1;
|
|
552
|
-
var tmp5_storyId = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
552
|
+
var tmp5_storyId = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.pc_1;
|
|
553
553
|
var tmp$ret$3;
|
|
554
554
|
$l$block_0: {
|
|
555
555
|
// Inline function 'kotlin.sequences.firstNotNullOfOrNull' call
|
|
@@ -557,7 +557,7 @@
|
|
|
557
557
|
while (tmp0_iterator_0.n()) {
|
|
558
558
|
var element_0 = tmp0_iterator_0.o();
|
|
559
559
|
// Inline function 'com.zegreatrob.tools.digger.core.messageDigResult.<anonymous>' call
|
|
560
|
-
var result_0 = get(element_0.
|
|
560
|
+
var result_0 = get(element_0.tc(), 'ease');
|
|
561
561
|
if (!(result_0 == null)) {
|
|
562
562
|
tmp$ret$3 = result_0;
|
|
563
563
|
break $l$block_0;
|
|
@@ -566,7 +566,7 @@
|
|
|
566
566
|
tmp$ret$3 = null;
|
|
567
567
|
}
|
|
568
568
|
var tmp1_safe_receiver = tmp$ret$3;
|
|
569
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
569
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.pc_1;
|
|
570
570
|
var tmp6_ease = tmp2_safe_receiver == null ? null : toIntOrNull(tmp2_safe_receiver);
|
|
571
571
|
return new MessageDigResult(tmp5_storyId, tmp6_ease, tmp3_coauthors, tmp4_semver);
|
|
572
572
|
}
|
|
@@ -580,7 +580,7 @@
|
|
|
580
580
|
try {
|
|
581
581
|
// Inline function 'kotlin.Companion.success' call
|
|
582
582
|
// Inline function 'com.zegreatrob.tools.digger.core.groupMatches.<anonymous>' call
|
|
583
|
-
var value = get(_this__u8e3s4.
|
|
583
|
+
var value = get(_this__u8e3s4.tc(), groupName);
|
|
584
584
|
tmp = _Result___init__impl__xyqfz8(value);
|
|
585
585
|
} catch ($p) {
|
|
586
586
|
var tmp_0;
|
|
@@ -607,8 +607,8 @@
|
|
|
607
607
|
return maxOrNull(_this__u8e3s4);
|
|
608
608
|
}
|
|
609
609
|
function messageDigResult$lambda(it) {
|
|
610
|
-
var tmp0_safe_receiver = get(it.
|
|
611
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
610
|
+
var tmp0_safe_receiver = get(it.tc(), 'coAuthors');
|
|
611
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.pc_1;
|
|
612
612
|
}
|
|
613
613
|
function messageDigResult$lambda_0(it) {
|
|
614
614
|
return getSemver(it);
|