git-semver-tagger 1.5.39 → 1.5.43

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.
Files changed (62) hide show
  1. package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.mjs +5434 -0
  2. package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.mjs.map +1 -0
  3. package/kotlin/clikt-clikt-mordant.mjs +310 -0
  4. package/kotlin/clikt-clikt-mordant.mjs.map +1 -0
  5. package/kotlin/clikt-clikt.mjs +6877 -0
  6. package/kotlin/clikt-clikt.mjs.map +1 -0
  7. package/kotlin/colormath-root-colormath.mjs +1675 -0
  8. package/kotlin/colormath-root-colormath.mjs.map +1 -0
  9. package/kotlin/command-line-tools-tagger-cli.mjs +810 -0
  10. package/kotlin/command-line-tools-tagger-cli.mjs.map +1 -0
  11. package/kotlin/kotlin-kotlin-stdlib.mjs +13555 -0
  12. package/kotlin/kotlin-kotlin-stdlib.mjs.map +1 -0
  13. package/kotlin/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.mjs +4 -0
  14. package/kotlin/{kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map → kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.mjs.map} +1 -1
  15. package/kotlin/kotlinx-serialization-kotlinx-serialization-core.mjs +5823 -0
  16. package/kotlin/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -0
  17. package/kotlin/kotlinx-serialization-kotlinx-serialization-json.mjs +4800 -0
  18. package/kotlin/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -0
  19. package/kotlin/mordant-mordant-omnibus.mjs +4 -0
  20. package/kotlin/{mordant-mordant-omnibus.js.map → mordant-mordant-omnibus.mjs.map} +1 -1
  21. package/kotlin/mordant-mordant.mjs +10332 -0
  22. package/kotlin/mordant-mordant.mjs.map +1 -0
  23. package/kotlin/tools-cli-tools.mjs +39 -0
  24. package/kotlin/tools-cli-tools.mjs.map +1 -0
  25. package/kotlin/tools-digger-core.mjs +37 -0
  26. package/kotlin/tools-digger-core.mjs.map +1 -0
  27. package/kotlin/tools-digger-model.mjs +4 -0
  28. package/kotlin/{tools-digger-model.js.map → tools-digger-model.mjs.map} +1 -1
  29. package/kotlin/tools-git-adapter.mjs +447 -0
  30. package/kotlin/tools-git-adapter.mjs.map +1 -0
  31. package/kotlin/tools-tagger-core.mjs +778 -0
  32. package/kotlin/tools-tagger-core.mjs.map +1 -0
  33. package/package.json +2 -2
  34. package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js +0 -5431
  35. package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js.map +0 -1
  36. package/kotlin/clikt-clikt-mordant.js +0 -303
  37. package/kotlin/clikt-clikt-mordant.js.map +0 -1
  38. package/kotlin/clikt-clikt.js +0 -6955
  39. package/kotlin/clikt-clikt.js.map +0 -1
  40. package/kotlin/colormath-root-colormath.js +0 -1627
  41. package/kotlin/colormath-root-colormath.js.map +0 -1
  42. package/kotlin/command-line-tools-tagger-cli.js +0 -860
  43. package/kotlin/command-line-tools-tagger-cli.js.map +0 -1
  44. package/kotlin/kotlin-kotlin-stdlib.js +0 -13415
  45. package/kotlin/kotlin-kotlin-stdlib.js.map +0 -1
  46. package/kotlin/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +0 -8
  47. package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +0 -5676
  48. package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js.map +0 -1
  49. package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +0 -4836
  50. package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js.map +0 -1
  51. package/kotlin/mordant-mordant-omnibus.js +0 -8
  52. package/kotlin/mordant-mordant.js +0 -10271
  53. package/kotlin/mordant-mordant.js.map +0 -1
  54. package/kotlin/tools-cli-tools.js +0 -64
  55. package/kotlin/tools-cli-tools.js.map +0 -1
  56. package/kotlin/tools-digger-core.js +0 -35
  57. package/kotlin/tools-digger-core.js.map +0 -1
  58. package/kotlin/tools-digger-model.js +0 -8
  59. package/kotlin/tools-git-adapter.js +0 -453
  60. package/kotlin/tools-git-adapter.js.map +0 -1
  61. package/kotlin/tools-tagger-core.js +0 -742
  62. package/kotlin/tools-tagger-core.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
1
+ {"version":3,"sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
@@ -0,0 +1,447 @@
1
+ import {
2
+ toString1pkumu07cwy4m as toString,
3
+ getStringHashCode26igk1bx568vk as getStringHashCode,
4
+ hashCodeq5arwsb9dgti as hashCode,
5
+ THROW_CCE2g6jy02ryeudk as THROW_CCE,
6
+ equals2au1ep9vhcato as equals,
7
+ initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
8
+ plus2m1vv33moko5t as plus,
9
+ emptyMapr06gerzljqtm as emptyMap,
10
+ VOID7hggqo3abtya as VOID,
11
+ emptyList1g2z5xcrvp2zy as emptyList,
12
+ listOf1jh22dvmctj1r as listOf,
13
+ split2bvyvnrlcifjv as split,
14
+ ArrayList3it5z8td81qkl as ArrayList,
15
+ joinToString1cxrrlmo0chqs as joinToString,
16
+ reversed22y3au42jl32b as reversed,
17
+ last1vo29oleiqj36 as last,
18
+ Unit_instance14hm69wy3kr8u as Unit_instance,
19
+ isBlank1dvkhjjvox3p0 as isBlank,
20
+ collectionSizeOrDefault36dulx8yinfqm as collectionSizeOrDefault,
21
+ charSequenceLength3278n89t01tmv as charSequenceLength,
22
+ startsWith26w8qjqapeeq6 as startsWith,
23
+ listOfvhqybd2zx248 as listOf_0,
24
+ plus310ted5e4i90h as plus_0,
25
+ to2cs3ny02qtbcb as to,
26
+ mapOf2zpbbmyqk8xpf as mapOf,
27
+ firstOrNull1982767dljvdy as firstOrNull,
28
+ toInt2q8uldh7sc951 as toInt,
29
+ Companion_instance1et3290wko23u as Companion_instance,
30
+ isCharSequence1ju9jr1w86plq as isCharSequence,
31
+ trim11nh7r46at6sx as trim,
32
+ _Result___init__impl__xyqfz8oelep8i0cbta as _Result___init__impl__xyqfz8,
33
+ createFailure8paxfkfa5dc7 as createFailure,
34
+ _Result___get_value__impl__bjfvqgbxrwpgk5sesh as _Result___get_value__impl__bjfvqg,
35
+ _Result___get_isFailure__impl__jpiriv2jp2gwqhnirp8 as _Result___get_isFailure__impl__jpiriv,
36
+ getBooleanHashCode1bbj3u6b3v0a7 as getBooleanHashCode,
37
+ first58ocm7j58k3q as first,
38
+ copyToArray2j022khrow2yi as copyToArray,
39
+ json3n35pf5np6si4 as json,
40
+ Exceptiondt2hlxn7j7vw as Exception,
41
+ toList2zksu85ukrmi as toList,
42
+ } from './kotlin-kotlin-stdlib.mjs';
43
+ import { Companion_getInstance27nsatgkq8q13 as Companion_getInstance } from './Kotlin-DateTime-library-kotlinx-datetime.mjs';
44
+ import childProcess from 'node:child_process';
45
+ //region block: imports
46
+ var imul = Math.imul;
47
+ //endregion
48
+ //region block: pre-declaration
49
+ class CommitRef {
50
+ constructor(id, authorEmail, committerEmail, dateTime, parents, fullMessage) {
51
+ this.x1p_1 = id;
52
+ this.y1p_1 = authorEmail;
53
+ this.z1p_1 = committerEmail;
54
+ this.a1q_1 = dateTime;
55
+ this.b1q_1 = parents;
56
+ this.c1q_1 = fullMessage;
57
+ }
58
+ toString() {
59
+ return 'CommitRef(id=' + this.x1p_1 + ', authorEmail=' + this.y1p_1 + ', committerEmail=' + this.z1p_1 + ', dateTime=' + this.a1q_1.toString() + ', parents=' + toString(this.b1q_1) + ', fullMessage=' + this.c1q_1 + ')';
60
+ }
61
+ hashCode() {
62
+ var result = getStringHashCode(this.x1p_1);
63
+ result = imul(result, 31) + getStringHashCode(this.y1p_1) | 0;
64
+ result = imul(result, 31) + getStringHashCode(this.z1p_1) | 0;
65
+ result = imul(result, 31) + this.a1q_1.hashCode() | 0;
66
+ result = imul(result, 31) + hashCode(this.b1q_1) | 0;
67
+ result = imul(result, 31) + getStringHashCode(this.c1q_1) | 0;
68
+ return result;
69
+ }
70
+ equals(other) {
71
+ if (this === other)
72
+ return true;
73
+ if (!(other instanceof CommitRef))
74
+ return false;
75
+ var tmp0_other_with_cast = other instanceof CommitRef ? other : THROW_CCE();
76
+ if (!(this.x1p_1 === tmp0_other_with_cast.x1p_1))
77
+ return false;
78
+ if (!(this.y1p_1 === tmp0_other_with_cast.y1p_1))
79
+ return false;
80
+ if (!(this.z1p_1 === tmp0_other_with_cast.z1p_1))
81
+ return false;
82
+ if (!this.a1q_1.equals(tmp0_other_with_cast.a1q_1))
83
+ return false;
84
+ if (!equals(this.b1q_1, tmp0_other_with_cast.b1q_1))
85
+ return false;
86
+ if (!(this.c1q_1 === tmp0_other_with_cast.c1q_1))
87
+ return false;
88
+ return true;
89
+ }
90
+ }
91
+ class GitAdapter {
92
+ constructor(workingDirectory, env) {
93
+ env = env === VOID ? emptyMap() : env;
94
+ this.d1q_1 = workingDirectory;
95
+ this.e1q_1 = env;
96
+ this.f1q_1 = '--------!--------';
97
+ this.g1q_1 = '%H%n%ae%n%ce%n%aI%n%P%n%B%n' + this.f1q_1;
98
+ }
99
+ h1q(name, ref, userName, userEmail) {
100
+ var tmp = plus_0(plus_0(plus_0(listOf_0('git'), inlineConfig(this, 'user.name', userName)), inlineConfig(this, 'user.email', userEmail)), listOf(['tag', '--annotate', '--message=' + name, name, ref]));
101
+ var tmp_0 = emptyMap();
102
+ var tmp_1;
103
+ if (!(userName == null)) {
104
+ tmp_1 = mapOf(to('GIT_COMMITTER_NAME', userName));
105
+ } else {
106
+ tmp_1 = emptyMap();
107
+ }
108
+ var tmp_2 = plus(tmp_0, tmp_1);
109
+ var tmp_3;
110
+ if (!(userEmail == null)) {
111
+ tmp_3 = mapOf(to('GIT_COMMITTER_EMAIL', userEmail));
112
+ } else {
113
+ tmp_3 = emptyMap();
114
+ }
115
+ runProcess(this, tmp, plus(tmp_2, tmp_3));
116
+ }
117
+ i1q() {
118
+ runProcess$default(this, listOf(['git', 'push', '--tags']));
119
+ }
120
+ j1q(ref) {
121
+ // Inline function 'kotlin.let' call
122
+ // Inline function 'com.zegreatrob.tools.adapter.git.GitAdapter.showTag.stub_for_inlining' call
123
+ var p0 = runProcess$default(this, listOf(['git', '--no-pager', 'tag', '--list', '--format=%(refname:strip=2),%(*objectname),%(creatordate:iso-strict)', '--points-at=' + ref]));
124
+ var tmp$ret$1 = parseTagRefs(this, p0);
125
+ return firstOrNull(tmp$ret$1);
126
+ }
127
+ k1q(begin, end) {
128
+ return parseLog(this, runProcess$default(this, plus_0(listOf(['git', '--no-pager', 'log', '--format=' + this.g1q_1, begin]), !(end == null) ? listOf_0(end) : emptyList())));
129
+ }
130
+ l1q() {
131
+ // Inline function 'kotlin.let' call
132
+ // Inline function 'com.zegreatrob.tools.adapter.git.GitAdapter.status.<anonymous>' call
133
+ var output = runProcess$default(this, listOf(['git', 'status', '--porcelain=2', '--branch', '--ahead-behind']));
134
+ var lines = split(output, ['\n']);
135
+ var head = findByPrefix(lines, this, '# branch.head ');
136
+ var upstream = findByPrefix(lines, this, '# branch.upstream ');
137
+ var tmp0_safe_receiver = findByPrefix(lines, this, '# branch.ab ');
138
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : split(tmp0_safe_receiver, [' ']);
139
+ var tmp;
140
+ if (tmp1_safe_receiver == null) {
141
+ tmp = null;
142
+ } else {
143
+ // Inline function 'kotlin.collections.map' call
144
+ // Inline function 'kotlin.collections.mapTo' call
145
+ var destination = ArrayList.k1(collectionSizeOrDefault(tmp1_safe_receiver, 10));
146
+ var _iterator__ex2g4s = tmp1_safe_receiver.d1();
147
+ while (_iterator__ex2g4s.e1()) {
148
+ var item = _iterator__ex2g4s.f1();
149
+ // Inline function 'com.zegreatrob.tools.adapter.git.GitAdapter.status.<anonymous>.<anonymous>' call
150
+ // Inline function 'kotlin.text.substring' call
151
+ // Inline function 'kotlin.js.asDynamic' call
152
+ var tmp$ret$2 = item.substring(1);
153
+ destination.o(tmp$ret$2);
154
+ }
155
+ tmp = destination;
156
+ }
157
+ var tmp2_elvis_lhs = tmp;
158
+ var _destruct__k2r9zo = tmp2_elvis_lhs == null ? listOf(['-1', '-1']) : tmp2_elvis_lhs;
159
+ // Inline function 'kotlin.collections.component1' call
160
+ var a = _destruct__k2r9zo.j1(0);
161
+ // Inline function 'kotlin.collections.component2' call
162
+ var b = _destruct__k2r9zo.j1(1);
163
+ // Inline function 'kotlin.collections.filterNot' call
164
+ // Inline function 'kotlin.collections.filterNotTo' call
165
+ var destination_0 = ArrayList.n();
166
+ var _iterator__ex2g4s_0 = lines.d1();
167
+ while (_iterator__ex2g4s_0.e1()) {
168
+ var element = _iterator__ex2g4s_0.f1();
169
+ // Inline function 'com.zegreatrob.tools.adapter.git.GitAdapter.status.<anonymous>.<anonymous>' call
170
+ if (!startsWith(element, '#')) {
171
+ destination_0.o(element);
172
+ }
173
+ }
174
+ // Inline function 'kotlin.collections.filterNot' call
175
+ // Inline function 'kotlin.collections.filterNotTo' call
176
+ var destination_1 = ArrayList.n();
177
+ var _iterator__ex2g4s_1 = destination_0.d1();
178
+ while (_iterator__ex2g4s_1.e1()) {
179
+ var element_0 = _iterator__ex2g4s_1.f1();
180
+ // Inline function 'com.zegreatrob.tools.adapter.git.GitAdapter.status.<anonymous>.stub_for_inlining' call
181
+ if (!isBlank(element_0)) {
182
+ destination_1.o(element_0);
183
+ }
184
+ }
185
+ var tmp_0 = destination_1.a1();
186
+ var tmp_1 = toInt(a);
187
+ var tmp_2 = toInt(b);
188
+ var tmp_3 = head == null ? '' : head;
189
+ return new GitStatus(tmp_0, tmp_1, tmp_2, tmp_3, upstream == null ? '' : upstream);
190
+ }
191
+ m1q(abbrev) {
192
+ // Inline function 'kotlin.runCatching' call
193
+ var tmp;
194
+ try {
195
+ // Inline function 'com.zegreatrob.tools.adapter.git.GitAdapter.describe.<anonymous>' call
196
+ // Inline function 'kotlin.text.trim' call
197
+ var this_0 = runProcess$default(this, listOf(['git', 'describe', '--abbrev=' + abbrev]));
198
+ // Inline function 'kotlin.Companion.success' call
199
+ var value = toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE()));
200
+ tmp = _Result___init__impl__xyqfz8(value);
201
+ } catch ($p) {
202
+ var tmp_0;
203
+ if ($p instanceof Error) {
204
+ var e = $p;
205
+ // Inline function 'kotlin.Companion.failure' call
206
+ tmp_0 = _Result___init__impl__xyqfz8(createFailure(e));
207
+ } else {
208
+ throw $p;
209
+ }
210
+ tmp = tmp_0;
211
+ }
212
+ // Inline function 'kotlin.Result.getOrNull' call
213
+ var this_1 = tmp;
214
+ var tmp_1;
215
+ if (_Result___get_isFailure__impl__jpiriv(this_1)) {
216
+ tmp_1 = null;
217
+ } else {
218
+ var tmp_2 = _Result___get_value__impl__bjfvqg(this_1);
219
+ tmp_1 = (tmp_2 == null ? true : !(tmp_2 == null)) ? tmp_2 : THROW_CCE();
220
+ }
221
+ return tmp_1;
222
+ }
223
+ }
224
+ class GitStatus {
225
+ constructor(isClean, ahead, behind, head, upstream) {
226
+ this.n1q_1 = isClean;
227
+ this.o1q_1 = ahead;
228
+ this.p1q_1 = behind;
229
+ this.q1q_1 = head;
230
+ this.r1q_1 = upstream;
231
+ }
232
+ toString() {
233
+ return 'GitStatus(isClean=' + this.n1q_1 + ', ahead=' + this.o1q_1 + ', behind=' + this.p1q_1 + ', head=' + this.q1q_1 + ', upstream=' + this.r1q_1 + ')';
234
+ }
235
+ hashCode() {
236
+ var result = getBooleanHashCode(this.n1q_1);
237
+ result = imul(result, 31) + this.o1q_1 | 0;
238
+ result = imul(result, 31) + this.p1q_1 | 0;
239
+ result = imul(result, 31) + getStringHashCode(this.q1q_1) | 0;
240
+ result = imul(result, 31) + getStringHashCode(this.r1q_1) | 0;
241
+ return result;
242
+ }
243
+ equals(other) {
244
+ if (this === other)
245
+ return true;
246
+ if (!(other instanceof GitStatus))
247
+ return false;
248
+ var tmp0_other_with_cast = other instanceof GitStatus ? other : THROW_CCE();
249
+ if (!(this.n1q_1 === tmp0_other_with_cast.n1q_1))
250
+ return false;
251
+ if (!(this.o1q_1 === tmp0_other_with_cast.o1q_1))
252
+ return false;
253
+ if (!(this.p1q_1 === tmp0_other_with_cast.p1q_1))
254
+ return false;
255
+ if (!(this.q1q_1 === tmp0_other_with_cast.q1q_1))
256
+ return false;
257
+ if (!(this.r1q_1 === tmp0_other_with_cast.r1q_1))
258
+ return false;
259
+ return true;
260
+ }
261
+ }
262
+ class TagRef {
263
+ constructor(name, commitId, dateTime) {
264
+ this.s1q_1 = name;
265
+ this.t1q_1 = commitId;
266
+ this.u1q_1 = dateTime;
267
+ }
268
+ toString() {
269
+ return 'TagRef(name=' + this.s1q_1 + ', commitId=' + this.t1q_1 + ', dateTime=' + this.u1q_1.toString() + ')';
270
+ }
271
+ hashCode() {
272
+ var result = getStringHashCode(this.s1q_1);
273
+ result = imul(result, 31) + getStringHashCode(this.t1q_1) | 0;
274
+ result = imul(result, 31) + this.u1q_1.hashCode() | 0;
275
+ return result;
276
+ }
277
+ equals(other) {
278
+ if (this === other)
279
+ return true;
280
+ if (!(other instanceof TagRef))
281
+ return false;
282
+ var tmp0_other_with_cast = other instanceof TagRef ? other : THROW_CCE();
283
+ if (!(this.s1q_1 === tmp0_other_with_cast.s1q_1))
284
+ return false;
285
+ if (!(this.t1q_1 === tmp0_other_with_cast.t1q_1))
286
+ return false;
287
+ if (!this.u1q_1.equals(tmp0_other_with_cast.u1q_1))
288
+ return false;
289
+ return true;
290
+ }
291
+ }
292
+ //endregion
293
+ function runProcess($this, args, env) {
294
+ return runProcess_0(args, $this.d1q_1, plus(env, $this.e1q_1));
295
+ }
296
+ function runProcess$default($this, args, env, $super) {
297
+ env = env === VOID ? emptyMap() : env;
298
+ return runProcess($this, args, env);
299
+ }
300
+ function inlineConfig($this, property, value) {
301
+ return !(value == null) ? listOf(['-c', property + '=' + value]) : emptyList();
302
+ }
303
+ function parseTagRefs($this, outputText) {
304
+ // Inline function 'kotlin.collections.mapNotNull' call
305
+ var tmp0 = split(outputText, ['\n']);
306
+ // Inline function 'kotlin.collections.mapNotNullTo' call
307
+ var destination = ArrayList.n();
308
+ // Inline function 'kotlin.collections.forEach' call
309
+ var _iterator__ex2g4s = tmp0.d1();
310
+ while (_iterator__ex2g4s.e1()) {
311
+ var element = _iterator__ex2g4s.f1();
312
+ // Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
313
+ // Inline function 'com.zegreatrob.tools.adapter.git.GitAdapter.parseTagRefs.<anonymous>' call
314
+ var commaSplit = split(element, [',']);
315
+ var tmp;
316
+ if (commaSplit.i1() >= 3) {
317
+ tmp = new TagRef(joinToString(commaSplit.t2(0, commaSplit.i1() - 2 | 0), ''), reversed(commaSplit).j1(1), Companion_getInstance().x1o(last(commaSplit)));
318
+ } else {
319
+ tmp = null;
320
+ }
321
+ var tmp0_safe_receiver = tmp;
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.o(tmp0_safe_receiver);
328
+ }
329
+ }
330
+ var output = destination;
331
+ return output;
332
+ }
333
+ function parseLog($this, outputText) {
334
+ // Inline function 'kotlin.collections.filter' call
335
+ var tmp0 = split(outputText, [$this.f1q_1 + '\n']);
336
+ // Inline function 'kotlin.collections.filterTo' call
337
+ var destination = ArrayList.n();
338
+ var _iterator__ex2g4s = tmp0.d1();
339
+ while (_iterator__ex2g4s.e1()) {
340
+ var element = _iterator__ex2g4s.f1();
341
+ // Inline function 'com.zegreatrob.tools.adapter.git.GitAdapter.parseLog.stub_for_inlining' call
342
+ // Inline function 'kotlin.text.isNotBlank' call
343
+ if (!isBlank(element)) {
344
+ destination.o(element);
345
+ }
346
+ }
347
+ // Inline function 'kotlin.collections.map' call
348
+ // Inline function 'kotlin.collections.mapTo' call
349
+ var destination_0 = ArrayList.k1(collectionSizeOrDefault(destination, 10));
350
+ var _iterator__ex2g4s_0 = destination.d1();
351
+ while (_iterator__ex2g4s_0.e1()) {
352
+ var item = _iterator__ex2g4s_0.f1();
353
+ // Inline function 'com.zegreatrob.tools.adapter.git.GitAdapter.parseLog.<anonymous>' call
354
+ var elements = split(item, ['\n']);
355
+ var tmp = elements.j1(0);
356
+ var tmp_0 = elements.j1(1);
357
+ var tmp_1 = elements.j1(2);
358
+ var tmp_2 = Companion_getInstance().x1o(elements.j1(3));
359
+ // Inline function 'kotlin.collections.filter' call
360
+ var tmp0_0 = split(elements.j1(4), [' ']);
361
+ // Inline function 'kotlin.collections.filterTo' call
362
+ var destination_1 = ArrayList.n();
363
+ var _iterator__ex2g4s_1 = tmp0_0.d1();
364
+ while (_iterator__ex2g4s_1.e1()) {
365
+ var element_0 = _iterator__ex2g4s_1.f1();
366
+ // Inline function 'com.zegreatrob.tools.adapter.git.GitAdapter.parseLog.<anonymous>.<anonymous>' call
367
+ // Inline function 'kotlin.text.isNotEmpty' call
368
+ if (charSequenceLength(element_0) > 0) {
369
+ destination_1.o(element_0);
370
+ }
371
+ }
372
+ var tmp$ret$8 = new CommitRef(tmp, tmp_0, tmp_1, tmp_2, destination_1, joinToString(elements.t2(5, elements.i1()), '\n'));
373
+ destination_0.o(tmp$ret$8);
374
+ }
375
+ return destination_0;
376
+ }
377
+ function findByPrefix(_this__u8e3s4, $this, prefix) {
378
+ // Inline function 'kotlin.collections.find' call
379
+ var tmp$ret$1;
380
+ $l$block: {
381
+ // Inline function 'kotlin.collections.firstOrNull' call
382
+ var _iterator__ex2g4s = _this__u8e3s4.d1();
383
+ while (_iterator__ex2g4s.e1()) {
384
+ var element = _iterator__ex2g4s.f1();
385
+ // Inline function 'com.zegreatrob.tools.adapter.git.GitAdapter.findByPrefix.<anonymous>' call
386
+ if (startsWith(element, prefix)) {
387
+ tmp$ret$1 = element;
388
+ break $l$block;
389
+ }
390
+ }
391
+ tmp$ret$1 = null;
392
+ }
393
+ var tmp0_safe_receiver = tmp$ret$1;
394
+ var tmp;
395
+ if (tmp0_safe_receiver == null) {
396
+ tmp = null;
397
+ } else {
398
+ // Inline function 'kotlin.text.substring' call
399
+ var startIndex = prefix.length;
400
+ // Inline function 'kotlin.js.asDynamic' call
401
+ tmp = tmp0_safe_receiver.substring(startIndex);
402
+ }
403
+ return tmp;
404
+ }
405
+ function runProcess_0(args, workingDirectory, env) {
406
+ var tmp;
407
+ if (env === VOID) {
408
+ // Inline function 'kotlin.collections.mapOf' call
409
+ tmp = emptyMap();
410
+ } else {
411
+ tmp = env;
412
+ }
413
+ env = tmp;
414
+ var program = first(args);
415
+ // Inline function 'kotlin.collections.toTypedArray' call
416
+ var this_0 = args.t2(1, args.i1());
417
+ var tmp$ret$1 = copyToArray(this_0);
418
+ var spawn = childProcess.spawnSync(program, tmp$ret$1, json([to('cwd', workingDirectory), to('maxBuffer', 10485760), to('env', toJson(env))]));
419
+ if (spawn.status != 0) {
420
+ var tmp0_safe_receiver = spawn.stderr;
421
+ // Inline function 'kotlin.js.unsafeCast' call
422
+ var tmp$ret$2 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.toString('utf8');
423
+ throw Exception.d5(tmp$ret$2);
424
+ }
425
+ var tmp1_safe_receiver = spawn.stdout;
426
+ // Inline function 'kotlin.js.unsafeCast' call
427
+ return tmp1_safe_receiver == null ? null : tmp1_safe_receiver.toString('utf8');
428
+ }
429
+ function toJson(_this__u8e3s4) {
430
+ // Inline function 'kotlin.collections.toTypedArray' call
431
+ var this_0 = toList(_this__u8e3s4);
432
+ var tmp$ret$0 = copyToArray(this_0);
433
+ return json(tmp$ret$0.slice());
434
+ }
435
+ //region block: post-declaration
436
+ initMetadataForClass(CommitRef, 'CommitRef');
437
+ initMetadataForClass(GitAdapter, 'GitAdapter');
438
+ initMetadataForClass(GitStatus, 'GitStatus');
439
+ initMetadataForClass(TagRef, 'TagRef');
440
+ //endregion
441
+ //region block: exports
442
+ export {
443
+ GitAdapter as GitAdaptersjhyhubp768r,
444
+ };
445
+ //endregion
446
+
447
+ //# sourceMappingURL=tools-git-adapter.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../../../tools/git-adapter/src/commonMain/kotlin/com/zegreatrob/tools/adapter/git/CommitRef.kt","../../../../../../../../tools/git-adapter/src/commonMain/kotlin/com/zegreatrob/tools/adapter/git/GitAdapter.kt","src/kotlin/util/Standard.kt","common/src/generated/_Collections.kt","js/src/kotlin/text/stringJs.kt","src/kotlin/util/Result.kt","src/kotlin/text/Strings.kt","../../../../../../../../tools/git-adapter/src/commonMain/kotlin/com/zegreatrob/tools/adapter/git/GitStatus.kt","../../../../../../../../tools/git-adapter/src/commonMain/kotlin/com/zegreatrob/tools/adapter/git/TagRef.kt","../../../../../../../../tools/git-adapter/src/jsMain/kotlin/com/zegreatrob/tools/adapter/git/RunProcess.js.kt","src/kotlin/collections/Maps.kt","js/src/kotlin/collectionJs.kt"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null],"names":["id","authorEmail","committerEmail","dateTime","parents","fullMessage","result","workingDirectory","env","newAnnotatedTag","name","ref","userName","userEmail","pushTags","showTag","logWithRange","begin","end","status","lines","head","upstream","item","a","b","element","describe","abbrev","e","isClean","ahead","behind","commitId","runProcess","args","runProcess$default","inlineConfig","property","value","parseTagRefs","outputText","commaSplit","output","parseLog","elements","findByPrefix","<this>","prefix","program","spawn","toJson"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKIA,E,EACAC,W,EACAC,c,EACAC,Q,EACAC,O,EACAC,W;IALA,e;IACA,wB;IACA,2B;IACA,qB;IACA,oB;IACA,wB;;aAVJ;A,IAAA,0N;EAAA,C;aAAA;A,QAAAC,sC;IAAA,6D;IAAA,6D;IAAA,qD;IAAA,oD;IAAA,6D;IAAA,a;EAAA,C;gBAAA;A,IAAA,mB;MAAA,W;IAAA,kC;MAAA,Y;QAAA,uE;IAAA,iD;MAAA,Y;IAAA,iD;MAAA,Y;IAAA,iD;MAAA,Y;IAAA,mD;MAAA,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