git-digger 1.9.22 → 1.9.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kotlin/clikt-clikt-mordant.js +93 -93
- package/kotlin/clikt-clikt.js +1597 -1596
- package/kotlin/clikt-clikt.js.map +1 -1
- package/kotlin/colormath-root-colormath.js +474 -474
- package/kotlin/command-line-tools-digger-cli.js +388 -91
- package/kotlin/command-line-tools-digger-cli.js.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib.js +4053 -1877
- package/kotlin/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +2981 -992
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +4204 -463
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/kotlin/mordant-mordant.js +1379 -1379
- package/kotlin/tools-cli-tools.js +3 -3
- package/kotlin/tools-digger-core.js +160 -160
- package/kotlin/tools-digger-json.js +282 -128
- package/kotlin/tools-digger-json.js.map +1 -1
- package/kotlin/tools-digger-model.js +59 -59
- package/kotlin/tools-git-adapter.js +75 -75
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
(function (_, process, fs, 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.$_$.ra;
|
|
5
|
+
var slice = kotlin_kotlin.$_$.y6;
|
|
6
|
+
var copyToArray = kotlin_kotlin.$_$.h5;
|
|
7
7
|
var Unit_instance = kotlin_kotlin.$_$.v;
|
|
8
8
|
//endregion
|
|
9
9
|
//region block: pre-declaration
|
|
@@ -2,65 +2,65 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
//region block: imports
|
|
4
4
|
var imul = Math.imul;
|
|
5
|
-
var HashSet_init_$Create$ = kotlin_kotlin.$_$.
|
|
5
|
+
var HashSet_init_$Create$ = kotlin_kotlin.$_$.g1;
|
|
6
6
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.a1;
|
|
7
7
|
var Unit_instance = kotlin_kotlin.$_$.v;
|
|
8
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
8
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.t4;
|
|
9
9
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.z;
|
|
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 equals = kotlin_kotlin.$_$.
|
|
26
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
27
|
-
var lastOrNull = kotlin_kotlin.$_$.
|
|
28
|
-
var maxOrNull = kotlin_kotlin.$_$.
|
|
10
|
+
var to = kotlin_kotlin.$_$.df;
|
|
11
|
+
var firstOrNull = kotlin_kotlin.$_$.m5;
|
|
12
|
+
var Pair = kotlin_kotlin.$_$.ae;
|
|
13
|
+
var listOf = kotlin_kotlin.$_$.f6;
|
|
14
|
+
var checkIndexOverflow = kotlin_kotlin.$_$.s4;
|
|
15
|
+
var getOrNull = kotlin_kotlin.$_$.q5;
|
|
16
|
+
var plus = kotlin_kotlin.$_$.q6;
|
|
17
|
+
var emptyList = kotlin_kotlin.$_$.j5;
|
|
18
|
+
var plus_0 = kotlin_kotlin.$_$.r6;
|
|
19
|
+
var last = kotlin_kotlin.$_$.c6;
|
|
20
|
+
var toString = kotlin_kotlin.$_$.fa;
|
|
21
|
+
var toString_0 = kotlin_kotlin.$_$.cf;
|
|
22
|
+
var protoOf = kotlin_kotlin.$_$.da;
|
|
23
|
+
var getStringHashCode = kotlin_kotlin.$_$.d9;
|
|
24
|
+
var hashCode = kotlin_kotlin.$_$.e9;
|
|
25
|
+
var equals = kotlin_kotlin.$_$.z8;
|
|
26
|
+
var initMetadataForClass = kotlin_kotlin.$_$.f9;
|
|
27
|
+
var lastOrNull = kotlin_kotlin.$_$.b6;
|
|
28
|
+
var maxOrNull = kotlin_kotlin.$_$.j6;
|
|
29
29
|
var Contribution = kotlin_com_zegreatrob_tools_digger_model.$_$.a;
|
|
30
|
-
var listOf_0 = kotlin_kotlin.$_$.
|
|
31
|
-
var addAll = kotlin_kotlin.$_$.
|
|
32
|
-
var toSet = kotlin_kotlin.$_$.
|
|
33
|
-
var sorted = kotlin_kotlin.$_$.
|
|
34
|
-
var toList = kotlin_kotlin.$_$.
|
|
35
|
-
var joinToString = kotlin_kotlin.$_$.
|
|
36
|
-
var Regex_init_$Create$ = kotlin_kotlin.$_$.
|
|
37
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
30
|
+
var listOf_0 = kotlin_kotlin.$_$.g6;
|
|
31
|
+
var addAll = kotlin_kotlin.$_$.k4;
|
|
32
|
+
var toSet = kotlin_kotlin.$_$.l7;
|
|
33
|
+
var sorted = kotlin_kotlin.$_$.a7;
|
|
34
|
+
var toList = kotlin_kotlin.$_$.h7;
|
|
35
|
+
var joinToString = kotlin_kotlin.$_$.v5;
|
|
36
|
+
var Regex_init_$Create$ = kotlin_kotlin.$_$.n1;
|
|
37
|
+
var initMetadataForObject = kotlin_kotlin.$_$.k9;
|
|
38
38
|
var VOID = kotlin_kotlin.$_$.c;
|
|
39
|
-
var take = kotlin_kotlin.$_$.
|
|
39
|
+
var take = kotlin_kotlin.$_$.d7;
|
|
40
40
|
var RegexOption_IGNORE_CASE_getInstance = kotlin_kotlin.$_$.w;
|
|
41
|
-
var Regex_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
42
|
-
var RuntimeException_init_$Create$ = kotlin_kotlin.$_$.
|
|
43
|
-
var contains = kotlin_kotlin.$_$.
|
|
44
|
-
var mapOf = kotlin_kotlin.$_$.
|
|
41
|
+
var Regex_init_$Create$_0 = kotlin_kotlin.$_$.o1;
|
|
42
|
+
var RuntimeException_init_$Create$ = kotlin_kotlin.$_$.c2;
|
|
43
|
+
var contains = kotlin_kotlin.$_$.rb;
|
|
44
|
+
var mapOf = kotlin_kotlin.$_$.i6;
|
|
45
45
|
var RegexOption_MULTILINE_getInstance = kotlin_kotlin.$_$.x;
|
|
46
|
-
var setOf = kotlin_kotlin.$_$.
|
|
47
|
-
var Regex = kotlin_kotlin.$_$.
|
|
48
|
-
var firstOrNull_0 = kotlin_kotlin.$_$.
|
|
49
|
-
var lastIndexOf = kotlin_kotlin.$_$.
|
|
50
|
-
var substring = 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.$_$.
|
|
46
|
+
var setOf = kotlin_kotlin.$_$.v6;
|
|
47
|
+
var Regex = kotlin_kotlin.$_$.ob;
|
|
48
|
+
var firstOrNull_0 = kotlin_kotlin.$_$.wb;
|
|
49
|
+
var lastIndexOf = kotlin_kotlin.$_$.fc;
|
|
50
|
+
var substring = kotlin_kotlin.$_$.vc;
|
|
51
|
+
var Char = kotlin_kotlin.$_$.qd;
|
|
52
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.f2;
|
|
53
|
+
var mapNotNull = kotlin_kotlin.$_$.ib;
|
|
54
|
+
var toList_0 = kotlin_kotlin.$_$.nb;
|
|
55
|
+
var maxOrNull_0 = kotlin_kotlin.$_$.kb;
|
|
56
|
+
var get = kotlin_kotlin.$_$.yb;
|
|
57
|
+
var toIntOrNull = kotlin_kotlin.$_$.ad;
|
|
58
58
|
var Companion_instance = kotlin_kotlin.$_$.q;
|
|
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.$_$.
|
|
59
|
+
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.j2;
|
|
60
|
+
var createFailure = kotlin_kotlin.$_$.se;
|
|
61
|
+
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.m2;
|
|
62
|
+
var _Result___get_isFailure__impl__jpiriv = kotlin_kotlin.$_$.k2;
|
|
63
|
+
var Enum = kotlin_kotlin.$_$.vd;
|
|
64
64
|
//endregion
|
|
65
65
|
//region block: pre-declaration
|
|
66
66
|
initMetadataForClass(CommitInspectionResult, 'CommitInspectionResult');
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
var _iterator__ex2g4s = tagRefs.r();
|
|
79
79
|
while (_iterator__ex2g4s.s()) {
|
|
80
80
|
var e = _iterator__ex2g4s.t();
|
|
81
|
-
var key = e.
|
|
81
|
+
var key = e.nl_1;
|
|
82
82
|
if (set.v(key)) {
|
|
83
83
|
list.v(e);
|
|
84
84
|
}
|
|
@@ -95,10 +95,10 @@
|
|
|
95
95
|
var _iterator__ex2g4s_1 = fullLog.r();
|
|
96
96
|
while (_iterator__ex2g4s_1.s()) {
|
|
97
97
|
var item = _iterator__ex2g4s_1.t();
|
|
98
|
-
var tmp$ret$7 = item.
|
|
98
|
+
var tmp$ret$7 = item.xk_1;
|
|
99
99
|
destination_0.v(tmp$ret$7);
|
|
100
100
|
}
|
|
101
|
-
if (destination_0.
|
|
101
|
+
if (destination_0.u1(element.nl_1)) {
|
|
102
102
|
destination.v(element);
|
|
103
103
|
}
|
|
104
104
|
}
|
|
@@ -112,15 +112,15 @@
|
|
|
112
112
|
var _iterator__ex2g4s = this_0.r();
|
|
113
113
|
while (_iterator__ex2g4s.s()) {
|
|
114
114
|
var item = _iterator__ex2g4s.t();
|
|
115
|
-
var earlierTag = item.
|
|
116
|
-
var nextTag = item.
|
|
115
|
+
var earlierTag = item.fa();
|
|
116
|
+
var nextTag = item.ga();
|
|
117
117
|
var tmp;
|
|
118
118
|
if (earlierTag == null && !(nextTag == null)) {
|
|
119
|
-
tmp = _this__u8e3s4.
|
|
119
|
+
tmp = _this__u8e3s4.kl('^' + nextTag.nl_1, 'HEAD');
|
|
120
120
|
} else if (!(earlierTag == null) && !(nextTag == null)) {
|
|
121
|
-
tmp = _this__u8e3s4.
|
|
121
|
+
tmp = _this__u8e3s4.kl('^' + nextTag.nl_1, earlierTag.nl_1);
|
|
122
122
|
} else if (!(earlierTag == null)) {
|
|
123
|
-
tmp = _this__u8e3s4.
|
|
123
|
+
tmp = _this__u8e3s4.ll(earlierTag.nl_1);
|
|
124
124
|
} else {
|
|
125
125
|
tmp = alwaysLeftParent(log);
|
|
126
126
|
}
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
while (_iterator__ex2g4s_0.s()) {
|
|
135
135
|
var element = _iterator__ex2g4s_0.t();
|
|
136
136
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
137
|
-
if (!element.
|
|
137
|
+
if (!element.ea_1.p()) {
|
|
138
138
|
destination_0.v(element);
|
|
139
139
|
}
|
|
140
140
|
}
|
|
@@ -167,7 +167,7 @@
|
|
|
167
167
|
var tmp;
|
|
168
168
|
if (acc.p()) {
|
|
169
169
|
tmp = plus_0(acc, element);
|
|
170
|
-
} else if (element.
|
|
170
|
+
} else if (element.xk_1 === firstOrNull(last(acc).bl_1)) {
|
|
171
171
|
tmp = plus_0(acc, element);
|
|
172
172
|
} else {
|
|
173
173
|
tmp = acc;
|
|
@@ -177,19 +177,19 @@
|
|
|
177
177
|
return accumulator;
|
|
178
178
|
}
|
|
179
179
|
function CommitInspectionResult(storyId, ease, authors, semver) {
|
|
180
|
-
this.
|
|
181
|
-
this.
|
|
182
|
-
this.
|
|
183
|
-
this.
|
|
180
|
+
this.dm_1 = storyId;
|
|
181
|
+
this.em_1 = ease;
|
|
182
|
+
this.fm_1 = authors;
|
|
183
|
+
this.gm_1 = semver;
|
|
184
184
|
}
|
|
185
185
|
protoOf(CommitInspectionResult).toString = function () {
|
|
186
|
-
return 'CommitInspectionResult(storyId=' + this.
|
|
186
|
+
return 'CommitInspectionResult(storyId=' + this.dm_1 + ', ease=' + this.em_1 + ', authors=' + toString(this.fm_1) + ', semver=' + toString_0(this.gm_1) + ')';
|
|
187
187
|
};
|
|
188
188
|
protoOf(CommitInspectionResult).hashCode = function () {
|
|
189
|
-
var result = this.
|
|
190
|
-
result = imul(result, 31) + (this.
|
|
191
|
-
result = imul(result, 31) + hashCode(this.
|
|
192
|
-
result = imul(result, 31) + (this.
|
|
189
|
+
var result = this.dm_1 == null ? 0 : getStringHashCode(this.dm_1);
|
|
190
|
+
result = imul(result, 31) + (this.em_1 == null ? 0 : this.em_1) | 0;
|
|
191
|
+
result = imul(result, 31) + hashCode(this.fm_1) | 0;
|
|
192
|
+
result = imul(result, 31) + (this.gm_1 == null ? 0 : this.gm_1.hashCode()) | 0;
|
|
193
193
|
return result;
|
|
194
194
|
};
|
|
195
195
|
protoOf(CommitInspectionResult).equals = function (other) {
|
|
@@ -197,13 +197,13 @@
|
|
|
197
197
|
return true;
|
|
198
198
|
if (!(other instanceof CommitInspectionResult))
|
|
199
199
|
return false;
|
|
200
|
-
if (!(this.
|
|
200
|
+
if (!(this.dm_1 == other.dm_1))
|
|
201
201
|
return false;
|
|
202
|
-
if (!(this.
|
|
202
|
+
if (!(this.em_1 == other.em_1))
|
|
203
203
|
return false;
|
|
204
|
-
if (!equals(this.
|
|
204
|
+
if (!equals(this.fm_1, other.fm_1))
|
|
205
205
|
return false;
|
|
206
|
-
if (!equals(this.
|
|
206
|
+
if (!equals(this.gm_1, other.gm_1))
|
|
207
207
|
return false;
|
|
208
208
|
return true;
|
|
209
209
|
};
|
|
@@ -214,19 +214,19 @@
|
|
|
214
214
|
var _iterator__ex2g4s = commitRefs.r();
|
|
215
215
|
while (_iterator__ex2g4s.s()) {
|
|
216
216
|
var item = _iterator__ex2g4s.t();
|
|
217
|
-
var tmp$ret$2 = commitInspectionResult(item, _this__u8e3s4.
|
|
217
|
+
var tmp$ret$2 = commitInspectionResult(item, _this__u8e3s4.nm(item.cl_1));
|
|
218
218
|
destination.v(tmp$ret$2);
|
|
219
219
|
}
|
|
220
220
|
var messageDigResults = destination;
|
|
221
221
|
var lastCommit = firstOrNull(commitRefs);
|
|
222
222
|
var firstCommit = lastOrNull(commitRefs);
|
|
223
|
-
var tmp1_elvis_lhs = lastCommit == null ? null : lastCommit.
|
|
223
|
+
var tmp1_elvis_lhs = lastCommit == null ? null : lastCommit.xk_1;
|
|
224
224
|
var tmp7_lastCommit = tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs;
|
|
225
|
-
var tmp3_elvis_lhs = firstCommit == null ? null : firstCommit.
|
|
225
|
+
var tmp3_elvis_lhs = firstCommit == null ? null : firstCommit.xk_1;
|
|
226
226
|
var tmp8_firstCommit = tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs;
|
|
227
227
|
var tmp9_authors = allAuthors(messageDigResults);
|
|
228
|
-
var tmp10_dateTime = lastCommit == null ? null : lastCommit.
|
|
229
|
-
var tmp11_firstCommitDateTime = firstCommit == null ? null : firstCommit.
|
|
228
|
+
var tmp10_dateTime = lastCommit == null ? null : lastCommit.al_1;
|
|
229
|
+
var tmp11_firstCommitDateTime = firstCommit == null ? null : firstCommit.al_1;
|
|
230
230
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
231
231
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
232
232
|
var destination_0 = ArrayList_init_$Create$();
|
|
@@ -234,7 +234,7 @@
|
|
|
234
234
|
var _iterator__ex2g4s_0 = messageDigResults.r();
|
|
235
235
|
while (_iterator__ex2g4s_0.s()) {
|
|
236
236
|
var element = _iterator__ex2g4s_0.t();
|
|
237
|
-
var tmp0_safe_receiver = element.
|
|
237
|
+
var tmp0_safe_receiver = element.em_1;
|
|
238
238
|
if (tmp0_safe_receiver == null)
|
|
239
239
|
null;
|
|
240
240
|
else {
|
|
@@ -251,7 +251,7 @@
|
|
|
251
251
|
var _iterator__ex2g4s_1 = messageDigResults.r();
|
|
252
252
|
while (_iterator__ex2g4s_1.s()) {
|
|
253
253
|
var element_0 = _iterator__ex2g4s_1.t();
|
|
254
|
-
var tmp0_safe_receiver_0 = element_0.
|
|
254
|
+
var tmp0_safe_receiver_0 = element_0.gm_1;
|
|
255
255
|
if (tmp0_safe_receiver_0 == null)
|
|
256
256
|
null;
|
|
257
257
|
else {
|
|
@@ -266,7 +266,7 @@
|
|
|
266
266
|
return new Contribution(tmp7_lastCommit, tmp8_firstCommit, tmp9_authors, tmp15_commitCount, tmp10_dateTime, tmp11_firstCommitDateTime, tmp12_ease, tmp13_storyId, tmp14_semver, null, null, null);
|
|
267
267
|
}
|
|
268
268
|
function commitInspectionResult(_this__u8e3s4, digResult) {
|
|
269
|
-
return new CommitInspectionResult(digResult.
|
|
269
|
+
return new CommitInspectionResult(digResult.om_1, digResult.pm_1, plus(listOf_0([_this__u8e3s4.zk_1, _this__u8e3s4.yk_1]), digResult.qm_1), digResult.rm_1);
|
|
270
270
|
}
|
|
271
271
|
function allAuthors(messageDigResults) {
|
|
272
272
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -275,7 +275,7 @@
|
|
|
275
275
|
var _iterator__ex2g4s = messageDigResults.r();
|
|
276
276
|
while (_iterator__ex2g4s.s()) {
|
|
277
277
|
var element = _iterator__ex2g4s.t();
|
|
278
|
-
var list = element.
|
|
278
|
+
var list = element.fm_1;
|
|
279
279
|
addAll(destination, list);
|
|
280
280
|
}
|
|
281
281
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -299,7 +299,7 @@
|
|
|
299
299
|
var _iterator__ex2g4s = messageDigResults.r();
|
|
300
300
|
while (_iterator__ex2g4s.s()) {
|
|
301
301
|
var element = _iterator__ex2g4s.t();
|
|
302
|
-
var tmp0_safe_receiver = element.
|
|
302
|
+
var tmp0_safe_receiver = element.dm_1;
|
|
303
303
|
if (tmp0_safe_receiver == null)
|
|
304
304
|
null;
|
|
305
305
|
else {
|
|
@@ -320,21 +320,21 @@
|
|
|
320
320
|
function currentContributionCommits(_this__u8e3s4, previousTag) {
|
|
321
321
|
var tmp;
|
|
322
322
|
if (previousTag == null) {
|
|
323
|
-
tmp = _this__u8e3s4.
|
|
323
|
+
tmp = _this__u8e3s4.jl();
|
|
324
324
|
} else {
|
|
325
|
-
tmp = _this__u8e3s4.
|
|
325
|
+
tmp = _this__u8e3s4.kl('^' + previousTag.ml_1, 'HEAD');
|
|
326
326
|
}
|
|
327
327
|
return tmp;
|
|
328
328
|
}
|
|
329
329
|
function tagRefs($this) {
|
|
330
330
|
// Inline function 'kotlin.collections.filter' call
|
|
331
|
-
var tmp0 = $this.
|
|
331
|
+
var tmp0 = $this.tm_1.il();
|
|
332
332
|
// Inline function 'kotlin.collections.filterTo' call
|
|
333
333
|
var destination = ArrayList_init_$Create$();
|
|
334
334
|
var _iterator__ex2g4s = tmp0.r();
|
|
335
335
|
while (_iterator__ex2g4s.s()) {
|
|
336
336
|
var element = _iterator__ex2g4s.t();
|
|
337
|
-
if ($this.
|
|
337
|
+
if ($this.vm_1.gc(element.ml_1)) {
|
|
338
338
|
destination.v(element);
|
|
339
339
|
}
|
|
340
340
|
}
|
|
@@ -344,7 +344,7 @@
|
|
|
344
344
|
// Inline function 'kotlin.let' call
|
|
345
345
|
var latestTag = getOrNull(lastTwoTags, 0);
|
|
346
346
|
var tmp;
|
|
347
|
-
if ((latestTag == null ? null : latestTag.
|
|
347
|
+
if ((latestTag == null ? null : latestTag.nl_1) === headCommitId) {
|
|
348
348
|
tmp = to(latestTag, getOrNull(lastTwoTags, 1));
|
|
349
349
|
} else {
|
|
350
350
|
tmp = to(null, latestTag);
|
|
@@ -353,7 +353,7 @@
|
|
|
353
353
|
}
|
|
354
354
|
function Defaults() {
|
|
355
355
|
Defaults_instance = this;
|
|
356
|
-
this.
|
|
356
|
+
this.wm_1 = Regex_init_$Create$('.*');
|
|
357
357
|
}
|
|
358
358
|
var Defaults_instance;
|
|
359
359
|
function Defaults_getInstance() {
|
|
@@ -362,31 +362,31 @@
|
|
|
362
362
|
return Defaults_instance;
|
|
363
363
|
}
|
|
364
364
|
function DiggerCore(label, gitWrapper, messageDigger, tagRegex) {
|
|
365
|
-
tagRegex = tagRegex === VOID ? Defaults_getInstance().
|
|
366
|
-
this.
|
|
367
|
-
this.
|
|
368
|
-
this.
|
|
369
|
-
this.
|
|
365
|
+
tagRegex = tagRegex === VOID ? Defaults_getInstance().wm_1 : tagRegex;
|
|
366
|
+
this.sm_1 = label;
|
|
367
|
+
this.tm_1 = gitWrapper;
|
|
368
|
+
this.um_1 = messageDigger;
|
|
369
|
+
this.vm_1 = tagRegex;
|
|
370
370
|
}
|
|
371
|
-
protoOf(DiggerCore).
|
|
371
|
+
protoOf(DiggerCore).xm = function () {
|
|
372
372
|
// Inline function 'kotlin.with' call
|
|
373
|
-
var $this$with = this.
|
|
374
|
-
var _destruct__k2r9zo = currentRelevantTags(this, $this$with.
|
|
375
|
-
var currentTag = _destruct__k2r9zo.
|
|
376
|
-
var previousTag = _destruct__k2r9zo.
|
|
377
|
-
var tmp = contribution(this.
|
|
378
|
-
var tmp_0 = currentTag == null ? null : currentTag.
|
|
379
|
-
return tmp.
|
|
373
|
+
var $this$with = this.tm_1;
|
|
374
|
+
var _destruct__k2r9zo = currentRelevantTags(this, $this$with.hl(), take(tagRefs(this), 2));
|
|
375
|
+
var currentTag = _destruct__k2r9zo.fa();
|
|
376
|
+
var previousTag = _destruct__k2r9zo.ga();
|
|
377
|
+
var tmp = contribution(this.um_1, currentContributionCommits($this$with, previousTag));
|
|
378
|
+
var tmp_0 = currentTag == null ? null : currentTag.ml_1;
|
|
379
|
+
return tmp.cm(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.sm_1, tmp_0, currentTag == null ? null : currentTag.ol_1);
|
|
380
380
|
};
|
|
381
|
-
protoOf(DiggerCore).
|
|
381
|
+
protoOf(DiggerCore).ym = function () {
|
|
382
382
|
// Inline function 'kotlin.collections.map' call
|
|
383
|
-
var this_0 = allContributionCommits(this.
|
|
383
|
+
var this_0 = allContributionCommits(this.tm_1, tagRefs(this), this.tm_1.jl());
|
|
384
384
|
// Inline function 'kotlin.collections.mapTo' call
|
|
385
385
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
386
386
|
var _iterator__ex2g4s = this_0.r();
|
|
387
387
|
while (_iterator__ex2g4s.s()) {
|
|
388
388
|
var item = _iterator__ex2g4s.t();
|
|
389
|
-
var tmp$ret$2 = to(item.
|
|
389
|
+
var tmp$ret$2 = to(item.da_1, contribution(this.um_1, toList(item.ea_1)));
|
|
390
390
|
destination.v(tmp$ret$2);
|
|
391
391
|
}
|
|
392
392
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -395,28 +395,28 @@
|
|
|
395
395
|
var _iterator__ex2g4s_0 = destination.r();
|
|
396
396
|
while (_iterator__ex2g4s_0.s()) {
|
|
397
397
|
var item_0 = _iterator__ex2g4s_0.t();
|
|
398
|
-
var tag = item_0.
|
|
399
|
-
var contribution_0 = item_0.
|
|
400
|
-
var tmp = tag == null ? null : tag.
|
|
401
|
-
var tmp$ret$5 = contribution_0.
|
|
398
|
+
var tag = item_0.fa();
|
|
399
|
+
var contribution_0 = item_0.ga();
|
|
400
|
+
var tmp = tag == null ? null : tag.ml_1;
|
|
401
|
+
var tmp$ret$5 = contribution_0.cm(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.sm_1, tmp, tag == null ? null : tag.ol_1);
|
|
402
402
|
destination_0.v(tmp$ret$5);
|
|
403
403
|
}
|
|
404
404
|
return destination_0;
|
|
405
405
|
};
|
|
406
406
|
function MessageDigResult(storyId, ease, coauthors, semver) {
|
|
407
|
-
this.
|
|
408
|
-
this.
|
|
409
|
-
this.
|
|
410
|
-
this.
|
|
407
|
+
this.om_1 = storyId;
|
|
408
|
+
this.pm_1 = ease;
|
|
409
|
+
this.qm_1 = coauthors;
|
|
410
|
+
this.rm_1 = semver;
|
|
411
411
|
}
|
|
412
412
|
protoOf(MessageDigResult).toString = function () {
|
|
413
|
-
return 'MessageDigResult(storyId=' + this.
|
|
413
|
+
return 'MessageDigResult(storyId=' + this.om_1 + ', ease=' + this.pm_1 + ', coauthors=' + toString(this.qm_1) + ', semver=' + toString_0(this.rm_1) + ')';
|
|
414
414
|
};
|
|
415
415
|
protoOf(MessageDigResult).hashCode = function () {
|
|
416
|
-
var result = this.
|
|
417
|
-
result = imul(result, 31) + (this.
|
|
418
|
-
result = imul(result, 31) + hashCode(this.
|
|
419
|
-
result = imul(result, 31) + (this.
|
|
416
|
+
var result = this.om_1 == null ? 0 : getStringHashCode(this.om_1);
|
|
417
|
+
result = imul(result, 31) + (this.pm_1 == null ? 0 : this.pm_1) | 0;
|
|
418
|
+
result = imul(result, 31) + hashCode(this.qm_1) | 0;
|
|
419
|
+
result = imul(result, 31) + (this.rm_1 == null ? 0 : this.rm_1.hashCode()) | 0;
|
|
420
420
|
return result;
|
|
421
421
|
};
|
|
422
422
|
protoOf(MessageDigResult).equals = function (other) {
|
|
@@ -424,24 +424,24 @@
|
|
|
424
424
|
return true;
|
|
425
425
|
if (!(other instanceof MessageDigResult))
|
|
426
426
|
return false;
|
|
427
|
-
if (!(this.
|
|
427
|
+
if (!(this.om_1 == other.om_1))
|
|
428
428
|
return false;
|
|
429
|
-
if (!(this.
|
|
429
|
+
if (!(this.pm_1 == other.pm_1))
|
|
430
430
|
return false;
|
|
431
|
-
if (!equals(this.
|
|
431
|
+
if (!equals(this.qm_1, other.qm_1))
|
|
432
432
|
return false;
|
|
433
|
-
if (!equals(this.
|
|
433
|
+
if (!equals(this.rm_1, other.rm_1))
|
|
434
434
|
return false;
|
|
435
435
|
return true;
|
|
436
436
|
};
|
|
437
437
|
function Defaults_0() {
|
|
438
438
|
Defaults_instance_0 = this;
|
|
439
|
-
this.
|
|
440
|
-
this.
|
|
441
|
-
this.
|
|
442
|
-
this.
|
|
443
|
-
this.
|
|
444
|
-
this.
|
|
439
|
+
this.zm_1 = Regex_init_$Create$_0('\\[major\\]', RegexOption_IGNORE_CASE_getInstance());
|
|
440
|
+
this.an_1 = Regex_init_$Create$_0('\\[minor\\]', RegexOption_IGNORE_CASE_getInstance());
|
|
441
|
+
this.bn_1 = Regex_init_$Create$_0('\\[patch\\]', RegexOption_IGNORE_CASE_getInstance());
|
|
442
|
+
this.cn_1 = Regex_init_$Create$_0('\\[none\\]', RegexOption_IGNORE_CASE_getInstance());
|
|
443
|
+
this.dn_1 = Regex_init_$Create$('\\[(?<storyId>.*?)\\]');
|
|
444
|
+
this.en_1 = Regex_init_$Create$('-(?<ease>[1-5])-');
|
|
445
445
|
}
|
|
446
446
|
var Defaults_instance_0;
|
|
447
447
|
function Defaults_getInstance_0() {
|
|
@@ -450,22 +450,22 @@
|
|
|
450
450
|
return Defaults_instance_0;
|
|
451
451
|
}
|
|
452
452
|
function MessageDigger(majorRegex, minorRegex, patchRegex, noneRegex, storyIdRegex, easeRegex) {
|
|
453
|
-
majorRegex = majorRegex === VOID ? Defaults_getInstance_0().
|
|
454
|
-
minorRegex = minorRegex === VOID ? Defaults_getInstance_0().
|
|
455
|
-
patchRegex = patchRegex === VOID ? Defaults_getInstance_0().
|
|
456
|
-
noneRegex = noneRegex === VOID ? Defaults_getInstance_0().
|
|
457
|
-
storyIdRegex = storyIdRegex === VOID ? Defaults_getInstance_0().
|
|
458
|
-
easeRegex = easeRegex === VOID ? Defaults_getInstance_0().
|
|
459
|
-
if (!contains(storyIdRegex.
|
|
460
|
-
throw RuntimeException_init_$Create$('StoryIdRegex must include a storyId group. The regex was: ' + storyIdRegex.
|
|
453
|
+
majorRegex = majorRegex === VOID ? Defaults_getInstance_0().zm_1 : majorRegex;
|
|
454
|
+
minorRegex = minorRegex === VOID ? Defaults_getInstance_0().an_1 : minorRegex;
|
|
455
|
+
patchRegex = patchRegex === VOID ? Defaults_getInstance_0().bn_1 : patchRegex;
|
|
456
|
+
noneRegex = noneRegex === VOID ? Defaults_getInstance_0().cn_1 : noneRegex;
|
|
457
|
+
storyIdRegex = storyIdRegex === VOID ? Defaults_getInstance_0().dn_1 : storyIdRegex;
|
|
458
|
+
easeRegex = easeRegex === VOID ? Defaults_getInstance_0().en_1 : easeRegex;
|
|
459
|
+
if (!contains(storyIdRegex.ac_1, '?<storyId>')) {
|
|
460
|
+
throw RuntimeException_init_$Create$('StoryIdRegex must include a storyId group. The regex was: ' + storyIdRegex.ac_1);
|
|
461
461
|
}
|
|
462
|
-
if (!contains(easeRegex.
|
|
463
|
-
throw RuntimeException_init_$Create$('EaseRegex must include an ease group. The regex was: ' + easeRegex.
|
|
462
|
+
if (!contains(easeRegex.ac_1, '?<ease>')) {
|
|
463
|
+
throw RuntimeException_init_$Create$('EaseRegex must include an ease group. The regex was: ' + easeRegex.ac_1);
|
|
464
464
|
}
|
|
465
|
-
this.
|
|
465
|
+
this.hm_1 = mapOf([to('major', majorRegex), to('minor', minorRegex), to('patch', patchRegex), to('none', noneRegex)]);
|
|
466
466
|
var tmp = this;
|
|
467
467
|
// Inline function 'kotlin.collections.map' call
|
|
468
|
-
var this_0 = this.
|
|
468
|
+
var this_0 = this.hm_1;
|
|
469
469
|
// Inline function 'kotlin.collections.mapTo' call
|
|
470
470
|
var destination = ArrayList_init_$Create$_0(this_0.d1());
|
|
471
471
|
// Inline function 'kotlin.collections.iterator' call
|
|
@@ -479,24 +479,24 @@
|
|
|
479
479
|
var tmp$ret$3 = '(?<' + group + '>' + cleaned(regex) + ')?';
|
|
480
480
|
destination.v(tmp$ret$3);
|
|
481
481
|
}
|
|
482
|
-
tmp.
|
|
483
|
-
this.
|
|
484
|
-
this.
|
|
485
|
-
this.
|
|
486
|
-
this.
|
|
487
|
-
}
|
|
488
|
-
protoOf(MessageDigger).
|
|
489
|
-
return messageDigResult(this.
|
|
482
|
+
tmp.im_1 = joinToString(destination, '');
|
|
483
|
+
this.jm_1 = '(' + cleaned(storyIdRegex) + ')?';
|
|
484
|
+
this.km_1 = '(' + cleaned(easeRegex) + ')?';
|
|
485
|
+
this.lm_1 = '(Co-authored-by: .* <(?<coAuthors>.*)>)?';
|
|
486
|
+
this.mm_1 = new Regex(this.im_1 + this.jm_1 + this.km_1 + this.lm_1, setOf([RegexOption_IGNORE_CASE_getInstance(), RegexOption_MULTILINE_getInstance()]));
|
|
487
|
+
}
|
|
488
|
+
protoOf(MessageDigger).nm = function (input) {
|
|
489
|
+
return messageDigResult(this.mm_1.jc(input));
|
|
490
490
|
};
|
|
491
491
|
function cleaned(_this__u8e3s4) {
|
|
492
|
-
var first = firstOrNull_0(_this__u8e3s4.
|
|
493
|
-
var last = lastIndexOf(_this__u8e3s4.
|
|
492
|
+
var first = firstOrNull_0(_this__u8e3s4.ac_1);
|
|
493
|
+
var last = lastIndexOf(_this__u8e3s4.ac_1, '/');
|
|
494
494
|
var tmp;
|
|
495
495
|
var tmp_0 = first;
|
|
496
496
|
if (equals(tmp_0 == null ? null : new Char(tmp_0), new Char(_Char___init__impl__6a9atx(47)))) {
|
|
497
|
-
tmp = substring(_this__u8e3s4.
|
|
497
|
+
tmp = substring(_this__u8e3s4.ac_1, 1, last);
|
|
498
498
|
} else {
|
|
499
|
-
tmp = _this__u8e3s4.
|
|
499
|
+
tmp = _this__u8e3s4.ac_1;
|
|
500
500
|
}
|
|
501
501
|
return tmp;
|
|
502
502
|
}
|
|
@@ -509,7 +509,7 @@
|
|
|
509
509
|
var _iterator__ex2g4s = _this__u8e3s4.r();
|
|
510
510
|
while (_iterator__ex2g4s.s()) {
|
|
511
511
|
var element = _iterator__ex2g4s.t();
|
|
512
|
-
var result = get(element.
|
|
512
|
+
var result = get(element.rc(), 'storyId');
|
|
513
513
|
if (!(result == null)) {
|
|
514
514
|
tmp$ret$0 = result;
|
|
515
515
|
break $l$block;
|
|
@@ -518,14 +518,14 @@
|
|
|
518
518
|
tmp$ret$0 = null;
|
|
519
519
|
}
|
|
520
520
|
var tmp0_safe_receiver = tmp$ret$0;
|
|
521
|
-
var tmp5_storyId = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
521
|
+
var tmp5_storyId = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.nc_1;
|
|
522
522
|
var tmp$ret$2;
|
|
523
523
|
$l$block_0: {
|
|
524
524
|
// Inline function 'kotlin.sequences.firstNotNullOfOrNull' call
|
|
525
525
|
var _iterator__ex2g4s_0 = _this__u8e3s4.r();
|
|
526
526
|
while (_iterator__ex2g4s_0.s()) {
|
|
527
527
|
var element_0 = _iterator__ex2g4s_0.t();
|
|
528
|
-
var result_0 = get(element_0.
|
|
528
|
+
var result_0 = get(element_0.rc(), 'ease');
|
|
529
529
|
if (!(result_0 == null)) {
|
|
530
530
|
tmp$ret$2 = result_0;
|
|
531
531
|
break $l$block_0;
|
|
@@ -534,7 +534,7 @@
|
|
|
534
534
|
tmp$ret$2 = null;
|
|
535
535
|
}
|
|
536
536
|
var tmp1_safe_receiver = tmp$ret$2;
|
|
537
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
537
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.nc_1;
|
|
538
538
|
var tmp6_ease = tmp2_safe_receiver == null ? null : toIntOrNull(tmp2_safe_receiver);
|
|
539
539
|
return new MessageDigResult(tmp5_storyId, tmp6_ease, tmp3_coauthors, tmp4_semver);
|
|
540
540
|
}
|
|
@@ -546,7 +546,7 @@
|
|
|
546
546
|
var tmp;
|
|
547
547
|
try {
|
|
548
548
|
// Inline function 'kotlin.Companion.success' call
|
|
549
|
-
var value = get(_this__u8e3s4.
|
|
549
|
+
var value = get(_this__u8e3s4.rc(), groupName);
|
|
550
550
|
tmp = _Result___init__impl__xyqfz8(value);
|
|
551
551
|
} catch ($p) {
|
|
552
552
|
var tmp_0;
|
|
@@ -567,8 +567,8 @@
|
|
|
567
567
|
return maxOrNull(_this__u8e3s4);
|
|
568
568
|
}
|
|
569
569
|
function messageDigResult$lambda(it) {
|
|
570
|
-
var tmp0_safe_receiver = get(it.
|
|
571
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
570
|
+
var tmp0_safe_receiver = get(it.rc(), 'coAuthors');
|
|
571
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.nc_1;
|
|
572
572
|
}
|
|
573
573
|
function messageDigResult$lambda_0(it) {
|
|
574
574
|
return getSemver(it);
|