git-digger 1.6.1 → 1.6.3

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.
@@ -2,39 +2,39 @@
2
2
  'use strict';
3
3
  //region block: imports
4
4
  var imul = Math.imul;
5
- var toString = kotlin_kotlin.$_$.t8;
6
- var protoOf = kotlin_kotlin.$_$.q8;
7
- var getStringHashCode = kotlin_kotlin.$_$.p7;
8
- var hashCode = kotlin_kotlin.$_$.q7;
9
- var THROW_CCE = kotlin_kotlin.$_$.yb;
10
- var equals = kotlin_kotlin.$_$.k7;
11
- var initMetadataForClass = kotlin_kotlin.$_$.r7;
12
- var plus = kotlin_kotlin.$_$.p5;
13
- var emptyMap = kotlin_kotlin.$_$.o4;
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.$_$.wa;
15
+ var split = kotlin_kotlin.$_$.ya;
16
16
  var ArrayList_init_$Create$ = kotlin_kotlin.$_$.l;
17
- var joinToString = kotlin_kotlin.$_$.y4;
18
- var reversed = kotlin_kotlin.$_$.w5;
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.$_$.e5;
21
- var Unit_instance = kotlin_kotlin.$_$.i3;
22
- var isBlank = kotlin_kotlin.$_$.ia;
23
- var collectionSizeOrDefault = kotlin_kotlin.$_$.f4;
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.$_$.h7;
26
- var listOf = kotlin_kotlin.$_$.i5;
27
- var isCharSequence = kotlin_kotlin.$_$.b8;
28
- var trim = kotlin_kotlin.$_$.ib;
29
- var emptyList = kotlin_kotlin.$_$.n4;
30
- var listOf_0 = kotlin_kotlin.$_$.h5;
31
- var plus_0 = kotlin_kotlin.$_$.s5;
32
- var first = kotlin_kotlin.$_$.r4;
33
- var copyToArray = kotlin_kotlin.$_$.k4;
34
- var to = kotlin_kotlin.$_$.wc;
35
- var json = kotlin_kotlin.$_$.j8;
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.$_$.j6;
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.t19_1 = id;
46
- this.u19_1 = authorEmail;
47
- this.v19_1 = committerEmail;
48
- this.w19_1 = dateTime;
49
- this.x19_1 = parents;
50
- this.y19_1 = fullMessage;
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.t19_1 + ', authorEmail=' + this.u19_1 + ', committerEmail=' + this.v19_1 + ', dateTime=' + this.w19_1.toString() + ', parents=' + toString(this.x19_1) + ', fullMessage=' + this.y19_1 + ')';
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.t19_1);
57
- result = imul(result, 31) + getStringHashCode(this.u19_1) | 0;
58
- result = imul(result, 31) + getStringHashCode(this.v19_1) | 0;
59
- result = imul(result, 31) + this.w19_1.hashCode() | 0;
60
- result = imul(result, 31) + hashCode(this.x19_1) | 0;
61
- result = imul(result, 31) + getStringHashCode(this.y19_1) | 0;
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.t19_1 === tmp0_other_with_cast.t19_1))
70
+ if (!(this.m1b_1 === tmp0_other_with_cast.m1b_1))
71
71
  return false;
72
- if (!(this.u19_1 === tmp0_other_with_cast.u19_1))
72
+ if (!(this.n1b_1 === tmp0_other_with_cast.n1b_1))
73
73
  return false;
74
- if (!(this.v19_1 === tmp0_other_with_cast.v19_1))
74
+ if (!(this.o1b_1 === tmp0_other_with_cast.o1b_1))
75
75
  return false;
76
- if (!this.w19_1.equals(tmp0_other_with_cast.w19_1))
76
+ if (!this.p1b_1.equals(tmp0_other_with_cast.p1b_1))
77
77
  return false;
78
- if (!equals(this.x19_1, tmp0_other_with_cast.x19_1))
78
+ if (!equals(this.q1b_1, tmp0_other_with_cast.q1b_1))
79
79
  return false;
80
- if (!(this.y19_1 === tmp0_other_with_cast.y19_1))
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.z19_1, plus(env, $this.a1a_1));
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.m();
98
- while (_iterator__ex2g4s.n()) {
99
- var element = _iterator__ex2g4s.o();
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.p() >= 3) {
105
- tmp = new TagRef(joinToString(commaSplit.s1(0, commaSplit.p() - 2 | 0), ''), reversed(commaSplit).q(1), Companion_getInstance().w18(last(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.b1a_1 + '\n']);
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.m();
127
- while (_iterator__ex2g4s.n()) {
128
- var element = _iterator__ex2g4s.o();
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.m();
139
- while (_iterator__ex2g4s_0.n()) {
140
- var item = _iterator__ex2g4s_0.o();
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.q(0);
144
- var tmp_0 = elements.q(1);
145
- var tmp_1 = elements.q(2);
146
- var tmp_2 = Companion_getInstance().w18(elements.q(3));
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.q(4), [' ']);
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.m();
152
- while (_iterator__ex2g4s_1.n()) {
153
- var element_0 = _iterator__ex2g4s_1.o();
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.p()), '\n'));
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.z19_1 = workingDirectory;
168
- this.a1a_1 = env;
169
- this.b1a_1 = '--------!--------';
170
- this.c1a_1 = '%H%n%ae%n%ce%n%aI%n%P%n%B%n' + this.b1a_1;
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).d1a = function () {
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).e1a = function () {
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).f1a = function () {
181
- return parseLog(this, runProcess$default(this, listOf(['git', '--no-pager', 'log', '--format=' + this.c1a_1])));
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).g1a = function (begin, end) {
184
- return parseLog(this, runProcess$default(this, plus_0(listOf(['git', '--no-pager', 'log', '--format=' + this.c1a_1, begin]), !(end == null) ? listOf_0(end) : emptyList())));
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).h1a = function (begin, end, $super) {
186
+ protoOf(GitAdapter).a1c = function (begin, end, $super) {
187
187
  end = end === VOID ? null : end;
188
- return $super === VOID ? this.g1a(begin, end) : $super.g1a.call(this, begin, end);
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.i1a_1 = name;
192
- this.j1a_1 = commitId;
193
- this.k1a_1 = dateTime;
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.i1a_1 + ', commitId=' + this.j1a_1 + ', dateTime=' + this.k1a_1.toString() + ')';
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.i1a_1);
200
- result = imul(result, 31) + getStringHashCode(this.j1a_1) | 0;
201
- result = imul(result, 31) + this.k1a_1.hashCode() | 0;
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.i1a_1 === tmp0_other_with_cast.i1a_1))
210
+ if (!(this.b1c_1 === tmp0_other_with_cast.b1c_1))
211
211
  return false;
212
- if (!(this.j1a_1 === tmp0_other_with_cast.j1a_1))
212
+ if (!(this.c1c_1 === tmp0_other_with_cast.c1c_1))
213
213
  return false;
214
- if (!this.k1a_1.equals(tmp0_other_with_cast.k1a_1))
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.p());
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "git-digger",
3
- "version": "1.6.1",
3
+ "version": "1.6.3",
4
4
  "main": "kotlin/command-line-tools-digger-cli.js",
5
5
  "devDependencies": {
6
6
  "typescript": "5.5.4",