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