git-digger 1.5.15 → 1.5.16
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 +1619 -1586
- package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
- package/kotlin/clikt-clikt.js +2042 -1968
- package/kotlin/clikt-clikt.js.map +1 -1
- package/kotlin/colormath-root-colormath.js +606 -518
- package/kotlin/colormath-root-colormath.js.map +1 -1
- package/kotlin/command-line-tools-digger-cli.js +107 -104
- package/kotlin/command-line-tools-digger-cli.js.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib.js +7141 -7156
- package/kotlin/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1024 -1024
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +336 -389
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/kotlin/markdown.js +2360 -2359
- package/kotlin/markdown.js.map +1 -1
- package/kotlin/mordant-mordant.js +2554 -2581
- package/kotlin/mordant-mordant.js.map +1 -1
- package/kotlin/tools-cli-tools.js +1 -1
- package/kotlin/tools-cli-tools.js.map +1 -1
- package/kotlin/tools-digger-core.js +217 -216
- package/kotlin/tools-digger-core.js.map +1 -1
- package/kotlin/tools-digger-json.js +117 -115
- package/kotlin/tools-digger-json.js.map +1 -1
- package/kotlin/tools-digger-model.js +58 -57
- package/kotlin/tools-digger-model.js.map +1 -1
- package/kotlin/tools-git-adapter.js +82 -82
- package/kotlin/tools-git-adapter.js.map +1 -1
- package/package.json +2 -2
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
var Unit_instance = kotlin_kotlin.$_$.l3;
|
|
8
8
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.i4;
|
|
9
9
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.l;
|
|
10
|
-
var to = kotlin_kotlin.$_$.
|
|
10
|
+
var to = kotlin_kotlin.$_$.gd;
|
|
11
11
|
var firstOrNull = kotlin_kotlin.$_$.y4;
|
|
12
|
-
var Pair = kotlin_kotlin.$_$.
|
|
12
|
+
var Pair = kotlin_kotlin.$_$.ic;
|
|
13
13
|
var listOf = kotlin_kotlin.$_$.s5;
|
|
14
14
|
var checkIndexOverflow = kotlin_kotlin.$_$.h4;
|
|
15
15
|
var getOrNull = kotlin_kotlin.$_$.c5;
|
|
@@ -17,13 +17,14 @@
|
|
|
17
17
|
var emptyList = kotlin_kotlin.$_$.u4;
|
|
18
18
|
var plus_0 = kotlin_kotlin.$_$.e6;
|
|
19
19
|
var last = kotlin_kotlin.$_$.q5;
|
|
20
|
-
var
|
|
20
|
+
var toString = kotlin_kotlin.$_$.d9;
|
|
21
|
+
var toString_0 = kotlin_kotlin.$_$.fd;
|
|
22
|
+
var protoOf = kotlin_kotlin.$_$.b9;
|
|
21
23
|
var getStringHashCode = kotlin_kotlin.$_$.c8;
|
|
22
24
|
var hashCode = kotlin_kotlin.$_$.d8;
|
|
23
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
25
|
+
var THROW_CCE = kotlin_kotlin.$_$.lc;
|
|
24
26
|
var equals = kotlin_kotlin.$_$.x7;
|
|
25
|
-
var
|
|
26
|
-
var setMetadataFor = kotlin_kotlin.$_$.a9;
|
|
27
|
+
var initMetadataForClass = kotlin_kotlin.$_$.e8;
|
|
27
28
|
var lastOrNull = kotlin_kotlin.$_$.n5;
|
|
28
29
|
var maxOrNull = kotlin_kotlin.$_$.w5;
|
|
29
30
|
var Contribution = kotlin_com_zegreatrob_tools_digger_model.$_$.a;
|
|
@@ -34,73 +35,73 @@
|
|
|
34
35
|
var toList = kotlin_kotlin.$_$.x6;
|
|
35
36
|
var joinToString = kotlin_kotlin.$_$.h5;
|
|
36
37
|
var Regex_init_$Create$ = kotlin_kotlin.$_$.u;
|
|
37
|
-
var
|
|
38
|
+
var initMetadataForObject = kotlin_kotlin.$_$.h8;
|
|
38
39
|
var VOID = kotlin_kotlin.$_$.g;
|
|
39
40
|
var take = kotlin_kotlin.$_$.t6;
|
|
40
41
|
var RegexOption_IGNORE_CASE_getInstance = kotlin_kotlin.$_$.h;
|
|
41
42
|
var Regex_init_$Create$_0 = kotlin_kotlin.$_$.v;
|
|
42
43
|
var RuntimeException_init_$Create$ = kotlin_kotlin.$_$.o1;
|
|
43
|
-
var contains = kotlin_kotlin.$_$.
|
|
44
|
+
var contains = kotlin_kotlin.$_$.ga;
|
|
44
45
|
var mapOf = kotlin_kotlin.$_$.v5;
|
|
45
46
|
var RegexOption_MULTILINE_getInstance = kotlin_kotlin.$_$.i;
|
|
46
47
|
var setOf = kotlin_kotlin.$_$.j6;
|
|
47
|
-
var Regex = kotlin_kotlin.$_$.
|
|
48
|
-
var firstOrNull_0 = kotlin_kotlin.$_$.
|
|
49
|
-
var lastIndexOf = kotlin_kotlin.$_$.
|
|
50
|
-
var Char = kotlin_kotlin.$_$.
|
|
48
|
+
var Regex = kotlin_kotlin.$_$.ca;
|
|
49
|
+
var firstOrNull_0 = kotlin_kotlin.$_$.la;
|
|
50
|
+
var lastIndexOf = kotlin_kotlin.$_$.xa;
|
|
51
|
+
var Char = kotlin_kotlin.$_$.zb;
|
|
51
52
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.s1;
|
|
52
|
-
var mapNotNull = kotlin_kotlin.$_$.
|
|
53
|
-
var toList_0 = kotlin_kotlin.$_$.
|
|
54
|
-
var maxOrNull_0 = kotlin_kotlin.$_$.
|
|
55
|
-
var get = kotlin_kotlin.$_$.
|
|
56
|
-
var toIntOrNull = kotlin_kotlin.$_$.
|
|
53
|
+
var mapNotNull = kotlin_kotlin.$_$.y9;
|
|
54
|
+
var toList_0 = kotlin_kotlin.$_$.ba;
|
|
55
|
+
var maxOrNull_0 = kotlin_kotlin.$_$.aa;
|
|
56
|
+
var get = kotlin_kotlin.$_$.na;
|
|
57
|
+
var toIntOrNull = kotlin_kotlin.$_$.qb;
|
|
57
58
|
var Companion_instance = kotlin_kotlin.$_$.g3;
|
|
58
59
|
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.x1;
|
|
59
|
-
var createFailure = kotlin_kotlin.$_$.
|
|
60
|
+
var createFailure = kotlin_kotlin.$_$.yc;
|
|
60
61
|
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.a2;
|
|
61
62
|
var _Result___get_isFailure__impl__jpiriv = kotlin_kotlin.$_$.y1;
|
|
62
|
-
var Enum = kotlin_kotlin.$_$.
|
|
63
|
+
var Enum = kotlin_kotlin.$_$.dc;
|
|
63
64
|
//endregion
|
|
64
65
|
//region block: pre-declaration
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
66
|
+
initMetadataForClass(CommitInspectionResult, 'CommitInspectionResult');
|
|
67
|
+
initMetadataForObject(Defaults, 'Defaults');
|
|
68
|
+
initMetadataForClass(DiggerCore, 'DiggerCore');
|
|
69
|
+
initMetadataForClass(MessageDigResult, 'MessageDigResult');
|
|
70
|
+
initMetadataForObject(Defaults_0, 'Defaults');
|
|
71
|
+
initMetadataForClass(MessageDigger, 'MessageDigger', MessageDigger);
|
|
72
|
+
initMetadataForClass(SemverType, 'SemverType', VOID, Enum);
|
|
72
73
|
//endregion
|
|
73
74
|
function allContributionCommits(_this__u8e3s4, tagRefs, fullLog) {
|
|
74
75
|
// Inline function 'kotlin.collections.filter' call
|
|
75
76
|
// Inline function 'kotlin.collections.distinctBy' call
|
|
76
77
|
var set = HashSet_init_$Create$();
|
|
77
78
|
var list = ArrayList_init_$Create$();
|
|
78
|
-
var tmp0_iterator = tagRefs.
|
|
79
|
-
while (tmp0_iterator.
|
|
80
|
-
var e = tmp0_iterator.
|
|
79
|
+
var tmp0_iterator = tagRefs.m();
|
|
80
|
+
while (tmp0_iterator.n()) {
|
|
81
|
+
var e = tmp0_iterator.o();
|
|
81
82
|
// Inline function 'com.zegreatrob.tools.digger.core.allContributionCommits.<anonymous>' call
|
|
82
|
-
var key = e.
|
|
83
|
-
if (set.
|
|
84
|
-
list.
|
|
83
|
+
var key = e.c18_1;
|
|
84
|
+
if (set.e(key)) {
|
|
85
|
+
list.e(e);
|
|
85
86
|
}
|
|
86
87
|
}
|
|
87
88
|
// Inline function 'kotlin.collections.filterTo' call
|
|
88
89
|
var destination = ArrayList_init_$Create$();
|
|
89
|
-
var tmp0_iterator_0 = list.
|
|
90
|
-
while (tmp0_iterator_0.
|
|
91
|
-
var element = tmp0_iterator_0.
|
|
90
|
+
var tmp0_iterator_0 = list.m();
|
|
91
|
+
while (tmp0_iterator_0.n()) {
|
|
92
|
+
var element = tmp0_iterator_0.o();
|
|
92
93
|
// Inline function 'com.zegreatrob.tools.digger.core.allContributionCommits.<anonymous>' call
|
|
93
94
|
// Inline function 'kotlin.collections.map' call
|
|
94
95
|
// Inline function 'kotlin.collections.mapTo' call
|
|
95
96
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(fullLog, 10));
|
|
96
|
-
var tmp0_iterator_1 = fullLog.
|
|
97
|
-
while (tmp0_iterator_1.
|
|
98
|
-
var item = tmp0_iterator_1.
|
|
99
|
-
var tmp$ret$2 = item.
|
|
100
|
-
destination_0.
|
|
97
|
+
var tmp0_iterator_1 = fullLog.m();
|
|
98
|
+
while (tmp0_iterator_1.n()) {
|
|
99
|
+
var item = tmp0_iterator_1.o();
|
|
100
|
+
var tmp$ret$2 = item.m17_1;
|
|
101
|
+
destination_0.e(tmp$ret$2);
|
|
101
102
|
}
|
|
102
|
-
if (destination_0.
|
|
103
|
-
destination.
|
|
103
|
+
if (destination_0.f1(element.c18_1)) {
|
|
104
|
+
destination.e(element);
|
|
104
105
|
}
|
|
105
106
|
}
|
|
106
107
|
return sortIntoTagSets(_this__u8e3s4, destination, fullLog);
|
|
@@ -111,34 +112,34 @@
|
|
|
111
112
|
var this_0 = tagPairs(tagRefs);
|
|
112
113
|
// Inline function 'kotlin.collections.mapTo' call
|
|
113
114
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
114
|
-
var tmp0_iterator = this_0.
|
|
115
|
-
while (tmp0_iterator.
|
|
116
|
-
var item = tmp0_iterator.
|
|
115
|
+
var tmp0_iterator = this_0.m();
|
|
116
|
+
while (tmp0_iterator.n()) {
|
|
117
|
+
var item = tmp0_iterator.o();
|
|
117
118
|
// Inline function 'com.zegreatrob.tools.digger.core.sortIntoTagSets.<anonymous>' call
|
|
118
|
-
var earlierTag = item.
|
|
119
|
-
var nextTag = item.
|
|
119
|
+
var earlierTag = item.i8();
|
|
120
|
+
var nextTag = item.j8();
|
|
120
121
|
var tmp;
|
|
121
|
-
if (earlierTag == null
|
|
122
|
-
tmp = _this__u8e3s4.
|
|
123
|
-
} else if (!(earlierTag == null)
|
|
124
|
-
tmp = _this__u8e3s4.
|
|
122
|
+
if (earlierTag == null && !(nextTag == null)) {
|
|
123
|
+
tmp = _this__u8e3s4.z17('^' + nextTag.c18_1, 'HEAD');
|
|
124
|
+
} else if (!(earlierTag == null) && !(nextTag == null)) {
|
|
125
|
+
tmp = _this__u8e3s4.z17('^' + nextTag.c18_1, earlierTag.c18_1);
|
|
125
126
|
} else if (!(earlierTag == null)) {
|
|
126
|
-
tmp = _this__u8e3s4.
|
|
127
|
+
tmp = _this__u8e3s4.a18(earlierTag.c18_1);
|
|
127
128
|
} else {
|
|
128
129
|
tmp = alwaysLeftParent(log);
|
|
129
130
|
}
|
|
130
131
|
var tmp$ret$0 = to(earlierTag, tmp);
|
|
131
|
-
destination.
|
|
132
|
+
destination.e(tmp$ret$0);
|
|
132
133
|
}
|
|
133
134
|
// Inline function 'kotlin.collections.filterTo' call
|
|
134
135
|
var destination_0 = ArrayList_init_$Create$();
|
|
135
|
-
var tmp0_iterator_0 = destination.
|
|
136
|
-
while (tmp0_iterator_0.
|
|
137
|
-
var element = tmp0_iterator_0.
|
|
136
|
+
var tmp0_iterator_0 = destination.m();
|
|
137
|
+
while (tmp0_iterator_0.n()) {
|
|
138
|
+
var element = tmp0_iterator_0.o();
|
|
138
139
|
// Inline function 'com.zegreatrob.tools.digger.core.sortIntoTagSets.<anonymous>' call
|
|
139
140
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
140
|
-
if (!element.
|
|
141
|
-
destination_0.
|
|
141
|
+
if (!element.h8_1.j()) {
|
|
142
|
+
destination_0.e(element);
|
|
142
143
|
}
|
|
143
144
|
}
|
|
144
145
|
return destination_0;
|
|
@@ -149,30 +150,30 @@
|
|
|
149
150
|
// Inline function 'kotlin.collections.mapIndexedTo' call
|
|
150
151
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(_this__u8e3s4, 10));
|
|
151
152
|
var index = 0;
|
|
152
|
-
var tmp0_iterator = _this__u8e3s4.
|
|
153
|
-
while (tmp0_iterator.
|
|
154
|
-
var item = tmp0_iterator.
|
|
153
|
+
var tmp0_iterator = _this__u8e3s4.m();
|
|
154
|
+
while (tmp0_iterator.n()) {
|
|
155
|
+
var item = tmp0_iterator.o();
|
|
155
156
|
// Inline function 'com.zegreatrob.tools.digger.core.tagPairs.<anonymous>' call
|
|
156
157
|
var tmp1 = index;
|
|
157
158
|
index = tmp1 + 1 | 0;
|
|
158
159
|
var index_0 = checkIndexOverflow(tmp1);
|
|
159
160
|
var tmp$ret$0 = to(item, getOrNull(_this__u8e3s4, index_0 + 1 | 0));
|
|
160
|
-
destination.
|
|
161
|
+
destination.e(tmp$ret$0);
|
|
161
162
|
}
|
|
162
163
|
return plus(tmp, destination);
|
|
163
164
|
}
|
|
164
165
|
function alwaysLeftParent(_this__u8e3s4) {
|
|
165
166
|
// Inline function 'kotlin.collections.fold' call
|
|
166
167
|
var accumulator = emptyList();
|
|
167
|
-
var tmp0_iterator = _this__u8e3s4.
|
|
168
|
-
while (tmp0_iterator.
|
|
169
|
-
var element = tmp0_iterator.
|
|
168
|
+
var tmp0_iterator = _this__u8e3s4.m();
|
|
169
|
+
while (tmp0_iterator.n()) {
|
|
170
|
+
var element = tmp0_iterator.o();
|
|
170
171
|
// Inline function 'com.zegreatrob.tools.digger.core.alwaysLeftParent.<anonymous>' call
|
|
171
172
|
var acc = accumulator;
|
|
172
173
|
var tmp;
|
|
173
|
-
if (acc.
|
|
174
|
+
if (acc.j()) {
|
|
174
175
|
tmp = plus_0(acc, element);
|
|
175
|
-
} else if (element.
|
|
176
|
+
} else if (element.m17_1 === firstOrNull(last(acc).q17_1)) {
|
|
176
177
|
tmp = plus_0(acc, element);
|
|
177
178
|
} else {
|
|
178
179
|
tmp = acc;
|
|
@@ -182,19 +183,19 @@
|
|
|
182
183
|
return accumulator;
|
|
183
184
|
}
|
|
184
185
|
function CommitInspectionResult(storyId, ease, authors, semver) {
|
|
185
|
-
this.
|
|
186
|
-
this.
|
|
187
|
-
this.
|
|
188
|
-
this.
|
|
186
|
+
this.e18_1 = storyId;
|
|
187
|
+
this.f18_1 = ease;
|
|
188
|
+
this.g18_1 = authors;
|
|
189
|
+
this.h18_1 = semver;
|
|
189
190
|
}
|
|
190
191
|
protoOf(CommitInspectionResult).toString = function () {
|
|
191
|
-
return 'CommitInspectionResult(storyId=' + this.
|
|
192
|
+
return 'CommitInspectionResult(storyId=' + this.e18_1 + ', ease=' + this.f18_1 + ', authors=' + toString(this.g18_1) + ', semver=' + toString_0(this.h18_1) + ')';
|
|
192
193
|
};
|
|
193
194
|
protoOf(CommitInspectionResult).hashCode = function () {
|
|
194
|
-
var result = this.
|
|
195
|
-
result = imul(result, 31) + (this.
|
|
196
|
-
result = imul(result, 31) + hashCode(this.
|
|
197
|
-
result = imul(result, 31) + (this.
|
|
195
|
+
var result = this.e18_1 == null ? 0 : getStringHashCode(this.e18_1);
|
|
196
|
+
result = imul(result, 31) + (this.f18_1 == null ? 0 : this.f18_1) | 0;
|
|
197
|
+
result = imul(result, 31) + hashCode(this.g18_1) | 0;
|
|
198
|
+
result = imul(result, 31) + (this.h18_1 == null ? 0 : this.h18_1.hashCode()) | 0;
|
|
198
199
|
return result;
|
|
199
200
|
};
|
|
200
201
|
protoOf(CommitInspectionResult).equals = function (other) {
|
|
@@ -203,13 +204,13 @@
|
|
|
203
204
|
if (!(other instanceof CommitInspectionResult))
|
|
204
205
|
return false;
|
|
205
206
|
var tmp0_other_with_cast = other instanceof CommitInspectionResult ? other : THROW_CCE();
|
|
206
|
-
if (!(this.
|
|
207
|
+
if (!(this.e18_1 == tmp0_other_with_cast.e18_1))
|
|
207
208
|
return false;
|
|
208
|
-
if (!(this.
|
|
209
|
+
if (!(this.f18_1 == tmp0_other_with_cast.f18_1))
|
|
209
210
|
return false;
|
|
210
|
-
if (!equals(this.
|
|
211
|
+
if (!equals(this.g18_1, tmp0_other_with_cast.g18_1))
|
|
211
212
|
return false;
|
|
212
|
-
if (!equals(this.
|
|
213
|
+
if (!equals(this.h18_1, tmp0_other_with_cast.h18_1))
|
|
213
214
|
return false;
|
|
214
215
|
return true;
|
|
215
216
|
};
|
|
@@ -217,39 +218,39 @@
|
|
|
217
218
|
// Inline function 'kotlin.collections.map' call
|
|
218
219
|
// Inline function 'kotlin.collections.mapTo' call
|
|
219
220
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(commitRefs, 10));
|
|
220
|
-
var tmp0_iterator = commitRefs.
|
|
221
|
-
while (tmp0_iterator.
|
|
222
|
-
var item = tmp0_iterator.
|
|
221
|
+
var tmp0_iterator = commitRefs.m();
|
|
222
|
+
while (tmp0_iterator.n()) {
|
|
223
|
+
var item = tmp0_iterator.o();
|
|
223
224
|
// Inline function 'com.zegreatrob.tools.digger.core.contribution.<anonymous>' call
|
|
224
|
-
var tmp$ret$0 = commitInspectionResult(item, _this__u8e3s4.
|
|
225
|
-
destination.
|
|
225
|
+
var tmp$ret$0 = commitInspectionResult(item, _this__u8e3s4.o18(item.r17_1));
|
|
226
|
+
destination.e(tmp$ret$0);
|
|
226
227
|
}
|
|
227
228
|
var messageDigResults = destination;
|
|
228
229
|
var lastCommit = firstOrNull(commitRefs);
|
|
229
230
|
var firstCommit = lastOrNull(commitRefs);
|
|
230
|
-
var tmp1_elvis_lhs = lastCommit == null ? null : lastCommit.
|
|
231
|
+
var tmp1_elvis_lhs = lastCommit == null ? null : lastCommit.m17_1;
|
|
231
232
|
var tmp7_lastCommit = tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs;
|
|
232
|
-
var tmp3_elvis_lhs = firstCommit == null ? null : firstCommit.
|
|
233
|
+
var tmp3_elvis_lhs = firstCommit == null ? null : firstCommit.m17_1;
|
|
233
234
|
var tmp8_firstCommit = tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs;
|
|
234
235
|
var tmp9_authors = allAuthors(messageDigResults);
|
|
235
|
-
var tmp10_dateTime = lastCommit == null ? null : lastCommit.
|
|
236
|
-
var tmp11_firstCommitDateTime = firstCommit == null ? null : firstCommit.
|
|
236
|
+
var tmp10_dateTime = lastCommit == null ? null : lastCommit.p17_1;
|
|
237
|
+
var tmp11_firstCommitDateTime = firstCommit == null ? null : firstCommit.p17_1;
|
|
237
238
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
238
239
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
239
240
|
var destination_0 = ArrayList_init_$Create$();
|
|
240
241
|
// Inline function 'kotlin.collections.forEach' call
|
|
241
|
-
var tmp0_iterator_0 = messageDigResults.
|
|
242
|
-
while (tmp0_iterator_0.
|
|
243
|
-
var element = tmp0_iterator_0.
|
|
242
|
+
var tmp0_iterator_0 = messageDigResults.m();
|
|
243
|
+
while (tmp0_iterator_0.n()) {
|
|
244
|
+
var element = tmp0_iterator_0.o();
|
|
244
245
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
245
246
|
// Inline function 'com.zegreatrob.tools.digger.core.contribution.<anonymous>' call
|
|
246
|
-
var tmp0_safe_receiver = element.
|
|
247
|
+
var tmp0_safe_receiver = element.f18_1;
|
|
247
248
|
if (tmp0_safe_receiver == null)
|
|
248
249
|
null;
|
|
249
250
|
else {
|
|
250
251
|
// Inline function 'kotlin.let' call
|
|
251
252
|
// Inline function 'kotlin.contracts.contract' call
|
|
252
|
-
destination_0.
|
|
253
|
+
destination_0.e(tmp0_safe_receiver);
|
|
253
254
|
}
|
|
254
255
|
}
|
|
255
256
|
var tmp12_ease = maxOrNull(destination_0);
|
|
@@ -258,50 +259,50 @@
|
|
|
258
259
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
259
260
|
var destination_1 = ArrayList_init_$Create$();
|
|
260
261
|
// Inline function 'kotlin.collections.forEach' call
|
|
261
|
-
var tmp0_iterator_1 = messageDigResults.
|
|
262
|
-
while (tmp0_iterator_1.
|
|
263
|
-
var element_0 = tmp0_iterator_1.
|
|
262
|
+
var tmp0_iterator_1 = messageDigResults.m();
|
|
263
|
+
while (tmp0_iterator_1.n()) {
|
|
264
|
+
var element_0 = tmp0_iterator_1.o();
|
|
264
265
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
265
266
|
// Inline function 'com.zegreatrob.tools.digger.core.contribution.<anonymous>' call
|
|
266
|
-
var tmp0_safe_receiver_0 = element_0.
|
|
267
|
+
var tmp0_safe_receiver_0 = element_0.h18_1;
|
|
267
268
|
if (tmp0_safe_receiver_0 == null)
|
|
268
269
|
null;
|
|
269
270
|
else {
|
|
270
271
|
// Inline function 'kotlin.let' call
|
|
271
272
|
// Inline function 'kotlin.contracts.contract' call
|
|
272
|
-
destination_1.
|
|
273
|
+
destination_1.e(tmp0_safe_receiver_0);
|
|
273
274
|
}
|
|
274
275
|
}
|
|
275
276
|
var tmp6_safe_receiver = highestPrioritySemver(destination_1);
|
|
276
277
|
var tmp14_semver = tmp6_safe_receiver == null ? null : tmp6_safe_receiver.toString();
|
|
277
278
|
// Inline function 'kotlin.collections.count' call
|
|
278
|
-
var tmp15_commitCount = commitRefs.
|
|
279
|
+
var tmp15_commitCount = commitRefs.p();
|
|
279
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);
|
|
280
281
|
}
|
|
281
282
|
function commitInspectionResult(_this__u8e3s4, digResult) {
|
|
282
|
-
return new CommitInspectionResult(digResult.
|
|
283
|
+
return new CommitInspectionResult(digResult.p18_1, digResult.q18_1, plus(listOf_0([_this__u8e3s4.o17_1, _this__u8e3s4.n17_1]), digResult.r18_1), digResult.s18_1);
|
|
283
284
|
}
|
|
284
285
|
function allAuthors(messageDigResults) {
|
|
285
286
|
// Inline function 'kotlin.collections.map' call
|
|
286
287
|
// Inline function 'kotlin.collections.flatMap' call
|
|
287
288
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
288
289
|
var destination = ArrayList_init_$Create$();
|
|
289
|
-
var tmp0_iterator = messageDigResults.
|
|
290
|
-
while (tmp0_iterator.
|
|
291
|
-
var element = tmp0_iterator.
|
|
292
|
-
var list = element.
|
|
290
|
+
var tmp0_iterator = messageDigResults.m();
|
|
291
|
+
while (tmp0_iterator.n()) {
|
|
292
|
+
var element = tmp0_iterator.o();
|
|
293
|
+
var list = element.g18_1;
|
|
293
294
|
addAll(destination, list);
|
|
294
295
|
}
|
|
295
296
|
// Inline function 'kotlin.collections.mapTo' call
|
|
296
297
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination, 10));
|
|
297
|
-
var tmp0_iterator_0 = destination.
|
|
298
|
-
while (tmp0_iterator_0.
|
|
299
|
-
var item = tmp0_iterator_0.
|
|
298
|
+
var tmp0_iterator_0 = destination.m();
|
|
299
|
+
while (tmp0_iterator_0.n()) {
|
|
300
|
+
var item = tmp0_iterator_0.o();
|
|
300
301
|
// Inline function 'com.zegreatrob.tools.digger.core.allAuthors.<anonymous>' call
|
|
301
302
|
// Inline function 'kotlin.text.lowercase' call
|
|
302
303
|
// Inline function 'kotlin.js.asDynamic' call
|
|
303
304
|
var tmp$ret$5 = item.toLowerCase();
|
|
304
|
-
destination_0.
|
|
305
|
+
destination_0.e(tmp$ret$5);
|
|
305
306
|
}
|
|
306
307
|
return toList(sorted(toSet(destination_0)));
|
|
307
308
|
}
|
|
@@ -311,24 +312,24 @@
|
|
|
311
312
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
312
313
|
var destination = ArrayList_init_$Create$();
|
|
313
314
|
// Inline function 'kotlin.collections.forEach' call
|
|
314
|
-
var tmp0_iterator = messageDigResults.
|
|
315
|
-
while (tmp0_iterator.
|
|
316
|
-
var element = tmp0_iterator.
|
|
315
|
+
var tmp0_iterator = messageDigResults.m();
|
|
316
|
+
while (tmp0_iterator.n()) {
|
|
317
|
+
var element = tmp0_iterator.o();
|
|
317
318
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
318
|
-
var tmp0_safe_receiver = element.
|
|
319
|
+
var tmp0_safe_receiver = element.e18_1;
|
|
319
320
|
if (tmp0_safe_receiver == null)
|
|
320
321
|
null;
|
|
321
322
|
else {
|
|
322
323
|
// Inline function 'kotlin.let' call
|
|
323
324
|
// Inline function 'kotlin.contracts.contract' call
|
|
324
|
-
destination.
|
|
325
|
+
destination.e(tmp0_safe_receiver);
|
|
325
326
|
}
|
|
326
327
|
}
|
|
327
328
|
// Inline function 'kotlin.contracts.contract' call
|
|
328
329
|
// Inline function 'com.zegreatrob.tools.digger.core.mergedStoryIds.<anonymous>' call
|
|
329
330
|
var tmp;
|
|
330
331
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
331
|
-
if (!destination.
|
|
332
|
+
if (!destination.j()) {
|
|
332
333
|
tmp = joinToString(sorted(toSet(destination)), ', ');
|
|
333
334
|
} else {
|
|
334
335
|
tmp = null;
|
|
@@ -338,23 +339,23 @@
|
|
|
338
339
|
function currentContributionCommits(_this__u8e3s4, previousTag) {
|
|
339
340
|
var tmp;
|
|
340
341
|
if (previousTag == null) {
|
|
341
|
-
tmp = _this__u8e3s4.
|
|
342
|
+
tmp = _this__u8e3s4.y17();
|
|
342
343
|
} else {
|
|
343
|
-
tmp = _this__u8e3s4.
|
|
344
|
+
tmp = _this__u8e3s4.z17('^' + previousTag.b18_1, 'HEAD');
|
|
344
345
|
}
|
|
345
346
|
return tmp;
|
|
346
347
|
}
|
|
347
348
|
function tagRefs($this) {
|
|
348
349
|
// Inline function 'kotlin.collections.filter' call
|
|
349
350
|
// Inline function 'kotlin.collections.filterTo' call
|
|
350
|
-
var this_0 = $this.
|
|
351
|
+
var this_0 = $this.u18_1.x17();
|
|
351
352
|
var destination = ArrayList_init_$Create$();
|
|
352
|
-
var tmp0_iterator = this_0.
|
|
353
|
-
while (tmp0_iterator.
|
|
354
|
-
var element = tmp0_iterator.
|
|
353
|
+
var tmp0_iterator = this_0.m();
|
|
354
|
+
while (tmp0_iterator.n()) {
|
|
355
|
+
var element = tmp0_iterator.o();
|
|
355
356
|
// Inline function 'com.zegreatrob.tools.digger.core.DiggerCore.tagRefs.<anonymous>' call
|
|
356
|
-
if ($this.
|
|
357
|
-
destination.
|
|
357
|
+
if ($this.w18_1.qa(element.b18_1)) {
|
|
358
|
+
destination.e(element);
|
|
358
359
|
}
|
|
359
360
|
}
|
|
360
361
|
return destination;
|
|
@@ -365,7 +366,7 @@
|
|
|
365
366
|
// Inline function 'com.zegreatrob.tools.digger.core.DiggerCore.currentRelevantTags.<anonymous>' call
|
|
366
367
|
var latestTag = getOrNull(lastTwoTags, 0);
|
|
367
368
|
var tmp;
|
|
368
|
-
if ((latestTag == null ? null : latestTag.
|
|
369
|
+
if ((latestTag == null ? null : latestTag.c18_1) === headCommitId) {
|
|
369
370
|
tmp = to(latestTag, getOrNull(lastTwoTags, 1));
|
|
370
371
|
} else {
|
|
371
372
|
tmp = to(null, latestTag);
|
|
@@ -374,7 +375,7 @@
|
|
|
374
375
|
}
|
|
375
376
|
function Defaults() {
|
|
376
377
|
Defaults_instance = this;
|
|
377
|
-
this.
|
|
378
|
+
this.x18_1 = Regex_init_$Create$('.*');
|
|
378
379
|
}
|
|
379
380
|
var Defaults_instance;
|
|
380
381
|
function Defaults_getInstance() {
|
|
@@ -383,65 +384,65 @@
|
|
|
383
384
|
return Defaults_instance;
|
|
384
385
|
}
|
|
385
386
|
function DiggerCore(label, gitWrapper, messageDigger, tagRegex) {
|
|
386
|
-
tagRegex = tagRegex === VOID ? Defaults_getInstance().
|
|
387
|
-
this.
|
|
388
|
-
this.
|
|
389
|
-
this.
|
|
390
|
-
this.
|
|
387
|
+
tagRegex = tagRegex === VOID ? Defaults_getInstance().x18_1 : tagRegex;
|
|
388
|
+
this.t18_1 = label;
|
|
389
|
+
this.u18_1 = gitWrapper;
|
|
390
|
+
this.v18_1 = messageDigger;
|
|
391
|
+
this.w18_1 = tagRegex;
|
|
391
392
|
}
|
|
392
|
-
protoOf(DiggerCore).
|
|
393
|
+
protoOf(DiggerCore).y18 = function () {
|
|
393
394
|
// Inline function 'kotlin.with' call
|
|
394
395
|
// Inline function 'kotlin.contracts.contract' call
|
|
395
396
|
// Inline function 'com.zegreatrob.tools.digger.core.DiggerCore.currentContributionData.<anonymous>' call
|
|
396
|
-
var $this$with = this.
|
|
397
|
-
var tmp0_container = currentRelevantTags(this, $this$with.
|
|
398
|
-
var currentTag = tmp0_container.
|
|
399
|
-
var previousTag = tmp0_container.
|
|
400
|
-
var tmp = contribution(this.
|
|
401
|
-
var tmp_0 = currentTag == null ? null : currentTag.
|
|
402
|
-
return tmp.
|
|
397
|
+
var $this$with = this.u18_1;
|
|
398
|
+
var tmp0_container = currentRelevantTags(this, $this$with.w17(), take(tagRefs(this), 2));
|
|
399
|
+
var currentTag = tmp0_container.i8();
|
|
400
|
+
var previousTag = tmp0_container.j8();
|
|
401
|
+
var tmp = contribution(this.v18_1, currentContributionCommits($this$with, previousTag));
|
|
402
|
+
var tmp_0 = currentTag == null ? null : currentTag.b18_1;
|
|
403
|
+
return tmp.l17(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.t18_1, tmp_0, currentTag == null ? null : currentTag.d18_1);
|
|
403
404
|
};
|
|
404
|
-
protoOf(DiggerCore).
|
|
405
|
+
protoOf(DiggerCore).z18 = function () {
|
|
405
406
|
// Inline function 'kotlin.collections.map' call
|
|
406
407
|
// Inline function 'kotlin.collections.map' call
|
|
407
|
-
var this_0 = allContributionCommits(this.
|
|
408
|
+
var this_0 = allContributionCommits(this.u18_1, tagRefs(this), this.u18_1.y17());
|
|
408
409
|
// Inline function 'kotlin.collections.mapTo' call
|
|
409
410
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
410
|
-
var tmp0_iterator = this_0.
|
|
411
|
-
while (tmp0_iterator.
|
|
412
|
-
var item = tmp0_iterator.
|
|
411
|
+
var tmp0_iterator = this_0.m();
|
|
412
|
+
while (tmp0_iterator.n()) {
|
|
413
|
+
var item = tmp0_iterator.o();
|
|
413
414
|
// Inline function 'com.zegreatrob.tools.digger.core.DiggerCore.allContributionData.<anonymous>' call
|
|
414
|
-
var tmp$ret$0 = to(item.
|
|
415
|
-
destination.
|
|
415
|
+
var tmp$ret$0 = to(item.g8_1, contribution(this.v18_1, toList(item.h8_1)));
|
|
416
|
+
destination.e(tmp$ret$0);
|
|
416
417
|
}
|
|
417
418
|
// Inline function 'kotlin.collections.mapTo' call
|
|
418
419
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination, 10));
|
|
419
|
-
var tmp0_iterator_0 = destination.
|
|
420
|
-
while (tmp0_iterator_0.
|
|
421
|
-
var item_0 = tmp0_iterator_0.
|
|
420
|
+
var tmp0_iterator_0 = destination.m();
|
|
421
|
+
while (tmp0_iterator_0.n()) {
|
|
422
|
+
var item_0 = tmp0_iterator_0.o();
|
|
422
423
|
// Inline function 'com.zegreatrob.tools.digger.core.DiggerCore.allContributionData.<anonymous>' call
|
|
423
|
-
var tag = item_0.
|
|
424
|
-
var contribution_0 = item_0.
|
|
425
|
-
var tmp = tag == null ? null : tag.
|
|
426
|
-
var tmp$ret$3 = contribution_0.
|
|
427
|
-
destination_0.
|
|
424
|
+
var tag = item_0.i8();
|
|
425
|
+
var contribution_0 = item_0.j8();
|
|
426
|
+
var tmp = tag == null ? null : tag.b18_1;
|
|
427
|
+
var tmp$ret$3 = contribution_0.l17(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.t18_1, tmp, tag == null ? null : tag.d18_1);
|
|
428
|
+
destination_0.e(tmp$ret$3);
|
|
428
429
|
}
|
|
429
430
|
return destination_0;
|
|
430
431
|
};
|
|
431
432
|
function MessageDigResult(storyId, ease, coauthors, semver) {
|
|
432
|
-
this.
|
|
433
|
-
this.
|
|
434
|
-
this.
|
|
435
|
-
this.
|
|
433
|
+
this.p18_1 = storyId;
|
|
434
|
+
this.q18_1 = ease;
|
|
435
|
+
this.r18_1 = coauthors;
|
|
436
|
+
this.s18_1 = semver;
|
|
436
437
|
}
|
|
437
438
|
protoOf(MessageDigResult).toString = function () {
|
|
438
|
-
return 'MessageDigResult(storyId=' + this.
|
|
439
|
+
return 'MessageDigResult(storyId=' + this.p18_1 + ', ease=' + this.q18_1 + ', coauthors=' + toString(this.r18_1) + ', semver=' + toString_0(this.s18_1) + ')';
|
|
439
440
|
};
|
|
440
441
|
protoOf(MessageDigResult).hashCode = function () {
|
|
441
|
-
var result = this.
|
|
442
|
-
result = imul(result, 31) + (this.
|
|
443
|
-
result = imul(result, 31) + hashCode(this.
|
|
444
|
-
result = imul(result, 31) + (this.
|
|
442
|
+
var result = this.p18_1 == null ? 0 : getStringHashCode(this.p18_1);
|
|
443
|
+
result = imul(result, 31) + (this.q18_1 == null ? 0 : this.q18_1) | 0;
|
|
444
|
+
result = imul(result, 31) + hashCode(this.r18_1) | 0;
|
|
445
|
+
result = imul(result, 31) + (this.s18_1 == null ? 0 : this.s18_1.hashCode()) | 0;
|
|
445
446
|
return result;
|
|
446
447
|
};
|
|
447
448
|
protoOf(MessageDigResult).equals = function (other) {
|
|
@@ -450,24 +451,24 @@
|
|
|
450
451
|
if (!(other instanceof MessageDigResult))
|
|
451
452
|
return false;
|
|
452
453
|
var tmp0_other_with_cast = other instanceof MessageDigResult ? other : THROW_CCE();
|
|
453
|
-
if (!(this.
|
|
454
|
+
if (!(this.p18_1 == tmp0_other_with_cast.p18_1))
|
|
454
455
|
return false;
|
|
455
|
-
if (!(this.
|
|
456
|
+
if (!(this.q18_1 == tmp0_other_with_cast.q18_1))
|
|
456
457
|
return false;
|
|
457
|
-
if (!equals(this.
|
|
458
|
+
if (!equals(this.r18_1, tmp0_other_with_cast.r18_1))
|
|
458
459
|
return false;
|
|
459
|
-
if (!equals(this.
|
|
460
|
+
if (!equals(this.s18_1, tmp0_other_with_cast.s18_1))
|
|
460
461
|
return false;
|
|
461
462
|
return true;
|
|
462
463
|
};
|
|
463
464
|
function Defaults_0() {
|
|
464
465
|
Defaults_instance_0 = this;
|
|
465
|
-
this.
|
|
466
|
-
this.
|
|
467
|
-
this.
|
|
468
|
-
this.
|
|
469
|
-
this.
|
|
470
|
-
this.
|
|
466
|
+
this.a19_1 = Regex_init_$Create$_0('\\[major\\]', RegexOption_IGNORE_CASE_getInstance());
|
|
467
|
+
this.b19_1 = Regex_init_$Create$_0('\\[minor\\]', RegexOption_IGNORE_CASE_getInstance());
|
|
468
|
+
this.c19_1 = Regex_init_$Create$_0('\\[patch\\]', RegexOption_IGNORE_CASE_getInstance());
|
|
469
|
+
this.d19_1 = Regex_init_$Create$_0('\\[none\\]', RegexOption_IGNORE_CASE_getInstance());
|
|
470
|
+
this.e19_1 = Regex_init_$Create$('\\[(?<storyId>.*?)\\]');
|
|
471
|
+
this.f19_1 = Regex_init_$Create$('-(?<ease>[1-5])-');
|
|
471
472
|
}
|
|
472
473
|
var Defaults_instance_0;
|
|
473
474
|
function Defaults_getInstance_0() {
|
|
@@ -476,56 +477,56 @@
|
|
|
476
477
|
return Defaults_instance_0;
|
|
477
478
|
}
|
|
478
479
|
function MessageDigger(majorRegex, minorRegex, patchRegex, noneRegex, storyIdRegex, easeRegex) {
|
|
479
|
-
majorRegex = majorRegex === VOID ? Defaults_getInstance_0().
|
|
480
|
-
minorRegex = minorRegex === VOID ? Defaults_getInstance_0().
|
|
481
|
-
patchRegex = patchRegex === VOID ? Defaults_getInstance_0().
|
|
482
|
-
noneRegex = noneRegex === VOID ? Defaults_getInstance_0().
|
|
483
|
-
storyIdRegex = storyIdRegex === VOID ? Defaults_getInstance_0().
|
|
484
|
-
easeRegex = easeRegex === VOID ? Defaults_getInstance_0().
|
|
485
|
-
if (!contains(storyIdRegex.
|
|
486
|
-
throw RuntimeException_init_$Create$('StoryIdRegex must include a storyId group. The regex was: ' + storyIdRegex.
|
|
480
|
+
majorRegex = majorRegex === VOID ? Defaults_getInstance_0().a19_1 : majorRegex;
|
|
481
|
+
minorRegex = minorRegex === VOID ? Defaults_getInstance_0().b19_1 : minorRegex;
|
|
482
|
+
patchRegex = patchRegex === VOID ? Defaults_getInstance_0().c19_1 : patchRegex;
|
|
483
|
+
noneRegex = noneRegex === VOID ? Defaults_getInstance_0().d19_1 : noneRegex;
|
|
484
|
+
storyIdRegex = storyIdRegex === VOID ? Defaults_getInstance_0().e19_1 : storyIdRegex;
|
|
485
|
+
easeRegex = easeRegex === VOID ? Defaults_getInstance_0().f19_1 : easeRegex;
|
|
486
|
+
if (!contains(storyIdRegex.ka_1, '?<storyId>')) {
|
|
487
|
+
throw RuntimeException_init_$Create$('StoryIdRegex must include a storyId group. The regex was: ' + storyIdRegex.ka_1);
|
|
487
488
|
}
|
|
488
|
-
if (!contains(easeRegex.
|
|
489
|
-
throw RuntimeException_init_$Create$('EaseRegex must include an ease group. The regex was: ' + easeRegex.
|
|
489
|
+
if (!contains(easeRegex.ka_1, '?<ease>')) {
|
|
490
|
+
throw RuntimeException_init_$Create$('EaseRegex must include an ease group. The regex was: ' + easeRegex.ka_1);
|
|
490
491
|
}
|
|
491
|
-
this.
|
|
492
|
+
this.i18_1 = mapOf([to('major', majorRegex), to('minor', minorRegex), to('patch', patchRegex), to('none', noneRegex)]);
|
|
492
493
|
var tmp = this;
|
|
493
494
|
// Inline function 'kotlin.collections.map' call
|
|
494
|
-
var this_0 = this.
|
|
495
|
+
var this_0 = this.i18_1;
|
|
495
496
|
// Inline function 'kotlin.collections.mapTo' call
|
|
496
|
-
var destination = ArrayList_init_$Create$_0(this_0.
|
|
497
|
+
var destination = ArrayList_init_$Create$_0(this_0.p());
|
|
497
498
|
// Inline function 'kotlin.collections.iterator' call
|
|
498
|
-
var tmp0_iterator = this_0.
|
|
499
|
-
while (tmp0_iterator.
|
|
500
|
-
var item = tmp0_iterator.
|
|
499
|
+
var tmp0_iterator = this_0.y().m();
|
|
500
|
+
while (tmp0_iterator.n()) {
|
|
501
|
+
var item = tmp0_iterator.o();
|
|
501
502
|
// Inline function 'com.zegreatrob.tools.digger.core.MessageDigger.allSemverRegex.<anonymous>' call
|
|
502
503
|
// Inline function 'kotlin.collections.component1' call
|
|
503
|
-
var group = item.
|
|
504
|
+
var group = item.z();
|
|
504
505
|
// Inline function 'kotlin.collections.component2' call
|
|
505
|
-
var regex = item.
|
|
506
|
+
var regex = item.a1();
|
|
506
507
|
var tmp$ret$3 = '(?<' + group + '>' + cleaned(regex) + ')?';
|
|
507
|
-
destination.
|
|
508
|
+
destination.e(tmp$ret$3);
|
|
508
509
|
}
|
|
509
|
-
tmp.
|
|
510
|
-
this.
|
|
511
|
-
this.
|
|
512
|
-
this.
|
|
513
|
-
this.
|
|
514
|
-
}
|
|
515
|
-
protoOf(MessageDigger).
|
|
516
|
-
return messageDigResult(this.
|
|
510
|
+
tmp.j18_1 = joinToString(destination, '');
|
|
511
|
+
this.k18_1 = '(' + cleaned(storyIdRegex) + ')?';
|
|
512
|
+
this.l18_1 = '(' + cleaned(easeRegex) + ')?';
|
|
513
|
+
this.m18_1 = '(Co-authored-by: .* <(?<coAuthors>.*)>)?';
|
|
514
|
+
this.n18_1 = new Regex(this.j18_1 + this.k18_1 + this.l18_1 + this.m18_1, setOf([RegexOption_IGNORE_CASE_getInstance(), RegexOption_MULTILINE_getInstance()]));
|
|
515
|
+
}
|
|
516
|
+
protoOf(MessageDigger).o18 = function (input) {
|
|
517
|
+
return messageDigResult(this.n18_1.ta(input));
|
|
517
518
|
};
|
|
518
519
|
function cleaned(_this__u8e3s4) {
|
|
519
|
-
var first = firstOrNull_0(_this__u8e3s4.
|
|
520
|
-
var last = lastIndexOf(_this__u8e3s4.
|
|
520
|
+
var first = firstOrNull_0(_this__u8e3s4.ka_1);
|
|
521
|
+
var last = lastIndexOf(_this__u8e3s4.ka_1, '/');
|
|
521
522
|
var tmp;
|
|
522
523
|
var tmp_0 = first;
|
|
523
524
|
if (equals(tmp_0 == null ? null : new Char(tmp_0), new Char(_Char___init__impl__6a9atx(47)))) {
|
|
524
525
|
// Inline function 'kotlin.text.substring' call
|
|
525
526
|
// Inline function 'kotlin.js.asDynamic' call
|
|
526
|
-
tmp = _this__u8e3s4.
|
|
527
|
+
tmp = _this__u8e3s4.ka_1.substring(1, last);
|
|
527
528
|
} else {
|
|
528
|
-
tmp = _this__u8e3s4.
|
|
529
|
+
tmp = _this__u8e3s4.ka_1;
|
|
529
530
|
}
|
|
530
531
|
return tmp;
|
|
531
532
|
}
|
|
@@ -535,11 +536,11 @@
|
|
|
535
536
|
var tmp$ret$1;
|
|
536
537
|
$l$block: {
|
|
537
538
|
// Inline function 'kotlin.sequences.firstNotNullOfOrNull' call
|
|
538
|
-
var tmp0_iterator = _this__u8e3s4.
|
|
539
|
-
while (tmp0_iterator.
|
|
540
|
-
var element = tmp0_iterator.
|
|
539
|
+
var tmp0_iterator = _this__u8e3s4.m();
|
|
540
|
+
while (tmp0_iterator.n()) {
|
|
541
|
+
var element = tmp0_iterator.o();
|
|
541
542
|
// Inline function 'com.zegreatrob.tools.digger.core.messageDigResult.<anonymous>' call
|
|
542
|
-
var result = get(element.
|
|
543
|
+
var result = get(element.cb(), 'storyId');
|
|
543
544
|
if (!(result == null)) {
|
|
544
545
|
tmp$ret$1 = result;
|
|
545
546
|
break $l$block;
|
|
@@ -548,15 +549,15 @@
|
|
|
548
549
|
tmp$ret$1 = null;
|
|
549
550
|
}
|
|
550
551
|
var tmp0_safe_receiver = tmp$ret$1;
|
|
551
|
-
var tmp5_storyId = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
552
|
+
var tmp5_storyId = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.bb_1;
|
|
552
553
|
var tmp$ret$3;
|
|
553
554
|
$l$block_0: {
|
|
554
555
|
// Inline function 'kotlin.sequences.firstNotNullOfOrNull' call
|
|
555
|
-
var tmp0_iterator_0 = _this__u8e3s4.
|
|
556
|
-
while (tmp0_iterator_0.
|
|
557
|
-
var element_0 = tmp0_iterator_0.
|
|
556
|
+
var tmp0_iterator_0 = _this__u8e3s4.m();
|
|
557
|
+
while (tmp0_iterator_0.n()) {
|
|
558
|
+
var element_0 = tmp0_iterator_0.o();
|
|
558
559
|
// Inline function 'com.zegreatrob.tools.digger.core.messageDigResult.<anonymous>' call
|
|
559
|
-
var result_0 = get(element_0.
|
|
560
|
+
var result_0 = get(element_0.cb(), 'ease');
|
|
560
561
|
if (!(result_0 == null)) {
|
|
561
562
|
tmp$ret$3 = result_0;
|
|
562
563
|
break $l$block_0;
|
|
@@ -565,7 +566,7 @@
|
|
|
565
566
|
tmp$ret$3 = null;
|
|
566
567
|
}
|
|
567
568
|
var tmp1_safe_receiver = tmp$ret$3;
|
|
568
|
-
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.bb_1;
|
|
569
570
|
var tmp6_ease = tmp2_safe_receiver == null ? null : toIntOrNull(tmp2_safe_receiver);
|
|
570
571
|
return new MessageDigResult(tmp5_storyId, tmp6_ease, tmp3_coauthors, tmp4_semver);
|
|
571
572
|
}
|
|
@@ -579,7 +580,7 @@
|
|
|
579
580
|
try {
|
|
580
581
|
// Inline function 'kotlin.Companion.success' call
|
|
581
582
|
// Inline function 'com.zegreatrob.tools.digger.core.groupMatches.<anonymous>' call
|
|
582
|
-
var value = get(_this__u8e3s4.
|
|
583
|
+
var value = get(_this__u8e3s4.cb(), groupName);
|
|
583
584
|
tmp = _Result___init__impl__xyqfz8(value);
|
|
584
585
|
} catch ($p) {
|
|
585
586
|
var tmp_0;
|
|
@@ -606,8 +607,8 @@
|
|
|
606
607
|
return maxOrNull(_this__u8e3s4);
|
|
607
608
|
}
|
|
608
609
|
function messageDigResult$lambda(it) {
|
|
609
|
-
var tmp0_safe_receiver = get(it.
|
|
610
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
610
|
+
var tmp0_safe_receiver = get(it.cb(), 'coAuthors');
|
|
611
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.bb_1;
|
|
611
612
|
}
|
|
612
613
|
function messageDigResult$lambda_0(it) {
|
|
613
614
|
return getSemver(it);
|