git-digger 1.5.39 → 1.5.42
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.mjs +5119 -0
- package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.mjs.map +1 -0
- package/kotlin/bin/digger +0 -0
- package/kotlin/clikt-clikt-mordant.mjs +310 -0
- package/kotlin/clikt-clikt-mordant.mjs.map +1 -0
- package/kotlin/clikt-clikt.mjs +6663 -0
- package/kotlin/clikt-clikt.mjs.map +1 -0
- package/kotlin/colormath-root-colormath.mjs +1675 -0
- package/kotlin/colormath-root-colormath.mjs.map +1 -0
- package/kotlin/command-line-tools-digger-cli.mjs +498 -0
- package/kotlin/command-line-tools-digger-cli.mjs.map +1 -0
- package/kotlin/kotlin-kotlin-stdlib.mjs +11790 -0
- package/kotlin/kotlin-kotlin-stdlib.mjs.map +1 -0
- package/kotlin/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.mjs +4 -0
- package/kotlin/{kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map → kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.mjs.map} +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.mjs +3640 -0
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -0
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.mjs +1140 -0
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -0
- package/kotlin/mordant-mordant-omnibus.mjs +4 -0
- package/kotlin/{mordant-mordant-omnibus.js.map → mordant-mordant-omnibus.mjs.map} +1 -1
- package/kotlin/mordant-mordant.mjs +10332 -0
- package/kotlin/mordant-mordant.mjs.map +1 -0
- package/kotlin/tools-cli-tools.mjs +30 -0
- package/kotlin/tools-cli-tools.mjs.map +1 -0
- package/kotlin/tools-digger-core.mjs +666 -0
- package/kotlin/tools-digger-core.mjs.map +1 -0
- package/kotlin/tools-digger-json.mjs +263 -0
- package/kotlin/tools-digger-json.mjs.map +1 -0
- package/kotlin/tools-digger-model.mjs +109 -0
- package/kotlin/tools-digger-model.mjs.map +1 -0
- package/kotlin/tools-git-adapter.mjs +261 -0
- package/kotlin/tools-git-adapter.mjs.map +1 -0
- package/package.json +2 -2
- package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js +0 -5104
- package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js.map +0 -1
- package/kotlin/clikt-clikt-mordant.js +0 -303
- package/kotlin/clikt-clikt-mordant.js.map +0 -1
- package/kotlin/clikt-clikt.js +0 -6742
- package/kotlin/clikt-clikt.js.map +0 -1
- package/kotlin/colormath-root-colormath.js +0 -1627
- package/kotlin/colormath-root-colormath.js.map +0 -1
- package/kotlin/command-line-tools-digger-cli.js +0 -563
- package/kotlin/command-line-tools-digger-cli.js.map +0 -1
- package/kotlin/kotlin-kotlin-stdlib.js +0 -11651
- package/kotlin/kotlin-kotlin-stdlib.js.map +0 -1
- package/kotlin/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +0 -8
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +0 -3509
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js.map +0 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +0 -1118
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js.map +0 -1
- package/kotlin/mordant-mordant-omnibus.js +0 -8
- package/kotlin/mordant-mordant.js +0 -10271
- package/kotlin/mordant-mordant.js.map +0 -1
- package/kotlin/tools-cli-tools.js +0 -55
- package/kotlin/tools-cli-tools.js.map +0 -1
- package/kotlin/tools-digger-core.js +0 -659
- package/kotlin/tools-digger-core.js.map +0 -1
- package/kotlin/tools-digger-json.js +0 -256
- package/kotlin/tools-digger-json.js.map +0 -1
- package/kotlin/tools-digger-model.js +0 -107
- package/kotlin/tools-digger-model.js.map +0 -1
- package/kotlin/tools-git-adapter.js +0 -269
- package/kotlin/tools-git-adapter.js.map +0 -1
|
@@ -1,659 +0,0 @@
|
|
|
1
|
-
(function (_, kotlin_kotlin, kotlin_com_zegreatrob_tools_digger_model) {
|
|
2
|
-
'use strict';
|
|
3
|
-
//region block: imports
|
|
4
|
-
var imul = Math.imul;
|
|
5
|
-
var HashSet_init_$Create$ = kotlin_kotlin.$_$.p;
|
|
6
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.l;
|
|
7
|
-
var Unit_instance = kotlin_kotlin.$_$.i3;
|
|
8
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.f4;
|
|
9
|
-
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.k;
|
|
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
|
-
var Contribution = kotlin_com_zegreatrob_tools_digger_model.$_$.a;
|
|
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
|
-
var Regex_init_$Create$ = kotlin_kotlin.$_$.t;
|
|
38
|
-
var initMetadataForObject = kotlin_kotlin.$_$.w7;
|
|
39
|
-
var VOID = kotlin_kotlin.$_$.g;
|
|
40
|
-
var take = kotlin_kotlin.$_$.g6;
|
|
41
|
-
var RegexOption_IGNORE_CASE_getInstance = kotlin_kotlin.$_$.h;
|
|
42
|
-
var Regex_init_$Create$_0 = kotlin_kotlin.$_$.u;
|
|
43
|
-
var RuntimeException_init_$Create$ = kotlin_kotlin.$_$.l1;
|
|
44
|
-
var contains = kotlin_kotlin.$_$.aa;
|
|
45
|
-
var mapOf = kotlin_kotlin.$_$.k5;
|
|
46
|
-
var RegexOption_MULTILINE_getInstance = kotlin_kotlin.$_$.i;
|
|
47
|
-
var setOf = kotlin_kotlin.$_$.y5;
|
|
48
|
-
var Regex = kotlin_kotlin.$_$.x9;
|
|
49
|
-
var firstOrNull_0 = kotlin_kotlin.$_$.ea;
|
|
50
|
-
var lastIndexOf = kotlin_kotlin.$_$.ma;
|
|
51
|
-
var Char = kotlin_kotlin.$_$.mb;
|
|
52
|
-
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.p1;
|
|
53
|
-
var mapNotNull = kotlin_kotlin.$_$.r9;
|
|
54
|
-
var toList_0 = kotlin_kotlin.$_$.w9;
|
|
55
|
-
var maxOrNull_0 = kotlin_kotlin.$_$.t9;
|
|
56
|
-
var get = kotlin_kotlin.$_$.ga;
|
|
57
|
-
var toIntOrNull = kotlin_kotlin.$_$.cb;
|
|
58
|
-
var Companion_instance = kotlin_kotlin.$_$.d3;
|
|
59
|
-
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.t1;
|
|
60
|
-
var createFailure = kotlin_kotlin.$_$.mc;
|
|
61
|
-
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.w1;
|
|
62
|
-
var _Result___get_isFailure__impl__jpiriv = kotlin_kotlin.$_$.u1;
|
|
63
|
-
var Enum = kotlin_kotlin.$_$.qb;
|
|
64
|
-
//endregion
|
|
65
|
-
//region block: pre-declaration
|
|
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);
|
|
73
|
-
//endregion
|
|
74
|
-
function allContributionCommits(_this__u8e3s4, tagRefs, fullLog) {
|
|
75
|
-
// Inline function 'kotlin.collections.distinctBy' call
|
|
76
|
-
var set = HashSet_init_$Create$();
|
|
77
|
-
var list = ArrayList_init_$Create$();
|
|
78
|
-
var _iterator__ex2g4s = tagRefs.m();
|
|
79
|
-
while (_iterator__ex2g4s.n()) {
|
|
80
|
-
var e = _iterator__ex2g4s.o();
|
|
81
|
-
// Inline function 'com.zegreatrob.tools.digger.core.allContributionCommits.<anonymous>' call
|
|
82
|
-
var key = e.j1a_1;
|
|
83
|
-
if (set.e(key)) {
|
|
84
|
-
list.e(e);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
// Inline function 'kotlin.collections.filter' call
|
|
88
|
-
// Inline function 'kotlin.collections.filterTo' call
|
|
89
|
-
var destination = ArrayList_init_$Create$();
|
|
90
|
-
var _iterator__ex2g4s_0 = list.m();
|
|
91
|
-
while (_iterator__ex2g4s_0.n()) {
|
|
92
|
-
var element = _iterator__ex2g4s_0.o();
|
|
93
|
-
// Inline function 'com.zegreatrob.tools.digger.core.allContributionCommits.<anonymous>' call
|
|
94
|
-
// Inline function 'kotlin.collections.map' call
|
|
95
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
96
|
-
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(fullLog, 10));
|
|
97
|
-
var _iterator__ex2g4s_1 = fullLog.m();
|
|
98
|
-
while (_iterator__ex2g4s_1.n()) {
|
|
99
|
-
var item = _iterator__ex2g4s_1.o();
|
|
100
|
-
// Inline function 'com.zegreatrob.tools.digger.core.allContributionCommits.<anonymous>.stub_for_inlining' call
|
|
101
|
-
var tmp$ret$2 = item.t19_1;
|
|
102
|
-
destination_0.e(tmp$ret$2);
|
|
103
|
-
}
|
|
104
|
-
if (destination_0.d1(element.j1a_1)) {
|
|
105
|
-
destination.e(element);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
return sortIntoTagSets(_this__u8e3s4, destination, fullLog);
|
|
109
|
-
}
|
|
110
|
-
function sortIntoTagSets(_this__u8e3s4, tagRefs, log) {
|
|
111
|
-
// Inline function 'kotlin.collections.map' call
|
|
112
|
-
var this_0 = tagPairs(tagRefs);
|
|
113
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
114
|
-
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
115
|
-
var _iterator__ex2g4s = this_0.m();
|
|
116
|
-
while (_iterator__ex2g4s.n()) {
|
|
117
|
-
var item = _iterator__ex2g4s.o();
|
|
118
|
-
// Inline function 'com.zegreatrob.tools.digger.core.sortIntoTagSets.<anonymous>' call
|
|
119
|
-
var earlierTag = item.w9();
|
|
120
|
-
var nextTag = item.x9();
|
|
121
|
-
var tmp;
|
|
122
|
-
if (earlierTag == null && !(nextTag == null)) {
|
|
123
|
-
tmp = _this__u8e3s4.g1a('^' + nextTag.j1a_1, 'HEAD');
|
|
124
|
-
} else if (!(earlierTag == null) && !(nextTag == null)) {
|
|
125
|
-
tmp = _this__u8e3s4.g1a('^' + nextTag.j1a_1, earlierTag.j1a_1);
|
|
126
|
-
} else if (!(earlierTag == null)) {
|
|
127
|
-
tmp = _this__u8e3s4.h1a(earlierTag.j1a_1);
|
|
128
|
-
} else {
|
|
129
|
-
tmp = alwaysLeftParent(log);
|
|
130
|
-
}
|
|
131
|
-
var tmp$ret$0 = to(earlierTag, tmp);
|
|
132
|
-
destination.e(tmp$ret$0);
|
|
133
|
-
}
|
|
134
|
-
// Inline function 'kotlin.collections.filter' call
|
|
135
|
-
// Inline function 'kotlin.collections.filterTo' call
|
|
136
|
-
var destination_0 = ArrayList_init_$Create$();
|
|
137
|
-
var _iterator__ex2g4s_0 = destination.m();
|
|
138
|
-
while (_iterator__ex2g4s_0.n()) {
|
|
139
|
-
var element = _iterator__ex2g4s_0.o();
|
|
140
|
-
// Inline function 'com.zegreatrob.tools.digger.core.sortIntoTagSets.<anonymous>' call
|
|
141
|
-
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
142
|
-
if (!element.v9_1.j()) {
|
|
143
|
-
destination_0.e(element);
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
return destination_0;
|
|
147
|
-
}
|
|
148
|
-
function tagPairs(_this__u8e3s4) {
|
|
149
|
-
var tmp = listOf(new Pair(null, firstOrNull(_this__u8e3s4)));
|
|
150
|
-
// Inline function 'kotlin.collections.mapIndexed' call
|
|
151
|
-
// Inline function 'kotlin.collections.mapIndexedTo' call
|
|
152
|
-
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(_this__u8e3s4, 10));
|
|
153
|
-
var index = 0;
|
|
154
|
-
var _iterator__ex2g4s = _this__u8e3s4.m();
|
|
155
|
-
while (_iterator__ex2g4s.n()) {
|
|
156
|
-
var item = _iterator__ex2g4s.o();
|
|
157
|
-
var _unary__edvuaz = index;
|
|
158
|
-
index = _unary__edvuaz + 1 | 0;
|
|
159
|
-
// Inline function 'com.zegreatrob.tools.digger.core.tagPairs.<anonymous>' call
|
|
160
|
-
var index_0 = checkIndexOverflow(_unary__edvuaz);
|
|
161
|
-
var tmp$ret$0 = to(item, getOrNull(_this__u8e3s4, index_0 + 1 | 0));
|
|
162
|
-
destination.e(tmp$ret$0);
|
|
163
|
-
}
|
|
164
|
-
return plus(tmp, destination);
|
|
165
|
-
}
|
|
166
|
-
function alwaysLeftParent(_this__u8e3s4) {
|
|
167
|
-
// Inline function 'kotlin.collections.fold' call
|
|
168
|
-
var accumulator = emptyList();
|
|
169
|
-
var _iterator__ex2g4s = _this__u8e3s4.m();
|
|
170
|
-
while (_iterator__ex2g4s.n()) {
|
|
171
|
-
var element = _iterator__ex2g4s.o();
|
|
172
|
-
// Inline function 'com.zegreatrob.tools.digger.core.alwaysLeftParent.<anonymous>' call
|
|
173
|
-
var acc = accumulator;
|
|
174
|
-
var tmp;
|
|
175
|
-
if (acc.j()) {
|
|
176
|
-
tmp = plus_0(acc, element);
|
|
177
|
-
} else if (element.t19_1 === firstOrNull(last(acc).x19_1)) {
|
|
178
|
-
tmp = plus_0(acc, element);
|
|
179
|
-
} else {
|
|
180
|
-
tmp = acc;
|
|
181
|
-
}
|
|
182
|
-
accumulator = tmp;
|
|
183
|
-
}
|
|
184
|
-
return accumulator;
|
|
185
|
-
}
|
|
186
|
-
function CommitInspectionResult(storyId, ease, authors, semver) {
|
|
187
|
-
this.l1a_1 = storyId;
|
|
188
|
-
this.m1a_1 = ease;
|
|
189
|
-
this.n1a_1 = authors;
|
|
190
|
-
this.o1a_1 = semver;
|
|
191
|
-
}
|
|
192
|
-
protoOf(CommitInspectionResult).toString = function () {
|
|
193
|
-
return 'CommitInspectionResult(storyId=' + this.l1a_1 + ', ease=' + this.m1a_1 + ', authors=' + toString(this.n1a_1) + ', semver=' + toString_0(this.o1a_1) + ')';
|
|
194
|
-
};
|
|
195
|
-
protoOf(CommitInspectionResult).hashCode = function () {
|
|
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
|
-
return result;
|
|
201
|
-
};
|
|
202
|
-
protoOf(CommitInspectionResult).equals = function (other) {
|
|
203
|
-
if (this === other)
|
|
204
|
-
return true;
|
|
205
|
-
if (!(other instanceof CommitInspectionResult))
|
|
206
|
-
return false;
|
|
207
|
-
var tmp0_other_with_cast = other instanceof CommitInspectionResult ? other : THROW_CCE();
|
|
208
|
-
if (!(this.l1a_1 == tmp0_other_with_cast.l1a_1))
|
|
209
|
-
return false;
|
|
210
|
-
if (!(this.m1a_1 == tmp0_other_with_cast.m1a_1))
|
|
211
|
-
return false;
|
|
212
|
-
if (!equals(this.n1a_1, tmp0_other_with_cast.n1a_1))
|
|
213
|
-
return false;
|
|
214
|
-
if (!equals(this.o1a_1, tmp0_other_with_cast.o1a_1))
|
|
215
|
-
return false;
|
|
216
|
-
return true;
|
|
217
|
-
};
|
|
218
|
-
function contribution(_this__u8e3s4, commitRefs) {
|
|
219
|
-
// Inline function 'kotlin.collections.map' call
|
|
220
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
221
|
-
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(commitRefs, 10));
|
|
222
|
-
var _iterator__ex2g4s = commitRefs.m();
|
|
223
|
-
while (_iterator__ex2g4s.n()) {
|
|
224
|
-
var item = _iterator__ex2g4s.o();
|
|
225
|
-
// Inline function 'com.zegreatrob.tools.digger.core.contribution.<anonymous>' call
|
|
226
|
-
var tmp$ret$0 = commitInspectionResult(item, _this__u8e3s4.v1a(item.y19_1));
|
|
227
|
-
destination.e(tmp$ret$0);
|
|
228
|
-
}
|
|
229
|
-
var messageDigResults = destination;
|
|
230
|
-
var lastCommit = firstOrNull(commitRefs);
|
|
231
|
-
var firstCommit = lastOrNull(commitRefs);
|
|
232
|
-
var tmp1_elvis_lhs = lastCommit == null ? null : lastCommit.t19_1;
|
|
233
|
-
var tmp7_lastCommit = tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs;
|
|
234
|
-
var tmp3_elvis_lhs = firstCommit == null ? null : firstCommit.t19_1;
|
|
235
|
-
var tmp8_firstCommit = tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs;
|
|
236
|
-
var tmp9_authors = allAuthors(messageDigResults);
|
|
237
|
-
var tmp10_dateTime = lastCommit == null ? null : lastCommit.w19_1;
|
|
238
|
-
var tmp11_firstCommitDateTime = firstCommit == null ? null : firstCommit.w19_1;
|
|
239
|
-
// Inline function 'kotlin.collections.mapNotNull' call
|
|
240
|
-
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
241
|
-
var destination_0 = ArrayList_init_$Create$();
|
|
242
|
-
// Inline function 'kotlin.collections.forEach' call
|
|
243
|
-
var _iterator__ex2g4s_0 = messageDigResults.m();
|
|
244
|
-
while (_iterator__ex2g4s_0.n()) {
|
|
245
|
-
var element = _iterator__ex2g4s_0.o();
|
|
246
|
-
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
247
|
-
// Inline function 'com.zegreatrob.tools.digger.core.contribution.<anonymous>' call
|
|
248
|
-
var tmp0_safe_receiver = element.m1a_1;
|
|
249
|
-
if (tmp0_safe_receiver == null)
|
|
250
|
-
null;
|
|
251
|
-
else {
|
|
252
|
-
// Inline function 'kotlin.let' call
|
|
253
|
-
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>.<anonymous>' call
|
|
254
|
-
destination_0.e(tmp0_safe_receiver);
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
var tmp12_ease = maxOrNull(destination_0);
|
|
258
|
-
var tmp13_storyId = mergedStoryIds(messageDigResults);
|
|
259
|
-
// Inline function 'kotlin.collections.mapNotNull' call
|
|
260
|
-
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
261
|
-
var destination_1 = ArrayList_init_$Create$();
|
|
262
|
-
// Inline function 'kotlin.collections.forEach' call
|
|
263
|
-
var _iterator__ex2g4s_1 = messageDigResults.m();
|
|
264
|
-
while (_iterator__ex2g4s_1.n()) {
|
|
265
|
-
var element_0 = _iterator__ex2g4s_1.o();
|
|
266
|
-
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
267
|
-
// Inline function 'com.zegreatrob.tools.digger.core.contribution.<anonymous>' call
|
|
268
|
-
var tmp0_safe_receiver_0 = element_0.o1a_1;
|
|
269
|
-
if (tmp0_safe_receiver_0 == null)
|
|
270
|
-
null;
|
|
271
|
-
else {
|
|
272
|
-
// Inline function 'kotlin.let' call
|
|
273
|
-
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>.<anonymous>' call
|
|
274
|
-
destination_1.e(tmp0_safe_receiver_0);
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
var tmp6_safe_receiver = highestPrioritySemver(destination_1);
|
|
278
|
-
var tmp14_semver = tmp6_safe_receiver == null ? null : tmp6_safe_receiver.toString();
|
|
279
|
-
// Inline function 'kotlin.collections.count' call
|
|
280
|
-
var tmp15_commitCount = commitRefs.p();
|
|
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
|
-
}
|
|
283
|
-
function commitInspectionResult(_this__u8e3s4, 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
|
-
}
|
|
286
|
-
function allAuthors(messageDigResults) {
|
|
287
|
-
// Inline function 'kotlin.collections.flatMap' call
|
|
288
|
-
// Inline function 'kotlin.collections.flatMapTo' call
|
|
289
|
-
var destination = ArrayList_init_$Create$();
|
|
290
|
-
var _iterator__ex2g4s = messageDigResults.m();
|
|
291
|
-
while (_iterator__ex2g4s.n()) {
|
|
292
|
-
var element = _iterator__ex2g4s.o();
|
|
293
|
-
// Inline function 'com.zegreatrob.tools.digger.core.allAuthors.stub_for_inlining' call
|
|
294
|
-
var list = element.n1a_1;
|
|
295
|
-
addAll(destination, list);
|
|
296
|
-
}
|
|
297
|
-
// Inline function 'kotlin.collections.map' call
|
|
298
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
299
|
-
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination, 10));
|
|
300
|
-
var _iterator__ex2g4s_0 = destination.m();
|
|
301
|
-
while (_iterator__ex2g4s_0.n()) {
|
|
302
|
-
var item = _iterator__ex2g4s_0.o();
|
|
303
|
-
// Inline function 'com.zegreatrob.tools.digger.core.allAuthors.<anonymous>' call
|
|
304
|
-
// Inline function 'kotlin.text.lowercase' call
|
|
305
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
306
|
-
var tmp$ret$5 = item.toLowerCase();
|
|
307
|
-
destination_0.e(tmp$ret$5);
|
|
308
|
-
}
|
|
309
|
-
return toList(sorted(toSet(destination_0)));
|
|
310
|
-
}
|
|
311
|
-
function mergedStoryIds(messageDigResults) {
|
|
312
|
-
// Inline function 'kotlin.collections.mapNotNull' call
|
|
313
|
-
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
314
|
-
var destination = ArrayList_init_$Create$();
|
|
315
|
-
// Inline function 'kotlin.collections.forEach' call
|
|
316
|
-
var _iterator__ex2g4s = messageDigResults.m();
|
|
317
|
-
while (_iterator__ex2g4s.n()) {
|
|
318
|
-
var element = _iterator__ex2g4s.o();
|
|
319
|
-
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
320
|
-
// Inline function 'com.zegreatrob.tools.digger.core.mergedStoryIds.stub_for_inlining' call
|
|
321
|
-
var tmp0_safe_receiver = element.l1a_1;
|
|
322
|
-
if (tmp0_safe_receiver == null)
|
|
323
|
-
null;
|
|
324
|
-
else {
|
|
325
|
-
// Inline function 'kotlin.let' call
|
|
326
|
-
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>.<anonymous>' call
|
|
327
|
-
destination.e(tmp0_safe_receiver);
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
// Inline function 'kotlin.let' call
|
|
331
|
-
// Inline function 'com.zegreatrob.tools.digger.core.mergedStoryIds.<anonymous>' call
|
|
332
|
-
var tmp;
|
|
333
|
-
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
334
|
-
if (!destination.j()) {
|
|
335
|
-
tmp = joinToString(sorted(toSet(destination)), ', ');
|
|
336
|
-
} else {
|
|
337
|
-
tmp = null;
|
|
338
|
-
}
|
|
339
|
-
return tmp;
|
|
340
|
-
}
|
|
341
|
-
function currentContributionCommits(_this__u8e3s4, previousTag) {
|
|
342
|
-
var tmp;
|
|
343
|
-
if (previousTag == null) {
|
|
344
|
-
tmp = _this__u8e3s4.f1a();
|
|
345
|
-
} else {
|
|
346
|
-
tmp = _this__u8e3s4.g1a('^' + previousTag.i1a_1, 'HEAD');
|
|
347
|
-
}
|
|
348
|
-
return tmp;
|
|
349
|
-
}
|
|
350
|
-
function tagRefs($this) {
|
|
351
|
-
// Inline function 'kotlin.collections.filter' call
|
|
352
|
-
var tmp0 = $this.b1b_1.e1a();
|
|
353
|
-
// Inline function 'kotlin.collections.filterTo' call
|
|
354
|
-
var destination = ArrayList_init_$Create$();
|
|
355
|
-
var _iterator__ex2g4s = tmp0.m();
|
|
356
|
-
while (_iterator__ex2g4s.n()) {
|
|
357
|
-
var element = _iterator__ex2g4s.o();
|
|
358
|
-
// Inline function 'com.zegreatrob.tools.digger.core.DiggerCore.tagRefs.<anonymous>' call
|
|
359
|
-
if ($this.d1b_1.ec(element.i1a_1)) {
|
|
360
|
-
destination.e(element);
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
return destination;
|
|
364
|
-
}
|
|
365
|
-
function currentRelevantTags($this, headCommitId, lastTwoTags) {
|
|
366
|
-
// Inline function 'kotlin.let' call
|
|
367
|
-
// Inline function 'com.zegreatrob.tools.digger.core.DiggerCore.currentRelevantTags.<anonymous>' call
|
|
368
|
-
var latestTag = getOrNull(lastTwoTags, 0);
|
|
369
|
-
var tmp;
|
|
370
|
-
if ((latestTag == null ? null : latestTag.j1a_1) === headCommitId) {
|
|
371
|
-
tmp = to(latestTag, getOrNull(lastTwoTags, 1));
|
|
372
|
-
} else {
|
|
373
|
-
tmp = to(null, latestTag);
|
|
374
|
-
}
|
|
375
|
-
return tmp;
|
|
376
|
-
}
|
|
377
|
-
function Defaults() {
|
|
378
|
-
Defaults_instance = this;
|
|
379
|
-
this.e1b_1 = Regex_init_$Create$('.*');
|
|
380
|
-
}
|
|
381
|
-
var Defaults_instance;
|
|
382
|
-
function Defaults_getInstance() {
|
|
383
|
-
if (Defaults_instance == null)
|
|
384
|
-
new Defaults();
|
|
385
|
-
return Defaults_instance;
|
|
386
|
-
}
|
|
387
|
-
function DiggerCore(label, gitWrapper, messageDigger, tagRegex) {
|
|
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
|
-
}
|
|
394
|
-
protoOf(DiggerCore).f1b = function () {
|
|
395
|
-
// Inline function 'kotlin.with' call
|
|
396
|
-
// Inline function 'com.zegreatrob.tools.digger.core.DiggerCore.currentContributionData.<anonymous>' call
|
|
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
|
-
};
|
|
405
|
-
protoOf(DiggerCore).g1b = function () {
|
|
406
|
-
// Inline function 'kotlin.collections.map' call
|
|
407
|
-
var this_0 = allContributionCommits(this.b1b_1, tagRefs(this), this.b1b_1.f1a());
|
|
408
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
409
|
-
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
410
|
-
var _iterator__ex2g4s = this_0.m();
|
|
411
|
-
while (_iterator__ex2g4s.n()) {
|
|
412
|
-
var item = _iterator__ex2g4s.o();
|
|
413
|
-
// Inline function 'com.zegreatrob.tools.digger.core.DiggerCore.allContributionData.<anonymous>' call
|
|
414
|
-
var tmp$ret$0 = to(item.u9_1, contribution(this.c1b_1, toList(item.v9_1)));
|
|
415
|
-
destination.e(tmp$ret$0);
|
|
416
|
-
}
|
|
417
|
-
// Inline function 'kotlin.collections.map' call
|
|
418
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
419
|
-
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination, 10));
|
|
420
|
-
var _iterator__ex2g4s_0 = destination.m();
|
|
421
|
-
while (_iterator__ex2g4s_0.n()) {
|
|
422
|
-
var item_0 = _iterator__ex2g4s_0.o();
|
|
423
|
-
// Inline function 'com.zegreatrob.tools.digger.core.DiggerCore.allContributionData.<anonymous>' call
|
|
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
|
-
destination_0.e(tmp$ret$3);
|
|
429
|
-
}
|
|
430
|
-
return destination_0;
|
|
431
|
-
};
|
|
432
|
-
function MessageDigResult(storyId, ease, coauthors, semver) {
|
|
433
|
-
this.w1a_1 = storyId;
|
|
434
|
-
this.x1a_1 = ease;
|
|
435
|
-
this.y1a_1 = coauthors;
|
|
436
|
-
this.z1a_1 = semver;
|
|
437
|
-
}
|
|
438
|
-
protoOf(MessageDigResult).toString = function () {
|
|
439
|
-
return 'MessageDigResult(storyId=' + this.w1a_1 + ', ease=' + this.x1a_1 + ', coauthors=' + toString(this.y1a_1) + ', semver=' + toString_0(this.z1a_1) + ')';
|
|
440
|
-
};
|
|
441
|
-
protoOf(MessageDigResult).hashCode = function () {
|
|
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
|
-
return result;
|
|
447
|
-
};
|
|
448
|
-
protoOf(MessageDigResult).equals = function (other) {
|
|
449
|
-
if (this === other)
|
|
450
|
-
return true;
|
|
451
|
-
if (!(other instanceof MessageDigResult))
|
|
452
|
-
return false;
|
|
453
|
-
var tmp0_other_with_cast = other instanceof MessageDigResult ? other : THROW_CCE();
|
|
454
|
-
if (!(this.w1a_1 == tmp0_other_with_cast.w1a_1))
|
|
455
|
-
return false;
|
|
456
|
-
if (!(this.x1a_1 == tmp0_other_with_cast.x1a_1))
|
|
457
|
-
return false;
|
|
458
|
-
if (!equals(this.y1a_1, tmp0_other_with_cast.y1a_1))
|
|
459
|
-
return false;
|
|
460
|
-
if (!equals(this.z1a_1, tmp0_other_with_cast.z1a_1))
|
|
461
|
-
return false;
|
|
462
|
-
return true;
|
|
463
|
-
};
|
|
464
|
-
function Defaults_0() {
|
|
465
|
-
Defaults_instance_0 = 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
|
-
}
|
|
473
|
-
var Defaults_instance_0;
|
|
474
|
-
function Defaults_getInstance_0() {
|
|
475
|
-
if (Defaults_instance_0 == null)
|
|
476
|
-
new Defaults_0();
|
|
477
|
-
return Defaults_instance_0;
|
|
478
|
-
}
|
|
479
|
-
function MessageDigger(majorRegex, minorRegex, patchRegex, noneRegex, storyIdRegex, easeRegex) {
|
|
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
|
-
}
|
|
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
|
-
}
|
|
492
|
-
this.p1a_1 = mapOf([to('major', majorRegex), to('minor', minorRegex), to('patch', patchRegex), to('none', noneRegex)]);
|
|
493
|
-
var tmp = this;
|
|
494
|
-
// Inline function 'kotlin.collections.map' call
|
|
495
|
-
var this_0 = this.p1a_1;
|
|
496
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
497
|
-
var destination = ArrayList_init_$Create$_0(this_0.p());
|
|
498
|
-
// Inline function 'kotlin.collections.iterator' call
|
|
499
|
-
var _iterator__ex2g4s = this_0.x().m();
|
|
500
|
-
while (_iterator__ex2g4s.n()) {
|
|
501
|
-
var item = _iterator__ex2g4s.o();
|
|
502
|
-
// Inline function 'com.zegreatrob.tools.digger.core.MessageDigger.allSemverRegex.<anonymous>' call
|
|
503
|
-
// Inline function 'kotlin.collections.component1' call
|
|
504
|
-
var group = item.y();
|
|
505
|
-
// Inline function 'kotlin.collections.component2' call
|
|
506
|
-
var regex = item.z();
|
|
507
|
-
var tmp$ret$3 = '(?<' + group + '>' + cleaned(regex) + ')?';
|
|
508
|
-
destination.e(tmp$ret$3);
|
|
509
|
-
}
|
|
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
|
-
};
|
|
519
|
-
function cleaned(_this__u8e3s4) {
|
|
520
|
-
var first = firstOrNull_0(_this__u8e3s4.yb_1);
|
|
521
|
-
var last = lastIndexOf(_this__u8e3s4.yb_1, '/');
|
|
522
|
-
var tmp;
|
|
523
|
-
var tmp_0 = first;
|
|
524
|
-
if (equals(tmp_0 == null ? null : new Char(tmp_0), new Char(_Char___init__impl__6a9atx(47)))) {
|
|
525
|
-
// Inline function 'kotlin.text.substring' call
|
|
526
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
527
|
-
tmp = _this__u8e3s4.yb_1.substring(1, last);
|
|
528
|
-
} else {
|
|
529
|
-
tmp = _this__u8e3s4.yb_1;
|
|
530
|
-
}
|
|
531
|
-
return tmp;
|
|
532
|
-
}
|
|
533
|
-
function messageDigResult(_this__u8e3s4) {
|
|
534
|
-
var tmp3_coauthors = toList_0(mapNotNull(_this__u8e3s4, messageDigResult$lambda));
|
|
535
|
-
var tmp4_semver = maxOrNull_0(mapNotNull(_this__u8e3s4, messageDigResult$lambda_0));
|
|
536
|
-
var tmp$ret$1;
|
|
537
|
-
$l$block: {
|
|
538
|
-
// Inline function 'kotlin.sequences.firstNotNullOfOrNull' call
|
|
539
|
-
var _iterator__ex2g4s = _this__u8e3s4.m();
|
|
540
|
-
while (_iterator__ex2g4s.n()) {
|
|
541
|
-
var element = _iterator__ex2g4s.o();
|
|
542
|
-
// Inline function 'com.zegreatrob.tools.digger.core.messageDigResult.<anonymous>' call
|
|
543
|
-
var result = get(element.pc(), 'storyId');
|
|
544
|
-
if (!(result == null)) {
|
|
545
|
-
tmp$ret$1 = result;
|
|
546
|
-
break $l$block;
|
|
547
|
-
}
|
|
548
|
-
}
|
|
549
|
-
tmp$ret$1 = null;
|
|
550
|
-
}
|
|
551
|
-
var tmp0_safe_receiver = tmp$ret$1;
|
|
552
|
-
var tmp5_storyId = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.lc_1;
|
|
553
|
-
var tmp$ret$3;
|
|
554
|
-
$l$block_0: {
|
|
555
|
-
// Inline function 'kotlin.sequences.firstNotNullOfOrNull' call
|
|
556
|
-
var _iterator__ex2g4s_0 = _this__u8e3s4.m();
|
|
557
|
-
while (_iterator__ex2g4s_0.n()) {
|
|
558
|
-
var element_0 = _iterator__ex2g4s_0.o();
|
|
559
|
-
// Inline function 'com.zegreatrob.tools.digger.core.messageDigResult.<anonymous>' call
|
|
560
|
-
var result_0 = get(element_0.pc(), 'ease');
|
|
561
|
-
if (!(result_0 == null)) {
|
|
562
|
-
tmp$ret$3 = result_0;
|
|
563
|
-
break $l$block_0;
|
|
564
|
-
}
|
|
565
|
-
}
|
|
566
|
-
tmp$ret$3 = null;
|
|
567
|
-
}
|
|
568
|
-
var tmp1_safe_receiver = tmp$ret$3;
|
|
569
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.lc_1;
|
|
570
|
-
var tmp6_ease = tmp2_safe_receiver == null ? null : toIntOrNull(tmp2_safe_receiver);
|
|
571
|
-
return new MessageDigResult(tmp5_storyId, tmp6_ease, tmp3_coauthors, tmp4_semver);
|
|
572
|
-
}
|
|
573
|
-
function getSemver(it) {
|
|
574
|
-
return groupMatches(it, 'major') ? SemverType_Major_getInstance() : groupMatches(it, 'minor') ? SemverType_Minor_getInstance() : groupMatches(it, 'patch') ? SemverType_Patch_getInstance() : groupMatches(it, 'none') ? SemverType_None_getInstance() : null;
|
|
575
|
-
}
|
|
576
|
-
function groupMatches(_this__u8e3s4, groupName) {
|
|
577
|
-
// Inline function 'kotlin.runCatching' call
|
|
578
|
-
var tmp;
|
|
579
|
-
try {
|
|
580
|
-
// Inline function 'com.zegreatrob.tools.digger.core.groupMatches.<anonymous>' call
|
|
581
|
-
// Inline function 'kotlin.Companion.success' call
|
|
582
|
-
var value = get(_this__u8e3s4.pc(), groupName);
|
|
583
|
-
tmp = _Result___init__impl__xyqfz8(value);
|
|
584
|
-
} catch ($p) {
|
|
585
|
-
var tmp_0;
|
|
586
|
-
if ($p instanceof Error) {
|
|
587
|
-
var e = $p;
|
|
588
|
-
// Inline function 'kotlin.Companion.failure' call
|
|
589
|
-
tmp_0 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
590
|
-
} else {
|
|
591
|
-
throw $p;
|
|
592
|
-
}
|
|
593
|
-
tmp = tmp_0;
|
|
594
|
-
}
|
|
595
|
-
// Inline function 'kotlin.Result.getOrNull' call
|
|
596
|
-
var this_0 = tmp;
|
|
597
|
-
var tmp_1;
|
|
598
|
-
if (_Result___get_isFailure__impl__jpiriv(this_0)) {
|
|
599
|
-
tmp_1 = null;
|
|
600
|
-
} else {
|
|
601
|
-
var tmp_2 = _Result___get_value__impl__bjfvqg(this_0);
|
|
602
|
-
tmp_1 = (tmp_2 == null ? true : !(tmp_2 == null)) ? tmp_2 : THROW_CCE();
|
|
603
|
-
}
|
|
604
|
-
return !(tmp_1 == null);
|
|
605
|
-
}
|
|
606
|
-
function highestPrioritySemver(_this__u8e3s4) {
|
|
607
|
-
return maxOrNull(_this__u8e3s4);
|
|
608
|
-
}
|
|
609
|
-
function messageDigResult$lambda(it) {
|
|
610
|
-
var tmp0_safe_receiver = get(it.pc(), 'coAuthors');
|
|
611
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.lc_1;
|
|
612
|
-
}
|
|
613
|
-
function messageDigResult$lambda_0(it) {
|
|
614
|
-
return getSemver(it);
|
|
615
|
-
}
|
|
616
|
-
var SemverType_None_instance;
|
|
617
|
-
var SemverType_Patch_instance;
|
|
618
|
-
var SemverType_Minor_instance;
|
|
619
|
-
var SemverType_Major_instance;
|
|
620
|
-
var SemverType_entriesInitialized;
|
|
621
|
-
function SemverType_initEntries() {
|
|
622
|
-
if (SemverType_entriesInitialized)
|
|
623
|
-
return Unit_instance;
|
|
624
|
-
SemverType_entriesInitialized = true;
|
|
625
|
-
SemverType_None_instance = new SemverType('None', 0);
|
|
626
|
-
SemverType_Patch_instance = new SemverType('Patch', 1);
|
|
627
|
-
SemverType_Minor_instance = new SemverType('Minor', 2);
|
|
628
|
-
SemverType_Major_instance = new SemverType('Major', 3);
|
|
629
|
-
}
|
|
630
|
-
function SemverType(name, ordinal) {
|
|
631
|
-
Enum.call(this, name, ordinal);
|
|
632
|
-
}
|
|
633
|
-
function SemverType_None_getInstance() {
|
|
634
|
-
SemverType_initEntries();
|
|
635
|
-
return SemverType_None_instance;
|
|
636
|
-
}
|
|
637
|
-
function SemverType_Patch_getInstance() {
|
|
638
|
-
SemverType_initEntries();
|
|
639
|
-
return SemverType_Patch_instance;
|
|
640
|
-
}
|
|
641
|
-
function SemverType_Minor_getInstance() {
|
|
642
|
-
SemverType_initEntries();
|
|
643
|
-
return SemverType_Minor_instance;
|
|
644
|
-
}
|
|
645
|
-
function SemverType_Major_getInstance() {
|
|
646
|
-
SemverType_initEntries();
|
|
647
|
-
return SemverType_Major_instance;
|
|
648
|
-
}
|
|
649
|
-
//region block: exports
|
|
650
|
-
_.$_$ = _.$_$ || {};
|
|
651
|
-
_.$_$.a = DiggerCore;
|
|
652
|
-
_.$_$.b = MessageDigger;
|
|
653
|
-
_.$_$.c = Defaults_getInstance;
|
|
654
|
-
_.$_$.d = Defaults_getInstance_0;
|
|
655
|
-
//endregion
|
|
656
|
-
return _;
|
|
657
|
-
}(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./tools-digger-model.js')));
|
|
658
|
-
|
|
659
|
-
//# sourceMappingURL=tools-digger-core.js.map
|