git-digger 1.5.34 → 1.5.35
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 +1250 -1250
- package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
- package/kotlin/clikt-clikt-mordant.js +89 -89
- package/kotlin/clikt-clikt.js +1608 -1608
- package/kotlin/clikt-clikt.js.map +1 -1
- package/kotlin/colormath-root-colormath.js +467 -467
- package/kotlin/command-line-tools-digger-cli.js +76 -76
- package/kotlin/kotlin-kotlin-stdlib.js +2018 -1732
- package/kotlin/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1123 -1063
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +326 -315
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/kotlin/mordant-mordant.js +1344 -1344
- package/kotlin/mordant-mordant.js.map +1 -1
- package/kotlin/tools-cli-tools.js +4 -4
- package/kotlin/tools-digger-core.js +152 -152
- package/kotlin/tools-digger-json.js +114 -114
- package/kotlin/tools-digger-json.js.map +1 -1
- package/kotlin/tools-digger-model.js +60 -60
- package/kotlin/tools-git-adapter.js +72 -72
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
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.$_$.
|
|
7
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
4
|
+
var until = kotlin_kotlin.$_$.c9;
|
|
5
|
+
var slice = kotlin_kotlin.$_$.a6;
|
|
6
|
+
var copyToArray = kotlin_kotlin.$_$.k4;
|
|
7
|
+
var Unit_instance = kotlin_kotlin.$_$.i3;
|
|
8
8
|
//endregion
|
|
9
9
|
//region block: pre-declaration
|
|
10
10
|
//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.$_$.i3;
|
|
8
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.f4;
|
|
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.$_$.q4;
|
|
12
|
+
var Pair = kotlin_kotlin.$_$.vb;
|
|
13
|
+
var listOf = kotlin_kotlin.$_$.h5;
|
|
14
|
+
var checkIndexOverflow = kotlin_kotlin.$_$.e4;
|
|
15
|
+
var getOrNull = kotlin_kotlin.$_$.u4;
|
|
16
|
+
var plus = kotlin_kotlin.$_$.s5;
|
|
17
|
+
var emptyList = kotlin_kotlin.$_$.n4;
|
|
18
|
+
var plus_0 = kotlin_kotlin.$_$.t5;
|
|
19
|
+
var last = kotlin_kotlin.$_$.e5;
|
|
20
|
+
var toString = kotlin_kotlin.$_$.t8;
|
|
21
|
+
var toString_0 = kotlin_kotlin.$_$.vc;
|
|
22
|
+
var protoOf = kotlin_kotlin.$_$.q8;
|
|
23
|
+
var getStringHashCode = kotlin_kotlin.$_$.p7;
|
|
24
|
+
var hashCode = kotlin_kotlin.$_$.q7;
|
|
25
|
+
var THROW_CCE = kotlin_kotlin.$_$.yb;
|
|
26
|
+
var equals = kotlin_kotlin.$_$.k7;
|
|
27
|
+
var initMetadataForClass = kotlin_kotlin.$_$.r7;
|
|
28
|
+
var lastOrNull = kotlin_kotlin.$_$.d5;
|
|
29
|
+
var maxOrNull = kotlin_kotlin.$_$.l5;
|
|
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.$_$.i5;
|
|
32
|
+
var addAll = kotlin_kotlin.$_$.w3;
|
|
33
|
+
var toSet = kotlin_kotlin.$_$.p6;
|
|
34
|
+
var sorted = kotlin_kotlin.$_$.d6;
|
|
35
|
+
var toList = kotlin_kotlin.$_$.k6;
|
|
36
|
+
var joinToString = kotlin_kotlin.$_$.y4;
|
|
37
37
|
var Regex_init_$Create$ = kotlin_kotlin.$_$.t;
|
|
38
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
38
|
+
var initMetadataForObject = kotlin_kotlin.$_$.w7;
|
|
39
39
|
var VOID = kotlin_kotlin.$_$.g;
|
|
40
|
-
var take = kotlin_kotlin.$_$.
|
|
40
|
+
var take = kotlin_kotlin.$_$.g6;
|
|
41
41
|
var RegexOption_IGNORE_CASE_getInstance = kotlin_kotlin.$_$.h;
|
|
42
42
|
var Regex_init_$Create$_0 = kotlin_kotlin.$_$.u;
|
|
43
43
|
var RuntimeException_init_$Create$ = kotlin_kotlin.$_$.l1;
|
|
44
|
-
var contains = kotlin_kotlin.$_$.
|
|
45
|
-
var mapOf = kotlin_kotlin.$_$.
|
|
44
|
+
var contains = kotlin_kotlin.$_$.aa;
|
|
45
|
+
var mapOf = kotlin_kotlin.$_$.k5;
|
|
46
46
|
var RegexOption_MULTILINE_getInstance = kotlin_kotlin.$_$.i;
|
|
47
|
-
var setOf = kotlin_kotlin.$_$.
|
|
48
|
-
var Regex = kotlin_kotlin.$_$.
|
|
47
|
+
var setOf = kotlin_kotlin.$_$.y5;
|
|
48
|
+
var Regex = kotlin_kotlin.$_$.x9;
|
|
49
49
|
var firstOrNull_0 = kotlin_kotlin.$_$.ea;
|
|
50
|
-
var lastIndexOf = kotlin_kotlin.$_$.
|
|
51
|
-
var Char = kotlin_kotlin.$_$.
|
|
50
|
+
var lastIndexOf = kotlin_kotlin.$_$.ma;
|
|
51
|
+
var Char = kotlin_kotlin.$_$.mb;
|
|
52
52
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.p1;
|
|
53
|
-
var mapNotNull = kotlin_kotlin.$_$.
|
|
54
|
-
var toList_0 = kotlin_kotlin.$_$.
|
|
55
|
-
var maxOrNull_0 = kotlin_kotlin.$_$.
|
|
53
|
+
var mapNotNull = kotlin_kotlin.$_$.r9;
|
|
54
|
+
var toList_0 = kotlin_kotlin.$_$.w9;
|
|
55
|
+
var maxOrNull_0 = kotlin_kotlin.$_$.t9;
|
|
56
56
|
var get = kotlin_kotlin.$_$.ga;
|
|
57
|
-
var toIntOrNull = kotlin_kotlin.$_$.
|
|
58
|
-
var Companion_instance = kotlin_kotlin.$_$.
|
|
57
|
+
var toIntOrNull = kotlin_kotlin.$_$.cb;
|
|
58
|
+
var Companion_instance = kotlin_kotlin.$_$.d3;
|
|
59
59
|
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.t1;
|
|
60
|
-
var createFailure = kotlin_kotlin.$_$.
|
|
60
|
+
var createFailure = kotlin_kotlin.$_$.mc;
|
|
61
61
|
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.w1;
|
|
62
62
|
var _Result___get_isFailure__impl__jpiriv = kotlin_kotlin.$_$.u1;
|
|
63
|
-
var Enum = kotlin_kotlin.$_$.
|
|
63
|
+
var Enum = kotlin_kotlin.$_$.qb;
|
|
64
64
|
//endregion
|
|
65
65
|
//region block: pre-declaration
|
|
66
66
|
initMetadataForClass(CommitInspectionResult, 'CommitInspectionResult');
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
while (_iterator__ex2g4s.n()) {
|
|
80
80
|
var e = _iterator__ex2g4s.o();
|
|
81
81
|
// Inline function 'com.zegreatrob.tools.digger.core.allContributionCommits.<anonymous>' call
|
|
82
|
-
var key = e.
|
|
82
|
+
var key = e.j1a_1;
|
|
83
83
|
if (set.e(key)) {
|
|
84
84
|
list.e(e);
|
|
85
85
|
}
|
|
@@ -98,10 +98,10 @@
|
|
|
98
98
|
while (_iterator__ex2g4s_1.n()) {
|
|
99
99
|
var item = _iterator__ex2g4s_1.o();
|
|
100
100
|
// Inline function 'com.zegreatrob.tools.digger.core.allContributionCommits.<anonymous>.stub_for_inlining' call
|
|
101
|
-
var tmp$ret$2 = item.
|
|
101
|
+
var tmp$ret$2 = item.t19_1;
|
|
102
102
|
destination_0.e(tmp$ret$2);
|
|
103
103
|
}
|
|
104
|
-
if (destination_0.d1(element.
|
|
104
|
+
if (destination_0.d1(element.j1a_1)) {
|
|
105
105
|
destination.e(element);
|
|
106
106
|
}
|
|
107
107
|
}
|
|
@@ -116,15 +116,15 @@
|
|
|
116
116
|
while (_iterator__ex2g4s.n()) {
|
|
117
117
|
var item = _iterator__ex2g4s.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.w9();
|
|
120
|
+
var nextTag = item.x9();
|
|
121
121
|
var tmp;
|
|
122
122
|
if (earlierTag == null && !(nextTag == null)) {
|
|
123
|
-
tmp = _this__u8e3s4.
|
|
123
|
+
tmp = _this__u8e3s4.g1a('^' + nextTag.j1a_1, 'HEAD');
|
|
124
124
|
} else if (!(earlierTag == null) && !(nextTag == null)) {
|
|
125
|
-
tmp = _this__u8e3s4.
|
|
125
|
+
tmp = _this__u8e3s4.g1a('^' + nextTag.j1a_1, earlierTag.j1a_1);
|
|
126
126
|
} else if (!(earlierTag == null)) {
|
|
127
|
-
tmp = _this__u8e3s4.
|
|
127
|
+
tmp = _this__u8e3s4.h1a(earlierTag.j1a_1);
|
|
128
128
|
} else {
|
|
129
129
|
tmp = alwaysLeftParent(log);
|
|
130
130
|
}
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
var element = _iterator__ex2g4s_0.o();
|
|
140
140
|
// Inline function 'com.zegreatrob.tools.digger.core.sortIntoTagSets.<anonymous>' call
|
|
141
141
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
142
|
-
if (!element.
|
|
142
|
+
if (!element.v9_1.j()) {
|
|
143
143
|
destination_0.e(element);
|
|
144
144
|
}
|
|
145
145
|
}
|
|
@@ -174,7 +174,7 @@
|
|
|
174
174
|
var tmp;
|
|
175
175
|
if (acc.j()) {
|
|
176
176
|
tmp = plus_0(acc, element);
|
|
177
|
-
} else if (element.
|
|
177
|
+
} else if (element.t19_1 === firstOrNull(last(acc).x19_1)) {
|
|
178
178
|
tmp = plus_0(acc, element);
|
|
179
179
|
} else {
|
|
180
180
|
tmp = acc;
|
|
@@ -184,19 +184,19 @@
|
|
|
184
184
|
return accumulator;
|
|
185
185
|
}
|
|
186
186
|
function CommitInspectionResult(storyId, ease, authors, semver) {
|
|
187
|
-
this.
|
|
188
|
-
this.
|
|
189
|
-
this.
|
|
190
|
-
this.
|
|
187
|
+
this.l1a_1 = storyId;
|
|
188
|
+
this.m1a_1 = ease;
|
|
189
|
+
this.n1a_1 = authors;
|
|
190
|
+
this.o1a_1 = semver;
|
|
191
191
|
}
|
|
192
192
|
protoOf(CommitInspectionResult).toString = function () {
|
|
193
|
-
return 'CommitInspectionResult(storyId=' + this.
|
|
193
|
+
return 'CommitInspectionResult(storyId=' + this.l1a_1 + ', ease=' + this.m1a_1 + ', authors=' + toString(this.n1a_1) + ', semver=' + toString_0(this.o1a_1) + ')';
|
|
194
194
|
};
|
|
195
195
|
protoOf(CommitInspectionResult).hashCode = function () {
|
|
196
|
-
var result = this.
|
|
197
|
-
result = imul(result, 31) + (this.
|
|
198
|
-
result = imul(result, 31) + hashCode(this.
|
|
199
|
-
result = imul(result, 31) + (this.
|
|
196
|
+
var result = this.l1a_1 == null ? 0 : getStringHashCode(this.l1a_1);
|
|
197
|
+
result = imul(result, 31) + (this.m1a_1 == null ? 0 : this.m1a_1) | 0;
|
|
198
|
+
result = imul(result, 31) + hashCode(this.n1a_1) | 0;
|
|
199
|
+
result = imul(result, 31) + (this.o1a_1 == null ? 0 : this.o1a_1.hashCode()) | 0;
|
|
200
200
|
return result;
|
|
201
201
|
};
|
|
202
202
|
protoOf(CommitInspectionResult).equals = function (other) {
|
|
@@ -205,13 +205,13 @@
|
|
|
205
205
|
if (!(other instanceof CommitInspectionResult))
|
|
206
206
|
return false;
|
|
207
207
|
var tmp0_other_with_cast = other instanceof CommitInspectionResult ? other : THROW_CCE();
|
|
208
|
-
if (!(this.
|
|
208
|
+
if (!(this.l1a_1 == tmp0_other_with_cast.l1a_1))
|
|
209
209
|
return false;
|
|
210
|
-
if (!(this.
|
|
210
|
+
if (!(this.m1a_1 == tmp0_other_with_cast.m1a_1))
|
|
211
211
|
return false;
|
|
212
|
-
if (!equals(this.
|
|
212
|
+
if (!equals(this.n1a_1, tmp0_other_with_cast.n1a_1))
|
|
213
213
|
return false;
|
|
214
|
-
if (!equals(this.
|
|
214
|
+
if (!equals(this.o1a_1, tmp0_other_with_cast.o1a_1))
|
|
215
215
|
return false;
|
|
216
216
|
return true;
|
|
217
217
|
};
|
|
@@ -223,19 +223,19 @@
|
|
|
223
223
|
while (_iterator__ex2g4s.n()) {
|
|
224
224
|
var item = _iterator__ex2g4s.o();
|
|
225
225
|
// Inline function 'com.zegreatrob.tools.digger.core.contribution.<anonymous>' call
|
|
226
|
-
var tmp$ret$0 = commitInspectionResult(item, _this__u8e3s4.
|
|
226
|
+
var tmp$ret$0 = commitInspectionResult(item, _this__u8e3s4.v1a(item.y19_1));
|
|
227
227
|
destination.e(tmp$ret$0);
|
|
228
228
|
}
|
|
229
229
|
var messageDigResults = destination;
|
|
230
230
|
var lastCommit = firstOrNull(commitRefs);
|
|
231
231
|
var firstCommit = lastOrNull(commitRefs);
|
|
232
|
-
var tmp1_elvis_lhs = lastCommit == null ? null : lastCommit.
|
|
232
|
+
var tmp1_elvis_lhs = lastCommit == null ? null : lastCommit.t19_1;
|
|
233
233
|
var tmp7_lastCommit = tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs;
|
|
234
|
-
var tmp3_elvis_lhs = firstCommit == null ? null : firstCommit.
|
|
234
|
+
var tmp3_elvis_lhs = firstCommit == null ? null : firstCommit.t19_1;
|
|
235
235
|
var tmp8_firstCommit = tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs;
|
|
236
236
|
var tmp9_authors = allAuthors(messageDigResults);
|
|
237
|
-
var tmp10_dateTime = lastCommit == null ? null : lastCommit.
|
|
238
|
-
var tmp11_firstCommitDateTime = firstCommit == null ? null : firstCommit.
|
|
237
|
+
var tmp10_dateTime = lastCommit == null ? null : lastCommit.w19_1;
|
|
238
|
+
var tmp11_firstCommitDateTime = firstCommit == null ? null : firstCommit.w19_1;
|
|
239
239
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
240
240
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
241
241
|
var destination_0 = ArrayList_init_$Create$();
|
|
@@ -245,7 +245,7 @@
|
|
|
245
245
|
var element = _iterator__ex2g4s_0.o();
|
|
246
246
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
247
247
|
// Inline function 'com.zegreatrob.tools.digger.core.contribution.<anonymous>' call
|
|
248
|
-
var tmp0_safe_receiver = element.
|
|
248
|
+
var tmp0_safe_receiver = element.m1a_1;
|
|
249
249
|
if (tmp0_safe_receiver == null)
|
|
250
250
|
null;
|
|
251
251
|
else {
|
|
@@ -265,7 +265,7 @@
|
|
|
265
265
|
var element_0 = _iterator__ex2g4s_1.o();
|
|
266
266
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
267
267
|
// Inline function 'com.zegreatrob.tools.digger.core.contribution.<anonymous>' call
|
|
268
|
-
var tmp0_safe_receiver_0 = element_0.
|
|
268
|
+
var tmp0_safe_receiver_0 = element_0.o1a_1;
|
|
269
269
|
if (tmp0_safe_receiver_0 == null)
|
|
270
270
|
null;
|
|
271
271
|
else {
|
|
@@ -281,7 +281,7 @@
|
|
|
281
281
|
return new Contribution(tmp7_lastCommit, tmp8_firstCommit, tmp9_authors, tmp15_commitCount, tmp10_dateTime, tmp11_firstCommitDateTime, tmp12_ease, tmp13_storyId, tmp14_semver, null, null, null);
|
|
282
282
|
}
|
|
283
283
|
function commitInspectionResult(_this__u8e3s4, digResult) {
|
|
284
|
-
return new CommitInspectionResult(digResult.
|
|
284
|
+
return new CommitInspectionResult(digResult.w1a_1, digResult.x1a_1, plus(listOf_0([_this__u8e3s4.v19_1, _this__u8e3s4.u19_1]), digResult.y1a_1), digResult.z1a_1);
|
|
285
285
|
}
|
|
286
286
|
function allAuthors(messageDigResults) {
|
|
287
287
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -291,7 +291,7 @@
|
|
|
291
291
|
while (_iterator__ex2g4s.n()) {
|
|
292
292
|
var element = _iterator__ex2g4s.o();
|
|
293
293
|
// Inline function 'com.zegreatrob.tools.digger.core.allAuthors.stub_for_inlining' call
|
|
294
|
-
var list = element.
|
|
294
|
+
var list = element.n1a_1;
|
|
295
295
|
addAll(destination, list);
|
|
296
296
|
}
|
|
297
297
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -318,7 +318,7 @@
|
|
|
318
318
|
var element = _iterator__ex2g4s.o();
|
|
319
319
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
320
320
|
// Inline function 'com.zegreatrob.tools.digger.core.mergedStoryIds.stub_for_inlining' call
|
|
321
|
-
var tmp0_safe_receiver = element.
|
|
321
|
+
var tmp0_safe_receiver = element.l1a_1;
|
|
322
322
|
if (tmp0_safe_receiver == null)
|
|
323
323
|
null;
|
|
324
324
|
else {
|
|
@@ -341,22 +341,22 @@
|
|
|
341
341
|
function currentContributionCommits(_this__u8e3s4, previousTag) {
|
|
342
342
|
var tmp;
|
|
343
343
|
if (previousTag == null) {
|
|
344
|
-
tmp = _this__u8e3s4.
|
|
344
|
+
tmp = _this__u8e3s4.f1a();
|
|
345
345
|
} else {
|
|
346
|
-
tmp = _this__u8e3s4.
|
|
346
|
+
tmp = _this__u8e3s4.g1a('^' + previousTag.i1a_1, 'HEAD');
|
|
347
347
|
}
|
|
348
348
|
return tmp;
|
|
349
349
|
}
|
|
350
350
|
function tagRefs($this) {
|
|
351
351
|
// Inline function 'kotlin.collections.filter' call
|
|
352
|
-
var tmp0 = $this.
|
|
352
|
+
var tmp0 = $this.b1b_1.e1a();
|
|
353
353
|
// Inline function 'kotlin.collections.filterTo' call
|
|
354
354
|
var destination = ArrayList_init_$Create$();
|
|
355
355
|
var _iterator__ex2g4s = tmp0.m();
|
|
356
356
|
while (_iterator__ex2g4s.n()) {
|
|
357
357
|
var element = _iterator__ex2g4s.o();
|
|
358
358
|
// Inline function 'com.zegreatrob.tools.digger.core.DiggerCore.tagRefs.<anonymous>' call
|
|
359
|
-
if ($this.
|
|
359
|
+
if ($this.d1b_1.ec(element.i1a_1)) {
|
|
360
360
|
destination.e(element);
|
|
361
361
|
}
|
|
362
362
|
}
|
|
@@ -367,7 +367,7 @@
|
|
|
367
367
|
// Inline function 'com.zegreatrob.tools.digger.core.DiggerCore.currentRelevantTags.<anonymous>' call
|
|
368
368
|
var latestTag = getOrNull(lastTwoTags, 0);
|
|
369
369
|
var tmp;
|
|
370
|
-
if ((latestTag == null ? null : latestTag.
|
|
370
|
+
if ((latestTag == null ? null : latestTag.j1a_1) === headCommitId) {
|
|
371
371
|
tmp = to(latestTag, getOrNull(lastTwoTags, 1));
|
|
372
372
|
} else {
|
|
373
373
|
tmp = to(null, latestTag);
|
|
@@ -376,7 +376,7 @@
|
|
|
376
376
|
}
|
|
377
377
|
function Defaults() {
|
|
378
378
|
Defaults_instance = this;
|
|
379
|
-
this.
|
|
379
|
+
this.e1b_1 = Regex_init_$Create$('.*');
|
|
380
380
|
}
|
|
381
381
|
var Defaults_instance;
|
|
382
382
|
function Defaults_getInstance() {
|
|
@@ -385,33 +385,33 @@
|
|
|
385
385
|
return Defaults_instance;
|
|
386
386
|
}
|
|
387
387
|
function DiggerCore(label, gitWrapper, messageDigger, tagRegex) {
|
|
388
|
-
tagRegex = tagRegex === VOID ? Defaults_getInstance().
|
|
389
|
-
this.
|
|
390
|
-
this.
|
|
391
|
-
this.
|
|
392
|
-
this.
|
|
388
|
+
tagRegex = tagRegex === VOID ? Defaults_getInstance().e1b_1 : tagRegex;
|
|
389
|
+
this.a1b_1 = label;
|
|
390
|
+
this.b1b_1 = gitWrapper;
|
|
391
|
+
this.c1b_1 = messageDigger;
|
|
392
|
+
this.d1b_1 = tagRegex;
|
|
393
393
|
}
|
|
394
|
-
protoOf(DiggerCore).
|
|
394
|
+
protoOf(DiggerCore).f1b = function () {
|
|
395
395
|
// Inline function 'kotlin.with' call
|
|
396
396
|
// Inline function 'com.zegreatrob.tools.digger.core.DiggerCore.currentContributionData.<anonymous>' call
|
|
397
|
-
var $this$with = this.
|
|
398
|
-
var _destruct__k2r9zo = currentRelevantTags(this, $this$with.
|
|
399
|
-
var currentTag = _destruct__k2r9zo.
|
|
400
|
-
var previousTag = _destruct__k2r9zo.
|
|
401
|
-
var tmp = contribution(this.
|
|
402
|
-
var tmp_0 = currentTag == null ? null : currentTag.
|
|
403
|
-
return tmp.
|
|
397
|
+
var $this$with = this.b1b_1;
|
|
398
|
+
var _destruct__k2r9zo = currentRelevantTags(this, $this$with.d1a(), take(tagRefs(this), 2));
|
|
399
|
+
var currentTag = _destruct__k2r9zo.w9();
|
|
400
|
+
var previousTag = _destruct__k2r9zo.x9();
|
|
401
|
+
var tmp = contribution(this.c1b_1, currentContributionCommits($this$with, previousTag));
|
|
402
|
+
var tmp_0 = currentTag == null ? null : currentTag.i1a_1;
|
|
403
|
+
return tmp.s19(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.a1b_1, tmp_0, currentTag == null ? null : currentTag.k1a_1);
|
|
404
404
|
};
|
|
405
|
-
protoOf(DiggerCore).
|
|
405
|
+
protoOf(DiggerCore).g1b = function () {
|
|
406
406
|
// Inline function 'kotlin.collections.map' call
|
|
407
|
-
var this_0 = allContributionCommits(this.
|
|
407
|
+
var this_0 = allContributionCommits(this.b1b_1, tagRefs(this), this.b1b_1.f1a());
|
|
408
408
|
// Inline function 'kotlin.collections.mapTo' call
|
|
409
409
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
410
410
|
var _iterator__ex2g4s = this_0.m();
|
|
411
411
|
while (_iterator__ex2g4s.n()) {
|
|
412
412
|
var item = _iterator__ex2g4s.o();
|
|
413
413
|
// Inline function 'com.zegreatrob.tools.digger.core.DiggerCore.allContributionData.<anonymous>' call
|
|
414
|
-
var tmp$ret$0 = to(item.
|
|
414
|
+
var tmp$ret$0 = to(item.u9_1, contribution(this.c1b_1, toList(item.v9_1)));
|
|
415
415
|
destination.e(tmp$ret$0);
|
|
416
416
|
}
|
|
417
417
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -421,28 +421,28 @@
|
|
|
421
421
|
while (_iterator__ex2g4s_0.n()) {
|
|
422
422
|
var item_0 = _iterator__ex2g4s_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.w9();
|
|
425
|
+
var contribution_0 = item_0.x9();
|
|
426
|
+
var tmp = tag == null ? null : tag.i1a_1;
|
|
427
|
+
var tmp$ret$3 = contribution_0.s19(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.a1b_1, tmp, tag == null ? null : tag.k1a_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.w1a_1 = storyId;
|
|
434
|
+
this.x1a_1 = ease;
|
|
435
|
+
this.y1a_1 = coauthors;
|
|
436
|
+
this.z1a_1 = semver;
|
|
437
437
|
}
|
|
438
438
|
protoOf(MessageDigResult).toString = function () {
|
|
439
|
-
return 'MessageDigResult(storyId=' + this.
|
|
439
|
+
return 'MessageDigResult(storyId=' + this.w1a_1 + ', ease=' + this.x1a_1 + ', coauthors=' + toString(this.y1a_1) + ', semver=' + toString_0(this.z1a_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.w1a_1 == null ? 0 : getStringHashCode(this.w1a_1);
|
|
443
|
+
result = imul(result, 31) + (this.x1a_1 == null ? 0 : this.x1a_1) | 0;
|
|
444
|
+
result = imul(result, 31) + hashCode(this.y1a_1) | 0;
|
|
445
|
+
result = imul(result, 31) + (this.z1a_1 == null ? 0 : this.z1a_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.w1a_1 == tmp0_other_with_cast.w1a_1))
|
|
455
455
|
return false;
|
|
456
|
-
if (!(this.
|
|
456
|
+
if (!(this.x1a_1 == tmp0_other_with_cast.x1a_1))
|
|
457
457
|
return false;
|
|
458
|
-
if (!equals(this.
|
|
458
|
+
if (!equals(this.y1a_1, tmp0_other_with_cast.y1a_1))
|
|
459
459
|
return false;
|
|
460
|
-
if (!equals(this.
|
|
460
|
+
if (!equals(this.z1a_1, tmp0_other_with_cast.z1a_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.h1b_1 = Regex_init_$Create$_0('\\[major\\]', RegexOption_IGNORE_CASE_getInstance());
|
|
467
|
+
this.i1b_1 = Regex_init_$Create$_0('\\[minor\\]', RegexOption_IGNORE_CASE_getInstance());
|
|
468
|
+
this.j1b_1 = Regex_init_$Create$_0('\\[patch\\]', RegexOption_IGNORE_CASE_getInstance());
|
|
469
|
+
this.k1b_1 = Regex_init_$Create$_0('\\[none\\]', RegexOption_IGNORE_CASE_getInstance());
|
|
470
|
+
this.l1b_1 = Regex_init_$Create$('\\[(?<storyId>.*?)\\]');
|
|
471
|
+
this.m1b_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().h1b_1 : majorRegex;
|
|
481
|
+
minorRegex = minorRegex === VOID ? Defaults_getInstance_0().i1b_1 : minorRegex;
|
|
482
|
+
patchRegex = patchRegex === VOID ? Defaults_getInstance_0().j1b_1 : patchRegex;
|
|
483
|
+
noneRegex = noneRegex === VOID ? Defaults_getInstance_0().k1b_1 : noneRegex;
|
|
484
|
+
storyIdRegex = storyIdRegex === VOID ? Defaults_getInstance_0().l1b_1 : storyIdRegex;
|
|
485
|
+
easeRegex = easeRegex === VOID ? Defaults_getInstance_0().m1b_1 : easeRegex;
|
|
486
|
+
if (!contains(storyIdRegex.yb_1, '?<storyId>')) {
|
|
487
|
+
throw RuntimeException_init_$Create$('StoryIdRegex must include a storyId group. The regex was: ' + storyIdRegex.yb_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.yb_1, '?<ease>')) {
|
|
490
|
+
throw RuntimeException_init_$Create$('EaseRegex must include an ease group. The regex was: ' + easeRegex.yb_1);
|
|
491
491
|
}
|
|
492
|
-
this.
|
|
492
|
+
this.p1a_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.p1a_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.q1a_1 = joinToString(destination, '');
|
|
511
|
+
this.r1a_1 = '(' + cleaned(storyIdRegex) + ')?';
|
|
512
|
+
this.s1a_1 = '(' + cleaned(easeRegex) + ')?';
|
|
513
|
+
this.t1a_1 = '(Co-authored-by: .* <(?<coAuthors>.*)>)?';
|
|
514
|
+
this.u1a_1 = new Regex(this.q1a_1 + this.r1a_1 + this.s1a_1 + this.t1a_1, setOf([RegexOption_IGNORE_CASE_getInstance(), RegexOption_MULTILINE_getInstance()]));
|
|
515
|
+
}
|
|
516
|
+
protoOf(MessageDigger).v1a = function (input) {
|
|
517
|
+
return messageDigResult(this.u1a_1.hc(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.yb_1);
|
|
521
|
+
var last = lastIndexOf(_this__u8e3s4.yb_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.yb_1.substring(1, last);
|
|
528
528
|
} else {
|
|
529
|
-
tmp = _this__u8e3s4.
|
|
529
|
+
tmp = _this__u8e3s4.yb_1;
|
|
530
530
|
}
|
|
531
531
|
return tmp;
|
|
532
532
|
}
|
|
@@ -540,7 +540,7 @@
|
|
|
540
540
|
while (_iterator__ex2g4s.n()) {
|
|
541
541
|
var element = _iterator__ex2g4s.o();
|
|
542
542
|
// Inline function 'com.zegreatrob.tools.digger.core.messageDigResult.<anonymous>' call
|
|
543
|
-
var result = get(element.
|
|
543
|
+
var result = get(element.pc(), '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.lc_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 (_iterator__ex2g4s_0.n()) {
|
|
558
558
|
var element_0 = _iterator__ex2g4s_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.pc(), '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.lc_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
|
}
|
|
@@ -579,7 +579,7 @@
|
|
|
579
579
|
try {
|
|
580
580
|
// Inline function 'com.zegreatrob.tools.digger.core.groupMatches.<anonymous>' call
|
|
581
581
|
// Inline function 'kotlin.Companion.success' call
|
|
582
|
-
var value = get(_this__u8e3s4.
|
|
582
|
+
var value = get(_this__u8e3s4.pc(), groupName);
|
|
583
583
|
tmp = _Result___init__impl__xyqfz8(value);
|
|
584
584
|
} catch ($p) {
|
|
585
585
|
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.pc(), 'coAuthors');
|
|
611
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.lc_1;
|
|
612
612
|
}
|
|
613
613
|
function messageDigResult$lambda_0(it) {
|
|
614
614
|
return getSemver(it);
|