git-digger 1.6.0 → 1.6.2
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 +2152 -1428
- package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
- package/kotlin/bin/digger +0 -0
- package/kotlin/clikt-clikt-mordant.js +98 -98
- package/kotlin/clikt-clikt.js +1832 -1830
- package/kotlin/clikt-clikt.js.map +1 -1
- package/kotlin/colormath-root-colormath.js +463 -463
- package/kotlin/command-line-tools-digger-cli.js +77 -77
- package/kotlin/kotlin-kotlin-stdlib.js +913 -890
- package/kotlin/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1029 -899
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +329 -329
- package/kotlin/mordant-mordant.js +1588 -1588
- package/kotlin/tools-cli-tools.js +4 -4
- package/kotlin/tools-digger-core.js +199 -199
- package/kotlin/tools-digger-json.js +121 -121
- package/kotlin/tools-digger-model.js +60 -60
- package/kotlin/tools-git-adapter.js +92 -92
- package/package.json +1 -1
|
@@ -2,39 +2,39 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
//region block: imports
|
|
4
4
|
var imul = Math.imul;
|
|
5
|
-
var toString = kotlin_kotlin.$_$.
|
|
6
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
7
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
8
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
9
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
10
|
-
var equals = kotlin_kotlin.$_$.
|
|
11
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
12
|
-
var plus = kotlin_kotlin.$_$.
|
|
13
|
-
var emptyMap = kotlin_kotlin.$_$.
|
|
5
|
+
var toString = kotlin_kotlin.$_$.v8;
|
|
6
|
+
var protoOf = kotlin_kotlin.$_$.s8;
|
|
7
|
+
var getStringHashCode = kotlin_kotlin.$_$.r7;
|
|
8
|
+
var hashCode = kotlin_kotlin.$_$.s7;
|
|
9
|
+
var THROW_CCE = kotlin_kotlin.$_$.ac;
|
|
10
|
+
var equals = kotlin_kotlin.$_$.m7;
|
|
11
|
+
var initMetadataForClass = kotlin_kotlin.$_$.t7;
|
|
12
|
+
var plus = kotlin_kotlin.$_$.q5;
|
|
13
|
+
var emptyMap = kotlin_kotlin.$_$.p4;
|
|
14
14
|
var VOID = kotlin_kotlin.$_$.g;
|
|
15
|
-
var split = kotlin_kotlin.$_$.
|
|
15
|
+
var split = kotlin_kotlin.$_$.ya;
|
|
16
16
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.l;
|
|
17
|
-
var joinToString = kotlin_kotlin.$_$.
|
|
18
|
-
var reversed = kotlin_kotlin.$_$.
|
|
17
|
+
var joinToString = kotlin_kotlin.$_$.z4;
|
|
18
|
+
var reversed = kotlin_kotlin.$_$.x5;
|
|
19
19
|
var Companion_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.b;
|
|
20
|
-
var last = kotlin_kotlin.$_$.
|
|
21
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
22
|
-
var isBlank = kotlin_kotlin.$_$.
|
|
23
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
20
|
+
var last = kotlin_kotlin.$_$.f5;
|
|
21
|
+
var Unit_instance = kotlin_kotlin.$_$.j3;
|
|
22
|
+
var isBlank = kotlin_kotlin.$_$.ka;
|
|
23
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.g4;
|
|
24
24
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.k;
|
|
25
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
26
|
-
var listOf = kotlin_kotlin.$_$.
|
|
27
|
-
var isCharSequence = kotlin_kotlin.$_$.
|
|
28
|
-
var trim = kotlin_kotlin.$_$.
|
|
29
|
-
var emptyList = kotlin_kotlin.$_$.
|
|
30
|
-
var listOf_0 = kotlin_kotlin.$_$.
|
|
31
|
-
var plus_0 = kotlin_kotlin.$_$.
|
|
32
|
-
var first = kotlin_kotlin.$_$.
|
|
33
|
-
var copyToArray = kotlin_kotlin.$_$.
|
|
34
|
-
var to = kotlin_kotlin.$_$.
|
|
35
|
-
var json = kotlin_kotlin.$_$.
|
|
25
|
+
var charSequenceLength = kotlin_kotlin.$_$.j7;
|
|
26
|
+
var listOf = kotlin_kotlin.$_$.j5;
|
|
27
|
+
var isCharSequence = kotlin_kotlin.$_$.d8;
|
|
28
|
+
var trim = kotlin_kotlin.$_$.kb;
|
|
29
|
+
var emptyList = kotlin_kotlin.$_$.o4;
|
|
30
|
+
var listOf_0 = kotlin_kotlin.$_$.i5;
|
|
31
|
+
var plus_0 = kotlin_kotlin.$_$.t5;
|
|
32
|
+
var first = kotlin_kotlin.$_$.s4;
|
|
33
|
+
var copyToArray = kotlin_kotlin.$_$.l4;
|
|
34
|
+
var to = kotlin_kotlin.$_$.yc;
|
|
35
|
+
var json = kotlin_kotlin.$_$.l8;
|
|
36
36
|
var Exception_init_$Create$ = kotlin_kotlin.$_$.z;
|
|
37
|
-
var toList = kotlin_kotlin.$_$.
|
|
37
|
+
var toList = kotlin_kotlin.$_$.k6;
|
|
38
38
|
//endregion
|
|
39
39
|
//region block: pre-declaration
|
|
40
40
|
initMetadataForClass(CommitRef, 'CommitRef');
|
|
@@ -42,23 +42,23 @@
|
|
|
42
42
|
initMetadataForClass(TagRef, 'TagRef');
|
|
43
43
|
//endregion
|
|
44
44
|
function CommitRef(id, authorEmail, committerEmail, dateTime, parents, fullMessage) {
|
|
45
|
-
this.
|
|
46
|
-
this.
|
|
47
|
-
this.
|
|
48
|
-
this.
|
|
49
|
-
this.
|
|
50
|
-
this.
|
|
45
|
+
this.m1b_1 = id;
|
|
46
|
+
this.n1b_1 = authorEmail;
|
|
47
|
+
this.o1b_1 = committerEmail;
|
|
48
|
+
this.p1b_1 = dateTime;
|
|
49
|
+
this.q1b_1 = parents;
|
|
50
|
+
this.r1b_1 = fullMessage;
|
|
51
51
|
}
|
|
52
52
|
protoOf(CommitRef).toString = function () {
|
|
53
|
-
return 'CommitRef(id=' + this.
|
|
53
|
+
return 'CommitRef(id=' + this.m1b_1 + ', authorEmail=' + this.n1b_1 + ', committerEmail=' + this.o1b_1 + ', dateTime=' + this.p1b_1.toString() + ', parents=' + toString(this.q1b_1) + ', fullMessage=' + this.r1b_1 + ')';
|
|
54
54
|
};
|
|
55
55
|
protoOf(CommitRef).hashCode = function () {
|
|
56
|
-
var result = getStringHashCode(this.
|
|
57
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
58
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
59
|
-
result = imul(result, 31) + this.
|
|
60
|
-
result = imul(result, 31) + hashCode(this.
|
|
61
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
56
|
+
var result = getStringHashCode(this.m1b_1);
|
|
57
|
+
result = imul(result, 31) + getStringHashCode(this.n1b_1) | 0;
|
|
58
|
+
result = imul(result, 31) + getStringHashCode(this.o1b_1) | 0;
|
|
59
|
+
result = imul(result, 31) + this.p1b_1.hashCode() | 0;
|
|
60
|
+
result = imul(result, 31) + hashCode(this.q1b_1) | 0;
|
|
61
|
+
result = imul(result, 31) + getStringHashCode(this.r1b_1) | 0;
|
|
62
62
|
return result;
|
|
63
63
|
};
|
|
64
64
|
protoOf(CommitRef).equals = function (other) {
|
|
@@ -67,22 +67,22 @@
|
|
|
67
67
|
if (!(other instanceof CommitRef))
|
|
68
68
|
return false;
|
|
69
69
|
var tmp0_other_with_cast = other instanceof CommitRef ? other : THROW_CCE();
|
|
70
|
-
if (!(this.
|
|
70
|
+
if (!(this.m1b_1 === tmp0_other_with_cast.m1b_1))
|
|
71
71
|
return false;
|
|
72
|
-
if (!(this.
|
|
72
|
+
if (!(this.n1b_1 === tmp0_other_with_cast.n1b_1))
|
|
73
73
|
return false;
|
|
74
|
-
if (!(this.
|
|
74
|
+
if (!(this.o1b_1 === tmp0_other_with_cast.o1b_1))
|
|
75
75
|
return false;
|
|
76
|
-
if (!this.
|
|
76
|
+
if (!this.p1b_1.equals(tmp0_other_with_cast.p1b_1))
|
|
77
77
|
return false;
|
|
78
|
-
if (!equals(this.
|
|
78
|
+
if (!equals(this.q1b_1, tmp0_other_with_cast.q1b_1))
|
|
79
79
|
return false;
|
|
80
|
-
if (!(this.
|
|
80
|
+
if (!(this.r1b_1 === tmp0_other_with_cast.r1b_1))
|
|
81
81
|
return false;
|
|
82
82
|
return true;
|
|
83
83
|
};
|
|
84
84
|
function runProcess($this, args, env) {
|
|
85
|
-
return runProcess_0(args, $this.
|
|
85
|
+
return runProcess_0(args, $this.s1b_1, plus(env, $this.t1b_1));
|
|
86
86
|
}
|
|
87
87
|
function runProcess$default($this, args, env, $super) {
|
|
88
88
|
env = env === VOID ? emptyMap() : env;
|
|
@@ -94,15 +94,15 @@
|
|
|
94
94
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
95
95
|
var destination = ArrayList_init_$Create$();
|
|
96
96
|
// Inline function 'kotlin.collections.forEach' call
|
|
97
|
-
var _iterator__ex2g4s = tmp0.
|
|
98
|
-
while (_iterator__ex2g4s.
|
|
99
|
-
var element = _iterator__ex2g4s.
|
|
97
|
+
var _iterator__ex2g4s = tmp0.p();
|
|
98
|
+
while (_iterator__ex2g4s.q()) {
|
|
99
|
+
var element = _iterator__ex2g4s.r();
|
|
100
100
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
101
101
|
// Inline function 'com.zegreatrob.tools.adapter.git.GitAdapter.parseTagRefs.<anonymous>' call
|
|
102
102
|
var commaSplit = split(element, [',']);
|
|
103
103
|
var tmp;
|
|
104
|
-
if (commaSplit.
|
|
105
|
-
tmp = new TagRef(joinToString(commaSplit.s1(0, commaSplit.
|
|
104
|
+
if (commaSplit.s() >= 3) {
|
|
105
|
+
tmp = new TagRef(joinToString(commaSplit.s1(0, commaSplit.s() - 2 | 0), ''), reversed(commaSplit).t(1), Companion_getInstance().p1a(last(commaSplit)));
|
|
106
106
|
} else {
|
|
107
107
|
tmp = null;
|
|
108
108
|
}
|
|
@@ -120,12 +120,12 @@
|
|
|
120
120
|
}
|
|
121
121
|
function parseLog($this, outputText) {
|
|
122
122
|
// Inline function 'kotlin.collections.filter' call
|
|
123
|
-
var tmp0 = split(outputText, [$this.
|
|
123
|
+
var tmp0 = split(outputText, [$this.u1b_1 + '\n']);
|
|
124
124
|
// Inline function 'kotlin.collections.filterTo' call
|
|
125
125
|
var destination = ArrayList_init_$Create$();
|
|
126
|
-
var _iterator__ex2g4s = tmp0.
|
|
127
|
-
while (_iterator__ex2g4s.
|
|
128
|
-
var element = _iterator__ex2g4s.
|
|
126
|
+
var _iterator__ex2g4s = tmp0.p();
|
|
127
|
+
while (_iterator__ex2g4s.q()) {
|
|
128
|
+
var element = _iterator__ex2g4s.r();
|
|
129
129
|
// Inline function 'com.zegreatrob.tools.adapter.git.GitAdapter.parseLog.stub_for_inlining' call
|
|
130
130
|
// Inline function 'kotlin.text.isNotBlank' call
|
|
131
131
|
if (!isBlank(element)) {
|
|
@@ -135,70 +135,70 @@
|
|
|
135
135
|
// Inline function 'kotlin.collections.map' call
|
|
136
136
|
// Inline function 'kotlin.collections.mapTo' call
|
|
137
137
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination, 10));
|
|
138
|
-
var _iterator__ex2g4s_0 = destination.
|
|
139
|
-
while (_iterator__ex2g4s_0.
|
|
140
|
-
var item = _iterator__ex2g4s_0.
|
|
138
|
+
var _iterator__ex2g4s_0 = destination.p();
|
|
139
|
+
while (_iterator__ex2g4s_0.q()) {
|
|
140
|
+
var item = _iterator__ex2g4s_0.r();
|
|
141
141
|
// Inline function 'com.zegreatrob.tools.adapter.git.GitAdapter.parseLog.<anonymous>' call
|
|
142
142
|
var elements = split(item, ['\n']);
|
|
143
|
-
var tmp = elements.
|
|
144
|
-
var tmp_0 = elements.
|
|
145
|
-
var tmp_1 = elements.
|
|
146
|
-
var tmp_2 = Companion_getInstance().
|
|
143
|
+
var tmp = elements.t(0);
|
|
144
|
+
var tmp_0 = elements.t(1);
|
|
145
|
+
var tmp_1 = elements.t(2);
|
|
146
|
+
var tmp_2 = Companion_getInstance().p1a(elements.t(3));
|
|
147
147
|
// Inline function 'kotlin.collections.filter' call
|
|
148
|
-
var tmp0_0 = split(elements.
|
|
148
|
+
var tmp0_0 = split(elements.t(4), [' ']);
|
|
149
149
|
// Inline function 'kotlin.collections.filterTo' call
|
|
150
150
|
var destination_1 = ArrayList_init_$Create$();
|
|
151
|
-
var _iterator__ex2g4s_1 = tmp0_0.
|
|
152
|
-
while (_iterator__ex2g4s_1.
|
|
153
|
-
var element_0 = _iterator__ex2g4s_1.
|
|
151
|
+
var _iterator__ex2g4s_1 = tmp0_0.p();
|
|
152
|
+
while (_iterator__ex2g4s_1.q()) {
|
|
153
|
+
var element_0 = _iterator__ex2g4s_1.r();
|
|
154
154
|
// Inline function 'com.zegreatrob.tools.adapter.git.GitAdapter.parseLog.<anonymous>.<anonymous>' call
|
|
155
155
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
156
156
|
if (charSequenceLength(element_0) > 0) {
|
|
157
157
|
destination_1.e(element_0);
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
|
-
var tmp$ret$8 = new CommitRef(tmp, tmp_0, tmp_1, tmp_2, destination_1, joinToString(elements.s1(5, elements.
|
|
160
|
+
var tmp$ret$8 = new CommitRef(tmp, tmp_0, tmp_1, tmp_2, destination_1, joinToString(elements.s1(5, elements.s()), '\n'));
|
|
161
161
|
destination_0.e(tmp$ret$8);
|
|
162
162
|
}
|
|
163
163
|
return destination_0;
|
|
164
164
|
}
|
|
165
165
|
function GitAdapter(workingDirectory, env) {
|
|
166
166
|
env = env === VOID ? emptyMap() : env;
|
|
167
|
-
this.
|
|
168
|
-
this.
|
|
169
|
-
this.
|
|
170
|
-
this.
|
|
167
|
+
this.s1b_1 = workingDirectory;
|
|
168
|
+
this.t1b_1 = env;
|
|
169
|
+
this.u1b_1 = '--------!--------';
|
|
170
|
+
this.v1b_1 = '%H%n%ae%n%ce%n%aI%n%P%n%B%n' + this.u1b_1;
|
|
171
171
|
}
|
|
172
|
-
protoOf(GitAdapter).
|
|
172
|
+
protoOf(GitAdapter).w1b = function () {
|
|
173
173
|
// Inline function 'kotlin.text.trim' call
|
|
174
174
|
var this_0 = runProcess$default(this, listOf(['git', '--no-pager', 'rev-parse', 'HEAD']));
|
|
175
175
|
return toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE()));
|
|
176
176
|
};
|
|
177
|
-
protoOf(GitAdapter).
|
|
177
|
+
protoOf(GitAdapter).x1b = function () {
|
|
178
178
|
return parseTagRefs(this, runProcess$default(this, listOf(['git', '--no-pager', 'tag', '--list', '--sort=-taggerdate', '--format=%(refname:strip=2),%(*objectname),%(creatordate:iso-strict)'])));
|
|
179
179
|
};
|
|
180
|
-
protoOf(GitAdapter).
|
|
181
|
-
return parseLog(this, runProcess$default(this, listOf(['git', '--no-pager', 'log', '--format=' + this.
|
|
180
|
+
protoOf(GitAdapter).y1b = function () {
|
|
181
|
+
return parseLog(this, runProcess$default(this, listOf(['git', '--no-pager', 'log', '--format=' + this.v1b_1])));
|
|
182
182
|
};
|
|
183
|
-
protoOf(GitAdapter).
|
|
184
|
-
return parseLog(this, runProcess$default(this, plus_0(listOf(['git', '--no-pager', 'log', '--format=' + this.
|
|
183
|
+
protoOf(GitAdapter).z1b = function (begin, end) {
|
|
184
|
+
return parseLog(this, runProcess$default(this, plus_0(listOf(['git', '--no-pager', 'log', '--format=' + this.v1b_1, begin]), !(end == null) ? listOf_0(end) : emptyList())));
|
|
185
185
|
};
|
|
186
|
-
protoOf(GitAdapter).
|
|
186
|
+
protoOf(GitAdapter).a1c = function (begin, end, $super) {
|
|
187
187
|
end = end === VOID ? null : end;
|
|
188
|
-
return $super === VOID ? this.
|
|
188
|
+
return $super === VOID ? this.z1b(begin, end) : $super.z1b.call(this, begin, end);
|
|
189
189
|
};
|
|
190
190
|
function TagRef(name, commitId, dateTime) {
|
|
191
|
-
this.
|
|
192
|
-
this.
|
|
193
|
-
this.
|
|
191
|
+
this.b1c_1 = name;
|
|
192
|
+
this.c1c_1 = commitId;
|
|
193
|
+
this.d1c_1 = dateTime;
|
|
194
194
|
}
|
|
195
195
|
protoOf(TagRef).toString = function () {
|
|
196
|
-
return 'TagRef(name=' + this.
|
|
196
|
+
return 'TagRef(name=' + this.b1c_1 + ', commitId=' + this.c1c_1 + ', dateTime=' + this.d1c_1.toString() + ')';
|
|
197
197
|
};
|
|
198
198
|
protoOf(TagRef).hashCode = function () {
|
|
199
|
-
var result = getStringHashCode(this.
|
|
200
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
201
|
-
result = imul(result, 31) + this.
|
|
199
|
+
var result = getStringHashCode(this.b1c_1);
|
|
200
|
+
result = imul(result, 31) + getStringHashCode(this.c1c_1) | 0;
|
|
201
|
+
result = imul(result, 31) + this.d1c_1.hashCode() | 0;
|
|
202
202
|
return result;
|
|
203
203
|
};
|
|
204
204
|
protoOf(TagRef).equals = function (other) {
|
|
@@ -207,11 +207,11 @@
|
|
|
207
207
|
if (!(other instanceof TagRef))
|
|
208
208
|
return false;
|
|
209
209
|
var tmp0_other_with_cast = other instanceof TagRef ? other : THROW_CCE();
|
|
210
|
-
if (!(this.
|
|
210
|
+
if (!(this.b1c_1 === tmp0_other_with_cast.b1c_1))
|
|
211
211
|
return false;
|
|
212
|
-
if (!(this.
|
|
212
|
+
if (!(this.c1c_1 === tmp0_other_with_cast.c1c_1))
|
|
213
213
|
return false;
|
|
214
|
-
if (!this.
|
|
214
|
+
if (!this.d1c_1.equals(tmp0_other_with_cast.d1c_1))
|
|
215
215
|
return false;
|
|
216
216
|
return true;
|
|
217
217
|
};
|
|
@@ -226,7 +226,7 @@
|
|
|
226
226
|
env = tmp;
|
|
227
227
|
var program = first(args);
|
|
228
228
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
229
|
-
var this_0 = args.s1(1, args.
|
|
229
|
+
var this_0 = args.s1(1, args.s());
|
|
230
230
|
var tmp$ret$1 = copyToArray(this_0);
|
|
231
231
|
var spawn = childProcess.spawnSync(program, tmp$ret$1, json([to('cwd', workingDirectory), to('maxBuffer', 10485760), to('env', toJson(env))]));
|
|
232
232
|
if (spawn.status != 0) {
|