vercel 31.2.3 → 31.3.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.
Files changed (2) hide show
  1. package/dist/index.js +2250 -302
  2. package/package.json +6 -5
package/dist/index.js CHANGED
@@ -81,6 +81,781 @@ function getPackageJSON() {
81
81
  exports.getPackageJSON = getPackageJSON;
82
82
  //# sourceMappingURL=index.js.map
83
83
 
84
+ /***/ }),
85
+
86
+ /***/ 31975:
87
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
88
+
89
+ /*
90
+
91
+ The MIT License (MIT)
92
+
93
+ Original Library
94
+ - Copyright (c) Marak Squires
95
+
96
+ Additional functionality
97
+ - Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
98
+
99
+ Permission is hereby granted, free of charge, to any person obtaining a copy
100
+ of this software and associated documentation files (the "Software"), to deal
101
+ in the Software without restriction, including without limitation the rights
102
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
103
+ copies of the Software, and to permit persons to whom the Software is
104
+ furnished to do so, subject to the following conditions:
105
+
106
+ The above copyright notice and this permission notice shall be included in
107
+ all copies or substantial portions of the Software.
108
+
109
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
110
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
111
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
112
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
113
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
114
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
115
+ THE SOFTWARE.
116
+
117
+ */
118
+
119
+ var colors = {};
120
+ module['exports'] = colors;
121
+
122
+ colors.themes = {};
123
+
124
+ var util = __webpack_require__(31669);
125
+ var ansiStyles = colors.styles = __webpack_require__(79452);
126
+ var defineProps = Object.defineProperties;
127
+ var newLineRegex = new RegExp(/[\r\n]+/g);
128
+
129
+ colors.supportsColor = __webpack_require__(42274).supportsColor;
130
+
131
+ if (typeof colors.enabled === 'undefined') {
132
+ colors.enabled = colors.supportsColor() !== false;
133
+ }
134
+
135
+ colors.enable = function() {
136
+ colors.enabled = true;
137
+ };
138
+
139
+ colors.disable = function() {
140
+ colors.enabled = false;
141
+ };
142
+
143
+ colors.stripColors = colors.strip = function(str) {
144
+ return ('' + str).replace(/\x1B\[\d+m/g, '');
145
+ };
146
+
147
+ // eslint-disable-next-line no-unused-vars
148
+ var stylize = colors.stylize = function stylize(str, style) {
149
+ if (!colors.enabled) {
150
+ return str+'';
151
+ }
152
+
153
+ var styleMap = ansiStyles[style];
154
+
155
+ // Stylize should work for non-ANSI styles, too
156
+ if (!styleMap && style in colors) {
157
+ // Style maps like trap operate as functions on strings;
158
+ // they don't have properties like open or close.
159
+ return colors[style](str);
160
+ }
161
+
162
+ return styleMap.open + str + styleMap.close;
163
+ };
164
+
165
+ var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g;
166
+ var escapeStringRegexp = function(str) {
167
+ if (typeof str !== 'string') {
168
+ throw new TypeError('Expected a string');
169
+ }
170
+ return str.replace(matchOperatorsRe, '\\$&');
171
+ };
172
+
173
+ function build(_styles) {
174
+ var builder = function builder() {
175
+ return applyStyle.apply(builder, arguments);
176
+ };
177
+ builder._styles = _styles;
178
+ // __proto__ is used because we must return a function, but there is
179
+ // no way to create a function with a different prototype.
180
+ builder.__proto__ = proto;
181
+ return builder;
182
+ }
183
+
184
+ var styles = (function() {
185
+ var ret = {};
186
+ ansiStyles.grey = ansiStyles.gray;
187
+ Object.keys(ansiStyles).forEach(function(key) {
188
+ ansiStyles[key].closeRe =
189
+ new RegExp(escapeStringRegexp(ansiStyles[key].close), 'g');
190
+ ret[key] = {
191
+ get: function() {
192
+ return build(this._styles.concat(key));
193
+ },
194
+ };
195
+ });
196
+ return ret;
197
+ })();
198
+
199
+ var proto = defineProps(function colors() {}, styles);
200
+
201
+ function applyStyle() {
202
+ var args = Array.prototype.slice.call(arguments);
203
+
204
+ var str = args.map(function(arg) {
205
+ // Use weak equality check so we can colorize null/undefined in safe mode
206
+ if (arg != null && arg.constructor === String) {
207
+ return arg;
208
+ } else {
209
+ return util.inspect(arg);
210
+ }
211
+ }).join(' ');
212
+
213
+ if (!colors.enabled || !str) {
214
+ return str;
215
+ }
216
+
217
+ var newLinesPresent = str.indexOf('\n') != -1;
218
+
219
+ var nestedStyles = this._styles;
220
+
221
+ var i = nestedStyles.length;
222
+ while (i--) {
223
+ var code = ansiStyles[nestedStyles[i]];
224
+ str = code.open + str.replace(code.closeRe, code.open) + code.close;
225
+ if (newLinesPresent) {
226
+ str = str.replace(newLineRegex, function(match) {
227
+ return code.close + match + code.open;
228
+ });
229
+ }
230
+ }
231
+
232
+ return str;
233
+ }
234
+
235
+ colors.setTheme = function(theme) {
236
+ if (typeof theme === 'string') {
237
+ console.log('colors.setTheme now only accepts an object, not a string. ' +
238
+ 'If you are trying to set a theme from a file, it is now your (the ' +
239
+ 'caller\'s) responsibility to require the file. The old syntax ' +
240
+ 'looked like colors.setTheme(__dirname + ' +
241
+ '\'/../themes/generic-logging.js\'); The new syntax looks like '+
242
+ 'colors.setTheme(require(__dirname + ' +
243
+ '\'/../themes/generic-logging.js\'));');
244
+ return;
245
+ }
246
+ for (var style in theme) {
247
+ (function(style) {
248
+ colors[style] = function(str) {
249
+ if (typeof theme[style] === 'object') {
250
+ var out = str;
251
+ for (var i in theme[style]) {
252
+ out = colors[theme[style][i]](out);
253
+ }
254
+ return out;
255
+ }
256
+ return colors[theme[style]](str);
257
+ };
258
+ })(style);
259
+ }
260
+ };
261
+
262
+ function init() {
263
+ var ret = {};
264
+ Object.keys(styles).forEach(function(name) {
265
+ ret[name] = {
266
+ get: function() {
267
+ return build([name]);
268
+ },
269
+ };
270
+ });
271
+ return ret;
272
+ }
273
+
274
+ var sequencer = function sequencer(map, str) {
275
+ var exploded = str.split('');
276
+ exploded = exploded.map(map);
277
+ return exploded.join('');
278
+ };
279
+
280
+ // custom formatter methods
281
+ colors.trap = __webpack_require__(21108);
282
+ colors.zalgo = __webpack_require__(8127);
283
+
284
+ // maps
285
+ colors.maps = {};
286
+ colors.maps.america = __webpack_require__(31979)(colors);
287
+ colors.maps.zebra = __webpack_require__(52284)(colors);
288
+ colors.maps.rainbow = __webpack_require__(32682)(colors);
289
+ colors.maps.random = __webpack_require__(74891)(colors);
290
+
291
+ for (var map in colors.maps) {
292
+ (function(map) {
293
+ colors[map] = function(str) {
294
+ return sequencer(colors.maps[map], str);
295
+ };
296
+ })(map);
297
+ }
298
+
299
+ defineProps(colors, init());
300
+
301
+
302
+ /***/ }),
303
+
304
+ /***/ 21108:
305
+ /***/ ((module) => {
306
+
307
+ module['exports'] = function runTheTrap(text, options) {
308
+ var result = '';
309
+ text = text || 'Run the trap, drop the bass';
310
+ text = text.split('');
311
+ var trap = {
312
+ a: ['\u0040', '\u0104', '\u023a', '\u0245', '\u0394', '\u039b', '\u0414'],
313
+ b: ['\u00df', '\u0181', '\u0243', '\u026e', '\u03b2', '\u0e3f'],
314
+ c: ['\u00a9', '\u023b', '\u03fe'],
315
+ d: ['\u00d0', '\u018a', '\u0500', '\u0501', '\u0502', '\u0503'],
316
+ e: ['\u00cb', '\u0115', '\u018e', '\u0258', '\u03a3', '\u03be', '\u04bc',
317
+ '\u0a6c'],
318
+ f: ['\u04fa'],
319
+ g: ['\u0262'],
320
+ h: ['\u0126', '\u0195', '\u04a2', '\u04ba', '\u04c7', '\u050a'],
321
+ i: ['\u0f0f'],
322
+ j: ['\u0134'],
323
+ k: ['\u0138', '\u04a0', '\u04c3', '\u051e'],
324
+ l: ['\u0139'],
325
+ m: ['\u028d', '\u04cd', '\u04ce', '\u0520', '\u0521', '\u0d69'],
326
+ n: ['\u00d1', '\u014b', '\u019d', '\u0376', '\u03a0', '\u048a'],
327
+ o: ['\u00d8', '\u00f5', '\u00f8', '\u01fe', '\u0298', '\u047a', '\u05dd',
328
+ '\u06dd', '\u0e4f'],
329
+ p: ['\u01f7', '\u048e'],
330
+ q: ['\u09cd'],
331
+ r: ['\u00ae', '\u01a6', '\u0210', '\u024c', '\u0280', '\u042f'],
332
+ s: ['\u00a7', '\u03de', '\u03df', '\u03e8'],
333
+ t: ['\u0141', '\u0166', '\u0373'],
334
+ u: ['\u01b1', '\u054d'],
335
+ v: ['\u05d8'],
336
+ w: ['\u0428', '\u0460', '\u047c', '\u0d70'],
337
+ x: ['\u04b2', '\u04fe', '\u04fc', '\u04fd'],
338
+ y: ['\u00a5', '\u04b0', '\u04cb'],
339
+ z: ['\u01b5', '\u0240'],
340
+ };
341
+ text.forEach(function(c) {
342
+ c = c.toLowerCase();
343
+ var chars = trap[c] || [' '];
344
+ var rand = Math.floor(Math.random() * chars.length);
345
+ if (typeof trap[c] !== 'undefined') {
346
+ result += trap[c][rand];
347
+ } else {
348
+ result += c;
349
+ }
350
+ });
351
+ return result;
352
+ };
353
+
354
+
355
+ /***/ }),
356
+
357
+ /***/ 8127:
358
+ /***/ ((module) => {
359
+
360
+ // please no
361
+ module['exports'] = function zalgo(text, options) {
362
+ text = text || ' he is here ';
363
+ var soul = {
364
+ 'up': [
365
+ '̍', '̎', '̄', '̅',
366
+ '̿', '̑', '̆', '̐',
367
+ '͒', '͗', '͑', '̇',
368
+ '̈', '̊', '͂', '̓',
369
+ '̈', '͊', '͋', '͌',
370
+ '̃', '̂', '̌', '͐',
371
+ '̀', '́', '̋', '̏',
372
+ '̒', '̓', '̔', '̽',
373
+ '̉', 'ͣ', 'ͤ', 'ͥ',
374
+ 'ͦ', 'ͧ', 'ͨ', 'ͩ',
375
+ 'ͪ', 'ͫ', 'ͬ', 'ͭ',
376
+ 'ͮ', 'ͯ', '̾', '͛',
377
+ '͆', '̚',
378
+ ],
379
+ 'down': [
380
+ '̖', '̗', '̘', '̙',
381
+ '̜', '̝', '̞', '̟',
382
+ '̠', '̤', '̥', '̦',
383
+ '̩', '̪', '̫', '̬',
384
+ '̭', '̮', '̯', '̰',
385
+ '̱', '̲', '̳', '̹',
386
+ '̺', '̻', '̼', 'ͅ',
387
+ '͇', '͈', '͉', '͍',
388
+ '͎', '͓', '͔', '͕',
389
+ '͖', '͙', '͚', '̣',
390
+ ],
391
+ 'mid': [
392
+ '̕', '̛', '̀', '́',
393
+ '͘', '̡', '̢', '̧',
394
+ '̨', '̴', '̵', '̶',
395
+ '͜', '͝', '͞',
396
+ '͟', '͠', '͢', '̸',
397
+ '̷', '͡', ' ҉',
398
+ ],
399
+ };
400
+ var all = [].concat(soul.up, soul.down, soul.mid);
401
+
402
+ function randomNumber(range) {
403
+ var r = Math.floor(Math.random() * range);
404
+ return r;
405
+ }
406
+
407
+ function isChar(character) {
408
+ var bool = false;
409
+ all.filter(function(i) {
410
+ bool = (i === character);
411
+ });
412
+ return bool;
413
+ }
414
+
415
+
416
+ function heComes(text, options) {
417
+ var result = '';
418
+ var counts;
419
+ var l;
420
+ options = options || {};
421
+ options['up'] =
422
+ typeof options['up'] !== 'undefined' ? options['up'] : true;
423
+ options['mid'] =
424
+ typeof options['mid'] !== 'undefined' ? options['mid'] : true;
425
+ options['down'] =
426
+ typeof options['down'] !== 'undefined' ? options['down'] : true;
427
+ options['size'] =
428
+ typeof options['size'] !== 'undefined' ? options['size'] : 'maxi';
429
+ text = text.split('');
430
+ for (l in text) {
431
+ if (isChar(l)) {
432
+ continue;
433
+ }
434
+ result = result + text[l];
435
+ counts = {'up': 0, 'down': 0, 'mid': 0};
436
+ switch (options.size) {
437
+ case 'mini':
438
+ counts.up = randomNumber(8);
439
+ counts.mid = randomNumber(2);
440
+ counts.down = randomNumber(8);
441
+ break;
442
+ case 'maxi':
443
+ counts.up = randomNumber(16) + 3;
444
+ counts.mid = randomNumber(4) + 1;
445
+ counts.down = randomNumber(64) + 3;
446
+ break;
447
+ default:
448
+ counts.up = randomNumber(8) + 1;
449
+ counts.mid = randomNumber(6) / 2;
450
+ counts.down = randomNumber(8) + 1;
451
+ break;
452
+ }
453
+
454
+ var arr = ['up', 'mid', 'down'];
455
+ for (var d in arr) {
456
+ var index = arr[d];
457
+ for (var i = 0; i <= counts[index]; i++) {
458
+ if (options[index]) {
459
+ result = result + soul[index][randomNumber(soul[index].length)];
460
+ }
461
+ }
462
+ }
463
+ }
464
+ return result;
465
+ }
466
+ // don't summon him
467
+ return heComes(text, options);
468
+ };
469
+
470
+
471
+
472
+ /***/ }),
473
+
474
+ /***/ 31979:
475
+ /***/ ((module) => {
476
+
477
+ module['exports'] = function(colors) {
478
+ return function(letter, i, exploded) {
479
+ if (letter === ' ') return letter;
480
+ switch (i%3) {
481
+ case 0: return colors.red(letter);
482
+ case 1: return colors.white(letter);
483
+ case 2: return colors.blue(letter);
484
+ }
485
+ };
486
+ };
487
+
488
+
489
+ /***/ }),
490
+
491
+ /***/ 32682:
492
+ /***/ ((module) => {
493
+
494
+ module['exports'] = function(colors) {
495
+ // RoY G BiV
496
+ var rainbowColors = ['red', 'yellow', 'green', 'blue', 'magenta'];
497
+ return function(letter, i, exploded) {
498
+ if (letter === ' ') {
499
+ return letter;
500
+ } else {
501
+ return colors[rainbowColors[i++ % rainbowColors.length]](letter);
502
+ }
503
+ };
504
+ };
505
+
506
+
507
+
508
+ /***/ }),
509
+
510
+ /***/ 74891:
511
+ /***/ ((module) => {
512
+
513
+ module['exports'] = function(colors) {
514
+ var available = ['underline', 'inverse', 'grey', 'yellow', 'red', 'green',
515
+ 'blue', 'white', 'cyan', 'magenta', 'brightYellow', 'brightRed',
516
+ 'brightGreen', 'brightBlue', 'brightWhite', 'brightCyan', 'brightMagenta'];
517
+ return function(letter, i, exploded) {
518
+ return letter === ' ' ? letter :
519
+ colors[
520
+ available[Math.round(Math.random() * (available.length - 2))]
521
+ ](letter);
522
+ };
523
+ };
524
+
525
+
526
+ /***/ }),
527
+
528
+ /***/ 52284:
529
+ /***/ ((module) => {
530
+
531
+ module['exports'] = function(colors) {
532
+ return function(letter, i, exploded) {
533
+ return i % 2 === 0 ? letter : colors.inverse(letter);
534
+ };
535
+ };
536
+
537
+
538
+ /***/ }),
539
+
540
+ /***/ 79452:
541
+ /***/ ((module) => {
542
+
543
+ /*
544
+ The MIT License (MIT)
545
+
546
+ Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
547
+
548
+ Permission is hereby granted, free of charge, to any person obtaining a copy
549
+ of this software and associated documentation files (the "Software"), to deal
550
+ in the Software without restriction, including without limitation the rights
551
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
552
+ copies of the Software, and to permit persons to whom the Software is
553
+ furnished to do so, subject to the following conditions:
554
+
555
+ The above copyright notice and this permission notice shall be included in
556
+ all copies or substantial portions of the Software.
557
+
558
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
559
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
560
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
561
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
562
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
563
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
564
+ THE SOFTWARE.
565
+
566
+ */
567
+
568
+ var styles = {};
569
+ module['exports'] = styles;
570
+
571
+ var codes = {
572
+ reset: [0, 0],
573
+
574
+ bold: [1, 22],
575
+ dim: [2, 22],
576
+ italic: [3, 23],
577
+ underline: [4, 24],
578
+ inverse: [7, 27],
579
+ hidden: [8, 28],
580
+ strikethrough: [9, 29],
581
+
582
+ black: [30, 39],
583
+ red: [31, 39],
584
+ green: [32, 39],
585
+ yellow: [33, 39],
586
+ blue: [34, 39],
587
+ magenta: [35, 39],
588
+ cyan: [36, 39],
589
+ white: [37, 39],
590
+ gray: [90, 39],
591
+ grey: [90, 39],
592
+
593
+ brightRed: [91, 39],
594
+ brightGreen: [92, 39],
595
+ brightYellow: [93, 39],
596
+ brightBlue: [94, 39],
597
+ brightMagenta: [95, 39],
598
+ brightCyan: [96, 39],
599
+ brightWhite: [97, 39],
600
+
601
+ bgBlack: [40, 49],
602
+ bgRed: [41, 49],
603
+ bgGreen: [42, 49],
604
+ bgYellow: [43, 49],
605
+ bgBlue: [44, 49],
606
+ bgMagenta: [45, 49],
607
+ bgCyan: [46, 49],
608
+ bgWhite: [47, 49],
609
+ bgGray: [100, 49],
610
+ bgGrey: [100, 49],
611
+
612
+ bgBrightRed: [101, 49],
613
+ bgBrightGreen: [102, 49],
614
+ bgBrightYellow: [103, 49],
615
+ bgBrightBlue: [104, 49],
616
+ bgBrightMagenta: [105, 49],
617
+ bgBrightCyan: [106, 49],
618
+ bgBrightWhite: [107, 49],
619
+
620
+ // legacy styles for colors pre v1.0.0
621
+ blackBG: [40, 49],
622
+ redBG: [41, 49],
623
+ greenBG: [42, 49],
624
+ yellowBG: [43, 49],
625
+ blueBG: [44, 49],
626
+ magentaBG: [45, 49],
627
+ cyanBG: [46, 49],
628
+ whiteBG: [47, 49],
629
+
630
+ };
631
+
632
+ Object.keys(codes).forEach(function(key) {
633
+ var val = codes[key];
634
+ var style = styles[key] = [];
635
+ style.open = '\u001b[' + val[0] + 'm';
636
+ style.close = '\u001b[' + val[1] + 'm';
637
+ });
638
+
639
+
640
+ /***/ }),
641
+
642
+ /***/ 6702:
643
+ /***/ ((module) => {
644
+
645
+ "use strict";
646
+ /*
647
+ MIT License
648
+
649
+ Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
650
+
651
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
652
+ this software and associated documentation files (the "Software"), to deal in
653
+ the Software without restriction, including without limitation the rights to
654
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
655
+ of the Software, and to permit persons to whom the Software is furnished to do
656
+ so, subject to the following conditions:
657
+
658
+ The above copyright notice and this permission notice shall be included in all
659
+ copies or substantial portions of the Software.
660
+
661
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
662
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
663
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
664
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
665
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
666
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
667
+ SOFTWARE.
668
+ */
669
+
670
+
671
+
672
+ module.exports = function(flag, argv) {
673
+ argv = argv || process.argv;
674
+
675
+ var terminatorPos = argv.indexOf('--');
676
+ var prefix = /^-{1,2}/.test(flag) ? '' : '--';
677
+ var pos = argv.indexOf(prefix + flag);
678
+
679
+ return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos);
680
+ };
681
+
682
+
683
+ /***/ }),
684
+
685
+ /***/ 42274:
686
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
687
+
688
+ "use strict";
689
+ /*
690
+ The MIT License (MIT)
691
+
692
+ Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
693
+
694
+ Permission is hereby granted, free of charge, to any person obtaining a copy
695
+ of this software and associated documentation files (the "Software"), to deal
696
+ in the Software without restriction, including without limitation the rights
697
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
698
+ copies of the Software, and to permit persons to whom the Software is
699
+ furnished to do so, subject to the following conditions:
700
+
701
+ The above copyright notice and this permission notice shall be included in
702
+ all copies or substantial portions of the Software.
703
+
704
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
705
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
706
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
707
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
708
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
709
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
710
+ THE SOFTWARE.
711
+
712
+ */
713
+
714
+
715
+
716
+ var os = __webpack_require__(12087);
717
+ var hasFlag = __webpack_require__(6702);
718
+
719
+ var env = process.env;
720
+
721
+ var forceColor = void 0;
722
+ if (hasFlag('no-color') || hasFlag('no-colors') || hasFlag('color=false')) {
723
+ forceColor = false;
724
+ } else if (hasFlag('color') || hasFlag('colors') || hasFlag('color=true')
725
+ || hasFlag('color=always')) {
726
+ forceColor = true;
727
+ }
728
+ if ('FORCE_COLOR' in env) {
729
+ forceColor = env.FORCE_COLOR.length === 0
730
+ || parseInt(env.FORCE_COLOR, 10) !== 0;
731
+ }
732
+
733
+ function translateLevel(level) {
734
+ if (level === 0) {
735
+ return false;
736
+ }
737
+
738
+ return {
739
+ level: level,
740
+ hasBasic: true,
741
+ has256: level >= 2,
742
+ has16m: level >= 3,
743
+ };
744
+ }
745
+
746
+ function supportsColor(stream) {
747
+ if (forceColor === false) {
748
+ return 0;
749
+ }
750
+
751
+ if (hasFlag('color=16m') || hasFlag('color=full')
752
+ || hasFlag('color=truecolor')) {
753
+ return 3;
754
+ }
755
+
756
+ if (hasFlag('color=256')) {
757
+ return 2;
758
+ }
759
+
760
+ if (stream && !stream.isTTY && forceColor !== true) {
761
+ return 0;
762
+ }
763
+
764
+ var min = forceColor ? 1 : 0;
765
+
766
+ if (process.platform === 'win32') {
767
+ // Node.js 7.5.0 is the first version of Node.js to include a patch to
768
+ // libuv that enables 256 color output on Windows. Anything earlier and it
769
+ // won't work. However, here we target Node.js 8 at minimum as it is an LTS
770
+ // release, and Node.js 7 is not. Windows 10 build 10586 is the first
771
+ // Windows release that supports 256 colors. Windows 10 build 14931 is the
772
+ // first release that supports 16m/TrueColor.
773
+ var osRelease = os.release().split('.');
774
+ if (Number(process.versions.node.split('.')[0]) >= 8
775
+ && Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
776
+ return Number(osRelease[2]) >= 14931 ? 3 : 2;
777
+ }
778
+
779
+ return 1;
780
+ }
781
+
782
+ if ('CI' in env) {
783
+ if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI'].some(function(sign) {
784
+ return sign in env;
785
+ }) || env.CI_NAME === 'codeship') {
786
+ return 1;
787
+ }
788
+
789
+ return min;
790
+ }
791
+
792
+ if ('TEAMCITY_VERSION' in env) {
793
+ return (/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0
794
+ );
795
+ }
796
+
797
+ if ('TERM_PROGRAM' in env) {
798
+ var version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);
799
+
800
+ switch (env.TERM_PROGRAM) {
801
+ case 'iTerm.app':
802
+ return version >= 3 ? 3 : 2;
803
+ case 'Hyper':
804
+ return 3;
805
+ case 'Apple_Terminal':
806
+ return 2;
807
+ // No default
808
+ }
809
+ }
810
+
811
+ if (/-256(color)?$/i.test(env.TERM)) {
812
+ return 2;
813
+ }
814
+
815
+ if (/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
816
+ return 1;
817
+ }
818
+
819
+ if ('COLORTERM' in env) {
820
+ return 1;
821
+ }
822
+
823
+ if (env.TERM === 'dumb') {
824
+ return min;
825
+ }
826
+
827
+ return min;
828
+ }
829
+
830
+ function getSupportLevel(stream) {
831
+ var level = supportsColor(stream);
832
+ return translateLevel(level);
833
+ }
834
+
835
+ module.exports = {
836
+ supportsColor: getSupportLevel,
837
+ stdout: getSupportLevel(process.stdout),
838
+ stderr: getSupportLevel(process.stderr),
839
+ };
840
+
841
+
842
+ /***/ }),
843
+
844
+ /***/ 39404:
845
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
846
+
847
+ //
848
+ // Remark: Requiring this file will use the "safe" colors API,
849
+ // which will not touch String.prototype.
850
+ //
851
+ // var colors = require('colors/safe');
852
+ // colors.red("foo")
853
+ //
854
+ //
855
+ var colors = __webpack_require__(31975);
856
+ module['exports'] = colors;
857
+
858
+
84
859
  /***/ }),
85
860
 
86
861
  /***/ 42100:
@@ -45183,6 +45958,1181 @@ Object.defineProperty(spinners, 'random', {
45183
45958
  module.exports = spinners;
45184
45959
 
45185
45960
 
45961
+ /***/ }),
45962
+
45963
+ /***/ 47579:
45964
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
45965
+
45966
+ module.exports = __webpack_require__(37650);
45967
+
45968
+ /***/ }),
45969
+
45970
+ /***/ 67717:
45971
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
45972
+
45973
+ const { info, debug } = __webpack_require__(12480);
45974
+ const utils = __webpack_require__(79011);
45975
+
45976
+ class Cell {
45977
+ /**
45978
+ * A representation of a cell within the table.
45979
+ * Implementations must have `init` and `draw` methods,
45980
+ * as well as `colSpan`, `rowSpan`, `desiredHeight` and `desiredWidth` properties.
45981
+ * @param options
45982
+ * @constructor
45983
+ */
45984
+ constructor(options) {
45985
+ this.setOptions(options);
45986
+
45987
+ /**
45988
+ * Each cell will have it's `x` and `y` values set by the `layout-manager` prior to
45989
+ * `init` being called;
45990
+ * @type {Number}
45991
+ */
45992
+ this.x = null;
45993
+ this.y = null;
45994
+ }
45995
+
45996
+ setOptions(options) {
45997
+ if (['boolean', 'number', 'string'].indexOf(typeof options) !== -1) {
45998
+ options = { content: '' + options };
45999
+ }
46000
+ options = options || {};
46001
+ this.options = options;
46002
+ let content = options.content;
46003
+ if (['boolean', 'number', 'string'].indexOf(typeof content) !== -1) {
46004
+ this.content = String(content);
46005
+ } else if (!content) {
46006
+ this.content = this.options.href || '';
46007
+ } else {
46008
+ throw new Error('Content needs to be a primitive, got: ' + typeof content);
46009
+ }
46010
+ this.colSpan = options.colSpan || 1;
46011
+ this.rowSpan = options.rowSpan || 1;
46012
+ if (this.options.href) {
46013
+ Object.defineProperty(this, 'href', {
46014
+ get() {
46015
+ return this.options.href;
46016
+ },
46017
+ });
46018
+ }
46019
+ }
46020
+
46021
+ mergeTableOptions(tableOptions, cells) {
46022
+ this.cells = cells;
46023
+
46024
+ let optionsChars = this.options.chars || {};
46025
+ let tableChars = tableOptions.chars;
46026
+ let chars = (this.chars = {});
46027
+ CHAR_NAMES.forEach(function (name) {
46028
+ setOption(optionsChars, tableChars, name, chars);
46029
+ });
46030
+
46031
+ this.truncate = this.options.truncate || tableOptions.truncate;
46032
+
46033
+ let style = (this.options.style = this.options.style || {});
46034
+ let tableStyle = tableOptions.style;
46035
+ setOption(style, tableStyle, 'padding-left', this);
46036
+ setOption(style, tableStyle, 'padding-right', this);
46037
+ this.head = style.head || tableStyle.head;
46038
+ this.border = style.border || tableStyle.border;
46039
+
46040
+ this.fixedWidth = tableOptions.colWidths[this.x];
46041
+ this.lines = this.computeLines(tableOptions);
46042
+
46043
+ this.desiredWidth = utils.strlen(this.content) + this.paddingLeft + this.paddingRight;
46044
+ this.desiredHeight = this.lines.length;
46045
+ }
46046
+
46047
+ computeLines(tableOptions) {
46048
+ const tableWordWrap = tableOptions.wordWrap || tableOptions.textWrap;
46049
+ const { wordWrap = tableWordWrap } = this.options;
46050
+ if (this.fixedWidth && wordWrap) {
46051
+ this.fixedWidth -= this.paddingLeft + this.paddingRight;
46052
+ if (this.colSpan) {
46053
+ let i = 1;
46054
+ while (i < this.colSpan) {
46055
+ this.fixedWidth += tableOptions.colWidths[this.x + i];
46056
+ i++;
46057
+ }
46058
+ }
46059
+ const { wrapOnWordBoundary: tableWrapOnWordBoundary = true } = tableOptions;
46060
+ const { wrapOnWordBoundary = tableWrapOnWordBoundary } = this.options;
46061
+ return this.wrapLines(utils.wordWrap(this.fixedWidth, this.content, wrapOnWordBoundary));
46062
+ }
46063
+ return this.wrapLines(this.content.split('\n'));
46064
+ }
46065
+
46066
+ wrapLines(computedLines) {
46067
+ const lines = utils.colorizeLines(computedLines);
46068
+ if (this.href) {
46069
+ return lines.map((line) => utils.hyperlink(this.href, line));
46070
+ }
46071
+ return lines;
46072
+ }
46073
+
46074
+ /**
46075
+ * Initializes the Cells data structure.
46076
+ *
46077
+ * @param tableOptions - A fully populated set of tableOptions.
46078
+ * In addition to the standard default values, tableOptions must have fully populated the
46079
+ * `colWidths` and `rowWidths` arrays. Those arrays must have lengths equal to the number
46080
+ * of columns or rows (respectively) in this table, and each array item must be a Number.
46081
+ *
46082
+ */
46083
+ init(tableOptions) {
46084
+ let x = this.x;
46085
+ let y = this.y;
46086
+ this.widths = tableOptions.colWidths.slice(x, x + this.colSpan);
46087
+ this.heights = tableOptions.rowHeights.slice(y, y + this.rowSpan);
46088
+ this.width = this.widths.reduce(sumPlusOne, -1);
46089
+ this.height = this.heights.reduce(sumPlusOne, -1);
46090
+
46091
+ this.hAlign = this.options.hAlign || tableOptions.colAligns[x];
46092
+ this.vAlign = this.options.vAlign || tableOptions.rowAligns[y];
46093
+
46094
+ this.drawRight = x + this.colSpan == tableOptions.colWidths.length;
46095
+ }
46096
+
46097
+ /**
46098
+ * Draws the given line of the cell.
46099
+ * This default implementation defers to methods `drawTop`, `drawBottom`, `drawLine` and `drawEmpty`.
46100
+ * @param lineNum - can be `top`, `bottom` or a numerical line number.
46101
+ * @param spanningCell - will be a number if being called from a RowSpanCell, and will represent how
46102
+ * many rows below it's being called from. Otherwise it's undefined.
46103
+ * @returns {String} The representation of this line.
46104
+ */
46105
+ draw(lineNum, spanningCell) {
46106
+ if (lineNum == 'top') return this.drawTop(this.drawRight);
46107
+ if (lineNum == 'bottom') return this.drawBottom(this.drawRight);
46108
+ let content = utils.truncate(this.content, 10, this.truncate);
46109
+ if (!lineNum) {
46110
+ info(`${this.y}-${this.x}: ${this.rowSpan - lineNum}x${this.colSpan} Cell ${content}`);
46111
+ } else {
46112
+ // debug(`${lineNum}-${this.x}: 1x${this.colSpan} RowSpanCell ${content}`);
46113
+ }
46114
+ let padLen = Math.max(this.height - this.lines.length, 0);
46115
+ let padTop;
46116
+ switch (this.vAlign) {
46117
+ case 'center':
46118
+ padTop = Math.ceil(padLen / 2);
46119
+ break;
46120
+ case 'bottom':
46121
+ padTop = padLen;
46122
+ break;
46123
+ default:
46124
+ padTop = 0;
46125
+ }
46126
+ if (lineNum < padTop || lineNum >= padTop + this.lines.length) {
46127
+ return this.drawEmpty(this.drawRight, spanningCell);
46128
+ }
46129
+ let forceTruncation = this.lines.length > this.height && lineNum + 1 >= this.height;
46130
+ return this.drawLine(lineNum - padTop, this.drawRight, forceTruncation, spanningCell);
46131
+ }
46132
+
46133
+ /**
46134
+ * Renders the top line of the cell.
46135
+ * @param drawRight - true if this method should render the right edge of the cell.
46136
+ * @returns {String}
46137
+ */
46138
+ drawTop(drawRight) {
46139
+ let content = [];
46140
+ if (this.cells) {
46141
+ //TODO: cells should always exist - some tests don't fill it in though
46142
+ this.widths.forEach(function (width, index) {
46143
+ content.push(this._topLeftChar(index));
46144
+ content.push(utils.repeat(this.chars[this.y == 0 ? 'top' : 'mid'], width));
46145
+ }, this);
46146
+ } else {
46147
+ content.push(this._topLeftChar(0));
46148
+ content.push(utils.repeat(this.chars[this.y == 0 ? 'top' : 'mid'], this.width));
46149
+ }
46150
+ if (drawRight) {
46151
+ content.push(this.chars[this.y == 0 ? 'topRight' : 'rightMid']);
46152
+ }
46153
+ return this.wrapWithStyleColors('border', content.join(''));
46154
+ }
46155
+
46156
+ _topLeftChar(offset) {
46157
+ let x = this.x + offset;
46158
+ let leftChar;
46159
+ if (this.y == 0) {
46160
+ leftChar = x == 0 ? 'topLeft' : offset == 0 ? 'topMid' : 'top';
46161
+ } else {
46162
+ if (x == 0) {
46163
+ leftChar = 'leftMid';
46164
+ } else {
46165
+ leftChar = offset == 0 ? 'midMid' : 'bottomMid';
46166
+ if (this.cells) {
46167
+ //TODO: cells should always exist - some tests don't fill it in though
46168
+ let spanAbove = this.cells[this.y - 1][x] instanceof Cell.ColSpanCell;
46169
+ if (spanAbove) {
46170
+ leftChar = offset == 0 ? 'topMid' : 'mid';
46171
+ }
46172
+ if (offset == 0) {
46173
+ let i = 1;
46174
+ while (this.cells[this.y][x - i] instanceof Cell.ColSpanCell) {
46175
+ i++;
46176
+ }
46177
+ if (this.cells[this.y][x - i] instanceof Cell.RowSpanCell) {
46178
+ leftChar = 'leftMid';
46179
+ }
46180
+ }
46181
+ }
46182
+ }
46183
+ }
46184
+ return this.chars[leftChar];
46185
+ }
46186
+
46187
+ wrapWithStyleColors(styleProperty, content) {
46188
+ if (this[styleProperty] && this[styleProperty].length) {
46189
+ try {
46190
+ let colors = __webpack_require__(39404);
46191
+ for (let i = this[styleProperty].length - 1; i >= 0; i--) {
46192
+ colors = colors[this[styleProperty][i]];
46193
+ }
46194
+ return colors(content);
46195
+ } catch (e) {
46196
+ return content;
46197
+ }
46198
+ } else {
46199
+ return content;
46200
+ }
46201
+ }
46202
+
46203
+ /**
46204
+ * Renders a line of text.
46205
+ * @param lineNum - Which line of text to render. This is not necessarily the line within the cell.
46206
+ * There may be top-padding above the first line of text.
46207
+ * @param drawRight - true if this method should render the right edge of the cell.
46208
+ * @param forceTruncationSymbol - `true` if the rendered text should end with the truncation symbol even
46209
+ * if the text fits. This is used when the cell is vertically truncated. If `false` the text should
46210
+ * only include the truncation symbol if the text will not fit horizontally within the cell width.
46211
+ * @param spanningCell - a number of if being called from a RowSpanCell. (how many rows below). otherwise undefined.
46212
+ * @returns {String}
46213
+ */
46214
+ drawLine(lineNum, drawRight, forceTruncationSymbol, spanningCell) {
46215
+ let left = this.chars[this.x == 0 ? 'left' : 'middle'];
46216
+ if (this.x && spanningCell && this.cells) {
46217
+ let cellLeft = this.cells[this.y + spanningCell][this.x - 1];
46218
+ while (cellLeft instanceof ColSpanCell) {
46219
+ cellLeft = this.cells[cellLeft.y][cellLeft.x - 1];
46220
+ }
46221
+ if (!(cellLeft instanceof RowSpanCell)) {
46222
+ left = this.chars['rightMid'];
46223
+ }
46224
+ }
46225
+ let leftPadding = utils.repeat(' ', this.paddingLeft);
46226
+ let right = drawRight ? this.chars['right'] : '';
46227
+ let rightPadding = utils.repeat(' ', this.paddingRight);
46228
+ let line = this.lines[lineNum];
46229
+ let len = this.width - (this.paddingLeft + this.paddingRight);
46230
+ if (forceTruncationSymbol) line += this.truncate || '…';
46231
+ let content = utils.truncate(line, len, this.truncate);
46232
+ content = utils.pad(content, len, ' ', this.hAlign);
46233
+ content = leftPadding + content + rightPadding;
46234
+ return this.stylizeLine(left, content, right);
46235
+ }
46236
+
46237
+ stylizeLine(left, content, right) {
46238
+ left = this.wrapWithStyleColors('border', left);
46239
+ right = this.wrapWithStyleColors('border', right);
46240
+ if (this.y === 0) {
46241
+ content = this.wrapWithStyleColors('head', content);
46242
+ }
46243
+ return left + content + right;
46244
+ }
46245
+
46246
+ /**
46247
+ * Renders the bottom line of the cell.
46248
+ * @param drawRight - true if this method should render the right edge of the cell.
46249
+ * @returns {String}
46250
+ */
46251
+ drawBottom(drawRight) {
46252
+ let left = this.chars[this.x == 0 ? 'bottomLeft' : 'bottomMid'];
46253
+ let content = utils.repeat(this.chars.bottom, this.width);
46254
+ let right = drawRight ? this.chars['bottomRight'] : '';
46255
+ return this.wrapWithStyleColors('border', left + content + right);
46256
+ }
46257
+
46258
+ /**
46259
+ * Renders a blank line of text within the cell. Used for top and/or bottom padding.
46260
+ * @param drawRight - true if this method should render the right edge of the cell.
46261
+ * @param spanningCell - a number of if being called from a RowSpanCell. (how many rows below). otherwise undefined.
46262
+ * @returns {String}
46263
+ */
46264
+ drawEmpty(drawRight, spanningCell) {
46265
+ let left = this.chars[this.x == 0 ? 'left' : 'middle'];
46266
+ if (this.x && spanningCell && this.cells) {
46267
+ let cellLeft = this.cells[this.y + spanningCell][this.x - 1];
46268
+ while (cellLeft instanceof ColSpanCell) {
46269
+ cellLeft = this.cells[cellLeft.y][cellLeft.x - 1];
46270
+ }
46271
+ if (!(cellLeft instanceof RowSpanCell)) {
46272
+ left = this.chars['rightMid'];
46273
+ }
46274
+ }
46275
+ let right = drawRight ? this.chars['right'] : '';
46276
+ let content = utils.repeat(' ', this.width);
46277
+ return this.stylizeLine(left, content, right);
46278
+ }
46279
+ }
46280
+
46281
+ class ColSpanCell {
46282
+ /**
46283
+ * A Cell that doesn't do anything. It just draws empty lines.
46284
+ * Used as a placeholder in column spanning.
46285
+ * @constructor
46286
+ */
46287
+ constructor() {}
46288
+
46289
+ draw(lineNum) {
46290
+ if (typeof lineNum === 'number') {
46291
+ debug(`${this.y}-${this.x}: 1x1 ColSpanCell`);
46292
+ }
46293
+ return '';
46294
+ }
46295
+
46296
+ init() {}
46297
+
46298
+ mergeTableOptions() {}
46299
+ }
46300
+
46301
+ class RowSpanCell {
46302
+ /**
46303
+ * A placeholder Cell for a Cell that spans multiple rows.
46304
+ * It delegates rendering to the original cell, but adds the appropriate offset.
46305
+ * @param originalCell
46306
+ * @constructor
46307
+ */
46308
+ constructor(originalCell) {
46309
+ this.originalCell = originalCell;
46310
+ }
46311
+
46312
+ init(tableOptions) {
46313
+ let y = this.y;
46314
+ let originalY = this.originalCell.y;
46315
+ this.cellOffset = y - originalY;
46316
+ this.offset = findDimension(tableOptions.rowHeights, originalY, this.cellOffset);
46317
+ }
46318
+
46319
+ draw(lineNum) {
46320
+ if (lineNum == 'top') {
46321
+ return this.originalCell.draw(this.offset, this.cellOffset);
46322
+ }
46323
+ if (lineNum == 'bottom') {
46324
+ return this.originalCell.draw('bottom');
46325
+ }
46326
+ debug(`${this.y}-${this.x}: 1x${this.colSpan} RowSpanCell for ${this.originalCell.content}`);
46327
+ return this.originalCell.draw(this.offset + 1 + lineNum);
46328
+ }
46329
+
46330
+ mergeTableOptions() {}
46331
+ }
46332
+
46333
+ function firstDefined(...args) {
46334
+ return args.filter((v) => v !== undefined && v !== null).shift();
46335
+ }
46336
+
46337
+ // HELPER FUNCTIONS
46338
+ function setOption(objA, objB, nameB, targetObj) {
46339
+ let nameA = nameB.split('-');
46340
+ if (nameA.length > 1) {
46341
+ nameA[1] = nameA[1].charAt(0).toUpperCase() + nameA[1].substr(1);
46342
+ nameA = nameA.join('');
46343
+ targetObj[nameA] = firstDefined(objA[nameA], objA[nameB], objB[nameA], objB[nameB]);
46344
+ } else {
46345
+ targetObj[nameB] = firstDefined(objA[nameB], objB[nameB]);
46346
+ }
46347
+ }
46348
+
46349
+ function findDimension(dimensionTable, startingIndex, span) {
46350
+ let ret = dimensionTable[startingIndex];
46351
+ for (let i = 1; i < span; i++) {
46352
+ ret += 1 + dimensionTable[startingIndex + i];
46353
+ }
46354
+ return ret;
46355
+ }
46356
+
46357
+ function sumPlusOne(a, b) {
46358
+ return a + b + 1;
46359
+ }
46360
+
46361
+ let CHAR_NAMES = [
46362
+ 'top',
46363
+ 'top-mid',
46364
+ 'top-left',
46365
+ 'top-right',
46366
+ 'bottom',
46367
+ 'bottom-mid',
46368
+ 'bottom-left',
46369
+ 'bottom-right',
46370
+ 'left',
46371
+ 'left-mid',
46372
+ 'mid',
46373
+ 'mid-mid',
46374
+ 'right',
46375
+ 'right-mid',
46376
+ 'middle',
46377
+ ];
46378
+
46379
+ module.exports = Cell;
46380
+ module.exports.ColSpanCell = ColSpanCell;
46381
+ module.exports.RowSpanCell = RowSpanCell;
46382
+
46383
+
46384
+ /***/ }),
46385
+
46386
+ /***/ 12480:
46387
+ /***/ ((module) => {
46388
+
46389
+ let messages = [];
46390
+ let level = 0;
46391
+
46392
+ const debug = (msg, min) => {
46393
+ if (level >= min) {
46394
+ messages.push(msg);
46395
+ }
46396
+ };
46397
+
46398
+ debug.WARN = 1;
46399
+ debug.INFO = 2;
46400
+ debug.DEBUG = 3;
46401
+
46402
+ debug.reset = () => {
46403
+ messages = [];
46404
+ };
46405
+
46406
+ debug.setDebugLevel = (v) => {
46407
+ level = v;
46408
+ };
46409
+
46410
+ debug.warn = (msg) => debug(msg, debug.WARN);
46411
+ debug.info = (msg) => debug(msg, debug.INFO);
46412
+ debug.debug = (msg) => debug(msg, debug.DEBUG);
46413
+
46414
+ debug.debugMessages = () => messages;
46415
+
46416
+ module.exports = debug;
46417
+
46418
+
46419
+ /***/ }),
46420
+
46421
+ /***/ 26574:
46422
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
46423
+
46424
+ const { warn, debug } = __webpack_require__(12480);
46425
+ const Cell = __webpack_require__(67717);
46426
+ const { ColSpanCell, RowSpanCell } = Cell;
46427
+
46428
+ (function () {
46429
+ function next(alloc, col) {
46430
+ if (alloc[col] > 0) {
46431
+ return next(alloc, col + 1);
46432
+ }
46433
+ return col;
46434
+ }
46435
+
46436
+ function layoutTable(table) {
46437
+ let alloc = {};
46438
+ table.forEach(function (row, rowIndex) {
46439
+ let col = 0;
46440
+ row.forEach(function (cell) {
46441
+ cell.y = rowIndex;
46442
+ // Avoid erroneous call to next() on first row
46443
+ cell.x = rowIndex ? next(alloc, col) : col;
46444
+ const rowSpan = cell.rowSpan || 1;
46445
+ const colSpan = cell.colSpan || 1;
46446
+ if (rowSpan > 1) {
46447
+ for (let cs = 0; cs < colSpan; cs++) {
46448
+ alloc[cell.x + cs] = rowSpan;
46449
+ }
46450
+ }
46451
+ col = cell.x + colSpan;
46452
+ });
46453
+ Object.keys(alloc).forEach((idx) => {
46454
+ alloc[idx]--;
46455
+ if (alloc[idx] < 1) delete alloc[idx];
46456
+ });
46457
+ });
46458
+ }
46459
+
46460
+ function maxWidth(table) {
46461
+ let mw = 0;
46462
+ table.forEach(function (row) {
46463
+ row.forEach(function (cell) {
46464
+ mw = Math.max(mw, cell.x + (cell.colSpan || 1));
46465
+ });
46466
+ });
46467
+ return mw;
46468
+ }
46469
+
46470
+ function maxHeight(table) {
46471
+ return table.length;
46472
+ }
46473
+
46474
+ function cellsConflict(cell1, cell2) {
46475
+ let yMin1 = cell1.y;
46476
+ let yMax1 = cell1.y - 1 + (cell1.rowSpan || 1);
46477
+ let yMin2 = cell2.y;
46478
+ let yMax2 = cell2.y - 1 + (cell2.rowSpan || 1);
46479
+ let yConflict = !(yMin1 > yMax2 || yMin2 > yMax1);
46480
+
46481
+ let xMin1 = cell1.x;
46482
+ let xMax1 = cell1.x - 1 + (cell1.colSpan || 1);
46483
+ let xMin2 = cell2.x;
46484
+ let xMax2 = cell2.x - 1 + (cell2.colSpan || 1);
46485
+ let xConflict = !(xMin1 > xMax2 || xMin2 > xMax1);
46486
+
46487
+ return yConflict && xConflict;
46488
+ }
46489
+
46490
+ function conflictExists(rows, x, y) {
46491
+ let i_max = Math.min(rows.length - 1, y);
46492
+ let cell = { x: x, y: y };
46493
+ for (let i = 0; i <= i_max; i++) {
46494
+ let row = rows[i];
46495
+ for (let j = 0; j < row.length; j++) {
46496
+ if (cellsConflict(cell, row[j])) {
46497
+ return true;
46498
+ }
46499
+ }
46500
+ }
46501
+ return false;
46502
+ }
46503
+
46504
+ function allBlank(rows, y, xMin, xMax) {
46505
+ for (let x = xMin; x < xMax; x++) {
46506
+ if (conflictExists(rows, x, y)) {
46507
+ return false;
46508
+ }
46509
+ }
46510
+ return true;
46511
+ }
46512
+
46513
+ function addRowSpanCells(table) {
46514
+ table.forEach(function (row, rowIndex) {
46515
+ row.forEach(function (cell) {
46516
+ for (let i = 1; i < cell.rowSpan; i++) {
46517
+ let rowSpanCell = new RowSpanCell(cell);
46518
+ rowSpanCell.x = cell.x;
46519
+ rowSpanCell.y = cell.y + i;
46520
+ rowSpanCell.colSpan = cell.colSpan;
46521
+ insertCell(rowSpanCell, table[rowIndex + i]);
46522
+ }
46523
+ });
46524
+ });
46525
+ }
46526
+
46527
+ function addColSpanCells(cellRows) {
46528
+ for (let rowIndex = cellRows.length - 1; rowIndex >= 0; rowIndex--) {
46529
+ let cellColumns = cellRows[rowIndex];
46530
+ for (let columnIndex = 0; columnIndex < cellColumns.length; columnIndex++) {
46531
+ let cell = cellColumns[columnIndex];
46532
+ for (let k = 1; k < cell.colSpan; k++) {
46533
+ let colSpanCell = new ColSpanCell();
46534
+ colSpanCell.x = cell.x + k;
46535
+ colSpanCell.y = cell.y;
46536
+ cellColumns.splice(columnIndex + 1, 0, colSpanCell);
46537
+ }
46538
+ }
46539
+ }
46540
+ }
46541
+
46542
+ function insertCell(cell, row) {
46543
+ let x = 0;
46544
+ while (x < row.length && row[x].x < cell.x) {
46545
+ x++;
46546
+ }
46547
+ row.splice(x, 0, cell);
46548
+ }
46549
+
46550
+ function fillInTable(table) {
46551
+ let h_max = maxHeight(table);
46552
+ let w_max = maxWidth(table);
46553
+ debug(`Max rows: ${h_max}; Max cols: ${w_max}`);
46554
+ for (let y = 0; y < h_max; y++) {
46555
+ for (let x = 0; x < w_max; x++) {
46556
+ if (!conflictExists(table, x, y)) {
46557
+ let opts = { x: x, y: y, colSpan: 1, rowSpan: 1 };
46558
+ x++;
46559
+ while (x < w_max && !conflictExists(table, x, y)) {
46560
+ opts.colSpan++;
46561
+ x++;
46562
+ }
46563
+ let y2 = y + 1;
46564
+ while (y2 < h_max && allBlank(table, y2, opts.x, opts.x + opts.colSpan)) {
46565
+ opts.rowSpan++;
46566
+ y2++;
46567
+ }
46568
+ let cell = new Cell(opts);
46569
+ cell.x = opts.x;
46570
+ cell.y = opts.y;
46571
+ warn(`Missing cell at ${cell.y}-${cell.x}.`);
46572
+ insertCell(cell, table[y]);
46573
+ }
46574
+ }
46575
+ }
46576
+ }
46577
+
46578
+ function generateCells(rows) {
46579
+ return rows.map(function (row) {
46580
+ if (!Array.isArray(row)) {
46581
+ let key = Object.keys(row)[0];
46582
+ row = row[key];
46583
+ if (Array.isArray(row)) {
46584
+ row = row.slice();
46585
+ row.unshift(key);
46586
+ } else {
46587
+ row = [key, row];
46588
+ }
46589
+ }
46590
+ return row.map(function (cell) {
46591
+ return new Cell(cell);
46592
+ });
46593
+ });
46594
+ }
46595
+
46596
+ function makeTableLayout(rows) {
46597
+ let cellRows = generateCells(rows);
46598
+ layoutTable(cellRows);
46599
+ fillInTable(cellRows);
46600
+ addRowSpanCells(cellRows);
46601
+ addColSpanCells(cellRows);
46602
+ return cellRows;
46603
+ }
46604
+
46605
+ module.exports = {
46606
+ makeTableLayout: makeTableLayout,
46607
+ layoutTable: layoutTable,
46608
+ addRowSpanCells: addRowSpanCells,
46609
+ maxWidth: maxWidth,
46610
+ fillInTable: fillInTable,
46611
+ computeWidths: makeComputeWidths('colSpan', 'desiredWidth', 'x', 1),
46612
+ computeHeights: makeComputeWidths('rowSpan', 'desiredHeight', 'y', 1),
46613
+ };
46614
+ })();
46615
+
46616
+ function makeComputeWidths(colSpan, desiredWidth, x, forcedMin) {
46617
+ return function (vals, table) {
46618
+ let result = [];
46619
+ let spanners = [];
46620
+ let auto = {};
46621
+ table.forEach(function (row) {
46622
+ row.forEach(function (cell) {
46623
+ if ((cell[colSpan] || 1) > 1) {
46624
+ spanners.push(cell);
46625
+ } else {
46626
+ result[cell[x]] = Math.max(result[cell[x]] || 0, cell[desiredWidth] || 0, forcedMin);
46627
+ }
46628
+ });
46629
+ });
46630
+
46631
+ vals.forEach(function (val, index) {
46632
+ if (typeof val === 'number') {
46633
+ result[index] = val;
46634
+ }
46635
+ });
46636
+
46637
+ //spanners.forEach(function(cell){
46638
+ for (let k = spanners.length - 1; k >= 0; k--) {
46639
+ let cell = spanners[k];
46640
+ let span = cell[colSpan];
46641
+ let col = cell[x];
46642
+ let existingWidth = result[col];
46643
+ let editableCols = typeof vals[col] === 'number' ? 0 : 1;
46644
+ if (typeof existingWidth === 'number') {
46645
+ for (let i = 1; i < span; i++) {
46646
+ existingWidth += 1 + result[col + i];
46647
+ if (typeof vals[col + i] !== 'number') {
46648
+ editableCols++;
46649
+ }
46650
+ }
46651
+ } else {
46652
+ existingWidth = desiredWidth === 'desiredWidth' ? cell.desiredWidth - 1 : 1;
46653
+ if (!auto[col] || auto[col] < existingWidth) {
46654
+ auto[col] = existingWidth;
46655
+ }
46656
+ }
46657
+
46658
+ if (cell[desiredWidth] > existingWidth) {
46659
+ let i = 0;
46660
+ while (editableCols > 0 && cell[desiredWidth] > existingWidth) {
46661
+ if (typeof vals[col + i] !== 'number') {
46662
+ let dif = Math.round((cell[desiredWidth] - existingWidth) / editableCols);
46663
+ existingWidth += dif;
46664
+ result[col + i] += dif;
46665
+ editableCols--;
46666
+ }
46667
+ i++;
46668
+ }
46669
+ }
46670
+ }
46671
+
46672
+ Object.assign(vals, result, auto);
46673
+ for (let j = 0; j < vals.length; j++) {
46674
+ vals[j] = Math.max(forcedMin, vals[j] || 0);
46675
+ }
46676
+ };
46677
+ }
46678
+
46679
+
46680
+ /***/ }),
46681
+
46682
+ /***/ 37650:
46683
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
46684
+
46685
+ const debug = __webpack_require__(12480);
46686
+ const utils = __webpack_require__(79011);
46687
+ const tableLayout = __webpack_require__(26574);
46688
+
46689
+ class Table extends Array {
46690
+ constructor(opts) {
46691
+ super();
46692
+
46693
+ const options = utils.mergeOptions(opts);
46694
+ Object.defineProperty(this, 'options', {
46695
+ value: options,
46696
+ enumerable: options.debug,
46697
+ });
46698
+
46699
+ if (options.debug) {
46700
+ switch (typeof options.debug) {
46701
+ case 'boolean':
46702
+ debug.setDebugLevel(debug.WARN);
46703
+ break;
46704
+ case 'number':
46705
+ debug.setDebugLevel(options.debug);
46706
+ break;
46707
+ case 'string':
46708
+ debug.setDebugLevel(parseInt(options.debug, 10));
46709
+ break;
46710
+ default:
46711
+ debug.setDebugLevel(debug.WARN);
46712
+ debug.warn(`Debug option is expected to be boolean, number, or string. Received a ${typeof options.debug}`);
46713
+ }
46714
+ Object.defineProperty(this, 'messages', {
46715
+ get() {
46716
+ return debug.debugMessages();
46717
+ },
46718
+ });
46719
+ }
46720
+ }
46721
+
46722
+ toString() {
46723
+ let array = this;
46724
+ let headersPresent = this.options.head && this.options.head.length;
46725
+ if (headersPresent) {
46726
+ array = [this.options.head];
46727
+ if (this.length) {
46728
+ array.push.apply(array, this);
46729
+ }
46730
+ } else {
46731
+ this.options.style.head = [];
46732
+ }
46733
+
46734
+ let cells = tableLayout.makeTableLayout(array);
46735
+
46736
+ cells.forEach(function (row) {
46737
+ row.forEach(function (cell) {
46738
+ cell.mergeTableOptions(this.options, cells);
46739
+ }, this);
46740
+ }, this);
46741
+
46742
+ tableLayout.computeWidths(this.options.colWidths, cells);
46743
+ tableLayout.computeHeights(this.options.rowHeights, cells);
46744
+
46745
+ cells.forEach(function (row) {
46746
+ row.forEach(function (cell) {
46747
+ cell.init(this.options);
46748
+ }, this);
46749
+ }, this);
46750
+
46751
+ let result = [];
46752
+
46753
+ for (let rowIndex = 0; rowIndex < cells.length; rowIndex++) {
46754
+ let row = cells[rowIndex];
46755
+ let heightOfRow = this.options.rowHeights[rowIndex];
46756
+
46757
+ if (rowIndex === 0 || !this.options.style.compact || (rowIndex == 1 && headersPresent)) {
46758
+ doDraw(row, 'top', result);
46759
+ }
46760
+
46761
+ for (let lineNum = 0; lineNum < heightOfRow; lineNum++) {
46762
+ doDraw(row, lineNum, result);
46763
+ }
46764
+
46765
+ if (rowIndex + 1 == cells.length) {
46766
+ doDraw(row, 'bottom', result);
46767
+ }
46768
+ }
46769
+
46770
+ return result.join('\n');
46771
+ }
46772
+
46773
+ get width() {
46774
+ let str = this.toString().split('\n');
46775
+ return str[0].length;
46776
+ }
46777
+ }
46778
+
46779
+ Table.reset = () => debug.reset();
46780
+
46781
+ function doDraw(row, lineNum, result) {
46782
+ let line = [];
46783
+ row.forEach(function (cell) {
46784
+ line.push(cell.draw(lineNum));
46785
+ });
46786
+ let str = line.join('');
46787
+ if (str.length) result.push(str);
46788
+ }
46789
+
46790
+ module.exports = Table;
46791
+
46792
+
46793
+ /***/ }),
46794
+
46795
+ /***/ 79011:
46796
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
46797
+
46798
+ const stringWidth = __webpack_require__(80718);
46799
+
46800
+ function codeRegex(capture) {
46801
+ return capture ? /\u001b\[((?:\d*;){0,5}\d*)m/g : /\u001b\[(?:\d*;){0,5}\d*m/g;
46802
+ }
46803
+
46804
+ function strlen(str) {
46805
+ let code = codeRegex();
46806
+ let stripped = ('' + str).replace(code, '');
46807
+ let split = stripped.split('\n');
46808
+ return split.reduce(function (memo, s) {
46809
+ return stringWidth(s) > memo ? stringWidth(s) : memo;
46810
+ }, 0);
46811
+ }
46812
+
46813
+ function repeat(str, times) {
46814
+ return Array(times + 1).join(str);
46815
+ }
46816
+
46817
+ function pad(str, len, pad, dir) {
46818
+ let length = strlen(str);
46819
+ if (len + 1 >= length) {
46820
+ let padlen = len - length;
46821
+ switch (dir) {
46822
+ case 'right': {
46823
+ str = repeat(pad, padlen) + str;
46824
+ break;
46825
+ }
46826
+ case 'center': {
46827
+ let right = Math.ceil(padlen / 2);
46828
+ let left = padlen - right;
46829
+ str = repeat(pad, left) + str + repeat(pad, right);
46830
+ break;
46831
+ }
46832
+ default: {
46833
+ str = str + repeat(pad, padlen);
46834
+ break;
46835
+ }
46836
+ }
46837
+ }
46838
+ return str;
46839
+ }
46840
+
46841
+ let codeCache = {};
46842
+
46843
+ function addToCodeCache(name, on, off) {
46844
+ on = '\u001b[' + on + 'm';
46845
+ off = '\u001b[' + off + 'm';
46846
+ codeCache[on] = { set: name, to: true };
46847
+ codeCache[off] = { set: name, to: false };
46848
+ codeCache[name] = { on: on, off: off };
46849
+ }
46850
+
46851
+ //https://github.com/Marak/colors.js/blob/master/lib/styles.js
46852
+ addToCodeCache('bold', 1, 22);
46853
+ addToCodeCache('italics', 3, 23);
46854
+ addToCodeCache('underline', 4, 24);
46855
+ addToCodeCache('inverse', 7, 27);
46856
+ addToCodeCache('strikethrough', 9, 29);
46857
+
46858
+ function updateState(state, controlChars) {
46859
+ let controlCode = controlChars[1] ? parseInt(controlChars[1].split(';')[0]) : 0;
46860
+ if ((controlCode >= 30 && controlCode <= 39) || (controlCode >= 90 && controlCode <= 97)) {
46861
+ state.lastForegroundAdded = controlChars[0];
46862
+ return;
46863
+ }
46864
+ if ((controlCode >= 40 && controlCode <= 49) || (controlCode >= 100 && controlCode <= 107)) {
46865
+ state.lastBackgroundAdded = controlChars[0];
46866
+ return;
46867
+ }
46868
+ if (controlCode === 0) {
46869
+ for (let i in state) {
46870
+ /* istanbul ignore else */
46871
+ if (Object.prototype.hasOwnProperty.call(state, i)) {
46872
+ delete state[i];
46873
+ }
46874
+ }
46875
+ return;
46876
+ }
46877
+ let info = codeCache[controlChars[0]];
46878
+ if (info) {
46879
+ state[info.set] = info.to;
46880
+ }
46881
+ }
46882
+
46883
+ function readState(line) {
46884
+ let code = codeRegex(true);
46885
+ let controlChars = code.exec(line);
46886
+ let state = {};
46887
+ while (controlChars !== null) {
46888
+ updateState(state, controlChars);
46889
+ controlChars = code.exec(line);
46890
+ }
46891
+ return state;
46892
+ }
46893
+
46894
+ function unwindState(state, ret) {
46895
+ let lastBackgroundAdded = state.lastBackgroundAdded;
46896
+ let lastForegroundAdded = state.lastForegroundAdded;
46897
+
46898
+ delete state.lastBackgroundAdded;
46899
+ delete state.lastForegroundAdded;
46900
+
46901
+ Object.keys(state).forEach(function (key) {
46902
+ if (state[key]) {
46903
+ ret += codeCache[key].off;
46904
+ }
46905
+ });
46906
+
46907
+ if (lastBackgroundAdded && lastBackgroundAdded != '\u001b[49m') {
46908
+ ret += '\u001b[49m';
46909
+ }
46910
+ if (lastForegroundAdded && lastForegroundAdded != '\u001b[39m') {
46911
+ ret += '\u001b[39m';
46912
+ }
46913
+
46914
+ return ret;
46915
+ }
46916
+
46917
+ function rewindState(state, ret) {
46918
+ let lastBackgroundAdded = state.lastBackgroundAdded;
46919
+ let lastForegroundAdded = state.lastForegroundAdded;
46920
+
46921
+ delete state.lastBackgroundAdded;
46922
+ delete state.lastForegroundAdded;
46923
+
46924
+ Object.keys(state).forEach(function (key) {
46925
+ if (state[key]) {
46926
+ ret = codeCache[key].on + ret;
46927
+ }
46928
+ });
46929
+
46930
+ if (lastBackgroundAdded && lastBackgroundAdded != '\u001b[49m') {
46931
+ ret = lastBackgroundAdded + ret;
46932
+ }
46933
+ if (lastForegroundAdded && lastForegroundAdded != '\u001b[39m') {
46934
+ ret = lastForegroundAdded + ret;
46935
+ }
46936
+
46937
+ return ret;
46938
+ }
46939
+
46940
+ function truncateWidth(str, desiredLength) {
46941
+ if (str.length === strlen(str)) {
46942
+ return str.substr(0, desiredLength);
46943
+ }
46944
+
46945
+ while (strlen(str) > desiredLength) {
46946
+ str = str.slice(0, -1);
46947
+ }
46948
+
46949
+ return str;
46950
+ }
46951
+
46952
+ function truncateWidthWithAnsi(str, desiredLength) {
46953
+ let code = codeRegex(true);
46954
+ let split = str.split(codeRegex());
46955
+ let splitIndex = 0;
46956
+ let retLen = 0;
46957
+ let ret = '';
46958
+ let myArray;
46959
+ let state = {};
46960
+
46961
+ while (retLen < desiredLength) {
46962
+ myArray = code.exec(str);
46963
+ let toAdd = split[splitIndex];
46964
+ splitIndex++;
46965
+ if (retLen + strlen(toAdd) > desiredLength) {
46966
+ toAdd = truncateWidth(toAdd, desiredLength - retLen);
46967
+ }
46968
+ ret += toAdd;
46969
+ retLen += strlen(toAdd);
46970
+
46971
+ if (retLen < desiredLength) {
46972
+ if (!myArray) {
46973
+ break;
46974
+ } // full-width chars may cause a whitespace which cannot be filled
46975
+ ret += myArray[0];
46976
+ updateState(state, myArray);
46977
+ }
46978
+ }
46979
+
46980
+ return unwindState(state, ret);
46981
+ }
46982
+
46983
+ function truncate(str, desiredLength, truncateChar) {
46984
+ truncateChar = truncateChar || '…';
46985
+ let lengthOfStr = strlen(str);
46986
+ if (lengthOfStr <= desiredLength) {
46987
+ return str;
46988
+ }
46989
+ desiredLength -= strlen(truncateChar);
46990
+
46991
+ let ret = truncateWidthWithAnsi(str, desiredLength);
46992
+
46993
+ return ret + truncateChar;
46994
+ }
46995
+
46996
+ function defaultOptions() {
46997
+ return {
46998
+ chars: {
46999
+ top: '─',
47000
+ 'top-mid': '┬',
47001
+ 'top-left': '┌',
47002
+ 'top-right': '┐',
47003
+ bottom: '─',
47004
+ 'bottom-mid': '┴',
47005
+ 'bottom-left': '└',
47006
+ 'bottom-right': '┘',
47007
+ left: '│',
47008
+ 'left-mid': '├',
47009
+ mid: '─',
47010
+ 'mid-mid': '┼',
47011
+ right: '│',
47012
+ 'right-mid': '┤',
47013
+ middle: '│',
47014
+ },
47015
+ truncate: '…',
47016
+ colWidths: [],
47017
+ rowHeights: [],
47018
+ colAligns: [],
47019
+ rowAligns: [],
47020
+ style: {
47021
+ 'padding-left': 1,
47022
+ 'padding-right': 1,
47023
+ head: ['red'],
47024
+ border: ['grey'],
47025
+ compact: false,
47026
+ },
47027
+ head: [],
47028
+ };
47029
+ }
47030
+
47031
+ function mergeOptions(options, defaults) {
47032
+ options = options || {};
47033
+ defaults = defaults || defaultOptions();
47034
+ let ret = Object.assign({}, defaults, options);
47035
+ ret.chars = Object.assign({}, defaults.chars, options.chars);
47036
+ ret.style = Object.assign({}, defaults.style, options.style);
47037
+ return ret;
47038
+ }
47039
+
47040
+ // Wrap on word boundary
47041
+ function wordWrap(maxLength, input) {
47042
+ let lines = [];
47043
+ let split = input.split(/(\s+)/g);
47044
+ let line = [];
47045
+ let lineLength = 0;
47046
+ let whitespace;
47047
+ for (let i = 0; i < split.length; i += 2) {
47048
+ let word = split[i];
47049
+ let newLength = lineLength + strlen(word);
47050
+ if (lineLength > 0 && whitespace) {
47051
+ newLength += whitespace.length;
47052
+ }
47053
+ if (newLength > maxLength) {
47054
+ if (lineLength !== 0) {
47055
+ lines.push(line.join(''));
47056
+ }
47057
+ line = [word];
47058
+ lineLength = strlen(word);
47059
+ } else {
47060
+ line.push(whitespace || '', word);
47061
+ lineLength = newLength;
47062
+ }
47063
+ whitespace = split[i + 1];
47064
+ }
47065
+ if (lineLength) {
47066
+ lines.push(line.join(''));
47067
+ }
47068
+ return lines;
47069
+ }
47070
+
47071
+ // Wrap text (ignoring word boundaries)
47072
+ function textWrap(maxLength, input) {
47073
+ let lines = [];
47074
+ let line = '';
47075
+ function pushLine(str, ws) {
47076
+ if (line.length && ws) line += ws;
47077
+ line += str;
47078
+ while (line.length > maxLength) {
47079
+ lines.push(line.slice(0, maxLength));
47080
+ line = line.slice(maxLength);
47081
+ }
47082
+ }
47083
+ let split = input.split(/(\s+)/g);
47084
+ for (let i = 0; i < split.length; i += 2) {
47085
+ pushLine(split[i], i && split[i - 1]);
47086
+ }
47087
+ if (line.length) lines.push(line);
47088
+ return lines;
47089
+ }
47090
+
47091
+ function multiLineWordWrap(maxLength, input, wrapOnWordBoundary = true) {
47092
+ let output = [];
47093
+ input = input.split('\n');
47094
+ const handler = wrapOnWordBoundary ? wordWrap : textWrap;
47095
+ for (let i = 0; i < input.length; i++) {
47096
+ output.push.apply(output, handler(maxLength, input[i]));
47097
+ }
47098
+ return output;
47099
+ }
47100
+
47101
+ function colorizeLines(input) {
47102
+ let state = {};
47103
+ let output = [];
47104
+ for (let i = 0; i < input.length; i++) {
47105
+ let line = rewindState(state, input[i]);
47106
+ state = readState(line);
47107
+ let temp = Object.assign({}, state);
47108
+ output.push(unwindState(temp, line));
47109
+ }
47110
+ return output;
47111
+ }
47112
+
47113
+ /**
47114
+ * Credit: Matheus Sampaio https://github.com/matheussampaio
47115
+ */
47116
+ function hyperlink(url, text) {
47117
+ const OSC = '\u001B]';
47118
+ const BEL = '\u0007';
47119
+ const SEP = ';';
47120
+
47121
+ return [OSC, '8', SEP, SEP, url || text, BEL, text, OSC, '8', SEP, SEP, BEL].join('');
47122
+ }
47123
+
47124
+ module.exports = {
47125
+ strlen: strlen,
47126
+ repeat: repeat,
47127
+ pad: pad,
47128
+ truncate: truncate,
47129
+ mergeOptions: mergeOptions,
47130
+ wordWrap: multiLineWordWrap,
47131
+ colorizeLines: colorizeLines,
47132
+ hyperlink,
47133
+ };
47134
+
47135
+
45186
47136
  /***/ }),
45187
47137
 
45188
47138
  /***/ 48216:
@@ -210895,9 +212845,6 @@ class Secrets extends (util_default()) {
210895
212845
  // EXTERNAL MODULE: ./src/util/exit.ts
210896
212846
  var exit = __webpack_require__(25661);
210897
212847
 
210898
- // EXTERNAL MODULE: ./src/util/output/logo.ts
210899
- var logo = __webpack_require__(66669);
210900
-
210901
212848
  // EXTERNAL MODULE: ./src/util/get-scope.ts
210902
212849
  var get_scope = __webpack_require__(60324);
210903
212850
  var get_scope_default = /*#__PURE__*/__webpack_require__.n(get_scope);
@@ -210929,7 +212876,6 @@ var pkg_name = __webpack_require__(79000);
210929
212876
 
210930
212877
 
210931
212878
 
210932
-
210933
212879
  const help = () => {
210934
212880
  console.log(`
210935
212881
  ${source_default().yellow(
@@ -210938,7 +212884,7 @@ const help = () => {
210938
212884
  )} command is recommended instead of ${(0,pkg_name.getCommandName)('secrets')}`
210939
212885
  )}
210940
212886
 
210941
- ${source_default().bold(`${logo.default} ${(0,pkg_name.getPkgName)()} secrets`)} [options] <command>
212887
+ ${source_default().bold(`${pkg_name.logo} ${pkg_name.packageName} secrets`)} [options] <command>
210942
212888
 
210943
212889
  ${source_default().dim('Commands:')}
210944
212890
 
@@ -210967,7 +212913,7 @@ const help = () => {
210967
212913
 
210968
212914
  ${source_default().gray('–')} Add a new secret
210969
212915
 
210970
- ${source_default().cyan(`$ ${(0,pkg_name.getPkgName)()} secrets add my-secret "my value"`)}
212916
+ ${source_default().cyan(`$ ${pkg_name.packageName} secrets add my-secret "my value"`)}
210971
212917
 
210972
212918
  ${source_default().gray(
210973
212919
  '–'
@@ -210983,13 +212929,13 @@ const help = () => {
210983
212929
  '`@`'
210984
212930
  )} symbol)
210985
212931
 
210986
- ${source_default().cyan(`$ ${(0,pkg_name.getPkgName)()} -e MY_SECRET=${source_default().bold('@my-secret')}`)}
212932
+ ${source_default().cyan(`$ ${pkg_name.packageName} -e MY_SECRET=${source_default().bold('@my-secret')}`)}
210987
212933
 
210988
212934
  ${source_default().gray('–')} Paginate results, where ${source_default().dim(
210989
212935
  '`1584722256178`'
210990
212936
  )} is the time in milliseconds since the UNIX epoch
210991
212937
 
210992
- ${source_default().cyan(`$ ${(0,pkg_name.getPkgName)()} secrets ls --next 1584722256178`)}
212938
+ ${source_default().cyan(`$ ${pkg_name.packageName} secrets ls --next 1584722256178`)}
210993
212939
  `);
210994
212940
  };
210995
212941
 
@@ -212948,7 +214894,7 @@ exports.frameworks = [
212948
214894
  cachePattern: '.cache/**',
212949
214895
  },
212950
214896
  {
212951
- name: 'Docusaurus 2',
214897
+ name: 'Docusaurus (v2)',
212952
214898
  slug: 'docusaurus-2',
212953
214899
  demo: 'https://docusaurus-2-template.vercel.app',
212954
214900
  logo: 'https://api-frameworks.vercel.sh/framework-logos/docusaurus.svg',
@@ -213031,7 +214977,7 @@ exports.frameworks = [
213031
214977
  ],
213032
214978
  },
213033
214979
  {
213034
- name: 'Docusaurus 1',
214980
+ name: 'Docusaurus (v1)',
213035
214981
  slug: 'docusaurus',
213036
214982
  demo: 'https://docusaurus-template.vercel.app',
213037
214983
  logo: 'https://api-frameworks.vercel.sh/framework-logos/docusaurus.svg',
@@ -213554,7 +215500,7 @@ exports.frameworks = [
213554
215500
  },
213555
215501
  {
213556
215502
  // TODO: fix detected as "sveltekit-1"
213557
- name: 'SvelteKit (Legacy Beta)',
215503
+ name: 'SvelteKit (v0)',
213558
215504
  slug: 'sveltekit',
213559
215505
  demo: 'https://sveltekit-template.vercel.app',
213560
215506
  logo: 'https://api-frameworks.vercel.sh/framework-logos/svelte.svg',
@@ -213591,7 +215537,7 @@ exports.frameworks = [
213591
215537
  getOutputDirName: async () => 'public',
213592
215538
  },
213593
215539
  {
213594
- name: 'SvelteKit',
215540
+ name: 'SvelteKit (v1)',
213595
215541
  slug: 'sveltekit-1',
213596
215542
  demo: 'https://sveltekit-1-template.vercel.app',
213597
215543
  logo: 'https://api-frameworks.vercel.sh/framework-logos/svelte.svg',
@@ -214250,7 +216196,7 @@ exports.frameworks = [
214250
216196
  defaultVersion: '0.13.0', // Must match the build image
214251
216197
  },
214252
216198
  {
214253
- name: 'Hydrogen',
216199
+ name: 'Hydrogen (v1)',
214254
216200
  slug: 'hydrogen',
214255
216201
  demo: 'https://hydrogen-template.vercel.app',
214256
216202
  logo: 'https://api-frameworks.vercel.sh/framework-logos/hydrogen.svg',
@@ -217929,10 +219875,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
217929
219875
  Object.defineProperty(exports, "__esModule", ({ value: true }));
217930
219876
  exports.help = void 0;
217931
219877
  const chalk_1 = __importDefault(__webpack_require__(90877));
217932
- const logo_1 = __importDefault(__webpack_require__(66669));
217933
219878
  const pkg_name_1 = __webpack_require__(79000);
217934
219879
  const help = () => `
217935
- ${chalk_1.default.bold(`${logo_1.default} ${(0, pkg_name_1.getPkgName)()}`)} [options] <command | path>
219880
+ ${chalk_1.default.bold(`${pkg_name_1.logo} ${pkg_name_1.packageName}`)} [options] <command | path>
217936
219881
 
217937
219882
  ${chalk_1.default.dim('For deploy command help, run `vercel deploy --help`')}
217938
219883
 
@@ -217987,19 +219932,19 @@ const help = () => `
217987
219932
 
217988
219933
  ${chalk_1.default.gray('–')} Deploy the current directory
217989
219934
 
217990
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()}`)}
219935
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName}`)}
217991
219936
 
217992
219937
  ${chalk_1.default.gray('–')} Deploy a custom path
217993
219938
 
217994
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} /usr/src/project`)}
219939
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} /usr/src/project`)}
217995
219940
 
217996
219941
  ${chalk_1.default.gray('–')} Deploy with Environment Variables
217997
219942
 
217998
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} -e NODE_ENV=production`)}
219943
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} -e NODE_ENV=production`)}
217999
219944
 
218000
219945
  ${chalk_1.default.gray('–')} Show the usage information for the sub command ${chalk_1.default.dim('`list`')}
218001
219946
 
218002
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} help list`)}
219947
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} help list`)}
218003
219948
  `;
218004
219949
  exports.help = help;
218005
219950
 
@@ -218019,14 +219964,13 @@ const chalk_1 = __importDefault(__webpack_require__(90877));
218019
219964
  const error_1 = __webpack_require__(4400);
218020
219965
  const get_args_1 = __importDefault(__webpack_require__(2505));
218021
219966
  const get_subcommand_1 = __importDefault(__webpack_require__(66167));
218022
- const logo_1 = __importDefault(__webpack_require__(66669));
218023
219967
  const pkg_name_1 = __webpack_require__(79000);
218024
219968
  const ls_1 = __importDefault(__webpack_require__(74021));
218025
219969
  const rm_1 = __importDefault(__webpack_require__(48863));
218026
219970
  const set_1 = __importDefault(__webpack_require__(80734));
218027
219971
  const help = () => {
218028
219972
  console.log(`
218029
- ${chalk_1.default.bold(`${logo_1.default} ${(0, pkg_name_1.getPkgName)()} alias`)} [options] <command>
219973
+ ${chalk_1.default.bold(`${pkg_name_1.logo} ${pkg_name_1.packageName} alias`)} [options] <command>
218030
219974
 
218031
219975
  ${chalk_1.default.dim('Commands:')}
218032
219976
 
@@ -218051,11 +219995,11 @@ const help = () => {
218051
219995
 
218052
219996
  ${chalk_1.default.gray('–')} Add a new alias to ${chalk_1.default.underline('my-api.vercel.app')}
218053
219997
 
218054
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} alias set ${chalk_1.default.underline('api-ownv3nc9f8.vercel.app')} ${chalk_1.default.underline('my-api.vercel.app')}`)}
219998
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} alias set ${chalk_1.default.underline('api-ownv3nc9f8.vercel.app')} ${chalk_1.default.underline('my-api.vercel.app')}`)}
218055
219999
 
218056
220000
  Custom domains work as alias targets
218057
220001
 
218058
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} alias set ${chalk_1.default.underline('api-ownv3nc9f8.vercel.app')} ${chalk_1.default.underline('my-api.com')}`)}
220002
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} alias set ${chalk_1.default.underline('api-ownv3nc9f8.vercel.app')} ${chalk_1.default.underline('my-api.com')}`)}
218059
220003
 
218060
220004
  ${chalk_1.default.dim('–')} The subcommand ${chalk_1.default.dim('`set`')} is the default and can be skipped.
218061
220005
  ${chalk_1.default.dim('–')} ${chalk_1.default.dim('Protocols')} in the URLs are unneeded and ignored.
@@ -218541,15 +220485,15 @@ exports.bisectCommand = {
218541
220485
  examples: [
218542
220486
  {
218543
220487
  name: 'Bisect the current project interactively',
218544
- value: `${(0, pkg_name_1.getPkgName)()} bisect`,
220488
+ value: `${pkg_name_1.packageName} bisect`,
218545
220489
  },
218546
220490
  {
218547
220491
  name: 'Bisect with a known bad deployment',
218548
- value: `${(0, pkg_name_1.getPkgName)()} bisect --bad example-310pce9i0.vercel.app`,
220492
+ value: `${pkg_name_1.packageName} bisect --bad example-310pce9i0.vercel.app`,
218549
220493
  },
218550
220494
  {
218551
220495
  name: 'Automated bisect with a run script',
218552
- value: `${(0, pkg_name_1.getPkgName)()} bisect --run ./test.sh`,
220496
+ value: `${pkg_name_1.packageName} bisect --run ./test.sh`,
218553
220497
  },
218554
220498
  ],
218555
220499
  };
@@ -218882,11 +220826,11 @@ exports.buildCommand = {
218882
220826
  examples: [
218883
220827
  {
218884
220828
  name: 'Build the project',
218885
- value: `${(0, pkg_name_1.getPkgName)()} build`,
220829
+ value: `${pkg_name_1.packageName} build`,
218886
220830
  },
218887
220831
  {
218888
220832
  name: 'Build the project in a specific directory',
218889
- value: `${(0, pkg_name_1.getPkgName)()} build --cwd ./path-to-project`,
220833
+ value: `${pkg_name_1.packageName} build --cwd ./path-to-project`,
218890
220834
  },
218891
220835
  ],
218892
220836
  };
@@ -218959,12 +220903,13 @@ const validate_config_1 = __webpack_require__(21144);
218959
220903
  const monorepo_1 = __webpack_require__(21481);
218960
220904
  const help_1 = __webpack_require__(58219);
218961
220905
  const command_1 = __webpack_require__(29216);
220906
+ const scrub_argv_1 = __webpack_require__(18119);
218962
220907
  async function main(client) {
218963
220908
  let { cwd } = client;
218964
220909
  const { output } = client;
218965
220910
  // Ensure that `vc build` is not being invoked recursively
218966
220911
  if (process.env.__VERCEL_BUILD_RUNNING) {
218967
- output.error(`${(0, cmd_1.default)(`${cli.name} build`)} must not recursively invoke itself. Check the Build Command in the Project Settings or the ${(0, cmd_1.default)('build')} script in ${(0, cmd_1.default)('package.json')}`);
220912
+ output.error(`${(0, cmd_1.default)(`${cli.packageName} build`)} must not recursively invoke itself. Check the Build Command in the Project Settings or the ${(0, cmd_1.default)('build')} script in ${(0, cmd_1.default)('package.json')}`);
218968
220913
  output.error(`Learn More: https://vercel.link/recursive-invocation-of-commands`);
218969
220914
  return 1;
218970
220915
  }
@@ -219045,7 +220990,7 @@ async function main(client) {
219045
220990
  const buildsJson = {
219046
220991
  '//': 'This file was generated by the `vercel build` command. It is not part of the Build Output API.',
219047
220992
  target,
219048
- argv: process.argv,
220993
+ argv: (0, scrub_argv_1.scrubArgv)(process.argv),
219049
220994
  };
219050
220995
  const envToUnset = new Set(['VERCEL', 'NOW_BUILDER']);
219051
220996
  try {
@@ -219558,7 +221503,6 @@ const chalk_1 = __importDefault(__webpack_require__(90877));
219558
221503
  const error_1 = __webpack_require__(4400);
219559
221504
  const get_args_1 = __importDefault(__webpack_require__(2505));
219560
221505
  const get_subcommand_1 = __importDefault(__webpack_require__(66167));
219561
- const logo_1 = __importDefault(__webpack_require__(66669));
219562
221506
  const add_1 = __importDefault(__webpack_require__(30033));
219563
221507
  const issue_1 = __importDefault(__webpack_require__(14008));
219564
221508
  const ls_1 = __importDefault(__webpack_require__(15922));
@@ -219566,7 +221510,7 @@ const rm_1 = __importDefault(__webpack_require__(55667));
219566
221510
  const pkg_name_1 = __webpack_require__(79000);
219567
221511
  const help = () => {
219568
221512
  console.log(`
219569
- ${chalk_1.default.bold(`${logo_1.default} ${(0, pkg_name_1.getPkgName)()} certs`)} [options] <command>
221513
+ ${chalk_1.default.bold(`${pkg_name_1.logo} ${pkg_name_1.packageName} certs`)} [options] <command>
219570
221514
 
219571
221515
  ${chalk_1.default.yellow('NOTE:')} This command is intended for advanced use only.
219572
221516
  By default, Vercel manages your certificates automatically.
@@ -219597,15 +221541,15 @@ const help = () => {
219597
221541
 
219598
221542
  ${chalk_1.default.gray('–')} Generate a certificate with the cnames "acme.com" and "www.acme.com"
219599
221543
 
219600
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} certs issue acme.com www.acme.com`)}
221544
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} certs issue acme.com www.acme.com`)}
219601
221545
 
219602
221546
  ${chalk_1.default.gray('–')} Remove a certificate
219603
221547
 
219604
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} certs rm id`)}
221548
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} certs rm id`)}
219605
221549
 
219606
221550
  ${chalk_1.default.gray('–')} Paginate results, where ${chalk_1.default.dim('`1584722256178`')} is the time in milliseconds since the UNIX epoch.
219607
221551
 
219608
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} certs ls --next 1584722256178`)}
221552
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} certs ls --next 1584722256178`)}
219609
221553
  `);
219610
221554
  };
219611
221555
  const COMMAND_CONFIG = {
@@ -220868,7 +222812,6 @@ const get_args_1 = __importDefault(__webpack_require__(2505));
220868
222812
  const get_subcommand_1 = __importDefault(__webpack_require__(66167));
220869
222813
  const now_error_1 = __webpack_require__(22216);
220870
222814
  const handle_error_1 = __importDefault(__webpack_require__(64377));
220871
- const logo_1 = __importDefault(__webpack_require__(66669));
220872
222815
  const cmd_1 = __importDefault(__webpack_require__(62422));
220873
222816
  const highlight_1 = __importDefault(__webpack_require__(34661));
220874
222817
  const dev_1 = __importDefault(__webpack_require__(7532));
@@ -220882,9 +222825,9 @@ const COMMAND_CONFIG = {
220882
222825
  };
220883
222826
  const help = () => {
220884
222827
  console.log(`
220885
- ${chalk_1.default.bold(`${logo_1.default} ${(0, pkg_name_1.getPkgName)()} dev`)} [options] <dir>
222828
+ ${chalk_1.default.bold(`${pkg_name_1.logo} ${pkg_name_1.packageName} dev`)} [options] <dir>
220886
222829
 
220887
- Starts the \`${(0, pkg_name_1.getPkgName)()} dev\` server.
222830
+ Starts the \`${pkg_name_1.packageName} dev\` server.
220888
222831
 
220889
222832
  ${chalk_1.default.dim('Options:')}
220890
222833
 
@@ -220897,18 +222840,18 @@ const help = () => {
220897
222840
 
220898
222841
  ${chalk_1.default.dim('Examples:')}
220899
222842
 
220900
- ${chalk_1.default.gray('–')} Start the \`${(0, pkg_name_1.getPkgName)()} dev\` server on port 8080
222843
+ ${chalk_1.default.gray('–')} Start the \`${pkg_name_1.packageName} dev\` server on port 8080
220901
222844
 
220902
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} dev --listen 8080`)}
222845
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} dev --listen 8080`)}
220903
222846
 
220904
222847
  ${chalk_1.default.gray('–')} Make the \`vercel dev\` server bind to localhost on port 5000
220905
222848
 
220906
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} dev --listen 127.0.0.1:5000`)}
222849
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} dev --listen 127.0.0.1:5000`)}
220907
222850
  `);
220908
222851
  };
220909
222852
  async function main(client) {
220910
222853
  if (process.env.__VERCEL_DEV_RUNNING) {
220911
- client.output.error(`${(0, cmd_1.default)(`${(0, pkg_name_1.getPkgName)()} dev`)} must not recursively invoke itself. Check the Development Command in the Project Settings or the ${(0, cmd_1.default)('dev')} script in ${(0, cmd_1.default)('package.json')}`);
222854
+ client.output.error(`${(0, cmd_1.default)(`${pkg_name_1.packageName} dev`)} must not recursively invoke itself. Check the Development Command in the Project Settings or the ${(0, cmd_1.default)('dev')} script in ${(0, cmd_1.default)('package.json')}`);
220912
222855
  client.output.error(`Learn More: https://vercel.link/recursive-invocation-of-commands`);
220913
222856
  return 1;
220914
222857
  }
@@ -220961,7 +222904,7 @@ async function main(client) {
220961
222904
  return 1;
220962
222905
  }
220963
222906
  if (/\b(now|vercel)\b\W+\bdev\b/.test(pkg?.scripts?.dev || '')) {
220964
- client.output.error(`${(0, cmd_1.default)(`${(0, pkg_name_1.getPkgName)()} dev`)} must not recursively invoke itself. Check the Development Command in the Project Settings or the ${(0, cmd_1.default)('dev')} script in ${(0, cmd_1.default)('package.json')}`);
222907
+ client.output.error(`${(0, cmd_1.default)(`${pkg_name_1.packageName} dev`)} must not recursively invoke itself. Check the Development Command in the Project Settings or the ${(0, cmd_1.default)('dev')} script in ${(0, cmd_1.default)('package.json')}`);
220965
222908
  client.output.error(`Learn More: https://vercel.link/recursive-invocation-of-commands`);
220966
222909
  return 1;
220967
222910
  }
@@ -221120,7 +223063,6 @@ const chalk_1 = __importDefault(__webpack_require__(90877));
221120
223063
  const get_args_1 = __importDefault(__webpack_require__(2505));
221121
223064
  const get_subcommand_1 = __importDefault(__webpack_require__(66167));
221122
223065
  const handle_error_1 = __importDefault(__webpack_require__(64377));
221123
- const logo_1 = __importDefault(__webpack_require__(66669));
221124
223066
  const pkg_name_1 = __webpack_require__(79000);
221125
223067
  const add_1 = __importDefault(__webpack_require__(25169));
221126
223068
  const import_1 = __importDefault(__webpack_require__(47626));
@@ -221128,7 +223070,7 @@ const ls_1 = __importDefault(__webpack_require__(35789));
221128
223070
  const rm_1 = __importDefault(__webpack_require__(42206));
221129
223071
  const help = () => {
221130
223072
  console.log(`
221131
- ${chalk_1.default.bold(`${logo_1.default} ${(0, pkg_name_1.getPkgName)()} dns`)} [options] <command>
223073
+ ${chalk_1.default.bold(`${pkg_name_1.logo} ${pkg_name_1.packageName} dns`)} [options] <command>
221132
223074
 
221133
223075
  ${chalk_1.default.dim('Commands:')}
221134
223076
 
@@ -221153,33 +223095,33 @@ const help = () => {
221153
223095
 
221154
223096
  ${chalk_1.default.gray('–')} Add an A record for a subdomain
221155
223097
 
221156
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} dns add <DOMAIN> <SUBDOMAIN> <A | AAAA | ALIAS | CNAME | TXT> <VALUE>`)}
221157
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} dns add zeit.rocks api A 198.51.100.100`)}
223098
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} dns add <DOMAIN> <SUBDOMAIN> <A | AAAA | ALIAS | CNAME | TXT> <VALUE>`)}
223099
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} dns add zeit.rocks api A 198.51.100.100`)}
221158
223100
 
221159
223101
  ${chalk_1.default.gray('–')} Add an MX record (@ as a name refers to the domain)
221160
223102
 
221161
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} dns add <DOMAIN> '@' MX <RECORD VALUE> <PRIORITY>`)}
221162
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} dns add zeit.rocks '@' MX mail.zeit.rocks 10`)}
223103
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} dns add <DOMAIN> '@' MX <RECORD VALUE> <PRIORITY>`)}
223104
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} dns add zeit.rocks '@' MX mail.zeit.rocks 10`)}
221163
223105
 
221164
223106
  ${chalk_1.default.gray('–')} Add an SRV record
221165
223107
 
221166
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} dns add <DOMAIN> <NAME> SRV <PRIORITY> <WEIGHT> <PORT> <TARGET>`)}
221167
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} dns add zeit.rocks '@' SRV 10 0 389 zeit.party`)}
223108
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} dns add <DOMAIN> <NAME> SRV <PRIORITY> <WEIGHT> <PORT> <TARGET>`)}
223109
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} dns add zeit.rocks '@' SRV 10 0 389 zeit.party`)}
221168
223110
 
221169
223111
  ${chalk_1.default.gray('–')} Add a CAA record
221170
223112
 
221171
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} dns add <DOMAIN> <NAME> CAA '<FLAGS> <TAG> "<VALUE>"'`)}
221172
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} dns add zeit.rocks '@' CAA '0 issue "example.com"'`)}
223113
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} dns add <DOMAIN> <NAME> CAA '<FLAGS> <TAG> "<VALUE>"'`)}
223114
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} dns add zeit.rocks '@' CAA '0 issue "example.com"'`)}
221173
223115
 
221174
223116
  ${chalk_1.default.gray('–')} Import a Zone file
221175
223117
 
221176
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} dns import <DOMAIN> <FILE>`)}
221177
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} dns import zeit.rocks ./zonefile.txt`)}
223118
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} dns import <DOMAIN> <FILE>`)}
223119
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} dns import zeit.rocks ./zonefile.txt`)}
221178
223120
 
221179
223121
  ${chalk_1.default.gray('–')} Paginate results, where ${chalk_1.default.dim('`1584722256178`')} is the time in milliseconds since the UNIX epoch.
221180
223122
 
221181
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} dns ls --next 1584722256178`)}
221182
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} dns ls zeit.rocks --next 1584722256178`)}
223123
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} dns ls --next 1584722256178`)}
223124
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} dns ls zeit.rocks --next 1584722256178`)}
221183
223125
  `);
221184
223126
  };
221185
223127
  const COMMAND_CONFIG = {
@@ -221660,7 +223602,6 @@ const chalk_1 = __importDefault(__webpack_require__(90877));
221660
223602
  const get_args_1 = __importDefault(__webpack_require__(2505));
221661
223603
  const get_subcommand_1 = __importDefault(__webpack_require__(66167));
221662
223604
  const handle_error_1 = __importDefault(__webpack_require__(64377));
221663
- const logo_1 = __importDefault(__webpack_require__(66669));
221664
223605
  const add_1 = __importDefault(__webpack_require__(5004));
221665
223606
  const buy_1 = __importDefault(__webpack_require__(93608));
221666
223607
  const transfer_in_1 = __importDefault(__webpack_require__(54878));
@@ -221671,7 +223612,7 @@ const move_1 = __importDefault(__webpack_require__(41020));
221671
223612
  const pkg_name_1 = __webpack_require__(79000);
221672
223613
  const help = () => {
221673
223614
  console.log(`
221674
- ${chalk_1.default.bold(`${logo_1.default} ${(0, pkg_name_1.getPkgName)()} domains`)} [options] <command>
223615
+ ${chalk_1.default.bold(`${pkg_name_1.logo} ${pkg_name_1.packageName} domains`)} [options] <command>
221675
223616
 
221676
223617
  ${chalk_1.default.dim('Commands:')}
221677
223618
 
@@ -221701,17 +223642,17 @@ const help = () => {
221701
223642
 
221702
223643
  ${chalk_1.default.gray('–')} Add a domain that you already own
221703
223644
 
221704
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} domains add ${chalk_1.default.underline('domain-name.com')}`)}
223645
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} domains add ${chalk_1.default.underline('domain-name.com')}`)}
221705
223646
 
221706
223647
  Make sure the domain's DNS nameservers are at least 2 of the
221707
223648
  ones listed on ${chalk_1.default.underline('https://vercel.com/edge-network')}.
221708
223649
 
221709
- ${chalk_1.default.yellow('NOTE:')} Running ${chalk_1.default.dim(`${(0, pkg_name_1.getPkgName)()} alias`)} will automatically register your domain
223650
+ ${chalk_1.default.yellow('NOTE:')} Running ${chalk_1.default.dim(`${pkg_name_1.packageName} alias`)} will automatically register your domain
221710
223651
  if it's configured with these nameservers (no need to ${chalk_1.default.dim('`domain add`')}).
221711
223652
 
221712
223653
  ${chalk_1.default.gray('–')} Paginate results, where ${chalk_1.default.dim('`1584722256178`')} is the time in milliseconds since the UNIX epoch.
221713
223654
 
221714
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} domains ls --next 1584722256178`)}
223655
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} domains ls --next 1584722256178`)}
221715
223656
  `);
221716
223657
  };
221717
223658
  const COMMAND_CONFIG = {
@@ -222545,7 +224486,6 @@ const get_args_1 = __importDefault(__webpack_require__(2505));
222545
224486
  const get_invalid_subcommand_1 = __importDefault(__webpack_require__(6479));
222546
224487
  const get_subcommand_1 = __importDefault(__webpack_require__(66167));
222547
224488
  const handle_error_1 = __importDefault(__webpack_require__(64377));
222548
- const logo_1 = __importDefault(__webpack_require__(66669));
222549
224489
  const pkg_name_1 = __webpack_require__(79000);
222550
224490
  const link_1 = __webpack_require__(49347);
222551
224491
  const add_1 = __importDefault(__webpack_require__(12185));
@@ -222555,7 +224495,7 @@ const rm_1 = __importDefault(__webpack_require__(66266));
222555
224495
  const help = () => {
222556
224496
  const targetPlaceholder = (0, env_target_1.getEnvTargetPlaceholder)();
222557
224497
  console.log(`
222558
- ${chalk_1.default.bold(`${logo_1.default} ${(0, pkg_name_1.getPkgName)()} env`)} [options] <command>
224498
+ ${chalk_1.default.bold(`${pkg_name_1.logo} ${pkg_name_1.packageName} env`)} [options] <command>
222559
224499
 
222560
224500
  ${chalk_1.default.dim('Commands:')}
222561
224501
 
@@ -222580,44 +224520,44 @@ const help = () => {
222580
224520
 
222581
224521
  ${chalk_1.default.gray('–')} Pull all Development Environment Variables down from the cloud
222582
224522
 
222583
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} env pull <file>`)}
222584
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} env pull .env.development.local`)}
224523
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} env pull <file>`)}
224524
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} env pull .env.development.local`)}
222585
224525
 
222586
224526
  ${chalk_1.default.gray('–')} Add a new variable to multiple Environments
222587
224527
 
222588
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} env add <name>`)}
222589
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} env add API_TOKEN`)}
224528
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} env add <name>`)}
224529
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} env add API_TOKEN`)}
222590
224530
 
222591
224531
  ${chalk_1.default.gray('–')} Add a new variable for a specific Environment
222592
224532
 
222593
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} env add <name> ${targetPlaceholder}`)}
222594
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} env add DB_PASS production`)}
224533
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} env add <name> ${targetPlaceholder}`)}
224534
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} env add DB_PASS production`)}
222595
224535
 
222596
224536
  ${chalk_1.default.gray('–')} Add a new variable for a specific Environment and Git Branch
222597
224537
 
222598
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} env add <name> ${targetPlaceholder} <gitbranch>`)}
222599
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} env add DB_PASS preview feat1`)}
224538
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} env add <name> ${targetPlaceholder} <gitbranch>`)}
224539
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} env add DB_PASS preview feat1`)}
222600
224540
 
222601
224541
  ${chalk_1.default.gray('–')} Add a new Environment Variable from stdin
222602
224542
 
222603
- ${chalk_1.default.cyan(`$ cat <file> | ${(0, pkg_name_1.getPkgName)()} env add <name> ${targetPlaceholder}`)}
222604
- ${chalk_1.default.cyan(`$ cat ~/.npmrc | ${(0, pkg_name_1.getPkgName)()} env add NPM_RC preview`)}
222605
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} env add API_URL production < url.txt`)}
224543
+ ${chalk_1.default.cyan(`$ cat <file> | ${pkg_name_1.packageName} env add <name> ${targetPlaceholder}`)}
224544
+ ${chalk_1.default.cyan(`$ cat ~/.npmrc | ${pkg_name_1.packageName} env add NPM_RC preview`)}
224545
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} env add API_URL production < url.txt`)}
222606
224546
 
222607
224547
  ${chalk_1.default.gray('–')} Remove a variable from multiple Environments
222608
224548
 
222609
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} env rm <name>`)}
222610
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} env rm API_TOKEN`)}
224549
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} env rm <name>`)}
224550
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} env rm API_TOKEN`)}
222611
224551
 
222612
224552
  ${chalk_1.default.gray('–')} Remove a variable from a specific Environment
222613
224553
 
222614
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} env rm <name> ${targetPlaceholder}`)}
222615
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} env rm NPM_RC preview`)}
224554
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} env rm <name> ${targetPlaceholder}`)}
224555
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} env rm NPM_RC preview`)}
222616
224556
 
222617
224557
  ${chalk_1.default.gray('–')} Remove a variable from a specific Environment and Git Branch
222618
224558
 
222619
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} env rm <name> ${targetPlaceholder} <gitbranch>`)}
222620
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} env rm NPM_RC preview feat1`)}
224559
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} env rm <name> ${targetPlaceholder} <gitbranch>`)}
224560
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} env rm NPM_RC preview feat1`)}
222621
224561
  `);
222622
224562
  };
222623
224563
  const COMMAND_CONFIG = {
@@ -223296,13 +225236,12 @@ const ensure_link_1 = __webpack_require__(65382);
223296
225236
  const get_args_1 = __importDefault(__webpack_require__(2505));
223297
225237
  const get_invalid_subcommand_1 = __importDefault(__webpack_require__(6479));
223298
225238
  const handle_error_1 = __importDefault(__webpack_require__(64377));
223299
- const logo_1 = __importDefault(__webpack_require__(66669));
223300
225239
  const pkg_name_1 = __webpack_require__(79000);
223301
225240
  const connect_1 = __importDefault(__webpack_require__(44813));
223302
225241
  const disconnect_1 = __importDefault(__webpack_require__(47108));
223303
225242
  const help = () => {
223304
225243
  console.log(`
223305
- ${chalk_1.default.bold(`${logo_1.default} ${(0, pkg_name_1.getPkgName)()} git`)} <command>
225244
+ ${chalk_1.default.bold(`${pkg_name_1.logo} ${pkg_name_1.packageName} git`)} <command>
223306
225245
 
223307
225246
  ${chalk_1.default.dim('Commands:')}
223308
225247
 
@@ -223319,15 +225258,15 @@ const help = () => {
223319
225258
 
223320
225259
  ${chalk_1.default.gray('–')} Connect your Vercel Project to your Git repository defined in your local .git config
223321
225260
 
223322
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} git connect`)}
225261
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} git connect`)}
223323
225262
 
223324
225263
  ${chalk_1.default.gray('–')} Connect your Vercel Project to a Git repository using the remote URL
223325
225264
 
223326
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} git connect https://github.com/user/repo.git`)}
225265
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} git connect https://github.com/user/repo.git`)}
223327
225266
 
223328
225267
  ${chalk_1.default.gray('–')} Disconnect the Git provider repository
223329
225268
 
223330
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} git disconnect`)}
225269
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} git disconnect`)}
223331
225270
  `);
223332
225271
  };
223333
225272
  const COMMAND_CONFIG = {
@@ -223390,10 +225329,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
223390
225329
  return (mod && mod.__esModule) ? mod : { "default": mod };
223391
225330
  };
223392
225331
  Object.defineProperty(exports, "__esModule", ({ value: true }));
223393
- exports.help = exports.buildHelpOutput = exports.buildCommandExampleLines = exports.buildCommandOptionLines = exports.buildCommandSynopsisLine = exports.outputArrayToString = exports.lineToString = exports.calcLineLength = void 0;
225332
+ exports.help = exports.buildHelpOutput = exports.buildCommandExampleLines = exports.buildCommandOptionLines = exports.buildCommandSynopsisLine = exports.outputArrayToString = exports.lineToString = void 0;
223394
225333
  const chalk_1 = __importDefault(__webpack_require__(90877));
223395
- const strip_ansi_1 = __importDefault(__webpack_require__(66884));
223396
225334
  const constants_1 = __webpack_require__(98551);
225335
+ const cli_table3_1 = __importDefault(__webpack_require__(47579));
223397
225336
  const INDENT = ' '.repeat(2);
223398
225337
  const NEWLINE = '\n';
223399
225338
  const globalCommandOptions = [
@@ -223474,10 +225413,6 @@ const globalCommandOptions = [
223474
225413
  multi: false,
223475
225414
  },
223476
225415
  ];
223477
- function calcLineLength(line) {
223478
- return (0, strip_ansi_1.default)(lineToString(line)).length;
223479
- }
223480
- exports.calcLineLength = calcLineLength;
223481
225416
  // Insert spaces in between non-whitespace items only
223482
225417
  function lineToString(line) {
223483
225418
  let string = '';
@@ -223526,84 +225461,72 @@ function buildCommandSynopsisLine(command) {
223526
225461
  }
223527
225462
  exports.buildCommandSynopsisLine = buildCommandSynopsisLine;
223528
225463
  function buildCommandOptionLines(commandOptions, options, sectionTitle) {
223529
- // Filter out deprecated and intentionally undocumented options
223530
- commandOptions = commandOptions.filter(option => !option.deprecated && option.description !== undefined);
223531
225464
  if (commandOptions.length === 0) {
223532
225465
  return null;
223533
225466
  }
223534
- // Initialize output array with header and empty line
223535
- const outputArray = [`${INDENT}${chalk_1.default.dim(sectionTitle)}:`, ''];
223536
- // Start building option lines
223537
- const optionLines = [];
225467
+ // Filter out deprecated and intentionally undocumented options
225468
+ commandOptions = commandOptions.filter(option => !option.deprecated && option.description !== undefined);
223538
225469
  // Sort command options alphabetically
223539
225470
  commandOptions.sort((a, b) => a.name < b.name ? -1 : a.name > b.name ? 1 : 0);
223540
- // Keep track of longest "start" of an option line to determine description spacing
223541
- let maxLineStartLength = 0;
223542
- // Iterate over options and create the "start" of each option (e.g. ` -b, --build-env <key=value>`)
225471
+ // word wrapping requires the wrapped cell to have a fixed width.
225472
+ // We need to track cell sizes to make the final column of cells is
225473
+ // equal to the remaindner of unused horizontal space.
225474
+ let maxWidthOfUnwrappedColumns = 0;
225475
+ const rows = [];
223543
225476
  for (const option of commandOptions) {
223544
- const startLine = [INDENT, INDENT, INDENT];
223545
- if (option.shorthand) {
223546
- startLine.push(`-${option.shorthand},`);
223547
- }
223548
- startLine.push(`--${option.name}`);
225477
+ const shorthandCell = option.shorthand
225478
+ ? `${INDENT}-${option.shorthand},`
225479
+ : '';
225480
+ let longhandCell = `${INDENT}--${option.name}`;
223549
225481
  if (option.argument) {
223550
- startLine.push(`<${option.argument}>`);
225482
+ longhandCell += ` <${option.argument}>`;
223551
225483
  }
223552
- // the length includes the INDENT
223553
- const lineLength = calcLineLength(startLine);
223554
- maxLineStartLength = Math.max(lineLength, maxLineStartLength);
223555
- optionLines.push(startLine);
225484
+ longhandCell += INDENT;
225485
+ const widthOfUnwrappedColumns = shorthandCell.length + longhandCell.length;
225486
+ maxWidthOfUnwrappedColumns = Math.max(widthOfUnwrappedColumns, maxWidthOfUnwrappedColumns);
225487
+ rows.push([
225488
+ shorthandCell,
225489
+ longhandCell,
225490
+ {
225491
+ content: option.description,
225492
+ wordWrap: true,
225493
+ },
225494
+ ]);
223556
225495
  }
223557
- /*
223558
- * Iterate over in-progress option lines to add space-filler and description
223559
- * For Example:
223560
- * | --archive My description starts here.
223561
- * |
223562
- * | -b, --build-env <key=value> Start of description here then
223563
- * | it wraps here.
223564
- * |
223565
- * | -e, --env <key=value> My description is short.
223566
- *
223567
- * Breaking down option lines:
223568
- * | -b, --build-env <key=value> Start of description here then
223569
- * |[][ ][][ ]
223570
- * |↑ ↑ ↑ ↑
223571
- * |1 2 3 4
223572
- * | it wraps here.
223573
- * |[][ ][ ]
223574
- * |↑ ↑ ↑
223575
- * |5 6 7
223576
- * | 1, 5 = indent
223577
- * | 2 = start
223578
- * | 3, 6 = space-filler
223579
- * | 4, 7 = description
223580
- */
223581
- for (let i = 0; i < optionLines.length; i++) {
223582
- const optionLine = optionLines[i];
223583
- const option = commandOptions[i];
223584
- // Add only 2 spaces to the longest line, and then make all shorter lines the same length.
223585
- optionLine.push(' '.repeat(2 + (maxLineStartLength - calcLineLength(optionLine))));
223586
- // Descriptions may be longer than max line length. Wrap them to the same column as the first description line
223587
- const lines = [optionLine];
223588
- if (option.description) {
223589
- for (const descriptionWord of option.description.split(' ')) {
223590
- // insert a new line when the next word would match or exceed the maximum line length
223591
- if (calcLineLength(lines[lines.length - 1]) +
223592
- (0, strip_ansi_1.default)(descriptionWord).length >=
223593
- options.columns) {
223594
- // initialize the new line with the necessary whitespace. The INDENT is apart of `maxLineStartLength`
223595
- lines.push([' '.repeat(maxLineStartLength + 2)]);
223596
- }
223597
- // insert the word to the current last line
223598
- lines[lines.length - 1].push(descriptionWord);
223599
- }
223600
- }
223601
- // for every line, transform into a string and push it to the output
223602
- for (const line of lines) {
223603
- outputArray.push(lineToString(line));
223604
- }
223605
- }
223606
- return `${outputArrayToString(outputArray)}${NEWLINE}`;
225496
+ const finalColumnWidth = options.columns - maxWidthOfUnwrappedColumns;
225497
+ const table = new cli_table3_1.default({
225498
+ chars: {
225499
+ top: '',
225500
+ 'top-mid': '',
225501
+ 'top-left': '',
225502
+ 'top-right': '',
225503
+ bottom: '',
225504
+ 'bottom-mid': '',
225505
+ 'bottom-left': '',
225506
+ 'bottom-right': '',
225507
+ left: '',
225508
+ 'left-mid': '',
225509
+ mid: '',
225510
+ 'mid-mid': '',
225511
+ right: '',
225512
+ 'right-mid': '',
225513
+ middle: '',
225514
+ },
225515
+ style: {
225516
+ 'padding-left': 0,
225517
+ 'padding-right': 0,
225518
+ },
225519
+ colWidths: [null, null, finalColumnWidth],
225520
+ });
225521
+ table.push(...rows);
225522
+ return [
225523
+ `${INDENT}${chalk_1.default.dim(sectionTitle)}:`,
225524
+ NEWLINE,
225525
+ NEWLINE,
225526
+ table.toString(),
225527
+ NEWLINE,
225528
+ NEWLINE,
225529
+ ].join('');
223607
225530
  }
223608
225531
  exports.buildCommandOptionLines = buildCommandOptionLines;
223609
225532
  function buildCommandExampleLines(command) {
@@ -223721,7 +225644,6 @@ const chalk_1 = __importDefault(__webpack_require__(90877));
223721
225644
  const get_args_1 = __importDefault(__webpack_require__(2505));
223722
225645
  const get_subcommand_1 = __importDefault(__webpack_require__(66167));
223723
225646
  const handle_error_1 = __importDefault(__webpack_require__(64377));
223724
- const logo_1 = __importDefault(__webpack_require__(66669));
223725
225647
  const init_1 = __importDefault(__webpack_require__(6148));
223726
225648
  const pkg_name_1 = __webpack_require__(79000);
223727
225649
  const error_utils_1 = __webpack_require__(39799);
@@ -223730,7 +225652,7 @@ const COMMAND_CONFIG = {
223730
225652
  };
223731
225653
  const help = () => {
223732
225654
  console.log(`
223733
- ${chalk_1.default.bold(`${logo_1.default} ${(0, pkg_name_1.getPkgName)()} init`)} [example] [dir] [-f | --force]
225655
+ ${chalk_1.default.bold(`${pkg_name_1.logo} ${pkg_name_1.packageName} init`)} [example] [dir] [-f | --force]
223734
225656
 
223735
225657
  ${chalk_1.default.dim('Options:')}
223736
225658
 
@@ -223743,19 +225665,19 @@ const help = () => {
223743
225665
 
223744
225666
  ${chalk_1.default.gray('–')} Choose from all available examples
223745
225667
 
223746
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} init`)}
225668
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} init`)}
223747
225669
 
223748
225670
  ${chalk_1.default.gray('–')} Initialize example project into a new directory
223749
225671
 
223750
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} init <example>`)}
225672
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} init <example>`)}
223751
225673
 
223752
225674
  ${chalk_1.default.gray('–')} Initialize example project into specified directory
223753
225675
 
223754
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} init <example> <dir>`)}
225676
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} init <example> <dir>`)}
223755
225677
 
223756
225678
  ${chalk_1.default.gray('–')} Initialize example project without checking
223757
225679
 
223758
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} init <example> --force`)}
225680
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} init <example> --force`)}
223759
225681
  `);
223760
225682
  };
223761
225683
  async function main(client) {
@@ -223995,19 +225917,19 @@ exports.inspectCommand = {
223995
225917
  examples: [
223996
225918
  {
223997
225919
  name: 'Get information about a deployment by its unique URL',
223998
- value: `${(0, pkg_name_1.getPkgName)()} inspect my-deployment-ji2fjij2.vercel.app`,
225920
+ value: `${pkg_name_1.packageName} inspect my-deployment-ji2fjij2.vercel.app`,
223999
225921
  },
224000
225922
  {
224001
225923
  name: 'Get information about the deployment an alias points to',
224002
- value: `${(0, pkg_name_1.getPkgName)()} inspect my-deployment.vercel.app`,
225924
+ value: `${pkg_name_1.packageName} inspect my-deployment.vercel.app`,
224003
225925
  },
224004
225926
  {
224005
225927
  name: 'Get information about a deployment by piping in the URL',
224006
- value: `echo my-deployment.vercel.app | ${(0, pkg_name_1.getPkgName)()} inspect`,
225928
+ value: `echo my-deployment.vercel.app | ${pkg_name_1.packageName} inspect`,
224007
225929
  },
224008
225930
  {
224009
225931
  name: 'Wait up to 90 seconds for deployment to complete',
224010
- value: `${(0, pkg_name_1.getPkgName)()} inspect my-deployment.vercel.app --wait --timeout 90s`,
225932
+ value: `${pkg_name_1.packageName} inspect my-deployment.vercel.app --wait --timeout 90s`,
224011
225933
  },
224012
225934
  ],
224013
225935
  };
@@ -224220,19 +226142,19 @@ exports.linkCommand = {
224220
226142
  examples: [
224221
226143
  {
224222
226144
  name: 'Link current directory to a Vercel Project',
224223
- value: `${(0, pkg_name_1.getPkgName)()} link`,
226145
+ value: `${pkg_name_1.packageName} link`,
224224
226146
  },
224225
226147
  {
224226
226148
  name: 'Link current directory with default options and skip questions',
224227
- value: `${(0, pkg_name_1.getPkgName)()} link --yes`,
226149
+ value: `${pkg_name_1.packageName} link --yes`,
224228
226150
  },
224229
226151
  {
224230
226152
  name: 'Link a specific directory to a Vercel Project',
224231
- value: `${(0, pkg_name_1.getPkgName)()} link --cwd /path/to/project`,
226153
+ value: `${pkg_name_1.packageName} link --cwd /path/to/project`,
224232
226154
  },
224233
226155
  {
224234
226156
  name: 'Link to the current Git repository, allowing for multiple Vercel Projects to be linked simultaneously (useful for monorepos)',
224235
- value: `${(0, pkg_name_1.getPkgName)()} link --repo`,
226157
+ value: `${pkg_name_1.packageName} link --repo`,
224236
226158
  },
224237
226159
  ],
224238
226160
  };
@@ -224354,19 +226276,19 @@ exports.listCommand = {
224354
226276
  examples: [
224355
226277
  {
224356
226278
  name: 'List all deployments for the currently linked project',
224357
- value: `${(0, pkg_name_1.getPkgName)()} list`,
226279
+ value: `${pkg_name_1.packageName} list`,
224358
226280
  },
224359
226281
  {
224360
226282
  name: 'List all deployments for the project `my-app` in the team of the currently linked project',
224361
- value: `${(0, pkg_name_1.getPkgName)()} list my-app`,
226283
+ value: `${pkg_name_1.packageName} list my-app`,
224362
226284
  },
224363
226285
  {
224364
226286
  name: 'Filter deployments by metadata',
224365
- value: `${(0, pkg_name_1.getPkgName)()} list -m key1=value1 -m key2=value2`,
226287
+ value: `${pkg_name_1.packageName} list -m key1=value1 -m key2=value2`,
224366
226288
  },
224367
226289
  {
224368
226290
  name: 'Paginate deployments for a project, where `1584722256178` is the time in milliseconds since the UNIX epoch',
224369
- value: `${(0, pkg_name_1.getPkgName)()} list my-app --next 1584722256178`,
226291
+ value: `${pkg_name_1.packageName} list my-app --next 1584722256178`,
224370
226292
  },
224371
226293
  ],
224372
226294
  };
@@ -224708,19 +226630,19 @@ exports.loginCommand = {
224708
226630
  examples: [
224709
226631
  {
224710
226632
  name: 'Log into the Vercel platform',
224711
- value: `${(0, pkg_name_1.getPkgName)()} login`,
226633
+ value: `${pkg_name_1.packageName} login`,
224712
226634
  },
224713
226635
  {
224714
226636
  name: 'Log in using a specific email address',
224715
- value: `${(0, pkg_name_1.getPkgName)()} login username@example.com`,
226637
+ value: `${pkg_name_1.packageName} login username@example.com`,
224716
226638
  },
224717
226639
  {
224718
226640
  name: 'Log in using a specific team "slug" for SAML Single Sign-On',
224719
- value: `${(0, pkg_name_1.getPkgName)()} login acme`,
226641
+ value: `${pkg_name_1.packageName} login acme`,
224720
226642
  },
224721
226643
  {
224722
226644
  name: 'Log in using GitHub in "out-of-band" mode',
224723
- value: `${(0, pkg_name_1.getPkgName)()} login --github --oob`,
226645
+ value: `${pkg_name_1.packageName} login --github --oob`,
224724
226646
  },
224725
226647
  ],
224726
226648
  };
@@ -224839,7 +226761,7 @@ exports.logoutCommand = {
224839
226761
  examples: [
224840
226762
  {
224841
226763
  name: 'Logout from the CLI',
224842
- value: `${(0, pkg_name_1.getPkgName)()} logout`,
226764
+ value: `${pkg_name_1.packageName} logout`,
224843
226765
  },
224844
226766
  ],
224845
226767
  };
@@ -224999,7 +226921,7 @@ exports.logsCommand = {
224999
226921
  examples: [
225000
226922
  {
225001
226923
  name: 'Print the logs for the deployment DEPLOYMENT_ID',
225002
- value: `${(0, pkg_name_1.getPkgName)()} logs DEPLOYMENT_ID`,
226924
+ value: `${pkg_name_1.packageName} logs DEPLOYMENT_ID`,
225003
226925
  },
225004
226926
  ],
225005
226927
  };
@@ -225305,14 +227227,13 @@ const get_args_1 = __importDefault(__webpack_require__(2505));
225305
227227
  const get_invalid_subcommand_1 = __importDefault(__webpack_require__(6479));
225306
227228
  const get_scope_1 = __importDefault(__webpack_require__(60324));
225307
227229
  const handle_error_1 = __importDefault(__webpack_require__(64377));
225308
- const logo_1 = __importDefault(__webpack_require__(66669));
225309
227230
  const pkg_name_1 = __webpack_require__(79000);
225310
227231
  const add_1 = __importDefault(__webpack_require__(35330));
225311
227232
  const list_1 = __importDefault(__webpack_require__(21743));
225312
227233
  const rm_1 = __importDefault(__webpack_require__(55810));
225313
227234
  const help = () => {
225314
227235
  console.log(`
225315
- ${chalk_1.default.bold(`${logo_1.default} ${(0, pkg_name_1.getPkgName)()} project`)} [options] <command>
227236
+ ${chalk_1.default.bold(`${pkg_name_1.logo} ${pkg_name_1.packageName} project`)} [options] <command>
225316
227237
 
225317
227238
  ${chalk_1.default.dim('Commands:')}
225318
227239
 
@@ -225331,11 +227252,11 @@ const help = () => {
225331
227252
 
225332
227253
  ${chalk_1.default.gray('–')} Add a new project
225333
227254
 
225334
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} project add my-project`)}
227255
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} project add my-project`)}
225335
227256
 
225336
227257
  ${chalk_1.default.gray('–')} Paginate projects, where ${chalk_1.default.dim('`1584722256178`')} is the time in milliseconds since the UNIX epoch.
225337
227258
 
225338
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} project ls --next 1584722256178`)}
227259
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} project ls --next 1584722256178`)}
225339
227260
  `);
225340
227261
  };
225341
227262
  const COMMAND_CONFIG = {
@@ -225529,13 +227450,12 @@ const get_project_by_cwd_or_link_1 = __importDefault(__webpack_require__(90675))
225529
227450
  const pkg_name_1 = __webpack_require__(79000);
225530
227451
  const handle_error_1 = __importDefault(__webpack_require__(64377));
225531
227452
  const error_utils_1 = __webpack_require__(39799);
225532
- const logo_1 = __importDefault(__webpack_require__(66669));
225533
227453
  const ms_1 = __importDefault(__webpack_require__(21378));
225534
227454
  const request_promote_1 = __importDefault(__webpack_require__(73455));
225535
227455
  const status_1 = __importDefault(__webpack_require__(48821));
225536
227456
  const help = () => {
225537
227457
  console.log(`
225538
- ${chalk_1.default.bold(`${logo_1.default} ${(0, pkg_name_1.getPkgName)()} promote`)} [deployment id/url]
227458
+ ${chalk_1.default.bold(`${pkg_name_1.logo} ${pkg_name_1.packageName} promote`)} [deployment id/url]
225539
227459
 
225540
227460
  Promote an existing deployment to current.
225541
227461
 
@@ -225554,14 +227474,14 @@ const help = () => {
225554
227474
 
225555
227475
  ${chalk_1.default.gray('–')} Show the status of any current pending promotions
225556
227476
 
225557
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} promote`)}
225558
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} promote status`)}
225559
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} promote status <project>`)}
225560
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} promote status --timeout 30s`)}
227477
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} promote`)}
227478
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} promote status`)}
227479
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} promote status <project>`)}
227480
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} promote status --timeout 30s`)}
225561
227481
 
225562
227482
  ${chalk_1.default.gray('–')} Promote a deployment using id or url
225563
227483
 
225564
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} promote <deployment id/url>`)}
227484
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} promote <deployment id/url>`)}
225565
227485
  `);
225566
227486
  };
225567
227487
  /**
@@ -225793,7 +227713,7 @@ async function promoteStatus({ client, contextName, deployment, project, timeout
225793
227713
  }
225794
227714
  // check if we have been running for too long
225795
227715
  if (requestedAt < recentThreshold || Date.now() >= promoteTimeout) {
225796
- output.log(`The promotion exceeded its deadline - rerun ${chalk_1.default.bold(`${(0, pkg_name_1.getPkgName)()} promote ${toDeploymentId}`)} to try again`);
227716
+ output.log(`The promotion exceeded its deadline - rerun ${chalk_1.default.bold(`${pkg_name_1.packageName} promote ${toDeploymentId}`)} to try again`);
225797
227717
  return 1;
225798
227718
  }
225799
227719
  // if we've done our first poll and not rolling back, then print the
@@ -225900,19 +227820,19 @@ exports.pullCommand = {
225900
227820
  examples: [
225901
227821
  {
225902
227822
  name: 'Pull the latest Environment Variables and Project Settings from the cloud',
225903
- value: `${(0, pkg_name_1.getPkgName)()} pull`,
227823
+ value: `${pkg_name_1.packageName} pull`,
225904
227824
  },
225905
227825
  {
225906
227826
  name: 'Pull the latest Environment Variables and Project Settings from the cloud targeting a directory',
225907
- value: `${(0, pkg_name_1.getPkgName)()} pull ./path-to-project`,
227827
+ value: `${pkg_name_1.packageName} pull ./path-to-project`,
225908
227828
  },
225909
227829
  {
225910
227830
  name: 'Pull for a specific environment',
225911
- value: `${(0, pkg_name_1.getPkgName)()} pull --environment=${(0, env_target_1.getEnvTargetPlaceholder)()}`,
227831
+ value: `${pkg_name_1.packageName} pull --environment=${(0, env_target_1.getEnvTargetPlaceholder)()}`,
225912
227832
  },
225913
227833
  {
225914
227834
  name: 'If you want to download environment variables to a specific file, use `vercel env pull` instead',
225915
- value: `${(0, pkg_name_1.getPkgName)()} env pull`,
227835
+ value: `${pkg_name_1.packageName} env pull`,
225916
227836
  },
225917
227837
  ],
225918
227838
  };
@@ -226036,11 +227956,11 @@ exports.redeployCommand = {
226036
227956
  examples: [
226037
227957
  {
226038
227958
  name: 'Rebuild and deploy an existing deployment using id or url',
226039
- value: `${(0, pkg_name_1.getPkgName)()} redeploy my-deployment.vercel.app`,
227959
+ value: `${pkg_name_1.packageName} redeploy my-deployment.vercel.app`,
226040
227960
  },
226041
227961
  {
226042
227962
  name: 'Write Deployment URL to a file',
226043
- value: `${(0, pkg_name_1.getPkgName)()} redeploy my-deployment.vercel.app > deployment-url.txt`,
227963
+ value: `${pkg_name_1.packageName} redeploy my-deployment.vercel.app > deployment-url.txt`,
226044
227964
  },
226045
227965
  ],
226046
227966
  };
@@ -226238,15 +228158,15 @@ exports.removeCommand = {
226238
228158
  examples: [
226239
228159
  {
226240
228160
  name: 'Remove a deployment identified by `deploymentId`',
226241
- value: `${(0, pkg_name_1.getPkgName)()} remove my-app`,
228161
+ value: `${pkg_name_1.packageName} remove my-app`,
226242
228162
  },
226243
228163
  {
226244
228164
  name: 'Remove all deployments with name `my-app`',
226245
- value: `${(0, pkg_name_1.getPkgName)()} remove deploymentId`,
228165
+ value: `${pkg_name_1.packageName} remove deploymentId`,
226246
228166
  },
226247
228167
  {
226248
228168
  name: 'Remove two deployments with IDs `eyWt6zuSdeus` and `uWHoA9RQ1d1o`',
226249
- value: `${(0, pkg_name_1.getPkgName)()} remove eyWt6zuSdeus uWHoA9RQ1d1o`,
228169
+ value: `${pkg_name_1.packageName} remove eyWt6zuSdeus uWHoA9RQ1d1o`,
226250
228170
  },
226251
228171
  ],
226252
228172
  };
@@ -226484,13 +228404,12 @@ const get_project_by_cwd_or_link_1 = __importDefault(__webpack_require__(90675))
226484
228404
  const pkg_name_1 = __webpack_require__(79000);
226485
228405
  const handle_error_1 = __importDefault(__webpack_require__(64377));
226486
228406
  const error_utils_1 = __webpack_require__(39799);
226487
- const logo_1 = __importDefault(__webpack_require__(66669));
226488
228407
  const ms_1 = __importDefault(__webpack_require__(21378));
226489
228408
  const request_rollback_1 = __importDefault(__webpack_require__(30964));
226490
228409
  const status_1 = __importDefault(__webpack_require__(16097));
226491
228410
  const help = () => {
226492
228411
  console.log(`
226493
- ${chalk_1.default.bold(`${logo_1.default} ${(0, pkg_name_1.getPkgName)()} rollback`)} [deployment id/url]
228412
+ ${chalk_1.default.bold(`${pkg_name_1.logo} ${pkg_name_1.packageName} rollback`)} [deployment id/url]
226494
228413
 
226495
228414
  Quickly revert back to a previous deployment.
226496
228415
 
@@ -226509,14 +228428,14 @@ const help = () => {
226509
228428
 
226510
228429
  ${chalk_1.default.gray('–')} Show the status of any current pending rollbacks
226511
228430
 
226512
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} rollback`)}
226513
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} rollback status`)}
226514
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} rollback status <project>`)}
226515
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} rollback status --timeout 30s`)}
228431
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} rollback`)}
228432
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} rollback status`)}
228433
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} rollback status <project>`)}
228434
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} rollback status --timeout 30s`)}
226516
228435
 
226517
228436
  ${chalk_1.default.gray('–')} Rollback a deployment using id or url
226518
228437
 
226519
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} rollback <deployment id/url>`)}
228438
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} rollback <deployment id/url>`)}
226520
228439
  `);
226521
228440
  };
226522
228441
  /**
@@ -226735,7 +228654,7 @@ async function rollbackStatus({ client, contextName, deployment, project, timeou
226735
228654
  }
226736
228655
  // check if we have been running for too long
226737
228656
  if (requestedAt < recentThreshold || Date.now() >= rollbackTimeout) {
226738
- output.log(`The rollback exceeded its deadline - rerun ${chalk_1.default.bold(`${(0, pkg_name_1.getPkgName)()} rollback ${toDeploymentId}`)} to try again`);
228657
+ output.log(`The rollback exceeded its deadline - rerun ${chalk_1.default.bold(`${pkg_name_1.packageName} rollback ${toDeploymentId}`)} to try again`);
226739
228658
  return 1;
226740
228659
  }
226741
228660
  // if we've done our first poll and not rolling back, then print the
@@ -226834,7 +228753,7 @@ const validateNameKeypress = (data, value) =>
226834
228753
  /^[ a-zA-Z0-9_-]+$/.test(value + data);
226835
228754
  const gracefulExit = () => {
226836
228755
  console.log(); // Blank line
226837
- (0, note_1.default)(`Your team is now active for all ${(0, pkg_name_1.getPkgName)()} commands!\n Run ${(0, pkg_name_1.getCommandName)(`switch`)} to change it in the future.`);
228756
+ (0, note_1.default)(`Your team is now active for all ${pkg_name_1.packageName} commands!\n Run ${(0, pkg_name_1.getCommandName)(`switch`)} to change it in the future.`);
226838
228757
  return 0;
226839
228758
  };
226840
228759
  const teamUrlPrefix = 'Team URL'.padEnd(14) + chalk_1.default.gray('vercel.com/');
@@ -226939,7 +228858,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
226939
228858
  Object.defineProperty(exports, "__esModule", ({ value: true }));
226940
228859
  const chalk_1 = __importDefault(__webpack_require__(90877));
226941
228860
  const error_1 = __importDefault(__webpack_require__(598));
226942
- const logo_1 = __importDefault(__webpack_require__(66669));
226943
228861
  const list_1 = __importDefault(__webpack_require__(88583));
226944
228862
  const add_1 = __importDefault(__webpack_require__(54609));
226945
228863
  const switch_1 = __importDefault(__webpack_require__(17066));
@@ -226948,7 +228866,7 @@ const pkg_name_1 = __webpack_require__(79000);
226948
228866
  const get_args_1 = __importDefault(__webpack_require__(2505));
226949
228867
  const help = () => {
226950
228868
  console.log(`
226951
- ${chalk_1.default.bold(`${logo_1.default} ${(0, pkg_name_1.getPkgName)()} teams`)} [options] <command>
228869
+ ${chalk_1.default.bold(`${pkg_name_1.logo} ${pkg_name_1.packageName} teams`)} [options] <command>
226952
228870
 
226953
228871
  ${chalk_1.default.dim('Commands:')}
226954
228872
 
@@ -226970,7 +228888,7 @@ const help = () => {
226970
228888
 
226971
228889
  ${chalk_1.default.gray('–')} Switch to a team
226972
228890
 
226973
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} switch <slug>`)}
228891
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} switch <slug>`)}
226974
228892
 
226975
228893
  ${chalk_1.default.gray('–')} If your team's url is 'vercel.com/teams/name', 'name' is the slug
226976
228894
  ${chalk_1.default.gray('–')} If the slug is omitted, you can choose interactively
@@ -226979,11 +228897,11 @@ const help = () => {
226979
228897
 
226980
228898
  ${chalk_1.default.gray('–')} Invite new members (interactively)
226981
228899
 
226982
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} teams invite`)}
228900
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} teams invite`)}
226983
228901
 
226984
228902
  ${chalk_1.default.gray('–')} Paginate results, where ${chalk_1.default.dim('`1584722256178`')} is the time in milliseconds since the UNIX epoch.
226985
228903
 
226986
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} teams ls --next 1584722256178`)}
228904
+ ${chalk_1.default.cyan(`$ ${pkg_name_1.packageName} teams ls --next 1584722256178`)}
226987
228905
  `);
226988
228906
  };
226989
228907
  exports.default = async (client) => {
@@ -227277,7 +229195,7 @@ async function list(client) {
227277
229195
  if (pagination?.count === 20) {
227278
229196
  const prefixedArgs = (0, get_prefixed_flags_1.default)(argv);
227279
229197
  const flags = (0, get_command_flags_1.default)(prefixedArgs, ['_', '--next', '-N', '-d']);
227280
- const nextCmd = `${(0, pkg_name_1.getPkgName)()} teams ls${flags} --next ${pagination.next}`;
229198
+ const nextCmd = `${pkg_name_1.packageName} teams ls${flags} --next ${pagination.next}`;
227281
229199
  console.log(); // empty line
227282
229200
  output.log(`To display the next page run ${(0, cmd_1.default)(nextCmd)}`);
227283
229201
  }
@@ -227435,7 +229353,7 @@ exports.whoamiCommand = {
227435
229353
  examples: [
227436
229354
  {
227437
229355
  name: 'Shows the username of the currently logged in user',
227438
- value: `${(0, pkg_name_1.getPkgName)()} whoami`,
229356
+ value: `${pkg_name_1.packageName} whoami`,
227439
229357
  },
227440
229358
  ],
227441
229359
  };
@@ -228971,6 +230889,35 @@ async function setMonorepoDefaultSettings(cwd, workPath, projectSettings, output
228971
230889
  exports.setMonorepoDefaultSettings = setMonorepoDefaultSettings;
228972
230890
 
228973
230891
 
230892
+ /***/ }),
230893
+
230894
+ /***/ 18119:
230895
+ /***/ ((__unused_webpack_module, exports) => {
230896
+
230897
+ "use strict";
230898
+
230899
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
230900
+ exports.scrubArgv = void 0;
230901
+ /**
230902
+ * Redacts `--env`, `--build-env`, and `--token` in `argv`.
230903
+ */
230904
+ function scrubArgv(argv) {
230905
+ const clonedArgv = [...argv];
230906
+ const tokenRE = /^(-[A-Za-z]*[bet]|--(?:build-env|env|token))(=.*)?$/;
230907
+ for (let i = 0, len = clonedArgv.length; i < len; i++) {
230908
+ const m = clonedArgv[i].match(tokenRE);
230909
+ if (m?.[2]) {
230910
+ clonedArgv[i] = `${m[1]}=REDACTED`;
230911
+ }
230912
+ else if (m && i + 1 < len) {
230913
+ clonedArgv[++i] = 'REDACTED';
230914
+ }
230915
+ }
230916
+ return clonedArgv;
230917
+ }
230918
+ exports.scrubArgv = scrubArgv;
230919
+
230920
+
228974
230921
  /***/ }),
228975
230922
 
228976
230923
  /***/ 84701:
@@ -238076,7 +240023,7 @@ async function isGlobal() {
238076
240023
  }
238077
240024
  }
238078
240025
  async function getUpdateCommand() {
238079
- const pkgAndVersion = `${(0, pkg_name_1.getPkgName)()}@latest`;
240026
+ const pkgAndVersion = `${pkg_name_1.packageName}@latest`;
238080
240027
  const entrypoint = await (0, fs_extra_1.realpath)(process.argv[1]);
238081
240028
  let { cliType, lockfilePath } = await (0, build_utils_1.scanParentDirs)((0, path_1.dirname)((0, path_1.dirname)(entrypoint)));
238082
240029
  if (!lockfilePath) {
@@ -240039,23 +241986,31 @@ async function ensureRepoLink(client, cwd, { yes, overwrite }) {
240039
241986
  if (!remoteUrls) {
240040
241987
  throw new Error('Could not determine Git remote URLs');
240041
241988
  }
240042
- const remoteNames = Object.keys(remoteUrls);
241989
+ const remoteNames = Object.keys(remoteUrls).sort();
240043
241990
  let remoteName;
240044
241991
  if (remoteNames.length === 1) {
240045
241992
  remoteName = remoteNames[0];
240046
241993
  }
240047
241994
  else {
240048
241995
  // Prompt user to select which remote to use
240049
- const answer = await client.prompt({
240050
- type: 'list',
240051
- name: 'value',
240052
- message: 'Which Git remote should be used?',
240053
- choices: remoteNames.sort().map(name => {
240054
- return { name: name, value: name };
240055
- }),
240056
- default: remoteNames.includes('origin') ? 'origin' : undefined,
240057
- });
240058
- remoteName = answer.value;
241996
+ const defaultRemote = remoteNames.includes('origin')
241997
+ ? 'origin'
241998
+ : remoteNames[0];
241999
+ if (yes) {
242000
+ remoteName = defaultRemote;
242001
+ }
242002
+ else {
242003
+ const answer = await client.prompt({
242004
+ type: 'list',
242005
+ name: 'value',
242006
+ message: 'Which Git remote should be used?',
242007
+ choices: remoteNames.map(name => {
242008
+ return { name: name, value: name };
242009
+ }),
242010
+ default: defaultRemote,
242011
+ });
242012
+ remoteName = answer.value;
242013
+ }
240059
242014
  }
240060
242015
  const repoUrl = remoteUrls[remoteName];
240061
242016
  const parsedRepoUrl = (0, connect_git_provider_1.parseRepoUrl)(repoUrl);
@@ -240092,71 +242047,82 @@ async function ensureRepoLink(client, cwd, { yes, overwrite }) {
240092
242047
  if (detectedProjectsCount > 0) {
240093
242048
  output.log(`Detected ${(0, pluralize_1.default)('new Project', detectedProjectsCount, true)} that may be created.`);
240094
242049
  }
240095
- const addSeparators = projects.length > 0 && detectedProjectsCount > 0;
240096
- const { selected } = await client.prompt({
240097
- type: 'checkbox',
240098
- name: 'selected',
240099
- message: `Which Projects should be ${projects.length ? 'linked to' : 'created'}?`,
240100
- choices: [
240101
- ...(addSeparators
240102
- ? [new inquirer_1.default.Separator('----- Existing Projects -----')]
240103
- : []),
240104
- ...projects.map(project => {
240105
- return {
240106
- name: `${org.slug}/${project.name}`,
240107
- value: project,
240108
- checked: true,
240109
- };
240110
- }),
240111
- ...(addSeparators
240112
- ? [new inquirer_1.default.Separator('----- New Projects to be created -----')]
240113
- : []),
240114
- ...Array.from(detectedProjects.entries()).flatMap(([rootDirectory, frameworks]) => frameworks.map((framework, i) => {
240115
- const name = (0, slugify_1.default)([
240116
- (0, path_1.basename)(rootPath),
240117
- (0, path_1.basename)(rootDirectory),
240118
- i > 0 ? framework.slug : '',
240119
- ]
240120
- .filter(Boolean)
240121
- .join('-'));
240122
- return {
240123
- name: `${org.slug}/${name} (${framework.name})`,
240124
- value: {
240125
- newProject: true,
240126
- rootDirectory,
240127
- name,
240128
- framework,
240129
- },
240130
- // Checked by default when there are no other existing Projects
240131
- checked: projects.length === 0,
240132
- };
240133
- })),
240134
- ],
240135
- });
242050
+ let selected;
242051
+ if (yes) {
242052
+ selected = projects;
242053
+ }
242054
+ else {
242055
+ const addSeparators = projects.length > 0 && detectedProjectsCount > 0;
242056
+ const answer = await client.prompt({
242057
+ type: 'checkbox',
242058
+ name: 'selected',
242059
+ message: `Which Projects should be ${projects.length ? 'linked to' : 'created'}?`,
242060
+ choices: [
242061
+ ...(addSeparators
242062
+ ? [new inquirer_1.default.Separator('----- Existing Projects -----')]
242063
+ : []),
242064
+ ...projects.map(project => {
242065
+ return {
242066
+ name: `${org.slug}/${project.name}`,
242067
+ value: project,
242068
+ checked: true,
242069
+ };
242070
+ }),
242071
+ ...(addSeparators
242072
+ ? [new inquirer_1.default.Separator('----- New Projects to be created -----')]
242073
+ : []),
242074
+ ...Array.from(detectedProjects.entries()).flatMap(([rootDirectory, frameworks]) => frameworks.map((framework, i) => {
242075
+ const name = (0, slugify_1.default)([
242076
+ (0, path_1.basename)(rootPath),
242077
+ (0, path_1.basename)(rootDirectory),
242078
+ i > 0 ? framework.slug : '',
242079
+ ]
242080
+ .filter(Boolean)
242081
+ .join('-'));
242082
+ return {
242083
+ name: `${org.slug}/${name} (${framework.name})`,
242084
+ value: {
242085
+ newProject: true,
242086
+ rootDirectory,
242087
+ name,
242088
+ framework,
242089
+ },
242090
+ // Checked by default when there are no other existing Projects
242091
+ checked: projects.length === 0,
242092
+ };
242093
+ })),
242094
+ ],
242095
+ });
242096
+ selected = answer.selected;
242097
+ }
240136
242098
  if (selected.length === 0) {
240137
242099
  output.print(`No Projects were selected. Repository not linked.\n`);
240138
242100
  return;
240139
242101
  }
240140
242102
  for (let i = 0; i < selected.length; i++) {
240141
242103
  const selection = selected[i];
240142
- if (!selection.newProject)
242104
+ if (!('newProject' in selection && selection.newProject))
240143
242105
  continue;
240144
242106
  const orgAndName = `${org.slug}/${selection.name}`;
240145
242107
  output.spinner(`Creating new Project: ${orgAndName}`);
240146
242108
  delete selection.newProject;
240147
242109
  if (!selection.rootDirectory)
240148
242110
  delete selection.rootDirectory;
240149
- selected[i] = await (0, create_project_1.default)(client, {
242111
+ const project = (selected[i] = await (0, create_project_1.default)(client, {
240150
242112
  ...selection,
240151
242113
  framework: selection.framework.slug,
240152
- });
240153
- await (0, connect_git_provider_1.connectGitProvider)(client, org, selected[i].id, parsedRepoUrl.provider, `${parsedRepoUrl.org}/${parsedRepoUrl.repo}`);
242114
+ }));
242115
+ await (0, connect_git_provider_1.connectGitProvider)(client, org, project.id, parsedRepoUrl.provider, `${parsedRepoUrl.org}/${parsedRepoUrl.repo}`);
240154
242116
  output.log(`Created new Project: ${output.link(orgAndName, `https://vercel.com/${orgAndName}`, { fallback: false })}`);
240155
242117
  }
240156
242118
  repoConfig = {
240157
242119
  orgId: org.id,
240158
242120
  remoteName,
240159
- projects: selected.map((project) => {
242121
+ projects: selected.map(project => {
242122
+ if (!('id' in project)) {
242123
+ // Shouldn't happen at this point, but just to make TS happy
242124
+ throw new TypeError(`Not a Project: ${JSON.stringify(project)}`);
242125
+ }
240160
242126
  return {
240161
242127
  id: project.id,
240162
242128
  name: project.name,
@@ -241800,17 +243766,6 @@ const listItem = (msg, n) => {
241800
243766
  exports.default = listItem;
241801
243767
 
241802
243768
 
241803
- /***/ }),
241804
-
241805
- /***/ 66669:
241806
- /***/ ((__unused_webpack_module, exports) => {
241807
-
241808
- "use strict";
241809
-
241810
- Object.defineProperty(exports, "__esModule", ({ value: true }));
241811
- exports.default = '▲';
241812
-
241813
-
241814
243769
  /***/ }),
241815
243770
 
241816
243771
  /***/ 41719:
@@ -242136,31 +244091,24 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
242136
244091
  return (mod && mod.__esModule) ? mod : { "default": mod };
242137
244092
  };
242138
244093
  Object.defineProperty(exports, "__esModule", ({ value: true }));
242139
- exports.getCommandName = exports.getTitleName = exports.getPkgName = exports.logo = exports.name = void 0;
244094
+ exports.getCommandName = exports.getTitleName = exports.logo = exports.packageName = void 0;
242140
244095
  const title_1 = __importDefault(__webpack_require__(16650));
242141
244096
  const pkg_1 = __importDefault(__webpack_require__(42246));
242142
244097
  const cmd_1 = __importDefault(__webpack_require__(62422));
242143
244098
  /**
242144
244099
  * The package name defined in the CLI's `package.json` file (`vercel`).
242145
244100
  */
242146
- exports.name = pkg_1.default.name;
244101
+ exports.packageName = pkg_1.default.name;
242147
244102
  /**
242148
244103
  * Unicode symbol used to represent the CLI.
242149
244104
  */
242150
244105
  exports.logo = '▲';
242151
- /**
242152
- * Returns the package name such as `vercel` or `now`.
242153
- */
242154
- function getPkgName() {
242155
- return pkg_1.default.name;
242156
- }
242157
- exports.getPkgName = getPkgName;
242158
244106
  /**
242159
244107
  * Returns the package name with title-case
242160
244108
  * such as `Vercel` or `Now`.
242161
244109
  */
242162
244110
  function getTitleName() {
242163
- const str = getPkgName();
244111
+ const str = exports.packageName;
242164
244112
  return (0, title_1.default)(str);
242165
244113
  }
242166
244114
  exports.getTitleName = getTitleName;
@@ -242169,7 +244117,7 @@ exports.getTitleName = getTitleName;
242169
244117
  * as a suffix such as `vercel env pull` or `now env pull`.
242170
244118
  */
242171
244119
  function getCommandName(subcommands) {
242172
- let vercel = getPkgName();
244120
+ let vercel = exports.packageName;
242173
244121
  if (subcommands) {
242174
244122
  vercel = `${vercel} ${subcommands}`;
242175
244123
  }