@digipair/skill-git 0.93.0-0 → 0.93.0
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/{dist/index.cjs.js → index.cjs.js} +1271 -1242
- package/index.d.ts +1 -0
- package/{dist/index.esm.js → index.esm.js} +1262 -1242
- package/libs/skill-git/src/index.d.ts +1 -0
- package/{dist → libs/skill-git}/src/lib/skill-git.d.ts +0 -1
- package/package.json +5 -21
- package/README.md +0 -7
- package/dist/src/index.d.ts +0 -2
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/lib/skill-git.d.ts.map +0 -1
- package/dist/src/lib/skill-git.spec.d.ts +0 -2
- package/dist/src/lib/skill-git.spec.d.ts.map +0 -1
- /package/{dist/index.d.ts → index.cjs.d.ts} +0 -0
- /package/{dist/schema.fr.json → schema.fr.json} +0 -0
- /package/{dist/schema.json → schema.json} +0 -0
@@ -1,14 +1,11 @@
|
|
1
|
-
import { Buffer as Buffer$1 } from 'node:buffer';
|
2
1
|
import require$$0$1 from 'fs';
|
3
|
-
import require$$
|
4
|
-
import require$$1 from 'util';
|
2
|
+
import require$$1 from 'tty';
|
3
|
+
import require$$1$1 from 'util';
|
4
|
+
import require$$0 from 'os';
|
5
5
|
import { spawn } from 'child_process';
|
6
6
|
import { EventEmitter } from 'node:events';
|
7
7
|
|
8
|
-
var commonjsGlobal = typeof globalThis !==
|
9
|
-
function getDefaultExportFromCjs(x) {
|
10
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
11
|
-
}
|
8
|
+
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
12
9
|
|
13
10
|
var dist$1 = {};
|
14
11
|
|
@@ -18,7 +15,7 @@ var src = {
|
|
18
15
|
exports: {}
|
19
16
|
};
|
20
17
|
|
21
|
-
var browser
|
18
|
+
var browser = {
|
22
19
|
exports: {}
|
23
20
|
};
|
24
21
|
|
@@ -26,155 +23,147 @@ var browser$1 = {
|
|
26
23
|
* Helpers.
|
27
24
|
*/
|
28
25
|
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
}
|
171
|
-
/**
|
172
|
-
* Pluralization helper.
|
173
|
-
*/ function plural(ms, msAbs, n, name) {
|
174
|
-
var isPlural = msAbs >= n * 1.5;
|
175
|
-
return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');
|
176
|
-
}
|
177
|
-
return ms;
|
26
|
+
function _type_of$1(obj) {
|
27
|
+
"@swc/helpers - typeof";
|
28
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
29
|
+
}
|
30
|
+
var s = 1000;
|
31
|
+
var m = s * 60;
|
32
|
+
var h = m * 60;
|
33
|
+
var d = h * 24;
|
34
|
+
var w = d * 7;
|
35
|
+
var y = d * 365.25;
|
36
|
+
/**
|
37
|
+
* Parse or format the given `val`.
|
38
|
+
*
|
39
|
+
* Options:
|
40
|
+
*
|
41
|
+
* - `long` verbose formatting [false]
|
42
|
+
*
|
43
|
+
* @param {String|Number} val
|
44
|
+
* @param {Object} [options]
|
45
|
+
* @throws {Error} throw an error if val is not a non-empty string or a number
|
46
|
+
* @return {String|Number}
|
47
|
+
* @api public
|
48
|
+
*/ var ms = function(val, options) {
|
49
|
+
options = options || {};
|
50
|
+
var type = typeof val === "undefined" ? "undefined" : _type_of$1(val);
|
51
|
+
if (type === "string" && val.length > 0) {
|
52
|
+
return parse(val);
|
53
|
+
} else if (type === "number" && isFinite(val)) {
|
54
|
+
return options.long ? fmtLong(val) : fmtShort(val);
|
55
|
+
}
|
56
|
+
throw new Error("val is not a non-empty string or a valid number. val=" + JSON.stringify(val));
|
57
|
+
};
|
58
|
+
/**
|
59
|
+
* Parse the given `str` and return milliseconds.
|
60
|
+
*
|
61
|
+
* @param {String} str
|
62
|
+
* @return {Number}
|
63
|
+
* @api private
|
64
|
+
*/ function parse(str) {
|
65
|
+
str = String(str);
|
66
|
+
if (str.length > 100) {
|
67
|
+
return;
|
68
|
+
}
|
69
|
+
var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(str);
|
70
|
+
if (!match) {
|
71
|
+
return;
|
72
|
+
}
|
73
|
+
var n = parseFloat(match[1]);
|
74
|
+
var type = (match[2] || "ms").toLowerCase();
|
75
|
+
switch(type){
|
76
|
+
case "years":
|
77
|
+
case "year":
|
78
|
+
case "yrs":
|
79
|
+
case "yr":
|
80
|
+
case "y":
|
81
|
+
return n * y;
|
82
|
+
case "weeks":
|
83
|
+
case "week":
|
84
|
+
case "w":
|
85
|
+
return n * w;
|
86
|
+
case "days":
|
87
|
+
case "day":
|
88
|
+
case "d":
|
89
|
+
return n * d;
|
90
|
+
case "hours":
|
91
|
+
case "hour":
|
92
|
+
case "hrs":
|
93
|
+
case "hr":
|
94
|
+
case "h":
|
95
|
+
return n * h;
|
96
|
+
case "minutes":
|
97
|
+
case "minute":
|
98
|
+
case "mins":
|
99
|
+
case "min":
|
100
|
+
case "m":
|
101
|
+
return n * m;
|
102
|
+
case "seconds":
|
103
|
+
case "second":
|
104
|
+
case "secs":
|
105
|
+
case "sec":
|
106
|
+
case "s":
|
107
|
+
return n * s;
|
108
|
+
case "milliseconds":
|
109
|
+
case "millisecond":
|
110
|
+
case "msecs":
|
111
|
+
case "msec":
|
112
|
+
case "ms":
|
113
|
+
return n;
|
114
|
+
default:
|
115
|
+
return undefined;
|
116
|
+
}
|
117
|
+
}
|
118
|
+
/**
|
119
|
+
* Short format for `ms`.
|
120
|
+
*
|
121
|
+
* @param {Number} ms
|
122
|
+
* @return {String}
|
123
|
+
* @api private
|
124
|
+
*/ function fmtShort(ms) {
|
125
|
+
var msAbs = Math.abs(ms);
|
126
|
+
if (msAbs >= d) {
|
127
|
+
return Math.round(ms / d) + "d";
|
128
|
+
}
|
129
|
+
if (msAbs >= h) {
|
130
|
+
return Math.round(ms / h) + "h";
|
131
|
+
}
|
132
|
+
if (msAbs >= m) {
|
133
|
+
return Math.round(ms / m) + "m";
|
134
|
+
}
|
135
|
+
if (msAbs >= s) {
|
136
|
+
return Math.round(ms / s) + "s";
|
137
|
+
}
|
138
|
+
return ms + "ms";
|
139
|
+
}
|
140
|
+
/**
|
141
|
+
* Long format for `ms`.
|
142
|
+
*
|
143
|
+
* @param {Number} ms
|
144
|
+
* @return {String}
|
145
|
+
* @api private
|
146
|
+
*/ function fmtLong(ms) {
|
147
|
+
var msAbs = Math.abs(ms);
|
148
|
+
if (msAbs >= d) {
|
149
|
+
return plural(ms, msAbs, d, "day");
|
150
|
+
}
|
151
|
+
if (msAbs >= h) {
|
152
|
+
return plural(ms, msAbs, h, "hour");
|
153
|
+
}
|
154
|
+
if (msAbs >= m) {
|
155
|
+
return plural(ms, msAbs, m, "minute");
|
156
|
+
}
|
157
|
+
if (msAbs >= s) {
|
158
|
+
return plural(ms, msAbs, s, "second");
|
159
|
+
}
|
160
|
+
return ms + " ms";
|
161
|
+
}
|
162
|
+
/**
|
163
|
+
* Pluralization helper.
|
164
|
+
*/ function plural(ms, msAbs, n, name) {
|
165
|
+
var isPlural = msAbs >= n * 1.5;
|
166
|
+
return Math.round(ms / n) + " " + name + (isPlural ? "s" : "");
|
178
167
|
}
|
179
168
|
|
180
169
|
/**
|
@@ -182,942 +171,1006 @@ function requireMs () {
|
|
182
171
|
* implementations of `debug()`.
|
183
172
|
*/
|
184
173
|
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
* XXX It WILL be removed in the next major release.
|
501
|
-
*/ function destroy() {
|
502
|
-
console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');
|
503
|
-
}
|
504
|
-
createDebug.enable(createDebug.load());
|
505
|
-
return createDebug;
|
506
|
-
}
|
507
|
-
common = setup;
|
508
|
-
return common;
|
174
|
+
function _array_like_to_array$1(arr, len) {
|
175
|
+
if (len == null || len > arr.length) len = arr.length;
|
176
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
177
|
+
return arr2;
|
178
|
+
}
|
179
|
+
function _array_without_holes$1(arr) {
|
180
|
+
if (Array.isArray(arr)) return _array_like_to_array$1(arr);
|
181
|
+
}
|
182
|
+
function _instanceof$1(left, right) {
|
183
|
+
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
184
|
+
return !!right[Symbol.hasInstance](left);
|
185
|
+
} else {
|
186
|
+
return left instanceof right;
|
187
|
+
}
|
188
|
+
}
|
189
|
+
function _iterable_to_array$1(iter) {
|
190
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
191
|
+
}
|
192
|
+
function _non_iterable_spread$1() {
|
193
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
194
|
+
}
|
195
|
+
function _to_consumable_array$1(arr) {
|
196
|
+
return _array_without_holes$1(arr) || _iterable_to_array$1(arr) || _unsupported_iterable_to_array$1(arr) || _non_iterable_spread$1();
|
197
|
+
}
|
198
|
+
function _unsupported_iterable_to_array$1(o, minLen) {
|
199
|
+
if (!o) return;
|
200
|
+
if (typeof o === "string") return _array_like_to_array$1(o, minLen);
|
201
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
202
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
203
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
204
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$1(o, minLen);
|
205
|
+
}
|
206
|
+
function setup(env) {
|
207
|
+
createDebug.debug = createDebug;
|
208
|
+
createDebug.default = createDebug;
|
209
|
+
createDebug.coerce = coerce;
|
210
|
+
createDebug.disable = disable;
|
211
|
+
createDebug.enable = enable;
|
212
|
+
createDebug.enabled = enabled;
|
213
|
+
createDebug.humanize = ms;
|
214
|
+
createDebug.destroy = destroy;
|
215
|
+
Object.keys(env).forEach(function(key) {
|
216
|
+
createDebug[key] = env[key];
|
217
|
+
});
|
218
|
+
/**
|
219
|
+
* The currently active debug mode names, and names to skip.
|
220
|
+
*/ createDebug.names = [];
|
221
|
+
createDebug.skips = [];
|
222
|
+
/**
|
223
|
+
* Map of special "%n" handling functions, for the debug "format" argument.
|
224
|
+
*
|
225
|
+
* Valid key names are a single, lower or upper-case letter, i.e. "n" and "N".
|
226
|
+
*/ createDebug.formatters = {};
|
227
|
+
/**
|
228
|
+
* Selects a color for a debug namespace
|
229
|
+
* @param {String} namespace The namespace string for the debug instance to be colored
|
230
|
+
* @return {Number|String} An ANSI color code for the given namespace
|
231
|
+
* @api private
|
232
|
+
*/ function selectColor(namespace) {
|
233
|
+
var hash = 0;
|
234
|
+
for(var i = 0; i < namespace.length; i++){
|
235
|
+
hash = (hash << 5) - hash + namespace.charCodeAt(i);
|
236
|
+
hash |= 0; // Convert to 32bit integer
|
237
|
+
}
|
238
|
+
return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
|
239
|
+
}
|
240
|
+
createDebug.selectColor = selectColor;
|
241
|
+
/**
|
242
|
+
* Create a debugger with the given `namespace`.
|
243
|
+
*
|
244
|
+
* @param {String} namespace
|
245
|
+
* @return {Function}
|
246
|
+
* @api public
|
247
|
+
*/ function createDebug(namespace) {
|
248
|
+
var prevTime;
|
249
|
+
var enableOverride = null;
|
250
|
+
var namespacesCache;
|
251
|
+
var enabledCache;
|
252
|
+
function debug() {
|
253
|
+
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
|
254
|
+
args[_key] = arguments[_key];
|
255
|
+
}
|
256
|
+
// Disabled?
|
257
|
+
if (!debug.enabled) {
|
258
|
+
return;
|
259
|
+
}
|
260
|
+
var self = debug;
|
261
|
+
// Set `diff` timestamp
|
262
|
+
var curr = Number(new Date());
|
263
|
+
var ms = curr - (prevTime || curr);
|
264
|
+
self.diff = ms;
|
265
|
+
self.prev = prevTime;
|
266
|
+
self.curr = curr;
|
267
|
+
prevTime = curr;
|
268
|
+
args[0] = createDebug.coerce(args[0]);
|
269
|
+
if (typeof args[0] !== "string") {
|
270
|
+
// Anything else let's inspect with %O
|
271
|
+
args.unshift("%O");
|
272
|
+
}
|
273
|
+
// Apply any `formatters` transformations
|
274
|
+
var index = 0;
|
275
|
+
args[0] = args[0].replace(/%([a-zA-Z%])/g, function(match, format) {
|
276
|
+
// If we encounter an escaped % then don't increase the array index
|
277
|
+
if (match === "%%") {
|
278
|
+
return "%";
|
279
|
+
}
|
280
|
+
index++;
|
281
|
+
var formatter = createDebug.formatters[format];
|
282
|
+
if (typeof formatter === "function") {
|
283
|
+
var val = args[index];
|
284
|
+
match = formatter.call(self, val);
|
285
|
+
// Now we need to remove `args[index]` since it's inlined in the `format`
|
286
|
+
args.splice(index, 1);
|
287
|
+
index--;
|
288
|
+
}
|
289
|
+
return match;
|
290
|
+
});
|
291
|
+
// Apply env-specific formatting (colors, etc.)
|
292
|
+
createDebug.formatArgs.call(self, args);
|
293
|
+
var logFn = self.log || createDebug.log;
|
294
|
+
logFn.apply(self, args);
|
295
|
+
}
|
296
|
+
debug.namespace = namespace;
|
297
|
+
debug.useColors = createDebug.useColors();
|
298
|
+
debug.color = createDebug.selectColor(namespace);
|
299
|
+
debug.extend = extend;
|
300
|
+
debug.destroy = createDebug.destroy; // XXX Temporary. Will be removed in the next major release.
|
301
|
+
Object.defineProperty(debug, "enabled", {
|
302
|
+
enumerable: true,
|
303
|
+
configurable: false,
|
304
|
+
get: function() {
|
305
|
+
if (enableOverride !== null) {
|
306
|
+
return enableOverride;
|
307
|
+
}
|
308
|
+
if (namespacesCache !== createDebug.namespaces) {
|
309
|
+
namespacesCache = createDebug.namespaces;
|
310
|
+
enabledCache = createDebug.enabled(namespace);
|
311
|
+
}
|
312
|
+
return enabledCache;
|
313
|
+
},
|
314
|
+
set: function(v) {
|
315
|
+
enableOverride = v;
|
316
|
+
}
|
317
|
+
});
|
318
|
+
// Env-specific initialization logic for debug instances
|
319
|
+
if (typeof createDebug.init === "function") {
|
320
|
+
createDebug.init(debug);
|
321
|
+
}
|
322
|
+
return debug;
|
323
|
+
}
|
324
|
+
function extend(namespace, delimiter) {
|
325
|
+
var newDebug = createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
|
326
|
+
newDebug.log = this.log;
|
327
|
+
return newDebug;
|
328
|
+
}
|
329
|
+
/**
|
330
|
+
* Enables a debug mode by namespaces. This can include modes
|
331
|
+
* separated by a colon and wildcards.
|
332
|
+
*
|
333
|
+
* @param {String} namespaces
|
334
|
+
* @api public
|
335
|
+
*/ function enable(namespaces) {
|
336
|
+
createDebug.save(namespaces);
|
337
|
+
createDebug.namespaces = namespaces;
|
338
|
+
createDebug.names = [];
|
339
|
+
createDebug.skips = [];
|
340
|
+
var split = (typeof namespaces === "string" ? namespaces : "").trim().replace(" ", ",").split(",").filter(Boolean);
|
341
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
342
|
+
try {
|
343
|
+
for(var _iterator = split[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
344
|
+
var ns = _step.value;
|
345
|
+
if (ns[0] === "-") {
|
346
|
+
createDebug.skips.push(ns.slice(1));
|
347
|
+
} else {
|
348
|
+
createDebug.names.push(ns);
|
349
|
+
}
|
350
|
+
}
|
351
|
+
} catch (err) {
|
352
|
+
_didIteratorError = true;
|
353
|
+
_iteratorError = err;
|
354
|
+
} finally{
|
355
|
+
try {
|
356
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
357
|
+
_iterator.return();
|
358
|
+
}
|
359
|
+
} finally{
|
360
|
+
if (_didIteratorError) {
|
361
|
+
throw _iteratorError;
|
362
|
+
}
|
363
|
+
}
|
364
|
+
}
|
365
|
+
}
|
366
|
+
/**
|
367
|
+
* Checks if the given string matches a namespace template, honoring
|
368
|
+
* asterisks as wildcards.
|
369
|
+
*
|
370
|
+
* @param {String} search
|
371
|
+
* @param {String} template
|
372
|
+
* @return {Boolean}
|
373
|
+
*/ function matchesTemplate(search, template) {
|
374
|
+
var searchIndex = 0;
|
375
|
+
var templateIndex = 0;
|
376
|
+
var starIndex = -1;
|
377
|
+
var matchIndex = 0;
|
378
|
+
while(searchIndex < search.length){
|
379
|
+
if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) {
|
380
|
+
// Match character or proceed with wildcard
|
381
|
+
if (template[templateIndex] === "*") {
|
382
|
+
starIndex = templateIndex;
|
383
|
+
matchIndex = searchIndex;
|
384
|
+
templateIndex++; // Skip the '*'
|
385
|
+
} else {
|
386
|
+
searchIndex++;
|
387
|
+
templateIndex++;
|
388
|
+
}
|
389
|
+
} else if (starIndex !== -1) {
|
390
|
+
// Backtrack to the last '*' and try to match more characters
|
391
|
+
templateIndex = starIndex + 1;
|
392
|
+
matchIndex++;
|
393
|
+
searchIndex = matchIndex;
|
394
|
+
} else {
|
395
|
+
return false; // No match
|
396
|
+
}
|
397
|
+
}
|
398
|
+
// Handle trailing '*' in template
|
399
|
+
while(templateIndex < template.length && template[templateIndex] === "*"){
|
400
|
+
templateIndex++;
|
401
|
+
}
|
402
|
+
return templateIndex === template.length;
|
403
|
+
}
|
404
|
+
/**
|
405
|
+
* Disable debug output.
|
406
|
+
*
|
407
|
+
* @return {String} namespaces
|
408
|
+
* @api public
|
409
|
+
*/ function disable() {
|
410
|
+
var namespaces = _to_consumable_array$1(createDebug.names).concat(_to_consumable_array$1(createDebug.skips.map(function(namespace) {
|
411
|
+
return "-" + namespace;
|
412
|
+
}))).join(",");
|
413
|
+
createDebug.enable("");
|
414
|
+
return namespaces;
|
415
|
+
}
|
416
|
+
/**
|
417
|
+
* Returns true if the given mode name is enabled, false otherwise.
|
418
|
+
*
|
419
|
+
* @param {String} name
|
420
|
+
* @return {Boolean}
|
421
|
+
* @api public
|
422
|
+
*/ function enabled(name) {
|
423
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
424
|
+
try {
|
425
|
+
for(var _iterator = createDebug.skips[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
426
|
+
var skip = _step.value;
|
427
|
+
if (matchesTemplate(name, skip)) {
|
428
|
+
return false;
|
429
|
+
}
|
430
|
+
}
|
431
|
+
} catch (err) {
|
432
|
+
_didIteratorError = true;
|
433
|
+
_iteratorError = err;
|
434
|
+
} finally{
|
435
|
+
try {
|
436
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
437
|
+
_iterator.return();
|
438
|
+
}
|
439
|
+
} finally{
|
440
|
+
if (_didIteratorError) {
|
441
|
+
throw _iteratorError;
|
442
|
+
}
|
443
|
+
}
|
444
|
+
}
|
445
|
+
var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
|
446
|
+
try {
|
447
|
+
for(var _iterator1 = createDebug.names[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
|
448
|
+
var ns = _step1.value;
|
449
|
+
if (matchesTemplate(name, ns)) {
|
450
|
+
return true;
|
451
|
+
}
|
452
|
+
}
|
453
|
+
} catch (err) {
|
454
|
+
_didIteratorError1 = true;
|
455
|
+
_iteratorError1 = err;
|
456
|
+
} finally{
|
457
|
+
try {
|
458
|
+
if (!_iteratorNormalCompletion1 && _iterator1.return != null) {
|
459
|
+
_iterator1.return();
|
460
|
+
}
|
461
|
+
} finally{
|
462
|
+
if (_didIteratorError1) {
|
463
|
+
throw _iteratorError1;
|
464
|
+
}
|
465
|
+
}
|
466
|
+
}
|
467
|
+
return false;
|
468
|
+
}
|
469
|
+
/**
|
470
|
+
* Coerce `val`.
|
471
|
+
*
|
472
|
+
* @param {Mixed} val
|
473
|
+
* @return {Mixed}
|
474
|
+
* @api private
|
475
|
+
*/ function coerce(val) {
|
476
|
+
if (_instanceof$1(val, Error)) {
|
477
|
+
return val.stack || val.message;
|
478
|
+
}
|
479
|
+
return val;
|
480
|
+
}
|
481
|
+
/**
|
482
|
+
* XXX DO NOT USE. This is a temporary stub function.
|
483
|
+
* XXX It WILL be removed in the next major release.
|
484
|
+
*/ function destroy() {
|
485
|
+
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
486
|
+
}
|
487
|
+
createDebug.enable(createDebug.load());
|
488
|
+
return createDebug;
|
509
489
|
}
|
490
|
+
var common = setup;
|
510
491
|
|
511
492
|
/* eslint-env browser */
|
512
493
|
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
|
684
|
-
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
|
696
|
-
|
697
|
-
|
698
|
-
|
699
|
-
|
700
|
-
|
701
|
-
|
702
|
-
|
703
|
-
|
704
|
-
|
705
|
-
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
|
710
|
-
|
711
|
-
|
712
|
-
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
|
719
|
-
|
720
|
-
|
721
|
-
|
722
|
-
|
723
|
-
|
724
|
-
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
|
729
|
-
return localStorage;
|
730
|
-
} catch (error) {
|
731
|
-
// Swallow
|
732
|
-
// XXX (@Qix-) should we be logging these?
|
733
|
-
}
|
734
|
-
}
|
735
|
-
module.exports = requireCommon()(exports);
|
736
|
-
var formatters = module.exports.formatters;
|
737
|
-
/**
|
738
|
-
* Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.
|
739
|
-
*/ formatters.j = function(v) {
|
740
|
-
try {
|
741
|
-
return JSON.stringify(v);
|
742
|
-
} catch (error) {
|
743
|
-
return '[UnexpectedJSONParseError]: ' + error.message;
|
744
|
-
}
|
745
|
-
};
|
746
|
-
} (browser$1, browser$1.exports));
|
747
|
-
return browser$1.exports;
|
494
|
+
(function (module, exports) {
|
495
|
+
/**
|
496
|
+
* This is the web browser implementation of `debug()`.
|
497
|
+
*/ exports.formatArgs = formatArgs;
|
498
|
+
exports.save = save;
|
499
|
+
exports.load = load;
|
500
|
+
exports.useColors = useColors;
|
501
|
+
exports.storage = localstorage();
|
502
|
+
exports.destroy = function() {
|
503
|
+
var warned = false;
|
504
|
+
return function() {
|
505
|
+
if (!warned) {
|
506
|
+
warned = true;
|
507
|
+
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
508
|
+
}
|
509
|
+
};
|
510
|
+
}();
|
511
|
+
/**
|
512
|
+
* Colors.
|
513
|
+
*/ exports.colors = [
|
514
|
+
"#0000CC",
|
515
|
+
"#0000FF",
|
516
|
+
"#0033CC",
|
517
|
+
"#0033FF",
|
518
|
+
"#0066CC",
|
519
|
+
"#0066FF",
|
520
|
+
"#0099CC",
|
521
|
+
"#0099FF",
|
522
|
+
"#00CC00",
|
523
|
+
"#00CC33",
|
524
|
+
"#00CC66",
|
525
|
+
"#00CC99",
|
526
|
+
"#00CCCC",
|
527
|
+
"#00CCFF",
|
528
|
+
"#3300CC",
|
529
|
+
"#3300FF",
|
530
|
+
"#3333CC",
|
531
|
+
"#3333FF",
|
532
|
+
"#3366CC",
|
533
|
+
"#3366FF",
|
534
|
+
"#3399CC",
|
535
|
+
"#3399FF",
|
536
|
+
"#33CC00",
|
537
|
+
"#33CC33",
|
538
|
+
"#33CC66",
|
539
|
+
"#33CC99",
|
540
|
+
"#33CCCC",
|
541
|
+
"#33CCFF",
|
542
|
+
"#6600CC",
|
543
|
+
"#6600FF",
|
544
|
+
"#6633CC",
|
545
|
+
"#6633FF",
|
546
|
+
"#66CC00",
|
547
|
+
"#66CC33",
|
548
|
+
"#9900CC",
|
549
|
+
"#9900FF",
|
550
|
+
"#9933CC",
|
551
|
+
"#9933FF",
|
552
|
+
"#99CC00",
|
553
|
+
"#99CC33",
|
554
|
+
"#CC0000",
|
555
|
+
"#CC0033",
|
556
|
+
"#CC0066",
|
557
|
+
"#CC0099",
|
558
|
+
"#CC00CC",
|
559
|
+
"#CC00FF",
|
560
|
+
"#CC3300",
|
561
|
+
"#CC3333",
|
562
|
+
"#CC3366",
|
563
|
+
"#CC3399",
|
564
|
+
"#CC33CC",
|
565
|
+
"#CC33FF",
|
566
|
+
"#CC6600",
|
567
|
+
"#CC6633",
|
568
|
+
"#CC9900",
|
569
|
+
"#CC9933",
|
570
|
+
"#CCCC00",
|
571
|
+
"#CCCC33",
|
572
|
+
"#FF0000",
|
573
|
+
"#FF0033",
|
574
|
+
"#FF0066",
|
575
|
+
"#FF0099",
|
576
|
+
"#FF00CC",
|
577
|
+
"#FF00FF",
|
578
|
+
"#FF3300",
|
579
|
+
"#FF3333",
|
580
|
+
"#FF3366",
|
581
|
+
"#FF3399",
|
582
|
+
"#FF33CC",
|
583
|
+
"#FF33FF",
|
584
|
+
"#FF6600",
|
585
|
+
"#FF6633",
|
586
|
+
"#FF9900",
|
587
|
+
"#FF9933",
|
588
|
+
"#FFCC00",
|
589
|
+
"#FFCC33"
|
590
|
+
];
|
591
|
+
/**
|
592
|
+
* Currently only WebKit-based Web Inspectors, Firefox >= v31,
|
593
|
+
* and the Firebug extension (any Firefox version) are known
|
594
|
+
* to support "%c" CSS customizations.
|
595
|
+
*
|
596
|
+
* TODO: add a `localStorage` variable to explicitly enable/disable colors
|
597
|
+
*/ // eslint-disable-next-line complexity
|
598
|
+
function useColors() {
|
599
|
+
// NB: In an Electron preload script, document will be defined but not fully
|
600
|
+
// initialized. Since we know we're in Chrome, we'll just detect this case
|
601
|
+
// explicitly
|
602
|
+
if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) {
|
603
|
+
return true;
|
604
|
+
}
|
605
|
+
// Internet Explorer and Edge do not support colors.
|
606
|
+
if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
|
607
|
+
return false;
|
608
|
+
}
|
609
|
+
var m;
|
610
|
+
// Is webkit? http://stackoverflow.com/a/16459606/376773
|
611
|
+
// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632
|
612
|
+
// eslint-disable-next-line no-return-assign
|
613
|
+
return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
|
614
|
+
typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
|
615
|
+
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
|
616
|
+
typeof navigator !== "undefined" && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker
|
617
|
+
typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
618
|
+
}
|
619
|
+
/**
|
620
|
+
* Colorize log arguments if enabled.
|
621
|
+
*
|
622
|
+
* @api public
|
623
|
+
*/ function formatArgs(args) {
|
624
|
+
args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module.exports.humanize(this.diff);
|
625
|
+
if (!this.useColors) {
|
626
|
+
return;
|
627
|
+
}
|
628
|
+
var c = "color: " + this.color;
|
629
|
+
args.splice(1, 0, c, "color: inherit");
|
630
|
+
// The final "%c" is somewhat tricky, because there could be other
|
631
|
+
// arguments passed either before or after the %c, so we need to
|
632
|
+
// figure out the correct index to insert the CSS into
|
633
|
+
var index = 0;
|
634
|
+
var lastC = 0;
|
635
|
+
args[0].replace(/%[a-zA-Z%]/g, function(match) {
|
636
|
+
if (match === "%%") {
|
637
|
+
return;
|
638
|
+
}
|
639
|
+
index++;
|
640
|
+
if (match === "%c") {
|
641
|
+
// We only are interested in the *last* %c
|
642
|
+
// (the user may have provided their own)
|
643
|
+
lastC = index;
|
644
|
+
}
|
645
|
+
});
|
646
|
+
args.splice(lastC, 0, c);
|
647
|
+
}
|
648
|
+
/**
|
649
|
+
* Invokes `console.debug()` when available.
|
650
|
+
* No-op when `console.debug` is not a "function".
|
651
|
+
* If `console.debug` is not available, falls back
|
652
|
+
* to `console.log`.
|
653
|
+
*
|
654
|
+
* @api public
|
655
|
+
*/ exports.log = console.debug || console.log || function() {};
|
656
|
+
/**
|
657
|
+
* Save `namespaces`.
|
658
|
+
*
|
659
|
+
* @param {String} namespaces
|
660
|
+
* @api private
|
661
|
+
*/ function save(namespaces) {
|
662
|
+
try {
|
663
|
+
if (namespaces) {
|
664
|
+
exports.storage.setItem("debug", namespaces);
|
665
|
+
} else {
|
666
|
+
exports.storage.removeItem("debug");
|
667
|
+
}
|
668
|
+
} catch (error) {
|
669
|
+
// Swallow
|
670
|
+
// XXX (@Qix-) should we be logging these?
|
671
|
+
}
|
672
|
+
}
|
673
|
+
/**
|
674
|
+
* Load `namespaces`.
|
675
|
+
*
|
676
|
+
* @return {String} returns the previously persisted debug modes
|
677
|
+
* @api private
|
678
|
+
*/ function load() {
|
679
|
+
var r;
|
680
|
+
try {
|
681
|
+
r = exports.storage.getItem("debug");
|
682
|
+
} catch (error) {
|
683
|
+
// Swallow
|
684
|
+
// XXX (@Qix-) should we be logging these?
|
685
|
+
}
|
686
|
+
// If debug isn't set in LS, and we're in Electron, try to load $DEBUG
|
687
|
+
if (!r && typeof process !== "undefined" && "env" in process) {
|
688
|
+
r = process.env.DEBUG;
|
689
|
+
}
|
690
|
+
return r;
|
691
|
+
}
|
692
|
+
/**
|
693
|
+
* Localstorage attempts to return the localstorage.
|
694
|
+
*
|
695
|
+
* This is necessary because safari throws
|
696
|
+
* when a user disables cookies/localstorage
|
697
|
+
* and you attempt to access it.
|
698
|
+
*
|
699
|
+
* @return {LocalStorage}
|
700
|
+
* @api private
|
701
|
+
*/ function localstorage() {
|
702
|
+
try {
|
703
|
+
// TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context
|
704
|
+
// The Browser also has localStorage in the global context.
|
705
|
+
return localStorage;
|
706
|
+
} catch (error) {
|
707
|
+
// Swallow
|
708
|
+
// XXX (@Qix-) should we be logging these?
|
709
|
+
}
|
748
710
|
}
|
711
|
+
module.exports = common(exports);
|
712
|
+
var formatters = module.exports.formatters;
|
713
|
+
/**
|
714
|
+
* Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.
|
715
|
+
*/ formatters.j = function(v) {
|
716
|
+
try {
|
717
|
+
return JSON.stringify(v);
|
718
|
+
} catch (error) {
|
719
|
+
return "[UnexpectedJSONParseError]: " + error.message;
|
720
|
+
}
|
721
|
+
};
|
722
|
+
}(browser, browser.exports));
|
749
723
|
|
750
724
|
var node = {
|
751
725
|
exports: {}
|
752
726
|
};
|
753
727
|
|
754
|
-
|
755
|
-
|
756
|
-
var
|
757
|
-
var
|
728
|
+
var hasFlag$1 = function(flag) {
|
729
|
+
var argv = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : process.argv;
|
730
|
+
var prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
731
|
+
var position = argv.indexOf(prefix + flag);
|
732
|
+
var terminatorPosition = argv.indexOf("--");
|
733
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
734
|
+
};
|
758
735
|
|
759
|
-
|
760
|
-
|
761
|
-
|
762
|
-
|
763
|
-
|
764
|
-
|
765
|
-
|
766
|
-
|
767
|
-
|
768
|
-
|
769
|
-
|
770
|
-
|
771
|
-
|
772
|
-
|
773
|
-
|
774
|
-
|
775
|
-
|
776
|
-
|
777
|
-
stderr: colorSupport
|
778
|
-
};
|
779
|
-
return browser;
|
736
|
+
var os = require$$0;
|
737
|
+
var tty = require$$1;
|
738
|
+
var hasFlag = hasFlag$1;
|
739
|
+
var env = process.env;
|
740
|
+
var forceColor;
|
741
|
+
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
742
|
+
forceColor = 0;
|
743
|
+
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
744
|
+
forceColor = 1;
|
745
|
+
}
|
746
|
+
if ("FORCE_COLOR" in env) {
|
747
|
+
if (env.FORCE_COLOR === "true") {
|
748
|
+
forceColor = 1;
|
749
|
+
} else if (env.FORCE_COLOR === "false") {
|
750
|
+
forceColor = 0;
|
751
|
+
} else {
|
752
|
+
forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
|
753
|
+
}
|
780
754
|
}
|
755
|
+
function translateLevel(level) {
|
756
|
+
if (level === 0) {
|
757
|
+
return false;
|
758
|
+
}
|
759
|
+
return {
|
760
|
+
level: level,
|
761
|
+
hasBasic: true,
|
762
|
+
has256: level >= 2,
|
763
|
+
has16m: level >= 3
|
764
|
+
};
|
765
|
+
}
|
766
|
+
function supportsColor(haveStream, streamIsTTY) {
|
767
|
+
if (forceColor === 0) {
|
768
|
+
return 0;
|
769
|
+
}
|
770
|
+
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
771
|
+
return 3;
|
772
|
+
}
|
773
|
+
if (hasFlag("color=256")) {
|
774
|
+
return 2;
|
775
|
+
}
|
776
|
+
if (haveStream && !streamIsTTY && forceColor === undefined) {
|
777
|
+
return 0;
|
778
|
+
}
|
779
|
+
var min = forceColor || 0;
|
780
|
+
if (env.TERM === "dumb") {
|
781
|
+
return min;
|
782
|
+
}
|
783
|
+
if (process.platform === "win32") {
|
784
|
+
// Windows 10 build 10586 is the first Windows release that supports 256 colors.
|
785
|
+
// Windows 10 build 14931 is the first release that supports 16m/TrueColor.
|
786
|
+
var osRelease = os.release().split(".");
|
787
|
+
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
788
|
+
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
789
|
+
}
|
790
|
+
return 1;
|
791
|
+
}
|
792
|
+
if ("CI" in env) {
|
793
|
+
if ([
|
794
|
+
"TRAVIS",
|
795
|
+
"CIRCLECI",
|
796
|
+
"APPVEYOR",
|
797
|
+
"GITLAB_CI",
|
798
|
+
"GITHUB_ACTIONS",
|
799
|
+
"BUILDKITE"
|
800
|
+
].some(function(sign) {
|
801
|
+
return sign in env;
|
802
|
+
}) || env.CI_NAME === "codeship") {
|
803
|
+
return 1;
|
804
|
+
}
|
805
|
+
return min;
|
806
|
+
}
|
807
|
+
if ("TEAMCITY_VERSION" in env) {
|
808
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
809
|
+
}
|
810
|
+
if (env.COLORTERM === "truecolor") {
|
811
|
+
return 3;
|
812
|
+
}
|
813
|
+
if ("TERM_PROGRAM" in env) {
|
814
|
+
var version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
815
|
+
switch(env.TERM_PROGRAM){
|
816
|
+
case "iTerm.app":
|
817
|
+
return version >= 3 ? 3 : 2;
|
818
|
+
case "Apple_Terminal":
|
819
|
+
return 2;
|
820
|
+
}
|
821
|
+
}
|
822
|
+
if (/-256(color)?$/i.test(env.TERM)) {
|
823
|
+
return 2;
|
824
|
+
}
|
825
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
826
|
+
return 1;
|
827
|
+
}
|
828
|
+
if ("COLORTERM" in env) {
|
829
|
+
return 1;
|
830
|
+
}
|
831
|
+
return min;
|
832
|
+
}
|
833
|
+
function getSupportLevel(stream) {
|
834
|
+
var level = supportsColor(stream, stream && stream.isTTY);
|
835
|
+
return translateLevel(level);
|
836
|
+
}
|
837
|
+
var supportsColor_1 = {
|
838
|
+
supportsColor: getSupportLevel,
|
839
|
+
stdout: translateLevel(supportsColor(true, tty.isatty(1))),
|
840
|
+
stderr: translateLevel(supportsColor(true, tty.isatty(2)))
|
841
|
+
};
|
781
842
|
|
782
843
|
/**
|
783
844
|
* Module dependencies.
|
784
845
|
*/
|
785
846
|
|
786
|
-
|
787
|
-
|
788
|
-
|
789
|
-
|
790
|
-
|
791
|
-
|
792
|
-
|
793
|
-
|
794
|
-
|
795
|
-
|
796
|
-
|
797
|
-
|
798
|
-
|
799
|
-
|
800
|
-
|
801
|
-
|
802
|
-
|
803
|
-
|
804
|
-
|
805
|
-
|
806
|
-
|
807
|
-
|
808
|
-
|
809
|
-
|
810
|
-
|
811
|
-
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
812
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
813
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
814
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
815
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
816
|
-
}
|
817
|
-
var tty = require$$0;
|
818
|
-
var util = require$$1;
|
819
|
-
/**
|
820
|
-
* This is the Node.js implementation of `debug()`.
|
821
|
-
*/ exports.init = init;
|
822
|
-
exports.log = log;
|
823
|
-
exports.formatArgs = formatArgs;
|
824
|
-
exports.save = save;
|
825
|
-
exports.load = load;
|
826
|
-
exports.useColors = useColors;
|
827
|
-
exports.destroy = util.deprecate(function() {}, 'Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');
|
828
|
-
/**
|
829
|
-
* Colors.
|
830
|
-
*/ exports.colors = [
|
831
|
-
6,
|
832
|
-
2,
|
833
|
-
3,
|
834
|
-
4,
|
835
|
-
5,
|
836
|
-
1
|
837
|
-
];
|
838
|
-
try {
|
839
|
-
// Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json)
|
840
|
-
// eslint-disable-next-line import/no-extraneous-dependencies
|
841
|
-
var supportsColor = requireBrowser();
|
842
|
-
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
843
|
-
exports.colors = [
|
844
|
-
20,
|
845
|
-
21,
|
846
|
-
26,
|
847
|
-
27,
|
848
|
-
32,
|
849
|
-
33,
|
850
|
-
38,
|
851
|
-
39,
|
852
|
-
40,
|
853
|
-
41,
|
854
|
-
42,
|
855
|
-
43,
|
856
|
-
44,
|
857
|
-
45,
|
858
|
-
56,
|
859
|
-
57,
|
860
|
-
62,
|
861
|
-
63,
|
862
|
-
68,
|
863
|
-
69,
|
864
|
-
74,
|
865
|
-
75,
|
866
|
-
76,
|
867
|
-
77,
|
868
|
-
78,
|
869
|
-
79,
|
870
|
-
80,
|
871
|
-
81,
|
872
|
-
92,
|
873
|
-
93,
|
874
|
-
98,
|
875
|
-
99,
|
876
|
-
112,
|
877
|
-
113,
|
878
|
-
128,
|
879
|
-
129,
|
880
|
-
134,
|
881
|
-
135,
|
882
|
-
148,
|
883
|
-
149,
|
884
|
-
160,
|
885
|
-
161,
|
886
|
-
162,
|
887
|
-
163,
|
888
|
-
164,
|
889
|
-
165,
|
890
|
-
166,
|
891
|
-
167,
|
892
|
-
168,
|
893
|
-
169,
|
894
|
-
170,
|
895
|
-
171,
|
896
|
-
172,
|
897
|
-
173,
|
898
|
-
178,
|
899
|
-
179,
|
900
|
-
184,
|
901
|
-
185,
|
902
|
-
196,
|
903
|
-
197,
|
904
|
-
198,
|
905
|
-
199,
|
906
|
-
200,
|
907
|
-
201,
|
908
|
-
202,
|
909
|
-
203,
|
910
|
-
204,
|
911
|
-
205,
|
912
|
-
206,
|
913
|
-
207,
|
914
|
-
208,
|
915
|
-
209,
|
916
|
-
214,
|
917
|
-
215,
|
918
|
-
220,
|
919
|
-
221
|
920
|
-
];
|
921
|
-
}
|
922
|
-
} catch (error) {
|
923
|
-
// Swallow - we only care if `supports-color` is available; it doesn't have to be.
|
924
|
-
}
|
925
|
-
/**
|
926
|
-
* Build up the default `inspectOpts` object from the environment variables.
|
927
|
-
*
|
928
|
-
* $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js
|
929
|
-
*/ exports.inspectOpts = Object.keys(process.env).filter(function(key) {
|
930
|
-
return /^debug_/i.test(key);
|
931
|
-
}).reduce(function(obj, key) {
|
932
|
-
// Camel-case
|
933
|
-
var prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, function(_, k) {
|
934
|
-
return k.toUpperCase();
|
935
|
-
});
|
936
|
-
// Coerce string value into JS value
|
937
|
-
var val = process.env[key];
|
938
|
-
if (/^(yes|on|true|enabled)$/i.test(val)) {
|
939
|
-
val = true;
|
940
|
-
} else if (/^(no|off|false|disabled)$/i.test(val)) {
|
941
|
-
val = false;
|
942
|
-
} else if (val === 'null') {
|
943
|
-
val = null;
|
944
|
-
} else {
|
945
|
-
val = Number(val);
|
946
|
-
}
|
947
|
-
obj[prop] = val;
|
948
|
-
return obj;
|
949
|
-
}, {});
|
950
|
-
/**
|
951
|
-
* Is stdout a TTY? Colored output is enabled when `true`.
|
952
|
-
*/ function useColors() {
|
953
|
-
return 'colors' in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
|
954
|
-
}
|
955
|
-
/**
|
956
|
-
* Adds ANSI color escape codes if enabled.
|
957
|
-
*
|
958
|
-
* @api public
|
959
|
-
*/ function formatArgs(args) {
|
960
|
-
var _this = this, name = _this.namespace, _$useColors = _this.useColors;
|
961
|
-
if (_$useColors) {
|
962
|
-
var c = this.color;
|
963
|
-
var colorCode = '\u001B[3' + (c < 8 ? c : '8;5;' + c);
|
964
|
-
var prefix = " ".concat(colorCode, ";1m").concat(name, " \x1b[0m");
|
965
|
-
args[0] = prefix + args[0].split('\n').join('\n' + prefix);
|
966
|
-
args.push(colorCode + 'm+' + module.exports.humanize(this.diff) + '\u001B[0m');
|
967
|
-
} else {
|
968
|
-
args[0] = getDate() + name + ' ' + args[0];
|
969
|
-
}
|
970
|
-
}
|
971
|
-
function getDate() {
|
972
|
-
if (exports.inspectOpts.hideDate) {
|
973
|
-
return '';
|
974
|
-
}
|
975
|
-
return new Date().toISOString() + ' ';
|
976
|
-
}
|
977
|
-
/**
|
978
|
-
* Invokes `util.formatWithOptions()` with the specified arguments and writes to stderr.
|
979
|
-
*/ function log() {
|
980
|
-
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
|
981
|
-
args[_key] = arguments[_key];
|
982
|
-
}
|
983
|
-
var _util;
|
984
|
-
return process.stderr.write((_util = util).formatWithOptions.apply(_util, [
|
985
|
-
exports.inspectOpts
|
986
|
-
].concat(_to_consumable_array(args))) + '\n');
|
987
|
-
}
|
988
|
-
/**
|
989
|
-
* Save `namespaces`.
|
990
|
-
*
|
991
|
-
* @param {String} namespaces
|
992
|
-
* @api private
|
993
|
-
*/ function save(namespaces) {
|
994
|
-
if (namespaces) {
|
995
|
-
process.env.DEBUG = namespaces;
|
996
|
-
} else {
|
997
|
-
// If you set a process.env field to null or undefined, it gets cast to the
|
998
|
-
// string 'null' or 'undefined'. Just delete instead.
|
999
|
-
delete process.env.DEBUG;
|
1000
|
-
}
|
1001
|
-
}
|
1002
|
-
/**
|
1003
|
-
* Load `namespaces`.
|
1004
|
-
*
|
1005
|
-
* @return {String} returns the previously persisted debug modes
|
1006
|
-
* @api private
|
1007
|
-
*/ function load() {
|
1008
|
-
return process.env.DEBUG;
|
1009
|
-
}
|
1010
|
-
/**
|
1011
|
-
* Init logic for `debug` instances.
|
1012
|
-
*
|
1013
|
-
* Create a new `inspectOpts` object in case `useColors` is set
|
1014
|
-
* differently for a particular `debug` instance.
|
1015
|
-
*/ function init(debug) {
|
1016
|
-
debug.inspectOpts = {};
|
1017
|
-
var keys = Object.keys(exports.inspectOpts);
|
1018
|
-
for(var i = 0; i < keys.length; i++){
|
1019
|
-
debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
|
1020
|
-
}
|
1021
|
-
}
|
1022
|
-
module.exports = requireCommon()(exports);
|
1023
|
-
var formatters = module.exports.formatters;
|
1024
|
-
/**
|
1025
|
-
* Map %o to `util.inspect()`, all on a single line.
|
1026
|
-
*/ formatters.o = function(v) {
|
1027
|
-
this.inspectOpts.colors = this.useColors;
|
1028
|
-
return util.inspect(v, this.inspectOpts).split('\n').map(function(str) {
|
1029
|
-
return str.trim();
|
1030
|
-
}).join(' ');
|
1031
|
-
};
|
1032
|
-
/**
|
1033
|
-
* Map %O to `util.inspect()`, allowing multiple lines if needed.
|
1034
|
-
*/ formatters.O = function(v) {
|
1035
|
-
this.inspectOpts.colors = this.useColors;
|
1036
|
-
return util.inspect(v, this.inspectOpts);
|
1037
|
-
};
|
1038
|
-
} (node, node.exports));
|
1039
|
-
return node.exports;
|
847
|
+
(function (module, exports) {
|
848
|
+
function _array_like_to_array(arr, len) {
|
849
|
+
if (len == null || len > arr.length) len = arr.length;
|
850
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
851
|
+
return arr2;
|
852
|
+
}
|
853
|
+
function _array_without_holes(arr) {
|
854
|
+
if (Array.isArray(arr)) return _array_like_to_array(arr);
|
855
|
+
}
|
856
|
+
function _iterable_to_array(iter) {
|
857
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
858
|
+
}
|
859
|
+
function _non_iterable_spread() {
|
860
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
861
|
+
}
|
862
|
+
function _to_consumable_array(arr) {
|
863
|
+
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
|
864
|
+
}
|
865
|
+
function _unsupported_iterable_to_array(o, minLen) {
|
866
|
+
if (!o) return;
|
867
|
+
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
868
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
869
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
870
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
871
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
1040
872
|
}
|
873
|
+
var tty = require$$1;
|
874
|
+
var util = require$$1$1;
|
875
|
+
/**
|
876
|
+
* This is the Node.js implementation of `debug()`.
|
877
|
+
*/ exports.init = init;
|
878
|
+
exports.log = log;
|
879
|
+
exports.formatArgs = formatArgs;
|
880
|
+
exports.save = save;
|
881
|
+
exports.load = load;
|
882
|
+
exports.useColors = useColors;
|
883
|
+
exports.destroy = util.deprecate(function() {}, "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
884
|
+
/**
|
885
|
+
* Colors.
|
886
|
+
*/ exports.colors = [
|
887
|
+
6,
|
888
|
+
2,
|
889
|
+
3,
|
890
|
+
4,
|
891
|
+
5,
|
892
|
+
1
|
893
|
+
];
|
894
|
+
try {
|
895
|
+
// Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json)
|
896
|
+
// eslint-disable-next-line import/no-extraneous-dependencies
|
897
|
+
var supportsColor = supportsColor_1;
|
898
|
+
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
899
|
+
exports.colors = [
|
900
|
+
20,
|
901
|
+
21,
|
902
|
+
26,
|
903
|
+
27,
|
904
|
+
32,
|
905
|
+
33,
|
906
|
+
38,
|
907
|
+
39,
|
908
|
+
40,
|
909
|
+
41,
|
910
|
+
42,
|
911
|
+
43,
|
912
|
+
44,
|
913
|
+
45,
|
914
|
+
56,
|
915
|
+
57,
|
916
|
+
62,
|
917
|
+
63,
|
918
|
+
68,
|
919
|
+
69,
|
920
|
+
74,
|
921
|
+
75,
|
922
|
+
76,
|
923
|
+
77,
|
924
|
+
78,
|
925
|
+
79,
|
926
|
+
80,
|
927
|
+
81,
|
928
|
+
92,
|
929
|
+
93,
|
930
|
+
98,
|
931
|
+
99,
|
932
|
+
112,
|
933
|
+
113,
|
934
|
+
128,
|
935
|
+
129,
|
936
|
+
134,
|
937
|
+
135,
|
938
|
+
148,
|
939
|
+
149,
|
940
|
+
160,
|
941
|
+
161,
|
942
|
+
162,
|
943
|
+
163,
|
944
|
+
164,
|
945
|
+
165,
|
946
|
+
166,
|
947
|
+
167,
|
948
|
+
168,
|
949
|
+
169,
|
950
|
+
170,
|
951
|
+
171,
|
952
|
+
172,
|
953
|
+
173,
|
954
|
+
178,
|
955
|
+
179,
|
956
|
+
184,
|
957
|
+
185,
|
958
|
+
196,
|
959
|
+
197,
|
960
|
+
198,
|
961
|
+
199,
|
962
|
+
200,
|
963
|
+
201,
|
964
|
+
202,
|
965
|
+
203,
|
966
|
+
204,
|
967
|
+
205,
|
968
|
+
206,
|
969
|
+
207,
|
970
|
+
208,
|
971
|
+
209,
|
972
|
+
214,
|
973
|
+
215,
|
974
|
+
220,
|
975
|
+
221
|
976
|
+
];
|
977
|
+
}
|
978
|
+
} catch (error) {
|
979
|
+
// Swallow - we only care if `supports-color` is available; it doesn't have to be.
|
980
|
+
}
|
981
|
+
/**
|
982
|
+
* Build up the default `inspectOpts` object from the environment variables.
|
983
|
+
*
|
984
|
+
* $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js
|
985
|
+
*/ exports.inspectOpts = Object.keys(process.env).filter(function(key) {
|
986
|
+
return /^debug_/i.test(key);
|
987
|
+
}).reduce(function(obj, key) {
|
988
|
+
// Camel-case
|
989
|
+
var prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, function(_, k) {
|
990
|
+
return k.toUpperCase();
|
991
|
+
});
|
992
|
+
// Coerce string value into JS value
|
993
|
+
var val = process.env[key];
|
994
|
+
if (/^(yes|on|true|enabled)$/i.test(val)) {
|
995
|
+
val = true;
|
996
|
+
} else if (/^(no|off|false|disabled)$/i.test(val)) {
|
997
|
+
val = false;
|
998
|
+
} else if (val === "null") {
|
999
|
+
val = null;
|
1000
|
+
} else {
|
1001
|
+
val = Number(val);
|
1002
|
+
}
|
1003
|
+
obj[prop] = val;
|
1004
|
+
return obj;
|
1005
|
+
}, {});
|
1006
|
+
/**
|
1007
|
+
* Is stdout a TTY? Colored output is enabled when `true`.
|
1008
|
+
*/ function useColors() {
|
1009
|
+
return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
|
1010
|
+
}
|
1011
|
+
/**
|
1012
|
+
* Adds ANSI color escape codes if enabled.
|
1013
|
+
*
|
1014
|
+
* @api public
|
1015
|
+
*/ function formatArgs(args) {
|
1016
|
+
var _this = this, name = _this.namespace, _$useColors = _this.useColors;
|
1017
|
+
if (_$useColors) {
|
1018
|
+
var c = this.color;
|
1019
|
+
var colorCode = "\x1b[3" + (c < 8 ? c : "8;5;" + c);
|
1020
|
+
var prefix = " ".concat(colorCode, ";1m").concat(name, " \x1b[0m");
|
1021
|
+
args[0] = prefix + args[0].split("\n").join("\n" + prefix);
|
1022
|
+
args.push(colorCode + "m+" + module.exports.humanize(this.diff) + "\x1b[0m");
|
1023
|
+
} else {
|
1024
|
+
args[0] = getDate() + name + " " + args[0];
|
1025
|
+
}
|
1026
|
+
}
|
1027
|
+
function getDate() {
|
1028
|
+
if (exports.inspectOpts.hideDate) {
|
1029
|
+
return "";
|
1030
|
+
}
|
1031
|
+
return new Date().toISOString() + " ";
|
1032
|
+
}
|
1033
|
+
/**
|
1034
|
+
* Invokes `util.formatWithOptions()` with the specified arguments and writes to stderr.
|
1035
|
+
*/ function log() {
|
1036
|
+
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
|
1037
|
+
args[_key] = arguments[_key];
|
1038
|
+
}
|
1039
|
+
var _util;
|
1040
|
+
return process.stderr.write((_util = util).formatWithOptions.apply(_util, [
|
1041
|
+
exports.inspectOpts
|
1042
|
+
].concat(_to_consumable_array(args))) + "\n");
|
1043
|
+
}
|
1044
|
+
/**
|
1045
|
+
* Save `namespaces`.
|
1046
|
+
*
|
1047
|
+
* @param {String} namespaces
|
1048
|
+
* @api private
|
1049
|
+
*/ function save(namespaces) {
|
1050
|
+
if (namespaces) {
|
1051
|
+
process.env.DEBUG = namespaces;
|
1052
|
+
} else {
|
1053
|
+
// If you set a process.env field to null or undefined, it gets cast to the
|
1054
|
+
// string 'null' or 'undefined'. Just delete instead.
|
1055
|
+
delete process.env.DEBUG;
|
1056
|
+
}
|
1057
|
+
}
|
1058
|
+
/**
|
1059
|
+
* Load `namespaces`.
|
1060
|
+
*
|
1061
|
+
* @return {String} returns the previously persisted debug modes
|
1062
|
+
* @api private
|
1063
|
+
*/ function load() {
|
1064
|
+
return process.env.DEBUG;
|
1065
|
+
}
|
1066
|
+
/**
|
1067
|
+
* Init logic for `debug` instances.
|
1068
|
+
*
|
1069
|
+
* Create a new `inspectOpts` object in case `useColors` is set
|
1070
|
+
* differently for a particular `debug` instance.
|
1071
|
+
*/ function init(debug) {
|
1072
|
+
debug.inspectOpts = {};
|
1073
|
+
var keys = Object.keys(exports.inspectOpts);
|
1074
|
+
for(var i = 0; i < keys.length; i++){
|
1075
|
+
debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
|
1076
|
+
}
|
1077
|
+
}
|
1078
|
+
module.exports = common(exports);
|
1079
|
+
var formatters = module.exports.formatters;
|
1080
|
+
/**
|
1081
|
+
* Map %o to `util.inspect()`, all on a single line.
|
1082
|
+
*/ formatters.o = function(v) {
|
1083
|
+
this.inspectOpts.colors = this.useColors;
|
1084
|
+
return util.inspect(v, this.inspectOpts).split("\n").map(function(str) {
|
1085
|
+
return str.trim();
|
1086
|
+
}).join(" ");
|
1087
|
+
};
|
1088
|
+
/**
|
1089
|
+
* Map %O to `util.inspect()`, allowing multiple lines if needed.
|
1090
|
+
*/ formatters.O = function(v) {
|
1091
|
+
this.inspectOpts.colors = this.useColors;
|
1092
|
+
return util.inspect(v, this.inspectOpts);
|
1093
|
+
};
|
1094
|
+
}(node, node.exports));
|
1041
1095
|
|
1042
1096
|
/**
|
1043
1097
|
* Detect Electron renderer / nwjs process, which is node, but we should
|
1044
1098
|
* treat as a browser.
|
1045
1099
|
*/
|
1046
1100
|
|
1047
|
-
if (typeof process ===
|
1048
|
-
src.exports =
|
1101
|
+
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
1102
|
+
src.exports = browser.exports;
|
1049
1103
|
} else {
|
1050
|
-
src.exports =
|
1104
|
+
src.exports = node.exports;
|
1051
1105
|
}
|
1052
1106
|
|
1053
|
-
var
|
1054
|
-
var debug = /*@__PURE__*/getDefaultExportFromCjs(srcExports);
|
1107
|
+
var debug = src.exports;
|
1055
1108
|
|
1056
1109
|
(function (exports) {
|
1057
|
-
|
1058
|
-
|
1059
|
-
|
1060
|
-
|
1061
|
-
|
1062
|
-
|
1063
|
-
|
1064
|
-
|
1065
|
-
|
1066
|
-
|
1067
|
-
|
1068
|
-
|
1069
|
-
|
1070
|
-
|
1071
|
-
|
1072
|
-
|
1073
|
-
|
1074
|
-
|
1075
|
-
|
1076
|
-
|
1077
|
-
|
1078
|
-
|
1079
|
-
|
1080
|
-
|
1081
|
-
|
1082
|
-
|
1083
|
-
|
1084
|
-
|
1085
|
-
|
1086
|
-
|
1087
|
-
|
1088
|
-
|
1089
|
-
|
1090
|
-
|
1091
|
-
|
1092
|
-
|
1093
|
-
|
1094
|
-
|
1095
|
-
|
1096
|
-
|
1097
|
-
|
1098
|
-
|
1099
|
-
|
1100
|
-
|
1101
|
-
|
1102
|
-
|
1103
|
-
|
1104
|
-
|
1105
|
-
|
1106
|
-
|
1107
|
-
|
1108
|
-
|
1109
|
-
|
1110
|
-
}
|
1110
|
+
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
1111
|
+
return mod && mod.__esModule ? mod : {
|
1112
|
+
"default": mod
|
1113
|
+
};
|
1114
|
+
};
|
1115
|
+
Object.defineProperty(exports, "__esModule", {
|
1116
|
+
value: true
|
1117
|
+
});
|
1118
|
+
var fs_1 = require$$0$1;
|
1119
|
+
var debug_1 = __importDefault(src.exports);
|
1120
|
+
var log = debug_1.default("@kwsites/file-exists");
|
1121
|
+
function check(path, isFile, isDirectory) {
|
1122
|
+
log("checking %s", path);
|
1123
|
+
try {
|
1124
|
+
var stat = fs_1.statSync(path);
|
1125
|
+
if (stat.isFile() && isFile) {
|
1126
|
+
log("[OK] path represents a file");
|
1127
|
+
return true;
|
1128
|
+
}
|
1129
|
+
if (stat.isDirectory() && isDirectory) {
|
1130
|
+
log("[OK] path represents a directory");
|
1131
|
+
return true;
|
1132
|
+
}
|
1133
|
+
log("[FAIL] path represents something other than a file or directory");
|
1134
|
+
return false;
|
1135
|
+
} catch (e) {
|
1136
|
+
if (e.code === "ENOENT") {
|
1137
|
+
log("[FAIL] path is not accessible: %o", e);
|
1138
|
+
return false;
|
1139
|
+
}
|
1140
|
+
log("[FATAL] %o", e);
|
1141
|
+
throw e;
|
1142
|
+
}
|
1143
|
+
}
|
1144
|
+
/**
|
1145
|
+
* Synchronous validation of a path existing either as a file or as a directory.
|
1146
|
+
*
|
1147
|
+
* @param {string} path The path to check
|
1148
|
+
* @param {number} type One or both of the exported numeric constants
|
1149
|
+
*/ function exists(path) {
|
1150
|
+
var type = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : exports.READABLE;
|
1151
|
+
return check(path, (type & exports.FILE) > 0, (type & exports.FOLDER) > 0);
|
1152
|
+
}
|
1153
|
+
exports.exists = exists;
|
1154
|
+
/**
|
1155
|
+
* Constant representing a file
|
1156
|
+
*/ exports.FILE = 1;
|
1157
|
+
/**
|
1158
|
+
* Constant representing a folder
|
1159
|
+
*/ exports.FOLDER = 2;
|
1160
|
+
/**
|
1161
|
+
* Constant representing either a file or a folder
|
1162
|
+
*/ exports.READABLE = exports.FILE + exports.FOLDER;
|
1163
|
+
}(src$1));
|
1111
1164
|
|
1112
1165
|
(function (exports) {
|
1113
|
-
|
1114
|
-
|
1115
|
-
|
1116
|
-
|
1117
|
-
|
1118
|
-
|
1119
|
-
|
1120
|
-
}
|
1166
|
+
function __export(m) {
|
1167
|
+
for(var p in m)if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
1168
|
+
}
|
1169
|
+
Object.defineProperty(exports, "__esModule", {
|
1170
|
+
value: true
|
1171
|
+
});
|
1172
|
+
__export(src$1);
|
1173
|
+
}(dist$1));
|
1121
1174
|
|
1122
1175
|
var dist = {};
|
1123
1176
|
|
@@ -1134,7 +1187,7 @@ var createDeferred = dist.createDeferred = deferred_1 = dist.deferred = void 0;
|
|
1134
1187
|
*/ function deferred() {
|
1135
1188
|
var done;
|
1136
1189
|
var fail;
|
1137
|
-
var status =
|
1190
|
+
var status = "pending";
|
1138
1191
|
var promise = new Promise(function(_done, _fail) {
|
1139
1192
|
done = _done;
|
1140
1193
|
fail = _fail;
|
@@ -1142,19 +1195,19 @@ var createDeferred = dist.createDeferred = deferred_1 = dist.deferred = void 0;
|
|
1142
1195
|
return {
|
1143
1196
|
promise: promise,
|
1144
1197
|
done: function done1(result) {
|
1145
|
-
if (status ===
|
1146
|
-
status =
|
1198
|
+
if (status === "pending") {
|
1199
|
+
status = "resolved";
|
1147
1200
|
done(result);
|
1148
1201
|
}
|
1149
1202
|
},
|
1150
1203
|
fail: function fail1(error) {
|
1151
|
-
if (status ===
|
1152
|
-
status =
|
1204
|
+
if (status === "pending") {
|
1205
|
+
status = "rejected";
|
1153
1206
|
fail(error);
|
1154
1207
|
}
|
1155
1208
|
},
|
1156
1209
|
get fulfilled () {
|
1157
|
-
return status !==
|
1210
|
+
return status !== "pending";
|
1158
1211
|
},
|
1159
1212
|
get status () {
|
1160
1213
|
return status;
|
@@ -1195,35 +1248,6 @@ function _assert_this_initialized(self) {
|
|
1195
1248
|
}
|
1196
1249
|
return self;
|
1197
1250
|
}
|
1198
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
1199
|
-
try {
|
1200
|
-
var info = gen[key](arg);
|
1201
|
-
var value = info.value;
|
1202
|
-
} catch (error) {
|
1203
|
-
reject(error);
|
1204
|
-
return;
|
1205
|
-
}
|
1206
|
-
if (info.done) {
|
1207
|
-
resolve(value);
|
1208
|
-
} else {
|
1209
|
-
Promise.resolve(value).then(_next, _throw);
|
1210
|
-
}
|
1211
|
-
}
|
1212
|
-
function _async_to_generator(fn) {
|
1213
|
-
return function() {
|
1214
|
-
var self = this, args = arguments;
|
1215
|
-
return new Promise(function(resolve, reject) {
|
1216
|
-
var gen = fn.apply(self, args);
|
1217
|
-
function _next(value) {
|
1218
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
1219
|
-
}
|
1220
|
-
function _throw(err) {
|
1221
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
1222
|
-
}
|
1223
|
-
_next(undefined);
|
1224
|
-
});
|
1225
|
-
};
|
1226
|
-
}
|
1227
1251
|
function _class_call_check(instance, Constructor) {
|
1228
1252
|
if (!(instance instanceof Constructor)) {
|
1229
1253
|
throw new TypeError("Cannot call a class as a function");
|
@@ -1351,40 +1375,6 @@ function _non_iterable_rest() {
|
|
1351
1375
|
function _non_iterable_spread() {
|
1352
1376
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
1353
1377
|
}
|
1354
|
-
function _object_spread(target) {
|
1355
|
-
for(var i = 1; i < arguments.length; i++){
|
1356
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
1357
|
-
var ownKeys = Object.keys(source);
|
1358
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
1359
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
1360
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
1361
|
-
}));
|
1362
|
-
}
|
1363
|
-
ownKeys.forEach(function(key) {
|
1364
|
-
_define_property(target, key, source[key]);
|
1365
|
-
});
|
1366
|
-
}
|
1367
|
-
return target;
|
1368
|
-
}
|
1369
|
-
function ownKeys(object, enumerableOnly) {
|
1370
|
-
var keys = Object.keys(object);
|
1371
|
-
if (Object.getOwnPropertySymbols) {
|
1372
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
1373
|
-
keys.push.apply(keys, symbols);
|
1374
|
-
}
|
1375
|
-
return keys;
|
1376
|
-
}
|
1377
|
-
function _object_spread_props(target, source) {
|
1378
|
-
source = source != null ? source : {};
|
1379
|
-
if (Object.getOwnPropertyDescriptors) {
|
1380
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
1381
|
-
} else {
|
1382
|
-
ownKeys(Object(source)).forEach(function(key) {
|
1383
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
1384
|
-
});
|
1385
|
-
}
|
1386
|
-
return target;
|
1387
|
-
}
|
1388
1378
|
function _possible_constructor_return(self, call) {
|
1389
1379
|
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
1390
1380
|
return call;
|
@@ -1569,9 +1559,48 @@ function _ts_generator(thisArg, body) {
|
|
1569
1559
|
}
|
1570
1560
|
}
|
1571
1561
|
var __defProp = Object.defineProperty;
|
1562
|
+
var __defProps = Object.defineProperties;
|
1572
1563
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
1564
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
1573
1565
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
1566
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
1574
1567
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
1568
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
1569
|
+
var __defNormalProp = function(obj, key, value) {
|
1570
|
+
return key in obj ? __defProp(obj, key, {
|
1571
|
+
enumerable: true,
|
1572
|
+
configurable: true,
|
1573
|
+
writable: true,
|
1574
|
+
value: value
|
1575
|
+
}) : obj[key] = value;
|
1576
|
+
};
|
1577
|
+
var __spreadValues = function(a, b) {
|
1578
|
+
for(var prop in b || (b = {}))if (__hasOwnProp.call(b, prop)) __defNormalProp(a, prop, b[prop]);
|
1579
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
1580
|
+
if (__getOwnPropSymbols) try {
|
1581
|
+
for(var _iterator = __getOwnPropSymbols(b)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
1582
|
+
var prop = _step.value;
|
1583
|
+
if (__propIsEnum.call(b, prop)) __defNormalProp(a, prop, b[prop]);
|
1584
|
+
}
|
1585
|
+
} catch (err) {
|
1586
|
+
_didIteratorError = true;
|
1587
|
+
_iteratorError = err;
|
1588
|
+
} finally{
|
1589
|
+
try {
|
1590
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
1591
|
+
_iterator.return();
|
1592
|
+
}
|
1593
|
+
} finally{
|
1594
|
+
if (_didIteratorError) {
|
1595
|
+
throw _iteratorError;
|
1596
|
+
}
|
1597
|
+
}
|
1598
|
+
}
|
1599
|
+
return a;
|
1600
|
+
};
|
1601
|
+
var __spreadProps = function(a, b) {
|
1602
|
+
return __defProps(a, __getOwnPropDescs(b));
|
1603
|
+
};
|
1575
1604
|
var __esm = function(fn, res) {
|
1576
1605
|
return function __init() {
|
1577
1606
|
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
@@ -1591,7 +1620,7 @@ var __export = function(target, all) {
|
|
1591
1620
|
});
|
1592
1621
|
};
|
1593
1622
|
var __copyProps = function(to, from, except, desc) {
|
1594
|
-
if (from &&
|
1623
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
1595
1624
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
1596
1625
|
try {
|
1597
1626
|
var _loop = function() {
|
@@ -1626,6 +1655,28 @@ var __toCommonJS = function(mod) {
|
|
1626
1655
|
value: true
|
1627
1656
|
}), mod);
|
1628
1657
|
};
|
1658
|
+
var __async = function(__this, __arguments, generator) {
|
1659
|
+
return new Promise(function(resolve, reject) {
|
1660
|
+
var fulfilled = function(value) {
|
1661
|
+
try {
|
1662
|
+
step(generator.next(value));
|
1663
|
+
} catch (e) {
|
1664
|
+
reject(e);
|
1665
|
+
}
|
1666
|
+
};
|
1667
|
+
var rejected = function(value) {
|
1668
|
+
try {
|
1669
|
+
step(generator.throw(value));
|
1670
|
+
} catch (e) {
|
1671
|
+
reject(e);
|
1672
|
+
}
|
1673
|
+
};
|
1674
|
+
var step = function(x) {
|
1675
|
+
return x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
1676
|
+
};
|
1677
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
1678
|
+
});
|
1679
|
+
};
|
1629
1680
|
// src/lib/args/pathspec.ts
|
1630
1681
|
function pathspec() {
|
1631
1682
|
for(var _len = arguments.length, paths = new Array(_len), _key = 0; _key < _len; _key++){
|
@@ -1702,10 +1753,7 @@ var init_task_configuration_error = __esm({
|
|
1702
1753
|
}
|
1703
1754
|
});
|
1704
1755
|
function asFunction(source) {
|
1705
|
-
|
1706
|
-
return NOOP;
|
1707
|
-
}
|
1708
|
-
return source;
|
1756
|
+
return typeof source === "function" ? source : NOOP;
|
1709
1757
|
}
|
1710
1758
|
function isUserFunction(source) {
|
1711
1759
|
return typeof source === "function" && source !== NOOP;
|
@@ -1810,7 +1858,7 @@ function prefixedArray(input, prefix) {
|
|
1810
1858
|
return output;
|
1811
1859
|
}
|
1812
1860
|
function bufferToString(input) {
|
1813
|
-
return (Array.isArray(input) ? Buffer
|
1861
|
+
return (Array.isArray(input) ? Buffer.concat(input) : input).toString("utf-8");
|
1814
1862
|
}
|
1815
1863
|
function pick(source, properties) {
|
1816
1864
|
var _Object;
|
@@ -1900,20 +1948,20 @@ var GitOutputStreams;
|
|
1900
1948
|
var init_git_output_streams = __esm({
|
1901
1949
|
"src/lib/utils/git-output-streams.ts": function() {
|
1902
1950
|
GitOutputStreams = /*#__PURE__*/ function() {
|
1903
|
-
function
|
1904
|
-
_class_call_check(this,
|
1951
|
+
function GitOutputStreams1(stdOut, stdErr) {
|
1952
|
+
_class_call_check(this, GitOutputStreams1);
|
1905
1953
|
this.stdOut = stdOut;
|
1906
1954
|
this.stdErr = stdErr;
|
1907
1955
|
}
|
1908
|
-
_create_class(
|
1956
|
+
_create_class(GitOutputStreams1, [
|
1909
1957
|
{
|
1910
1958
|
key: "asStrings",
|
1911
1959
|
value: function asStrings() {
|
1912
|
-
return new
|
1960
|
+
return new GitOutputStreams(this.stdOut.toString("utf8"), this.stdErr.toString("utf8"));
|
1913
1961
|
}
|
1914
1962
|
}
|
1915
1963
|
]);
|
1916
|
-
return
|
1964
|
+
return GitOutputStreams1;
|
1917
1965
|
}();
|
1918
1966
|
}
|
1919
1967
|
});
|
@@ -1944,7 +1992,6 @@ var init_line_parser = __esm({
|
|
1944
1992
|
}
|
1945
1993
|
_create_class(LineParser, [
|
1946
1994
|
{
|
1947
|
-
// @ts-ignore
|
1948
1995
|
key: "useMatches",
|
1949
1996
|
value: function useMatches(target, match) {
|
1950
1997
|
throw new Error("LineParser:useMatches not implemented");
|
@@ -2017,11 +2064,11 @@ function createInstanceConfig() {
|
|
2017
2064
|
var _Object;
|
2018
2065
|
var baseDir = process.cwd();
|
2019
2066
|
var config = (_Object = Object).assign.apply(_Object, [
|
2020
|
-
|
2067
|
+
__spreadValues({
|
2021
2068
|
baseDir: baseDir
|
2022
2069
|
}, defaultOptions)
|
2023
2070
|
].concat(_to_consumable_array(options.filter(function(o) {
|
2024
|
-
return
|
2071
|
+
return typeof o === "object" && o;
|
2025
2072
|
}))));
|
2026
2073
|
config.baseDir = config.baseDir || baseDir;
|
2027
2074
|
config.trimmed = config.trimmed === true;
|
@@ -2052,32 +2099,6 @@ function appendTaskOptions(options) {
|
|
2052
2099
|
"boolean"
|
2053
2100
|
])) {
|
2054
2101
|
commands2.push(key + "=" + value);
|
2055
|
-
} else if (Array.isArray(value)) {
|
2056
|
-
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
2057
|
-
try {
|
2058
|
-
for(var _iterator = value[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
2059
|
-
var v = _step.value;
|
2060
|
-
if (!filterPrimitives(v, [
|
2061
|
-
"string",
|
2062
|
-
"number"
|
2063
|
-
])) {
|
2064
|
-
commands2.push(key + "=" + v);
|
2065
|
-
}
|
2066
|
-
}
|
2067
|
-
} catch (err) {
|
2068
|
-
_didIteratorError = true;
|
2069
|
-
_iteratorError = err;
|
2070
|
-
} finally{
|
2071
|
-
try {
|
2072
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
2073
|
-
_iterator.return();
|
2074
|
-
}
|
2075
|
-
} finally{
|
2076
|
-
if (_didIteratorError) {
|
2077
|
-
throw _iteratorError;
|
2078
|
-
}
|
2079
|
-
}
|
2080
|
-
}
|
2081
2102
|
} else {
|
2082
2103
|
commands2.push(key);
|
2083
2104
|
}
|
@@ -3200,20 +3221,19 @@ var init_git_logger = __esm({
|
|
3200
3221
|
}
|
3201
3222
|
});
|
3202
3223
|
// src/lib/runners/tasks-pending-queue.ts
|
3203
|
-
var TasksPendingQueue;
|
3224
|
+
var _TasksPendingQueue, TasksPendingQueue;
|
3204
3225
|
var init_tasks_pending_queue = __esm({
|
3205
3226
|
"src/lib/runners/tasks-pending-queue.ts": function() {
|
3206
|
-
var __TasksPendingQueue;
|
3207
3227
|
init_git_error();
|
3208
3228
|
init_git_logger();
|
3209
|
-
|
3210
|
-
function
|
3229
|
+
_TasksPendingQueue = /*#__PURE__*/ function() {
|
3230
|
+
function _TasksPendingQueue1() {
|
3211
3231
|
var logLabel = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "GitExecutor";
|
3212
|
-
_class_call_check(this,
|
3232
|
+
_class_call_check(this, _TasksPendingQueue1);
|
3213
3233
|
this.logLabel = logLabel;
|
3214
3234
|
this._queue = /* @__PURE__ */ new Map();
|
3215
3235
|
}
|
3216
|
-
_create_class(
|
3236
|
+
_create_class(_TasksPendingQueue1, [
|
3217
3237
|
{
|
3218
3238
|
key: "withProgress",
|
3219
3239
|
value: function withProgress(task) {
|
@@ -3304,8 +3324,10 @@ var init_tasks_pending_queue = __esm({
|
|
3304
3324
|
}
|
3305
3325
|
}
|
3306
3326
|
]);
|
3307
|
-
return
|
3308
|
-
}()
|
3327
|
+
return _TasksPendingQueue1;
|
3328
|
+
}();
|
3329
|
+
TasksPendingQueue = _TasksPendingQueue;
|
3330
|
+
TasksPendingQueue.counter = 0;
|
3309
3331
|
}
|
3310
3332
|
});
|
3311
3333
|
function pluginContext(task, commands) {
|
@@ -3384,15 +3406,15 @@ var init_git_executor_chain = __esm({
|
|
3384
3406
|
{
|
3385
3407
|
key: "attemptTask",
|
3386
3408
|
value: function attemptTask(task) {
|
3387
|
-
|
3388
|
-
|
3389
|
-
var onScheduleComplete, onQueueComplete, logger, e;
|
3409
|
+
return __async(this, null, function() {
|
3410
|
+
var _this, onScheduleComplete, onQueueComplete, logger, e;
|
3390
3411
|
return _ts_generator(this, function(_state) {
|
3391
3412
|
switch(_state.label){
|
3392
3413
|
case 0:
|
3414
|
+
_this = this;
|
3393
3415
|
return [
|
3394
3416
|
4,
|
3395
|
-
|
3417
|
+
this._scheduler.next()
|
3396
3418
|
];
|
3397
3419
|
case 1:
|
3398
3420
|
onScheduleComplete = _state.sent();
|
@@ -3407,10 +3429,10 @@ var init_git_executor_chain = __esm({
|
|
3407
3429
|
5,
|
3408
3430
|
6
|
3409
3431
|
]);
|
3410
|
-
logger =
|
3432
|
+
logger = this._queue.attempt(task).logger;
|
3411
3433
|
return [
|
3412
3434
|
4,
|
3413
|
-
isEmptyTask(task) ?
|
3435
|
+
isEmptyTask(task) ? this.attemptEmptyTask(task, logger) : this.attemptRemoteTask(task, logger)
|
3414
3436
|
];
|
3415
3437
|
case 3:
|
3416
3438
|
return [
|
@@ -3419,7 +3441,7 @@ var init_git_executor_chain = __esm({
|
|
3419
3441
|
];
|
3420
3442
|
case 4:
|
3421
3443
|
e = _state.sent();
|
3422
|
-
throw
|
3444
|
+
throw this.onFatalException(task, e);
|
3423
3445
|
case 5:
|
3424
3446
|
onQueueComplete();
|
3425
3447
|
onScheduleComplete();
|
@@ -3432,7 +3454,7 @@ var init_git_executor_chain = __esm({
|
|
3432
3454
|
];
|
3433
3455
|
}
|
3434
3456
|
});
|
3435
|
-
})
|
3457
|
+
});
|
3436
3458
|
}
|
3437
3459
|
},
|
3438
3460
|
{
|
@@ -3449,23 +3471,22 @@ var init_git_executor_chain = __esm({
|
|
3449
3471
|
{
|
3450
3472
|
key: "attemptRemoteTask",
|
3451
3473
|
value: function attemptRemoteTask(task, logger) {
|
3452
|
-
|
3453
|
-
return _async_to_generator(function() {
|
3474
|
+
return __async(this, null, function() {
|
3454
3475
|
var binary, args, raw, outputStreams;
|
3455
3476
|
return _ts_generator(this, function(_state) {
|
3456
3477
|
switch(_state.label){
|
3457
3478
|
case 0:
|
3458
|
-
binary =
|
3459
|
-
args =
|
3479
|
+
binary = this._plugins.exec("spawn.binary", "", pluginContext(task, task.commands));
|
3480
|
+
args = this._plugins.exec("spawn.args", _to_consumable_array(task.commands), pluginContext(task, task.commands));
|
3460
3481
|
return [
|
3461
3482
|
4,
|
3462
|
-
|
3483
|
+
this.gitResponse(task, binary, args, this.outputHandler, logger.step("SPAWN"))
|
3463
3484
|
];
|
3464
3485
|
case 1:
|
3465
3486
|
raw = _state.sent();
|
3466
3487
|
return [
|
3467
3488
|
4,
|
3468
|
-
|
3489
|
+
this.handleTaskData(task, args, raw, logger.step("HANDLE"))
|
3469
3490
|
];
|
3470
3491
|
case 2:
|
3471
3492
|
outputStreams = _state.sent();
|
@@ -3482,22 +3503,21 @@ var init_git_executor_chain = __esm({
|
|
3482
3503
|
];
|
3483
3504
|
}
|
3484
3505
|
});
|
3485
|
-
})
|
3506
|
+
});
|
3486
3507
|
}
|
3487
3508
|
},
|
3488
3509
|
{
|
3489
3510
|
key: "attemptEmptyTask",
|
3490
3511
|
value: function attemptEmptyTask(task, logger) {
|
3491
|
-
|
3492
|
-
return _async_to_generator(function() {
|
3512
|
+
return __async(this, null, function() {
|
3493
3513
|
return _ts_generator(this, function(_state) {
|
3494
3514
|
logger("empty task bypassing child process to call to task's parser");
|
3495
3515
|
return [
|
3496
3516
|
2,
|
3497
|
-
task.parser(
|
3517
|
+
task.parser(this)
|
3498
3518
|
];
|
3499
3519
|
});
|
3500
|
-
})
|
3520
|
+
});
|
3501
3521
|
}
|
3502
3522
|
},
|
3503
3523
|
{
|
@@ -3509,7 +3529,7 @@ var init_git_executor_chain = __esm({
|
|
3509
3529
|
logger("Preparing to handle process response exitCode=%d stdOut=", exitCode);
|
3510
3530
|
var error = _this._plugins.exec("task.error", {
|
3511
3531
|
error: rejection
|
3512
|
-
},
|
3532
|
+
}, __spreadValues(__spreadValues({}, pluginContext(task, args)), result)).error;
|
3513
3533
|
if (error && task.onError) {
|
3514
3534
|
logger.info("exitCode=%s handling with custom error handler");
|
3515
3535
|
return task.onError(result, error, function(newStdOut) {
|
@@ -3530,14 +3550,14 @@ var init_git_executor_chain = __esm({
|
|
3530
3550
|
{
|
3531
3551
|
key: "gitResponse",
|
3532
3552
|
value: function gitResponse(task, command, args, outputHandler, logger) {
|
3533
|
-
|
3534
|
-
|
3535
|
-
var outputLogger, spawnOptions;
|
3553
|
+
return __async(this, null, function() {
|
3554
|
+
var _this, outputLogger, spawnOptions;
|
3536
3555
|
return _ts_generator(this, function(_state) {
|
3556
|
+
_this = this;
|
3537
3557
|
outputLogger = logger.sibling("output");
|
3538
|
-
spawnOptions =
|
3539
|
-
cwd:
|
3540
|
-
env:
|
3558
|
+
spawnOptions = this._plugins.exec("spawn.options", {
|
3559
|
+
cwd: this.cwd,
|
3560
|
+
env: this.env,
|
3541
3561
|
windowsHide: true
|
3542
3562
|
}, pluginContext(task, task.commands));
|
3543
3563
|
return [
|
@@ -3556,7 +3576,7 @@ var init_git_executor_chain = __esm({
|
|
3556
3576
|
rejection: rejection
|
3557
3577
|
});
|
3558
3578
|
}
|
3559
|
-
_this._plugins.exec("spawn.before", void 0,
|
3579
|
+
_this._plugins.exec("spawn.before", void 0, __spreadProps(__spreadValues({}, pluginContext(task, args)), {
|
3560
3580
|
kill: function kill(reason) {
|
3561
3581
|
rejection = reason || rejection;
|
3562
3582
|
}
|
@@ -3569,7 +3589,7 @@ var init_git_executor_chain = __esm({
|
|
3569
3589
|
logger("Passing child process stdOut/stdErr to custom outputHandler");
|
3570
3590
|
outputHandler(command, spawned.stdout, spawned.stderr, _to_consumable_array(args));
|
3571
3591
|
}
|
3572
|
-
_this._plugins.exec("spawn.after", void 0,
|
3592
|
+
_this._plugins.exec("spawn.after", void 0, __spreadProps(__spreadValues({}, pluginContext(task, args)), {
|
3573
3593
|
spawned: spawned,
|
3574
3594
|
close: function close(exitCode, reason) {
|
3575
3595
|
done({
|
@@ -3590,14 +3610,14 @@ var init_git_executor_chain = __esm({
|
|
3590
3610
|
})
|
3591
3611
|
];
|
3592
3612
|
});
|
3593
|
-
})
|
3613
|
+
});
|
3594
3614
|
}
|
3595
3615
|
},
|
3596
3616
|
{
|
3597
3617
|
key: "_beforeSpawn",
|
3598
3618
|
value: function _beforeSpawn(task, args) {
|
3599
3619
|
var rejection;
|
3600
|
-
this._plugins.exec("spawn.before", void 0,
|
3620
|
+
this._plugins.exec("spawn.before", void 0, __spreadProps(__spreadValues({}, pluginContext(task, args)), {
|
3601
3621
|
kill: function kill(reason) {
|
3602
3622
|
rejection = reason || rejection;
|
3603
3623
|
}
|
@@ -3654,7 +3674,7 @@ function taskCallback(task, response) {
|
|
3654
3674
|
callback(null, data);
|
3655
3675
|
};
|
3656
3676
|
var onError2 = function(err) {
|
3657
|
-
if ((err
|
3677
|
+
if ((err == null ? void 0 : err.task) === task) {
|
3658
3678
|
callback(_instanceof(err, GitResponseError) ? addDeprecationNoticeToError(err) : err, void 0);
|
3659
3679
|
}
|
3660
3680
|
};
|
@@ -4042,8 +4062,8 @@ var init_parse_diff_summary = __esm({
|
|
4042
4062
|
var inserted = /(\d+) i/.exec(summary);
|
4043
4063
|
var deleted = /(\d+) d/.exec(summary);
|
4044
4064
|
result.changed = asNumber(changed);
|
4045
|
-
result.insertions = asNumber(inserted
|
4046
|
-
result.deletions = asNumber(deleted
|
4065
|
+
result.insertions = asNumber(inserted == null ? void 0 : inserted[1]);
|
4066
|
+
result.deletions = asNumber(deleted == null ? void 0 : deleted[1]);
|
4047
4067
|
})
|
4048
4068
|
];
|
4049
4069
|
numStatParser = [
|
@@ -4091,7 +4111,7 @@ var init_parse_diff_summary = __esm({
|
|
4091
4111
|
var _param = _sliced_to_array(param, 5), status = _param[0], similarity = _param[1], from = _param[2]; _param[3]; var to = _param[4];
|
4092
4112
|
result.changed++;
|
4093
4113
|
result.files.push({
|
4094
|
-
file: to
|
4114
|
+
file: to != null ? to : from,
|
4095
4115
|
changes: 0,
|
4096
4116
|
insertions: 0,
|
4097
4117
|
deletions: 0,
|
@@ -4140,9 +4160,9 @@ var init_parse_list_log_summary = __esm({
|
|
4140
4160
|
init_utils();
|
4141
4161
|
init_parse_diff_summary();
|
4142
4162
|
init_log_format();
|
4143
|
-
START_BOUNDARY = "\
|
4144
|
-
COMMIT_BOUNDARY = " \
|
4145
|
-
SPLITTER = " \
|
4163
|
+
START_BOUNDARY = "\xf2\xf2\xf2\xf2\xf2\xf2 ";
|
4164
|
+
COMMIT_BOUNDARY = " \xf2\xf2";
|
4165
|
+
SPLITTER = " \xf2 ";
|
4146
4166
|
defaultFieldNames = [
|
4147
4167
|
"hash",
|
4148
4168
|
"date",
|
@@ -4220,7 +4240,7 @@ function userOptions(input) {
|
|
4220
4240
|
function parseLogOptions() {
|
4221
4241
|
var opt = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, customArgs = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
4222
4242
|
var splitter = filterType(opt.splitter, filterString, SPLITTER);
|
4223
|
-
var format =
|
4243
|
+
var format = !filterPrimitives(opt.format) && opt.format ? opt.format : {
|
4224
4244
|
hash: "%H",
|
4225
4245
|
date: opt.strictDate === false ? "%ai" : "%aI",
|
4226
4246
|
message: "%s",
|
@@ -4669,7 +4689,7 @@ var init_parse_push = __esm({
|
|
4669
4689
|
}),
|
4670
4690
|
new LineParser(/^updating local tracking ref '(.+)'/, function(result, param) {
|
4671
4691
|
var _param = _sliced_to_array(param, 1), local = _param[0];
|
4672
|
-
result.ref =
|
4692
|
+
result.ref = __spreadProps(__spreadValues({}, result.ref || {}), {
|
4673
4693
|
local: local
|
4674
4694
|
});
|
4675
4695
|
}),
|
@@ -4679,7 +4699,7 @@ var init_parse_push = __esm({
|
|
4679
4699
|
}),
|
4680
4700
|
new LineParser(/^Branch '([^']+)' set up to track remote branch '([^']+)' from '([^']+)'/, function(result, param) {
|
4681
4701
|
var _param = _sliced_to_array(param, 3), local = _param[0], remote = _param[1], remoteName = _param[2];
|
4682
|
-
result.branch =
|
4702
|
+
result.branch = __spreadProps(__spreadValues({}, result.branch || {}), {
|
4683
4703
|
local: local,
|
4684
4704
|
remote: remote,
|
4685
4705
|
remoteName: remoteName
|
@@ -4702,7 +4722,7 @@ var init_parse_push = __esm({
|
|
4702
4722
|
parsePushResult = function(stdOut, stdErr) {
|
4703
4723
|
var pushDetail = parsePushDetail(stdOut, stdErr);
|
4704
4724
|
var responseDetail = parseRemoteMessages(stdOut, stdErr);
|
4705
|
-
return
|
4725
|
+
return __spreadValues(__spreadValues({}, pushDetail), responseDetail);
|
4706
4726
|
};
|
4707
4727
|
parsePushDetail = function(stdOut, stdErr) {
|
4708
4728
|
return parseStringResponse({
|
@@ -5115,7 +5135,7 @@ var init_simple_git_api = __esm({
|
|
5115
5135
|
if (typeof directory === "string") {
|
5116
5136
|
return this._runTask(changeWorkingDirectoryTask(directory, this._executor), next);
|
5117
5137
|
}
|
5118
|
-
if (typeof (directory
|
5138
|
+
if (typeof (directory == null ? void 0 : directory.path) === "string") {
|
5119
5139
|
return this._runTask(changeWorkingDirectoryTask(directory.path, directory.root && this._executor || void 0), next);
|
5120
5140
|
}
|
5121
5141
|
return this._runTask(configurationErrorTask("Git.cwd: workingDirectory must be supplied as a string"), next);
|
@@ -5200,7 +5220,7 @@ var init_scheduler = __esm({
|
|
5200
5220
|
"src/lib/runners/scheduler.ts": function() {
|
5201
5221
|
init_utils();
|
5202
5222
|
init_git_logger();
|
5203
|
-
createScheduledTask =
|
5223
|
+
createScheduledTask = function() {
|
5204
5224
|
var id = 0;
|
5205
5225
|
return function() {
|
5206
5226
|
id++;
|
@@ -5394,7 +5414,7 @@ var init_parse_branch = __esm({
|
|
5394
5414
|
var _param = _sliced_to_array(param, 4), current = _param[0], name = _param[1], commit = _param[2], label = _param[3];
|
5395
5415
|
result.push(branchStatus(current), true, name, commit, label);
|
5396
5416
|
}),
|
5397
|
-
new LineParser(RegExp("^([*+]\\s)?(\\S+)\\s+([a-z0-9]+)\\s?(.*)$", "s"), function(result, param) {
|
5417
|
+
new LineParser(new RegExp("^([*+]\\s)?(\\S+)\\s+([a-z0-9]+)\\s?(.*)$", "s"), function(result, param) {
|
5398
5418
|
var _param = _sliced_to_array(param, 4), current = _param[0], name = _param[1], commit = _param[2], label = _param[3];
|
5399
5419
|
result.push(branchStatus(current), false, name, commit, label);
|
5400
5420
|
})
|
@@ -6093,7 +6113,7 @@ var require_git = __commonJS({
|
|
6093
6113
|
return this;
|
6094
6114
|
};
|
6095
6115
|
Git2.prototype.env = function(name, value) {
|
6096
|
-
if (arguments.length === 1 &&
|
6116
|
+
if (arguments.length === 1 && typeof name === "object") {
|
6097
6117
|
this._executor.env = name;
|
6098
6118
|
} else {
|
6099
6119
|
(this._executor.env = this._executor.env || {})[name] = value;
|
@@ -6493,20 +6513,20 @@ function completionDetectionPlugin() {
|
|
6493
6513
|
}
|
6494
6514
|
return {
|
6495
6515
|
type: "spawn.after",
|
6496
|
-
action: function action(
|
6497
|
-
|
6498
|
-
|
6499
|
-
var _spawned_stdout, _spawned_stderr, events, deferClose, quickClose, err;
|
6516
|
+
action: function action(_0, _1) {
|
6517
|
+
return __async(this, arguments, function(_data, param) {
|
6518
|
+
var spawned, close, _a3, _b, events, deferClose, quickClose, err;
|
6500
6519
|
return _ts_generator(this, function(_state) {
|
6501
6520
|
switch(_state.label){
|
6502
6521
|
case 0:
|
6522
|
+
spawned = param.spawned, close = param.close;
|
6503
6523
|
events = createEvents();
|
6504
6524
|
deferClose = true;
|
6505
6525
|
quickClose = function() {
|
6506
6526
|
return void (deferClose = false);
|
6507
6527
|
};
|
6508
|
-
(
|
6509
|
-
(
|
6528
|
+
(_a3 = spawned.stdout) == null ? void 0 : _a3.on("data", quickClose);
|
6529
|
+
(_b = spawned.stderr) == null ? void 0 : _b.on("data", quickClose);
|
6510
6530
|
spawned.on("error", quickClose);
|
6511
6531
|
spawned.on("close", function(code) {
|
6512
6532
|
return events.close(code);
|
@@ -6558,7 +6578,7 @@ function completionDetectionPlugin() {
|
|
6558
6578
|
];
|
6559
6579
|
}
|
6560
6580
|
});
|
6561
|
-
})
|
6581
|
+
});
|
6562
6582
|
}
|
6563
6583
|
};
|
6564
6584
|
}
|
@@ -6737,11 +6757,11 @@ function progressMonitorPlugin(progress) {
|
|
6737
6757
|
var onProgress = {
|
6738
6758
|
type: "spawn.after",
|
6739
6759
|
action: function action(_data, context) {
|
6740
|
-
var
|
6760
|
+
var _a2;
|
6741
6761
|
if (!context.commands.includes(progressCommand)) {
|
6742
6762
|
return;
|
6743
6763
|
}
|
6744
|
-
(
|
6764
|
+
(_a2 = context.spawned.stderr) == null ? void 0 : _a2.on("data", function(chunk) {
|
6745
6765
|
var message = /^([\s\S]+?):\s*(\d+)% \((\d+)\/(\d+)\)/.exec(chunk.toString("utf8"));
|
6746
6766
|
if (!message) {
|
6747
6767
|
return;
|
@@ -6783,7 +6803,7 @@ function spawnOptionsPlugin(spawnOptions) {
|
|
6783
6803
|
return {
|
6784
6804
|
type: "spawn.options",
|
6785
6805
|
action: function action(data) {
|
6786
|
-
return
|
6806
|
+
return __spreadValues(__spreadValues({}, options), data);
|
6787
6807
|
}
|
6788
6808
|
};
|
6789
6809
|
}
|
@@ -6794,16 +6814,16 @@ function timeoutPlugin(param) {
|
|
6794
6814
|
return {
|
6795
6815
|
type: "spawn.after",
|
6796
6816
|
action: function action(_data, context) {
|
6797
|
-
var
|
6817
|
+
var _a2, _b;
|
6798
6818
|
var timeout;
|
6799
6819
|
function wait() {
|
6800
6820
|
timeout && clearTimeout(timeout);
|
6801
6821
|
timeout = setTimeout(kill, block);
|
6802
6822
|
}
|
6803
6823
|
function stop() {
|
6804
|
-
var
|
6805
|
-
(
|
6806
|
-
(
|
6824
|
+
var _a3, _b2;
|
6825
|
+
(_a3 = context.spawned.stdout) == null ? void 0 : _a3.off("data", wait);
|
6826
|
+
(_b2 = context.spawned.stderr) == null ? void 0 : _b2.off("data", wait);
|
6807
6827
|
context.spawned.off("exit", stop);
|
6808
6828
|
context.spawned.off("close", stop);
|
6809
6829
|
timeout && clearTimeout(timeout);
|
@@ -6812,8 +6832,8 @@ function timeoutPlugin(param) {
|
|
6812
6832
|
stop();
|
6813
6833
|
context.kill(new GitPluginError(void 0, "timeout", "block timeout reached"));
|
6814
6834
|
}
|
6815
|
-
stdOut && ((
|
6816
|
-
stdErr && ((
|
6835
|
+
stdOut && ((_a2 = context.spawned.stdout) == null ? void 0 : _a2.on("data", wait));
|
6836
|
+
stdErr && ((_b = context.spawned.stderr) == null ? void 0 : _b.on("data", wait));
|
6817
6837
|
context.spawned.on("exit", stop);
|
6818
6838
|
context.spawned.on("close", stop);
|
6819
6839
|
wait();
|
@@ -6857,7 +6877,7 @@ function suffixPathsPlugin() {
|
|
6857
6877
|
init_utils();
|
6858
6878
|
var Git = require_git();
|
6859
6879
|
function gitInstanceFactory(baseDir, options) {
|
6860
|
-
var
|
6880
|
+
var _a2;
|
6861
6881
|
var plugins = new PluginStore();
|
6862
6882
|
var config = createInstanceConfig(baseDir && (typeof baseDir === "string" ? {
|
6863
6883
|
baseDir: baseDir
|
@@ -6877,7 +6897,7 @@ function gitInstanceFactory(baseDir, options) {
|
|
6877
6897
|
config.spawnOptions && plugins.add(spawnOptionsPlugin(config.spawnOptions));
|
6878
6898
|
plugins.add(errorDetectionPlugin(errorDetectionHandler(true)));
|
6879
6899
|
config.errors && plugins.add(errorDetectionPlugin(config.errors));
|
6880
|
-
customBinaryPlugin(plugins, config.binary, (
|
6900
|
+
customBinaryPlugin(plugins, config.binary, (_a2 = config.unsafe) == null ? void 0 : _a2.allowUnsafeCustomBinary);
|
6881
6901
|
return new Git(config, plugins);
|
6882
6902
|
}
|
6883
6903
|
// src/lib/runners/promise-wrapped.ts
|