@teambit/logger 0.0.943 → 0.0.945

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.
@@ -0,0 +1,3606 @@
1
+ {
2
+ "__schema": "APISchema",
3
+ "location": {
4
+ "filePath": "index.ts",
5
+ "line": 1,
6
+ "character": 1
7
+ },
8
+ "module": {
9
+ "__schema": "ModuleSchema",
10
+ "location": {
11
+ "filePath": "index.ts",
12
+ "line": 1,
13
+ "character": 1
14
+ },
15
+ "exports": [
16
+ {
17
+ "__schema": "ClassSchema",
18
+ "location": {
19
+ "filePath": "logger.ts",
20
+ "line": 7,
21
+ "character": 1
22
+ },
23
+ "signature": "class Logger",
24
+ "name": "Logger",
25
+ "members": [
26
+ {
27
+ "__schema": "ConstructorSchema",
28
+ "location": {
29
+ "filePath": "logger.ts",
30
+ "line": 8,
31
+ "character": 3
32
+ },
33
+ "signature": "constructor Logger(extensionName: string): Logger",
34
+ "name": "constructor",
35
+ "params": [
36
+ {
37
+ "__schema": "ParameterSchema",
38
+ "location": {
39
+ "filePath": "logger.ts",
40
+ "line": 8,
41
+ "character": 15
42
+ },
43
+ "name": "extensionName",
44
+ "type": {
45
+ "__schema": "KeywordTypeSchema",
46
+ "location": {
47
+ "filePath": "logger.ts",
48
+ "line": 8,
49
+ "character": 38
50
+ },
51
+ "name": "string"
52
+ },
53
+ "isOptional": false,
54
+ "isSpread": false
55
+ }
56
+ ],
57
+ "returnType": {
58
+ "__schema": "ThisTypeSchema",
59
+ "location": {
60
+ "filePath": "logger.ts",
61
+ "line": 7,
62
+ "character": 1
63
+ },
64
+ "name": "Logger"
65
+ },
66
+ "modifiers": []
67
+ },
68
+ {
69
+ "__schema": "FunctionLikeSchema",
70
+ "location": {
71
+ "filePath": "logger.ts",
72
+ "line": 10,
73
+ "character": 3
74
+ },
75
+ "signature": "(method) Logger.trace(message: string, ...meta: any[]): void",
76
+ "name": "trace",
77
+ "params": [
78
+ {
79
+ "__schema": "ParameterSchema",
80
+ "location": {
81
+ "filePath": "logger.ts",
82
+ "line": 10,
83
+ "character": 9
84
+ },
85
+ "name": "message",
86
+ "type": {
87
+ "__schema": "KeywordTypeSchema",
88
+ "location": {
89
+ "filePath": "logger.ts",
90
+ "line": 10,
91
+ "character": 18
92
+ },
93
+ "name": "string"
94
+ },
95
+ "isOptional": false,
96
+ "isSpread": false
97
+ },
98
+ {
99
+ "__schema": "ParameterSchema",
100
+ "location": {
101
+ "filePath": "logger.ts",
102
+ "line": 10,
103
+ "character": 26
104
+ },
105
+ "name": "meta",
106
+ "type": {
107
+ "__schema": "TypeArraySchema",
108
+ "location": {
109
+ "filePath": "logger.ts",
110
+ "line": 10,
111
+ "character": 35
112
+ },
113
+ "type": {
114
+ "__schema": "KeywordTypeSchema",
115
+ "location": {
116
+ "filePath": "logger.ts",
117
+ "line": 10,
118
+ "character": 35
119
+ },
120
+ "name": "any"
121
+ }
122
+ },
123
+ "isOptional": false,
124
+ "isSpread": true
125
+ }
126
+ ],
127
+ "returnType": {
128
+ "__schema": "InferenceTypeSchema",
129
+ "location": {
130
+ "filePath": "logger.ts",
131
+ "line": 10,
132
+ "character": 3
133
+ },
134
+ "type": "void"
135
+ },
136
+ "modifiers": []
137
+ },
138
+ {
139
+ "__schema": "FunctionLikeSchema",
140
+ "location": {
141
+ "filePath": "logger.ts",
142
+ "line": 13,
143
+ "character": 3
144
+ },
145
+ "signature": "(method) Logger.debug(message: string, ...meta: any[]): void",
146
+ "name": "debug",
147
+ "params": [
148
+ {
149
+ "__schema": "ParameterSchema",
150
+ "location": {
151
+ "filePath": "logger.ts",
152
+ "line": 13,
153
+ "character": 9
154
+ },
155
+ "name": "message",
156
+ "type": {
157
+ "__schema": "KeywordTypeSchema",
158
+ "location": {
159
+ "filePath": "logger.ts",
160
+ "line": 13,
161
+ "character": 18
162
+ },
163
+ "name": "string"
164
+ },
165
+ "isOptional": false,
166
+ "isSpread": false
167
+ },
168
+ {
169
+ "__schema": "ParameterSchema",
170
+ "location": {
171
+ "filePath": "logger.ts",
172
+ "line": 13,
173
+ "character": 26
174
+ },
175
+ "name": "meta",
176
+ "type": {
177
+ "__schema": "TypeArraySchema",
178
+ "location": {
179
+ "filePath": "logger.ts",
180
+ "line": 13,
181
+ "character": 35
182
+ },
183
+ "type": {
184
+ "__schema": "KeywordTypeSchema",
185
+ "location": {
186
+ "filePath": "logger.ts",
187
+ "line": 13,
188
+ "character": 35
189
+ },
190
+ "name": "any"
191
+ }
192
+ },
193
+ "isOptional": false,
194
+ "isSpread": true
195
+ }
196
+ ],
197
+ "returnType": {
198
+ "__schema": "InferenceTypeSchema",
199
+ "location": {
200
+ "filePath": "logger.ts",
201
+ "line": 13,
202
+ "character": 3
203
+ },
204
+ "type": "void"
205
+ },
206
+ "modifiers": []
207
+ },
208
+ {
209
+ "__schema": "FunctionLikeSchema",
210
+ "location": {
211
+ "filePath": "logger.ts",
212
+ "line": 16,
213
+ "character": 3
214
+ },
215
+ "signature": "(method) Logger.info(message: string, ...meta: any[]): void",
216
+ "name": "info",
217
+ "params": [
218
+ {
219
+ "__schema": "ParameterSchema",
220
+ "location": {
221
+ "filePath": "logger.ts",
222
+ "line": 16,
223
+ "character": 8
224
+ },
225
+ "name": "message",
226
+ "type": {
227
+ "__schema": "KeywordTypeSchema",
228
+ "location": {
229
+ "filePath": "logger.ts",
230
+ "line": 16,
231
+ "character": 17
232
+ },
233
+ "name": "string"
234
+ },
235
+ "isOptional": false,
236
+ "isSpread": false
237
+ },
238
+ {
239
+ "__schema": "ParameterSchema",
240
+ "location": {
241
+ "filePath": "logger.ts",
242
+ "line": 16,
243
+ "character": 25
244
+ },
245
+ "name": "meta",
246
+ "type": {
247
+ "__schema": "TypeArraySchema",
248
+ "location": {
249
+ "filePath": "logger.ts",
250
+ "line": 16,
251
+ "character": 34
252
+ },
253
+ "type": {
254
+ "__schema": "KeywordTypeSchema",
255
+ "location": {
256
+ "filePath": "logger.ts",
257
+ "line": 16,
258
+ "character": 34
259
+ },
260
+ "name": "any"
261
+ }
262
+ },
263
+ "isOptional": false,
264
+ "isSpread": true
265
+ }
266
+ ],
267
+ "returnType": {
268
+ "__schema": "InferenceTypeSchema",
269
+ "location": {
270
+ "filePath": "logger.ts",
271
+ "line": 16,
272
+ "character": 3
273
+ },
274
+ "type": "void"
275
+ },
276
+ "modifiers": []
277
+ },
278
+ {
279
+ "__schema": "FunctionLikeSchema",
280
+ "location": {
281
+ "filePath": "logger.ts",
282
+ "line": 19,
283
+ "character": 3
284
+ },
285
+ "signature": "(method) Logger.warn(message: string, ...meta: any[]): void",
286
+ "name": "warn",
287
+ "params": [
288
+ {
289
+ "__schema": "ParameterSchema",
290
+ "location": {
291
+ "filePath": "logger.ts",
292
+ "line": 19,
293
+ "character": 8
294
+ },
295
+ "name": "message",
296
+ "type": {
297
+ "__schema": "KeywordTypeSchema",
298
+ "location": {
299
+ "filePath": "logger.ts",
300
+ "line": 19,
301
+ "character": 17
302
+ },
303
+ "name": "string"
304
+ },
305
+ "isOptional": false,
306
+ "isSpread": false
307
+ },
308
+ {
309
+ "__schema": "ParameterSchema",
310
+ "location": {
311
+ "filePath": "logger.ts",
312
+ "line": 19,
313
+ "character": 25
314
+ },
315
+ "name": "meta",
316
+ "type": {
317
+ "__schema": "TypeArraySchema",
318
+ "location": {
319
+ "filePath": "logger.ts",
320
+ "line": 19,
321
+ "character": 34
322
+ },
323
+ "type": {
324
+ "__schema": "KeywordTypeSchema",
325
+ "location": {
326
+ "filePath": "logger.ts",
327
+ "line": 19,
328
+ "character": 34
329
+ },
330
+ "name": "any"
331
+ }
332
+ },
333
+ "isOptional": false,
334
+ "isSpread": true
335
+ }
336
+ ],
337
+ "returnType": {
338
+ "__schema": "InferenceTypeSchema",
339
+ "location": {
340
+ "filePath": "logger.ts",
341
+ "line": 19,
342
+ "character": 3
343
+ },
344
+ "type": "void"
345
+ },
346
+ "modifiers": []
347
+ },
348
+ {
349
+ "__schema": "FunctionLikeSchema",
350
+ "location": {
351
+ "filePath": "logger.ts",
352
+ "line": 22,
353
+ "character": 3
354
+ },
355
+ "signature": "(method) Logger.error(message: string, ...meta: any[]): void",
356
+ "name": "error",
357
+ "params": [
358
+ {
359
+ "__schema": "ParameterSchema",
360
+ "location": {
361
+ "filePath": "logger.ts",
362
+ "line": 22,
363
+ "character": 9
364
+ },
365
+ "name": "message",
366
+ "type": {
367
+ "__schema": "KeywordTypeSchema",
368
+ "location": {
369
+ "filePath": "logger.ts",
370
+ "line": 22,
371
+ "character": 18
372
+ },
373
+ "name": "string"
374
+ },
375
+ "isOptional": false,
376
+ "isSpread": false
377
+ },
378
+ {
379
+ "__schema": "ParameterSchema",
380
+ "location": {
381
+ "filePath": "logger.ts",
382
+ "line": 22,
383
+ "character": 26
384
+ },
385
+ "name": "meta",
386
+ "type": {
387
+ "__schema": "TypeArraySchema",
388
+ "location": {
389
+ "filePath": "logger.ts",
390
+ "line": 22,
391
+ "character": 35
392
+ },
393
+ "type": {
394
+ "__schema": "KeywordTypeSchema",
395
+ "location": {
396
+ "filePath": "logger.ts",
397
+ "line": 22,
398
+ "character": 35
399
+ },
400
+ "name": "any"
401
+ }
402
+ },
403
+ "isOptional": false,
404
+ "isSpread": true
405
+ }
406
+ ],
407
+ "returnType": {
408
+ "__schema": "InferenceTypeSchema",
409
+ "location": {
410
+ "filePath": "logger.ts",
411
+ "line": 22,
412
+ "character": 3
413
+ },
414
+ "type": "void"
415
+ },
416
+ "modifiers": []
417
+ },
418
+ {
419
+ "__schema": "FunctionLikeSchema",
420
+ "location": {
421
+ "filePath": "logger.ts",
422
+ "line": 25,
423
+ "character": 3
424
+ },
425
+ "signature": "(method) Logger.fatal(message: string, ...meta: any[]): void",
426
+ "name": "fatal",
427
+ "params": [
428
+ {
429
+ "__schema": "ParameterSchema",
430
+ "location": {
431
+ "filePath": "logger.ts",
432
+ "line": 25,
433
+ "character": 9
434
+ },
435
+ "name": "message",
436
+ "type": {
437
+ "__schema": "KeywordTypeSchema",
438
+ "location": {
439
+ "filePath": "logger.ts",
440
+ "line": 25,
441
+ "character": 18
442
+ },
443
+ "name": "string"
444
+ },
445
+ "isOptional": false,
446
+ "isSpread": false
447
+ },
448
+ {
449
+ "__schema": "ParameterSchema",
450
+ "location": {
451
+ "filePath": "logger.ts",
452
+ "line": 25,
453
+ "character": 26
454
+ },
455
+ "name": "meta",
456
+ "type": {
457
+ "__schema": "TypeArraySchema",
458
+ "location": {
459
+ "filePath": "logger.ts",
460
+ "line": 25,
461
+ "character": 35
462
+ },
463
+ "type": {
464
+ "__schema": "KeywordTypeSchema",
465
+ "location": {
466
+ "filePath": "logger.ts",
467
+ "line": 25,
468
+ "character": 35
469
+ },
470
+ "name": "any"
471
+ }
472
+ },
473
+ "isOptional": false,
474
+ "isSpread": true
475
+ }
476
+ ],
477
+ "returnType": {
478
+ "__schema": "InferenceTypeSchema",
479
+ "location": {
480
+ "filePath": "logger.ts",
481
+ "line": 25,
482
+ "character": 3
483
+ },
484
+ "type": "void"
485
+ },
486
+ "modifiers": []
487
+ },
488
+ {
489
+ "__schema": "GetAccessorSchema",
490
+ "location": {
491
+ "filePath": "logger.ts",
492
+ "line": 29,
493
+ "character": 3
494
+ },
495
+ "signature": "(getter) Logger.isLoaderStarted: boolean",
496
+ "name": "isLoaderStarted",
497
+ "type": {
498
+ "__schema": "InferenceTypeSchema",
499
+ "location": {
500
+ "filePath": "logger.ts",
501
+ "line": 29,
502
+ "character": 3
503
+ },
504
+ "type": "boolean"
505
+ }
506
+ },
507
+ {
508
+ "__schema": "FunctionLikeSchema",
509
+ "location": {
510
+ "filePath": "logger.ts",
511
+ "line": 40,
512
+ "character": 3
513
+ },
514
+ "doc": {
515
+ "__schema": "DocSchema",
516
+ "location": {
517
+ "filePath": "logger.ts",
518
+ "line": 32,
519
+ "character": 3
520
+ },
521
+ "raw": "/**\n * use it for a long running process. upon creation it logs the `processDescription`.\n * if the process involves iteration over a list of items, such as running tag on a list of\n * components, then pass the `totalItems` as the total of the total components in the list.\n * later, during the iteration, call `LongProcessLogger.logProgress(componentName)`.\n * once done, call `LongProcessLogger.end()`\n * the status-line will show all messages in the terminal.\n */",
522
+ "comment": "use it for a long running process. upon creation it logs the `processDescription`.\nif the process involves iteration over a list of items, such as running tag on a list of\ncomponents, then pass the `totalItems` as the total of the total components in the list.\nlater, during the iteration, call `LongProcessLogger.logProgress(componentName)`.\nonce done, call `LongProcessLogger.end()`\nthe status-line will show all messages in the terminal."
523
+ },
524
+ "signature": "(method) Logger.createLongProcessLogger(processDescription: string, totalItems?: number, shouldConsole?: ConsoleOnStart): LongProcessLogger",
525
+ "name": "createLongProcessLogger",
526
+ "params": [
527
+ {
528
+ "__schema": "ParameterSchema",
529
+ "location": {
530
+ "filePath": "logger.ts",
531
+ "line": 41,
532
+ "character": 5
533
+ },
534
+ "name": "processDescription",
535
+ "type": {
536
+ "__schema": "KeywordTypeSchema",
537
+ "location": {
538
+ "filePath": "logger.ts",
539
+ "line": 41,
540
+ "character": 25
541
+ },
542
+ "name": "string"
543
+ },
544
+ "isOptional": false,
545
+ "isSpread": false
546
+ },
547
+ {
548
+ "__schema": "ParameterSchema",
549
+ "location": {
550
+ "filePath": "logger.ts",
551
+ "line": 42,
552
+ "character": 5
553
+ },
554
+ "name": "totalItems",
555
+ "type": {
556
+ "__schema": "KeywordTypeSchema",
557
+ "location": {
558
+ "filePath": "logger.ts",
559
+ "line": 42,
560
+ "character": 18
561
+ },
562
+ "name": "number"
563
+ },
564
+ "isOptional": true,
565
+ "isSpread": false
566
+ },
567
+ {
568
+ "__schema": "ParameterSchema",
569
+ "location": {
570
+ "filePath": "logger.ts",
571
+ "line": 43,
572
+ "character": 5
573
+ },
574
+ "name": "shouldConsole",
575
+ "type": {
576
+ "__schema": "TypeRefSchema",
577
+ "location": {
578
+ "filePath": "logger.ts",
579
+ "line": 43,
580
+ "character": 21
581
+ },
582
+ "name": "ConsoleOnStart"
583
+ },
584
+ "isOptional": true,
585
+ "isSpread": false
586
+ }
587
+ ],
588
+ "returnType": {
589
+ "__schema": "TypeRefSchema",
590
+ "location": {
591
+ "filePath": "logger.ts",
592
+ "line": 40,
593
+ "character": 3
594
+ },
595
+ "name": "LongProcessLogger"
596
+ },
597
+ "modifiers": []
598
+ },
599
+ {
600
+ "__schema": "FunctionLikeSchema",
601
+ "location": {
602
+ "filePath": "logger.ts",
603
+ "line": 51,
604
+ "character": 3
605
+ },
606
+ "doc": {
607
+ "__schema": "DocSchema",
608
+ "location": {
609
+ "filePath": "logger.ts",
610
+ "line": 47,
611
+ "character": 3
612
+ },
613
+ "raw": "/**\n * single status-line on the bottom of the screen.\n * the text is replaced every time this method is called.\n */",
614
+ "comment": "single status-line on the bottom of the screen.\nthe text is replaced every time this method is called."
615
+ },
616
+ "signature": "(method) Logger.setStatusLine(text: string, shouldPrintOnCI?: boolean): void",
617
+ "name": "setStatusLine",
618
+ "params": [
619
+ {
620
+ "__schema": "ParameterSchema",
621
+ "location": {
622
+ "filePath": "logger.ts",
623
+ "line": 51,
624
+ "character": 17
625
+ },
626
+ "name": "text",
627
+ "type": {
628
+ "__schema": "KeywordTypeSchema",
629
+ "location": {
630
+ "filePath": "logger.ts",
631
+ "line": 51,
632
+ "character": 23
633
+ },
634
+ "name": "string"
635
+ },
636
+ "isOptional": false,
637
+ "isSpread": false
638
+ },
639
+ {
640
+ "__schema": "ParameterSchema",
641
+ "location": {
642
+ "filePath": "logger.ts",
643
+ "line": 51,
644
+ "character": 31
645
+ },
646
+ "name": "shouldPrintOnCI",
647
+ "type": {
648
+ "__schema": "InferenceTypeSchema",
649
+ "location": {
650
+ "filePath": "logger.ts",
651
+ "line": 51,
652
+ "character": 31
653
+ },
654
+ "type": "boolean"
655
+ },
656
+ "isOptional": true,
657
+ "defaultValue": "false",
658
+ "isSpread": false
659
+ }
660
+ ],
661
+ "returnType": {
662
+ "__schema": "InferenceTypeSchema",
663
+ "location": {
664
+ "filePath": "logger.ts",
665
+ "line": 51,
666
+ "character": 3
667
+ },
668
+ "type": "void"
669
+ },
670
+ "modifiers": []
671
+ },
672
+ {
673
+ "__schema": "FunctionLikeSchema",
674
+ "location": {
675
+ "filePath": "logger.ts",
676
+ "line": 58,
677
+ "character": 3
678
+ },
679
+ "doc": {
680
+ "__schema": "DocSchema",
681
+ "location": {
682
+ "filePath": "logger.ts",
683
+ "line": 55,
684
+ "character": 3
685
+ },
686
+ "raw": "/**\n * remove the text from the last line on the screen.\n */",
687
+ "comment": "remove the text from the last line on the screen."
688
+ },
689
+ "signature": "(method) Logger.clearStatusLine(): void",
690
+ "name": "clearStatusLine",
691
+ "params": [],
692
+ "returnType": {
693
+ "__schema": "InferenceTypeSchema",
694
+ "location": {
695
+ "filePath": "logger.ts",
696
+ "line": 58,
697
+ "character": 3
698
+ },
699
+ "type": "void"
700
+ },
701
+ "modifiers": []
702
+ },
703
+ {
704
+ "__schema": "FunctionLikeSchema",
705
+ "location": {
706
+ "filePath": "logger.ts",
707
+ "line": 64,
708
+ "character": 3
709
+ },
710
+ "doc": {
711
+ "__schema": "DocSchema",
712
+ "location": {
713
+ "filePath": "logger.ts",
714
+ "line": 61,
715
+ "character": 3
716
+ },
717
+ "raw": "/**\n * print to the screen. if message is empty, print the last logged message.\n */",
718
+ "comment": "print to the screen. if message is empty, print the last logged message."
719
+ },
720
+ "signature": "(method) Logger.console(message?: string, ...meta: any[]): void",
721
+ "name": "console",
722
+ "params": [
723
+ {
724
+ "__schema": "ParameterSchema",
725
+ "location": {
726
+ "filePath": "logger.ts",
727
+ "line": 64,
728
+ "character": 11
729
+ },
730
+ "name": "message",
731
+ "type": {
732
+ "__schema": "KeywordTypeSchema",
733
+ "location": {
734
+ "filePath": "logger.ts",
735
+ "line": 64,
736
+ "character": 21
737
+ },
738
+ "name": "string"
739
+ },
740
+ "isOptional": true,
741
+ "isSpread": false
742
+ },
743
+ {
744
+ "__schema": "ParameterSchema",
745
+ "location": {
746
+ "filePath": "logger.ts",
747
+ "line": 64,
748
+ "character": 29
749
+ },
750
+ "name": "meta",
751
+ "type": {
752
+ "__schema": "TypeArraySchema",
753
+ "location": {
754
+ "filePath": "logger.ts",
755
+ "line": 64,
756
+ "character": 38
757
+ },
758
+ "type": {
759
+ "__schema": "KeywordTypeSchema",
760
+ "location": {
761
+ "filePath": "logger.ts",
762
+ "line": 64,
763
+ "character": 38
764
+ },
765
+ "name": "any"
766
+ }
767
+ },
768
+ "isOptional": false,
769
+ "isSpread": true
770
+ }
771
+ ],
772
+ "returnType": {
773
+ "__schema": "InferenceTypeSchema",
774
+ "location": {
775
+ "filePath": "logger.ts",
776
+ "line": 64,
777
+ "character": 3
778
+ },
779
+ "type": "void"
780
+ },
781
+ "modifiers": []
782
+ },
783
+ {
784
+ "__schema": "FunctionLikeSchema",
785
+ "location": {
786
+ "filePath": "logger.ts",
787
+ "line": 78,
788
+ "character": 3
789
+ },
790
+ "doc": {
791
+ "__schema": "DocSchema",
792
+ "location": {
793
+ "filePath": "logger.ts",
794
+ "line": 74,
795
+ "character": 3
796
+ },
797
+ "raw": "/**\n * @deprecated\n * try using consoleWarning. if not possible, rename this method to a clearer one\n */",
798
+ "tags": [
799
+ {
800
+ "__schema": "TagSchema",
801
+ "location": {
802
+ "filePath": "logger.ts",
803
+ "line": 75,
804
+ "character": 6
805
+ },
806
+ "tagName": "deprecated",
807
+ "comment": "try using consoleWarning. if not possible, rename this method to a clearer one"
808
+ }
809
+ ]
810
+ },
811
+ "signature": "(method) Logger.consoleWarn(message?: string, ...meta: any[]): void",
812
+ "name": "consoleWarn",
813
+ "params": [
814
+ {
815
+ "__schema": "ParameterSchema",
816
+ "location": {
817
+ "filePath": "logger.ts",
818
+ "line": 78,
819
+ "character": 15
820
+ },
821
+ "name": "message",
822
+ "type": {
823
+ "__schema": "KeywordTypeSchema",
824
+ "location": {
825
+ "filePath": "logger.ts",
826
+ "line": 78,
827
+ "character": 25
828
+ },
829
+ "name": "string"
830
+ },
831
+ "isOptional": true,
832
+ "isSpread": false
833
+ },
834
+ {
835
+ "__schema": "ParameterSchema",
836
+ "location": {
837
+ "filePath": "logger.ts",
838
+ "line": 78,
839
+ "character": 33
840
+ },
841
+ "name": "meta",
842
+ "type": {
843
+ "__schema": "TypeArraySchema",
844
+ "location": {
845
+ "filePath": "logger.ts",
846
+ "line": 78,
847
+ "character": 42
848
+ },
849
+ "type": {
850
+ "__schema": "KeywordTypeSchema",
851
+ "location": {
852
+ "filePath": "logger.ts",
853
+ "line": 78,
854
+ "character": 42
855
+ },
856
+ "name": "any"
857
+ }
858
+ },
859
+ "isOptional": false,
860
+ "isSpread": true
861
+ }
862
+ ],
863
+ "returnType": {
864
+ "__schema": "InferenceTypeSchema",
865
+ "location": {
866
+ "filePath": "logger.ts",
867
+ "line": 78,
868
+ "character": 3
869
+ },
870
+ "type": "void"
871
+ },
872
+ "modifiers": []
873
+ },
874
+ {
875
+ "__schema": "FunctionLikeSchema",
876
+ "location": {
877
+ "filePath": "logger.ts",
878
+ "line": 92,
879
+ "character": 3
880
+ },
881
+ "doc": {
882
+ "__schema": "DocSchema",
883
+ "location": {
884
+ "filePath": "logger.ts",
885
+ "line": 88,
886
+ "character": 3
887
+ },
888
+ "raw": "/**\n * @deprecated\n * try using consoleFailure. if not possible, rename this method to a clearer one\n */",
889
+ "tags": [
890
+ {
891
+ "__schema": "TagSchema",
892
+ "location": {
893
+ "filePath": "logger.ts",
894
+ "line": 89,
895
+ "character": 6
896
+ },
897
+ "tagName": "deprecated",
898
+ "comment": "try using consoleFailure. if not possible, rename this method to a clearer one"
899
+ }
900
+ ]
901
+ },
902
+ "signature": "(method) Logger.consoleError(message?: string, ...meta: any[]): void",
903
+ "name": "consoleError",
904
+ "params": [
905
+ {
906
+ "__schema": "ParameterSchema",
907
+ "location": {
908
+ "filePath": "logger.ts",
909
+ "line": 92,
910
+ "character": 16
911
+ },
912
+ "name": "message",
913
+ "type": {
914
+ "__schema": "KeywordTypeSchema",
915
+ "location": {
916
+ "filePath": "logger.ts",
917
+ "line": 92,
918
+ "character": 26
919
+ },
920
+ "name": "string"
921
+ },
922
+ "isOptional": true,
923
+ "isSpread": false
924
+ },
925
+ {
926
+ "__schema": "ParameterSchema",
927
+ "location": {
928
+ "filePath": "logger.ts",
929
+ "line": 92,
930
+ "character": 34
931
+ },
932
+ "name": "meta",
933
+ "type": {
934
+ "__schema": "TypeArraySchema",
935
+ "location": {
936
+ "filePath": "logger.ts",
937
+ "line": 92,
938
+ "character": 43
939
+ },
940
+ "type": {
941
+ "__schema": "KeywordTypeSchema",
942
+ "location": {
943
+ "filePath": "logger.ts",
944
+ "line": 92,
945
+ "character": 43
946
+ },
947
+ "name": "any"
948
+ }
949
+ },
950
+ "isOptional": false,
951
+ "isSpread": true
952
+ }
953
+ ],
954
+ "returnType": {
955
+ "__schema": "InferenceTypeSchema",
956
+ "location": {
957
+ "filePath": "logger.ts",
958
+ "line": 92,
959
+ "character": 3
960
+ },
961
+ "type": "void"
962
+ },
963
+ "modifiers": []
964
+ },
965
+ {
966
+ "__schema": "FunctionLikeSchema",
967
+ "location": {
968
+ "filePath": "logger.ts",
969
+ "line": 105,
970
+ "character": 3
971
+ },
972
+ "doc": {
973
+ "__schema": "DocSchema",
974
+ "location": {
975
+ "filePath": "logger.ts",
976
+ "line": 102,
977
+ "character": 3
978
+ },
979
+ "raw": "/**\n * print to the screen as a title, with bold text.\n */",
980
+ "comment": "print to the screen as a title, with bold text."
981
+ },
982
+ "signature": "(method) Logger.consoleTitle(message: string): void",
983
+ "name": "consoleTitle",
984
+ "params": [
985
+ {
986
+ "__schema": "ParameterSchema",
987
+ "location": {
988
+ "filePath": "logger.ts",
989
+ "line": 105,
990
+ "character": 16
991
+ },
992
+ "name": "message",
993
+ "type": {
994
+ "__schema": "KeywordTypeSchema",
995
+ "location": {
996
+ "filePath": "logger.ts",
997
+ "line": 105,
998
+ "character": 25
999
+ },
1000
+ "name": "string"
1001
+ },
1002
+ "isOptional": false,
1003
+ "isSpread": false
1004
+ }
1005
+ ],
1006
+ "returnType": {
1007
+ "__schema": "InferenceTypeSchema",
1008
+ "location": {
1009
+ "filePath": "logger.ts",
1010
+ "line": 105,
1011
+ "character": 3
1012
+ },
1013
+ "type": "void"
1014
+ },
1015
+ "modifiers": []
1016
+ },
1017
+ {
1018
+ "__schema": "FunctionLikeSchema",
1019
+ "location": {
1020
+ "filePath": "logger.ts",
1021
+ "line": 112,
1022
+ "character": 3
1023
+ },
1024
+ "doc": {
1025
+ "__schema": "DocSchema",
1026
+ "location": {
1027
+ "filePath": "logger.ts",
1028
+ "line": 109,
1029
+ "character": 3
1030
+ },
1031
+ "raw": "/**\n * print to the screen with a green `✔` prefix. if message is empty, print the last logged message.\n */",
1032
+ "comment": "print to the screen with a green `✔` prefix. if message is empty, print the last logged message."
1033
+ },
1034
+ "signature": "(method) Logger.consoleSuccess(message?: string, startTime?: [number, number]): void",
1035
+ "name": "consoleSuccess",
1036
+ "params": [
1037
+ {
1038
+ "__schema": "ParameterSchema",
1039
+ "location": {
1040
+ "filePath": "logger.ts",
1041
+ "line": 112,
1042
+ "character": 18
1043
+ },
1044
+ "name": "message",
1045
+ "type": {
1046
+ "__schema": "KeywordTypeSchema",
1047
+ "location": {
1048
+ "filePath": "logger.ts",
1049
+ "line": 112,
1050
+ "character": 28
1051
+ },
1052
+ "name": "string"
1053
+ },
1054
+ "isOptional": true,
1055
+ "isSpread": false
1056
+ },
1057
+ {
1058
+ "__schema": "ParameterSchema",
1059
+ "location": {
1060
+ "filePath": "logger.ts",
1061
+ "line": 112,
1062
+ "character": 36
1063
+ },
1064
+ "name": "startTime",
1065
+ "type": {
1066
+ "__schema": "TupleTypeSchema",
1067
+ "location": {
1068
+ "filePath": "logger.ts",
1069
+ "line": 112,
1070
+ "character": 48
1071
+ },
1072
+ "elements": [
1073
+ {
1074
+ "__schema": "KeywordTypeSchema",
1075
+ "location": {
1076
+ "filePath": "logger.ts",
1077
+ "line": 112,
1078
+ "character": 49
1079
+ },
1080
+ "name": "number"
1081
+ },
1082
+ {
1083
+ "__schema": "KeywordTypeSchema",
1084
+ "location": {
1085
+ "filePath": "logger.ts",
1086
+ "line": 112,
1087
+ "character": 57
1088
+ },
1089
+ "name": "number"
1090
+ }
1091
+ ]
1092
+ },
1093
+ "isOptional": true,
1094
+ "isSpread": false
1095
+ }
1096
+ ],
1097
+ "returnType": {
1098
+ "__schema": "InferenceTypeSchema",
1099
+ "location": {
1100
+ "filePath": "logger.ts",
1101
+ "line": 112,
1102
+ "character": 3
1103
+ },
1104
+ "type": "void"
1105
+ },
1106
+ "modifiers": []
1107
+ },
1108
+ {
1109
+ "__schema": "FunctionLikeSchema",
1110
+ "location": {
1111
+ "filePath": "logger.ts",
1112
+ "line": 120,
1113
+ "character": 3
1114
+ },
1115
+ "doc": {
1116
+ "__schema": "DocSchema",
1117
+ "location": {
1118
+ "filePath": "logger.ts",
1119
+ "line": 117,
1120
+ "character": 3
1121
+ },
1122
+ "raw": "/**\n * turn off the logger.\n */",
1123
+ "comment": "turn off the logger."
1124
+ },
1125
+ "signature": "(method) Logger.off(): Loader",
1126
+ "name": "off",
1127
+ "params": [],
1128
+ "returnType": {
1129
+ "__schema": "InferenceTypeSchema",
1130
+ "location": {
1131
+ "filePath": "logger.ts",
1132
+ "line": 120,
1133
+ "character": 3
1134
+ },
1135
+ "type": "Loader"
1136
+ },
1137
+ "modifiers": []
1138
+ },
1139
+ {
1140
+ "__schema": "FunctionLikeSchema",
1141
+ "location": {
1142
+ "filePath": "logger.ts",
1143
+ "line": 124,
1144
+ "character": 3
1145
+ },
1146
+ "signature": "(method) Logger.on(): Loader",
1147
+ "name": "on",
1148
+ "params": [],
1149
+ "returnType": {
1150
+ "__schema": "InferenceTypeSchema",
1151
+ "location": {
1152
+ "filePath": "logger.ts",
1153
+ "line": 124,
1154
+ "character": 3
1155
+ },
1156
+ "type": "Loader"
1157
+ },
1158
+ "modifiers": []
1159
+ },
1160
+ {
1161
+ "__schema": "FunctionLikeSchema",
1162
+ "location": {
1163
+ "filePath": "logger.ts",
1164
+ "line": 128,
1165
+ "character": 3
1166
+ },
1167
+ "signature": "(method) Logger.profile(id: string, console?: boolean): void",
1168
+ "name": "profile",
1169
+ "params": [
1170
+ {
1171
+ "__schema": "ParameterSchema",
1172
+ "location": {
1173
+ "filePath": "logger.ts",
1174
+ "line": 128,
1175
+ "character": 11
1176
+ },
1177
+ "name": "id",
1178
+ "type": {
1179
+ "__schema": "KeywordTypeSchema",
1180
+ "location": {
1181
+ "filePath": "logger.ts",
1182
+ "line": 128,
1183
+ "character": 15
1184
+ },
1185
+ "name": "string"
1186
+ },
1187
+ "isOptional": false,
1188
+ "isSpread": false
1189
+ },
1190
+ {
1191
+ "__schema": "ParameterSchema",
1192
+ "location": {
1193
+ "filePath": "logger.ts",
1194
+ "line": 128,
1195
+ "character": 23
1196
+ },
1197
+ "name": "console",
1198
+ "type": {
1199
+ "__schema": "KeywordTypeSchema",
1200
+ "location": {
1201
+ "filePath": "logger.ts",
1202
+ "line": 128,
1203
+ "character": 33
1204
+ },
1205
+ "name": "boolean"
1206
+ },
1207
+ "isOptional": true,
1208
+ "isSpread": false
1209
+ }
1210
+ ],
1211
+ "returnType": {
1212
+ "__schema": "InferenceTypeSchema",
1213
+ "location": {
1214
+ "filePath": "logger.ts",
1215
+ "line": 128,
1216
+ "character": 3
1217
+ },
1218
+ "type": "void"
1219
+ },
1220
+ "modifiers": []
1221
+ },
1222
+ {
1223
+ "__schema": "FunctionLikeSchema",
1224
+ "location": {
1225
+ "filePath": "logger.ts",
1226
+ "line": 135,
1227
+ "character": 3
1228
+ },
1229
+ "doc": {
1230
+ "__schema": "DocSchema",
1231
+ "location": {
1232
+ "filePath": "logger.ts",
1233
+ "line": 132,
1234
+ "character": 3
1235
+ },
1236
+ "raw": "/**\n * print to the screen with a red `✖` prefix. if message is empty, print the last logged message.\n */",
1237
+ "comment": "print to the screen with a red `✖` prefix. if message is empty, print the last logged message."
1238
+ },
1239
+ "signature": "(method) Logger.consoleFailure(message?: string): void",
1240
+ "name": "consoleFailure",
1241
+ "params": [
1242
+ {
1243
+ "__schema": "ParameterSchema",
1244
+ "location": {
1245
+ "filePath": "logger.ts",
1246
+ "line": 135,
1247
+ "character": 18
1248
+ },
1249
+ "name": "message",
1250
+ "type": {
1251
+ "__schema": "KeywordTypeSchema",
1252
+ "location": {
1253
+ "filePath": "logger.ts",
1254
+ "line": 135,
1255
+ "character": 28
1256
+ },
1257
+ "name": "string"
1258
+ },
1259
+ "isOptional": true,
1260
+ "isSpread": false
1261
+ }
1262
+ ],
1263
+ "returnType": {
1264
+ "__schema": "InferenceTypeSchema",
1265
+ "location": {
1266
+ "filePath": "logger.ts",
1267
+ "line": 135,
1268
+ "character": 3
1269
+ },
1270
+ "type": "void"
1271
+ },
1272
+ "modifiers": []
1273
+ },
1274
+ {
1275
+ "__schema": "FunctionLikeSchema",
1276
+ "location": {
1277
+ "filePath": "logger.ts",
1278
+ "line": 142,
1279
+ "character": 3
1280
+ },
1281
+ "doc": {
1282
+ "__schema": "DocSchema",
1283
+ "location": {
1284
+ "filePath": "logger.ts",
1285
+ "line": 139,
1286
+ "character": 3
1287
+ },
1288
+ "raw": "/**\n * print to the screen with a red `⚠` prefix. if message is empty, print the last logged message.\n */",
1289
+ "comment": "print to the screen with a red `⚠` prefix. if message is empty, print the last logged message."
1290
+ },
1291
+ "signature": "(method) Logger.consoleWarning(message?: string): void",
1292
+ "name": "consoleWarning",
1293
+ "params": [
1294
+ {
1295
+ "__schema": "ParameterSchema",
1296
+ "location": {
1297
+ "filePath": "logger.ts",
1298
+ "line": 142,
1299
+ "character": 18
1300
+ },
1301
+ "name": "message",
1302
+ "type": {
1303
+ "__schema": "KeywordTypeSchema",
1304
+ "location": {
1305
+ "filePath": "logger.ts",
1306
+ "line": 142,
1307
+ "character": 28
1308
+ },
1309
+ "name": "string"
1310
+ },
1311
+ "isOptional": true,
1312
+ "isSpread": false
1313
+ }
1314
+ ],
1315
+ "returnType": {
1316
+ "__schema": "InferenceTypeSchema",
1317
+ "location": {
1318
+ "filePath": "logger.ts",
1319
+ "line": 142,
1320
+ "character": 3
1321
+ },
1322
+ "type": "void"
1323
+ },
1324
+ "modifiers": []
1325
+ },
1326
+ {
1327
+ "__schema": "FunctionLikeSchema",
1328
+ "location": {
1329
+ "filePath": "logger.ts",
1330
+ "line": 159,
1331
+ "character": 3
1332
+ },
1333
+ "doc": {
1334
+ "__schema": "DocSchema",
1335
+ "location": {
1336
+ "filePath": "logger.ts",
1337
+ "line": 155,
1338
+ "character": 3
1339
+ },
1340
+ "raw": "/**\n * a recent change on Windows caused the check mark to be printed as purple.\n * see https://github.com/chalk/chalk/issues/625\n */",
1341
+ "comment": "a recent change on Windows caused the check mark to be printed as purple.\nsee https://github.com/chalk/chalk/issues/625"
1342
+ },
1343
+ "signature": "(method) Logger.successSymbol(): string",
1344
+ "name": "successSymbol",
1345
+ "params": [],
1346
+ "returnType": {
1347
+ "__schema": "InferenceTypeSchema",
1348
+ "location": {
1349
+ "filePath": "logger.ts",
1350
+ "line": 159,
1351
+ "character": 3
1352
+ },
1353
+ "type": "string"
1354
+ },
1355
+ "modifiers": [
1356
+ "static"
1357
+ ]
1358
+ }
1359
+ ],
1360
+ "extendsNodes": [],
1361
+ "implementNodes": [
1362
+ {
1363
+ "__schema": "ExpressionWithTypeArgumentsSchema",
1364
+ "location": {
1365
+ "filePath": "logger.ts",
1366
+ "line": 7,
1367
+ "character": 32
1368
+ },
1369
+ "name": "implements IBitLogger",
1370
+ "typeArgs": [],
1371
+ "expression": {
1372
+ "__schema": "TypeRefSchema",
1373
+ "location": {
1374
+ "filePath": "logger.ts",
1375
+ "line": 7,
1376
+ "character": 32
1377
+ },
1378
+ "name": "IBitLogger",
1379
+ "componentId": {
1380
+ "_legacy": {
1381
+ "scope": "teambit.harmony",
1382
+ "name": "logger",
1383
+ "version": "0.0.945"
1384
+ },
1385
+ "_scope": "teambit.harmony"
1386
+ }
1387
+ }
1388
+ }
1389
+ ]
1390
+ },
1391
+ {
1392
+ "__schema": "ClassSchema",
1393
+ "location": {
1394
+ "filePath": "logger.main.runtime.ts",
1395
+ "line": 6,
1396
+ "character": 1
1397
+ },
1398
+ "signature": "class LoggerMain",
1399
+ "name": "LoggerMain",
1400
+ "members": [
1401
+ {
1402
+ "__schema": "VariableLikeSchema",
1403
+ "location": {
1404
+ "filePath": "logger.main.runtime.ts",
1405
+ "line": 7,
1406
+ "character": 3
1407
+ },
1408
+ "signature": "(property) LoggerMain.runtime: RuntimeDefinition",
1409
+ "name": "runtime",
1410
+ "type": {
1411
+ "__schema": "InferenceTypeSchema",
1412
+ "location": {
1413
+ "filePath": "logger.main.runtime.ts",
1414
+ "line": 7,
1415
+ "character": 3
1416
+ },
1417
+ "type": "RuntimeDefinition"
1418
+ },
1419
+ "isOptional": true,
1420
+ "defaultValue": "MainRuntime"
1421
+ },
1422
+ {
1423
+ "__schema": "VariableLikeSchema",
1424
+ "location": {
1425
+ "filePath": "logger.main.runtime.ts",
1426
+ "line": 8,
1427
+ "character": 3
1428
+ },
1429
+ "signature": "(property) LoggerMain.dependencies: never[]",
1430
+ "name": "dependencies",
1431
+ "type": {
1432
+ "__schema": "InferenceTypeSchema",
1433
+ "location": {
1434
+ "filePath": "logger.main.runtime.ts",
1435
+ "line": 8,
1436
+ "character": 3
1437
+ },
1438
+ "type": "never[]"
1439
+ },
1440
+ "isOptional": true,
1441
+ "defaultValue": "[]"
1442
+ },
1443
+ {
1444
+ "__schema": "FunctionLikeSchema",
1445
+ "location": {
1446
+ "filePath": "logger.main.runtime.ts",
1447
+ "line": 10,
1448
+ "character": 3
1449
+ },
1450
+ "signature": "(method) LoggerMain.createLogger(extensionName: string): Logger",
1451
+ "name": "createLogger",
1452
+ "params": [
1453
+ {
1454
+ "__schema": "ParameterSchema",
1455
+ "location": {
1456
+ "filePath": "logger.main.runtime.ts",
1457
+ "line": 10,
1458
+ "character": 16
1459
+ },
1460
+ "name": "extensionName",
1461
+ "type": {
1462
+ "__schema": "KeywordTypeSchema",
1463
+ "location": {
1464
+ "filePath": "logger.main.runtime.ts",
1465
+ "line": 10,
1466
+ "character": 31
1467
+ },
1468
+ "name": "string"
1469
+ },
1470
+ "isOptional": false,
1471
+ "isSpread": false
1472
+ }
1473
+ ],
1474
+ "returnType": {
1475
+ "__schema": "TypeRefSchema",
1476
+ "location": {
1477
+ "filePath": "logger.main.runtime.ts",
1478
+ "line": 10,
1479
+ "character": 3
1480
+ },
1481
+ "name": "Logger"
1482
+ },
1483
+ "modifiers": []
1484
+ },
1485
+ {
1486
+ "__schema": "FunctionLikeSchema",
1487
+ "location": {
1488
+ "filePath": "logger.main.runtime.ts",
1489
+ "line": 14,
1490
+ "character": 3
1491
+ },
1492
+ "signature": "(method) LoggerMain.provider(): Promise<LoggerMain>",
1493
+ "name": "provider",
1494
+ "params": [],
1495
+ "returnType": {
1496
+ "__schema": "InferenceTypeSchema",
1497
+ "location": {
1498
+ "filePath": "logger.main.runtime.ts",
1499
+ "line": 14,
1500
+ "character": 3
1501
+ },
1502
+ "type": "Promise<LoggerMain>"
1503
+ },
1504
+ "modifiers": [
1505
+ "static",
1506
+ "async"
1507
+ ]
1508
+ }
1509
+ ],
1510
+ "extendsNodes": [],
1511
+ "implementNodes": []
1512
+ },
1513
+ {
1514
+ "__schema": "VariableLikeSchema",
1515
+ "location": {
1516
+ "filePath": "logger.aspect.ts",
1517
+ "line": 3,
1518
+ "character": 14
1519
+ },
1520
+ "signature": "const LoggerAspect: Aspect",
1521
+ "name": "LoggerAspect",
1522
+ "type": {
1523
+ "__schema": "TypeRefSchema",
1524
+ "location": {
1525
+ "filePath": "logger.aspect.ts",
1526
+ "line": 3,
1527
+ "character": 14
1528
+ },
1529
+ "name": "Aspect",
1530
+ "componentId": {
1531
+ "scope": "teambit.harmony",
1532
+ "name": "harmony",
1533
+ "version": "0.4.6"
1534
+ }
1535
+ },
1536
+ "isOptional": false,
1537
+ "defaultValue": "Aspect.create({\n id: 'teambit.harmony/logger',\n dependencies: [],\n defaultConfig: {},\n})"
1538
+ },
1539
+ {
1540
+ "__schema": "ClassSchema",
1541
+ "location": {
1542
+ "filePath": "long-process-logger.ts",
1543
+ "line": 15,
1544
+ "character": 1
1545
+ },
1546
+ "doc": {
1547
+ "__schema": "DocSchema",
1548
+ "location": {
1549
+ "filePath": "long-process-logger.ts",
1550
+ "line": 6,
1551
+ "character": 1
1552
+ },
1553
+ "raw": "/**\n * use it for a long running process. upon creation it logs the `processDescription`.\n * if the process involves iteration over a list of items, such as running tag on a list of\n * components, then pass the `totalItems` as the total components in the list.\n * later, during the iteration, call `logProgress(componentName)`.\n * once done, call `end()`.\n * the status-line will show all messages in the terminal.\n * see README for more data.\n */",
1554
+ "comment": "use it for a long running process. upon creation it logs the `processDescription`.\nif the process involves iteration over a list of items, such as running tag on a list of\ncomponents, then pass the `totalItems` as the total components in the list.\nlater, during the iteration, call `logProgress(componentName)`.\nonce done, call `end()`.\nthe status-line will show all messages in the terminal.\nsee README for more data."
1555
+ },
1556
+ "signature": "class LongProcessLogger",
1557
+ "name": "LongProcessLogger",
1558
+ "members": [
1559
+ {
1560
+ "__schema": "ConstructorSchema",
1561
+ "location": {
1562
+ "filePath": "long-process-logger.ts",
1563
+ "line": 18,
1564
+ "character": 3
1565
+ },
1566
+ "signature": "constructor LongProcessLogger(logPublisher: Logger, extensionName: string, processDescription: string, totalItems?: number, shouldConsole?: ConsoleOnStart): LongProcessLogger",
1567
+ "name": "constructor",
1568
+ "params": [
1569
+ {
1570
+ "__schema": "ParameterSchema",
1571
+ "location": {
1572
+ "filePath": "long-process-logger.ts",
1573
+ "line": 19,
1574
+ "character": 5
1575
+ },
1576
+ "name": "logPublisher",
1577
+ "type": {
1578
+ "__schema": "TypeRefSchema",
1579
+ "location": {
1580
+ "filePath": "long-process-logger.ts",
1581
+ "line": 19,
1582
+ "character": 27
1583
+ },
1584
+ "name": "Logger"
1585
+ },
1586
+ "isOptional": false,
1587
+ "isSpread": false
1588
+ },
1589
+ {
1590
+ "__schema": "ParameterSchema",
1591
+ "location": {
1592
+ "filePath": "long-process-logger.ts",
1593
+ "line": 20,
1594
+ "character": 5
1595
+ },
1596
+ "name": "extensionName",
1597
+ "type": {
1598
+ "__schema": "KeywordTypeSchema",
1599
+ "location": {
1600
+ "filePath": "long-process-logger.ts",
1601
+ "line": 20,
1602
+ "character": 28
1603
+ },
1604
+ "name": "string"
1605
+ },
1606
+ "isOptional": false,
1607
+ "isSpread": false
1608
+ },
1609
+ {
1610
+ "__schema": "ParameterSchema",
1611
+ "location": {
1612
+ "filePath": "long-process-logger.ts",
1613
+ "line": 21,
1614
+ "character": 5
1615
+ },
1616
+ "name": "processDescription",
1617
+ "type": {
1618
+ "__schema": "KeywordTypeSchema",
1619
+ "location": {
1620
+ "filePath": "long-process-logger.ts",
1621
+ "line": 21,
1622
+ "character": 33
1623
+ },
1624
+ "name": "string"
1625
+ },
1626
+ "isOptional": false,
1627
+ "isSpread": false
1628
+ },
1629
+ {
1630
+ "__schema": "ParameterSchema",
1631
+ "location": {
1632
+ "filePath": "long-process-logger.ts",
1633
+ "line": 22,
1634
+ "character": 5
1635
+ },
1636
+ "name": "totalItems",
1637
+ "type": {
1638
+ "__schema": "KeywordTypeSchema",
1639
+ "location": {
1640
+ "filePath": "long-process-logger.ts",
1641
+ "line": 22,
1642
+ "character": 26
1643
+ },
1644
+ "name": "number"
1645
+ },
1646
+ "isOptional": true,
1647
+ "isSpread": false
1648
+ },
1649
+ {
1650
+ "__schema": "ParameterSchema",
1651
+ "location": {
1652
+ "filePath": "long-process-logger.ts",
1653
+ "line": 23,
1654
+ "character": 5
1655
+ },
1656
+ "name": "shouldConsole",
1657
+ "type": {
1658
+ "__schema": "TypeRefSchema",
1659
+ "location": {
1660
+ "filePath": "long-process-logger.ts",
1661
+ "line": 23,
1662
+ "character": 21
1663
+ },
1664
+ "name": "ConsoleOnStart"
1665
+ },
1666
+ "isOptional": true,
1667
+ "isSpread": false
1668
+ }
1669
+ ],
1670
+ "returnType": {
1671
+ "__schema": "ThisTypeSchema",
1672
+ "location": {
1673
+ "filePath": "long-process-logger.ts",
1674
+ "line": 15,
1675
+ "character": 1
1676
+ },
1677
+ "name": "LongProcessLogger"
1678
+ },
1679
+ "modifiers": []
1680
+ },
1681
+ {
1682
+ "__schema": "FunctionLikeSchema",
1683
+ "location": {
1684
+ "filePath": "long-process-logger.ts",
1685
+ "line": 28,
1686
+ "character": 3
1687
+ },
1688
+ "signature": "(method) LongProcessLogger.logProgress(itemName?: string, showProcessDescription?: boolean): void",
1689
+ "name": "logProgress",
1690
+ "params": [
1691
+ {
1692
+ "__schema": "ParameterSchema",
1693
+ "location": {
1694
+ "filePath": "long-process-logger.ts",
1695
+ "line": 28,
1696
+ "character": 15
1697
+ },
1698
+ "name": "itemName",
1699
+ "type": {
1700
+ "__schema": "InferenceTypeSchema",
1701
+ "location": {
1702
+ "filePath": "long-process-logger.ts",
1703
+ "line": 28,
1704
+ "character": 15
1705
+ },
1706
+ "type": "string"
1707
+ },
1708
+ "isOptional": true,
1709
+ "defaultValue": "''",
1710
+ "isSpread": false
1711
+ },
1712
+ {
1713
+ "__schema": "ParameterSchema",
1714
+ "location": {
1715
+ "filePath": "long-process-logger.ts",
1716
+ "line": 28,
1717
+ "character": 30
1718
+ },
1719
+ "name": "showProcessDescription",
1720
+ "type": {
1721
+ "__schema": "InferenceTypeSchema",
1722
+ "location": {
1723
+ "filePath": "long-process-logger.ts",
1724
+ "line": 28,
1725
+ "character": 30
1726
+ },
1727
+ "type": "boolean"
1728
+ },
1729
+ "isOptional": true,
1730
+ "defaultValue": "true",
1731
+ "isSpread": false
1732
+ }
1733
+ ],
1734
+ "returnType": {
1735
+ "__schema": "InferenceTypeSchema",
1736
+ "location": {
1737
+ "filePath": "long-process-logger.ts",
1738
+ "line": 28,
1739
+ "character": 3
1740
+ },
1741
+ "type": "void"
1742
+ },
1743
+ "modifiers": []
1744
+ },
1745
+ {
1746
+ "__schema": "FunctionLikeSchema",
1747
+ "location": {
1748
+ "filePath": "long-process-logger.ts",
1749
+ "line": 36,
1750
+ "character": 3
1751
+ },
1752
+ "signature": "(method) LongProcessLogger.end(shouldConsole?: 'success' | 'error'): void",
1753
+ "name": "end",
1754
+ "params": [
1755
+ {
1756
+ "__schema": "ParameterSchema",
1757
+ "location": {
1758
+ "filePath": "long-process-logger.ts",
1759
+ "line": 36,
1760
+ "character": 7
1761
+ },
1762
+ "name": "shouldConsole",
1763
+ "type": {
1764
+ "__schema": "TypeUnionSchema",
1765
+ "location": {
1766
+ "filePath": "long-process-logger.ts",
1767
+ "line": 36,
1768
+ "character": 23
1769
+ },
1770
+ "types": [
1771
+ {
1772
+ "__schema": "LiteralTypeSchema",
1773
+ "location": {
1774
+ "filePath": "long-process-logger.ts",
1775
+ "line": 36,
1776
+ "character": 23
1777
+ },
1778
+ "name": "'success'"
1779
+ },
1780
+ {
1781
+ "__schema": "LiteralTypeSchema",
1782
+ "location": {
1783
+ "filePath": "long-process-logger.ts",
1784
+ "line": 36,
1785
+ "character": 35
1786
+ },
1787
+ "name": "'error'"
1788
+ }
1789
+ ]
1790
+ },
1791
+ "isOptional": true,
1792
+ "isSpread": false
1793
+ }
1794
+ ],
1795
+ "returnType": {
1796
+ "__schema": "InferenceTypeSchema",
1797
+ "location": {
1798
+ "filePath": "long-process-logger.ts",
1799
+ "line": 36,
1800
+ "character": 3
1801
+ },
1802
+ "type": "void"
1803
+ },
1804
+ "modifiers": []
1805
+ },
1806
+ {
1807
+ "__schema": "FunctionLikeSchema",
1808
+ "location": {
1809
+ "filePath": "long-process-logger.ts",
1810
+ "line": 49,
1811
+ "character": 3
1812
+ },
1813
+ "signature": "(method) LongProcessLogger.getProgress(): string",
1814
+ "name": "getProgress",
1815
+ "params": [],
1816
+ "returnType": {
1817
+ "__schema": "InferenceTypeSchema",
1818
+ "location": {
1819
+ "filePath": "long-process-logger.ts",
1820
+ "line": 49,
1821
+ "character": 3
1822
+ },
1823
+ "type": "string"
1824
+ },
1825
+ "modifiers": []
1826
+ }
1827
+ ],
1828
+ "extendsNodes": [],
1829
+ "implementNodes": []
1830
+ }
1831
+ ],
1832
+ "internals": []
1833
+ },
1834
+ "internals": [
1835
+ {
1836
+ "__schema": "ModuleSchema",
1837
+ "location": {
1838
+ "filePath": "logger.ts",
1839
+ "line": 1,
1840
+ "character": 1
1841
+ },
1842
+ "exports": [
1843
+ {
1844
+ "__schema": "ClassSchema",
1845
+ "location": {
1846
+ "filePath": "logger.ts",
1847
+ "line": 7,
1848
+ "character": 1
1849
+ },
1850
+ "signature": "class Logger",
1851
+ "name": "Logger",
1852
+ "members": [
1853
+ {
1854
+ "__schema": "ConstructorSchema",
1855
+ "location": {
1856
+ "filePath": "logger.ts",
1857
+ "line": 8,
1858
+ "character": 3
1859
+ },
1860
+ "signature": "constructor Logger(extensionName: string): Logger",
1861
+ "name": "constructor",
1862
+ "params": [
1863
+ {
1864
+ "__schema": "ParameterSchema",
1865
+ "location": {
1866
+ "filePath": "logger.ts",
1867
+ "line": 8,
1868
+ "character": 15
1869
+ },
1870
+ "name": "extensionName",
1871
+ "type": {
1872
+ "__schema": "KeywordTypeSchema",
1873
+ "location": {
1874
+ "filePath": "logger.ts",
1875
+ "line": 8,
1876
+ "character": 38
1877
+ },
1878
+ "name": "string"
1879
+ },
1880
+ "isOptional": false,
1881
+ "isSpread": false
1882
+ }
1883
+ ],
1884
+ "returnType": {
1885
+ "__schema": "ThisTypeSchema",
1886
+ "location": {
1887
+ "filePath": "logger.ts",
1888
+ "line": 7,
1889
+ "character": 1
1890
+ },
1891
+ "name": "Logger"
1892
+ },
1893
+ "modifiers": []
1894
+ },
1895
+ {
1896
+ "__schema": "FunctionLikeSchema",
1897
+ "location": {
1898
+ "filePath": "logger.ts",
1899
+ "line": 10,
1900
+ "character": 3
1901
+ },
1902
+ "signature": "(method) Logger.trace(message: string, ...meta: any[]): void",
1903
+ "name": "trace",
1904
+ "params": [
1905
+ {
1906
+ "__schema": "ParameterSchema",
1907
+ "location": {
1908
+ "filePath": "logger.ts",
1909
+ "line": 10,
1910
+ "character": 9
1911
+ },
1912
+ "name": "message",
1913
+ "type": {
1914
+ "__schema": "KeywordTypeSchema",
1915
+ "location": {
1916
+ "filePath": "logger.ts",
1917
+ "line": 10,
1918
+ "character": 18
1919
+ },
1920
+ "name": "string"
1921
+ },
1922
+ "isOptional": false,
1923
+ "isSpread": false
1924
+ },
1925
+ {
1926
+ "__schema": "ParameterSchema",
1927
+ "location": {
1928
+ "filePath": "logger.ts",
1929
+ "line": 10,
1930
+ "character": 26
1931
+ },
1932
+ "name": "meta",
1933
+ "type": {
1934
+ "__schema": "TypeArraySchema",
1935
+ "location": {
1936
+ "filePath": "logger.ts",
1937
+ "line": 10,
1938
+ "character": 35
1939
+ },
1940
+ "type": {
1941
+ "__schema": "KeywordTypeSchema",
1942
+ "location": {
1943
+ "filePath": "logger.ts",
1944
+ "line": 10,
1945
+ "character": 35
1946
+ },
1947
+ "name": "any"
1948
+ }
1949
+ },
1950
+ "isOptional": false,
1951
+ "isSpread": true
1952
+ }
1953
+ ],
1954
+ "returnType": {
1955
+ "__schema": "InferenceTypeSchema",
1956
+ "location": {
1957
+ "filePath": "logger.ts",
1958
+ "line": 10,
1959
+ "character": 3
1960
+ },
1961
+ "type": "void"
1962
+ },
1963
+ "modifiers": []
1964
+ },
1965
+ {
1966
+ "__schema": "FunctionLikeSchema",
1967
+ "location": {
1968
+ "filePath": "logger.ts",
1969
+ "line": 13,
1970
+ "character": 3
1971
+ },
1972
+ "signature": "(method) Logger.debug(message: string, ...meta: any[]): void",
1973
+ "name": "debug",
1974
+ "params": [
1975
+ {
1976
+ "__schema": "ParameterSchema",
1977
+ "location": {
1978
+ "filePath": "logger.ts",
1979
+ "line": 13,
1980
+ "character": 9
1981
+ },
1982
+ "name": "message",
1983
+ "type": {
1984
+ "__schema": "KeywordTypeSchema",
1985
+ "location": {
1986
+ "filePath": "logger.ts",
1987
+ "line": 13,
1988
+ "character": 18
1989
+ },
1990
+ "name": "string"
1991
+ },
1992
+ "isOptional": false,
1993
+ "isSpread": false
1994
+ },
1995
+ {
1996
+ "__schema": "ParameterSchema",
1997
+ "location": {
1998
+ "filePath": "logger.ts",
1999
+ "line": 13,
2000
+ "character": 26
2001
+ },
2002
+ "name": "meta",
2003
+ "type": {
2004
+ "__schema": "TypeArraySchema",
2005
+ "location": {
2006
+ "filePath": "logger.ts",
2007
+ "line": 13,
2008
+ "character": 35
2009
+ },
2010
+ "type": {
2011
+ "__schema": "KeywordTypeSchema",
2012
+ "location": {
2013
+ "filePath": "logger.ts",
2014
+ "line": 13,
2015
+ "character": 35
2016
+ },
2017
+ "name": "any"
2018
+ }
2019
+ },
2020
+ "isOptional": false,
2021
+ "isSpread": true
2022
+ }
2023
+ ],
2024
+ "returnType": {
2025
+ "__schema": "InferenceTypeSchema",
2026
+ "location": {
2027
+ "filePath": "logger.ts",
2028
+ "line": 13,
2029
+ "character": 3
2030
+ },
2031
+ "type": "void"
2032
+ },
2033
+ "modifiers": []
2034
+ },
2035
+ {
2036
+ "__schema": "FunctionLikeSchema",
2037
+ "location": {
2038
+ "filePath": "logger.ts",
2039
+ "line": 16,
2040
+ "character": 3
2041
+ },
2042
+ "signature": "(method) Logger.info(message: string, ...meta: any[]): void",
2043
+ "name": "info",
2044
+ "params": [
2045
+ {
2046
+ "__schema": "ParameterSchema",
2047
+ "location": {
2048
+ "filePath": "logger.ts",
2049
+ "line": 16,
2050
+ "character": 8
2051
+ },
2052
+ "name": "message",
2053
+ "type": {
2054
+ "__schema": "KeywordTypeSchema",
2055
+ "location": {
2056
+ "filePath": "logger.ts",
2057
+ "line": 16,
2058
+ "character": 17
2059
+ },
2060
+ "name": "string"
2061
+ },
2062
+ "isOptional": false,
2063
+ "isSpread": false
2064
+ },
2065
+ {
2066
+ "__schema": "ParameterSchema",
2067
+ "location": {
2068
+ "filePath": "logger.ts",
2069
+ "line": 16,
2070
+ "character": 25
2071
+ },
2072
+ "name": "meta",
2073
+ "type": {
2074
+ "__schema": "TypeArraySchema",
2075
+ "location": {
2076
+ "filePath": "logger.ts",
2077
+ "line": 16,
2078
+ "character": 34
2079
+ },
2080
+ "type": {
2081
+ "__schema": "KeywordTypeSchema",
2082
+ "location": {
2083
+ "filePath": "logger.ts",
2084
+ "line": 16,
2085
+ "character": 34
2086
+ },
2087
+ "name": "any"
2088
+ }
2089
+ },
2090
+ "isOptional": false,
2091
+ "isSpread": true
2092
+ }
2093
+ ],
2094
+ "returnType": {
2095
+ "__schema": "InferenceTypeSchema",
2096
+ "location": {
2097
+ "filePath": "logger.ts",
2098
+ "line": 16,
2099
+ "character": 3
2100
+ },
2101
+ "type": "void"
2102
+ },
2103
+ "modifiers": []
2104
+ },
2105
+ {
2106
+ "__schema": "FunctionLikeSchema",
2107
+ "location": {
2108
+ "filePath": "logger.ts",
2109
+ "line": 19,
2110
+ "character": 3
2111
+ },
2112
+ "signature": "(method) Logger.warn(message: string, ...meta: any[]): void",
2113
+ "name": "warn",
2114
+ "params": [
2115
+ {
2116
+ "__schema": "ParameterSchema",
2117
+ "location": {
2118
+ "filePath": "logger.ts",
2119
+ "line": 19,
2120
+ "character": 8
2121
+ },
2122
+ "name": "message",
2123
+ "type": {
2124
+ "__schema": "KeywordTypeSchema",
2125
+ "location": {
2126
+ "filePath": "logger.ts",
2127
+ "line": 19,
2128
+ "character": 17
2129
+ },
2130
+ "name": "string"
2131
+ },
2132
+ "isOptional": false,
2133
+ "isSpread": false
2134
+ },
2135
+ {
2136
+ "__schema": "ParameterSchema",
2137
+ "location": {
2138
+ "filePath": "logger.ts",
2139
+ "line": 19,
2140
+ "character": 25
2141
+ },
2142
+ "name": "meta",
2143
+ "type": {
2144
+ "__schema": "TypeArraySchema",
2145
+ "location": {
2146
+ "filePath": "logger.ts",
2147
+ "line": 19,
2148
+ "character": 34
2149
+ },
2150
+ "type": {
2151
+ "__schema": "KeywordTypeSchema",
2152
+ "location": {
2153
+ "filePath": "logger.ts",
2154
+ "line": 19,
2155
+ "character": 34
2156
+ },
2157
+ "name": "any"
2158
+ }
2159
+ },
2160
+ "isOptional": false,
2161
+ "isSpread": true
2162
+ }
2163
+ ],
2164
+ "returnType": {
2165
+ "__schema": "InferenceTypeSchema",
2166
+ "location": {
2167
+ "filePath": "logger.ts",
2168
+ "line": 19,
2169
+ "character": 3
2170
+ },
2171
+ "type": "void"
2172
+ },
2173
+ "modifiers": []
2174
+ },
2175
+ {
2176
+ "__schema": "FunctionLikeSchema",
2177
+ "location": {
2178
+ "filePath": "logger.ts",
2179
+ "line": 22,
2180
+ "character": 3
2181
+ },
2182
+ "signature": "(method) Logger.error(message: string, ...meta: any[]): void",
2183
+ "name": "error",
2184
+ "params": [
2185
+ {
2186
+ "__schema": "ParameterSchema",
2187
+ "location": {
2188
+ "filePath": "logger.ts",
2189
+ "line": 22,
2190
+ "character": 9
2191
+ },
2192
+ "name": "message",
2193
+ "type": {
2194
+ "__schema": "KeywordTypeSchema",
2195
+ "location": {
2196
+ "filePath": "logger.ts",
2197
+ "line": 22,
2198
+ "character": 18
2199
+ },
2200
+ "name": "string"
2201
+ },
2202
+ "isOptional": false,
2203
+ "isSpread": false
2204
+ },
2205
+ {
2206
+ "__schema": "ParameterSchema",
2207
+ "location": {
2208
+ "filePath": "logger.ts",
2209
+ "line": 22,
2210
+ "character": 26
2211
+ },
2212
+ "name": "meta",
2213
+ "type": {
2214
+ "__schema": "TypeArraySchema",
2215
+ "location": {
2216
+ "filePath": "logger.ts",
2217
+ "line": 22,
2218
+ "character": 35
2219
+ },
2220
+ "type": {
2221
+ "__schema": "KeywordTypeSchema",
2222
+ "location": {
2223
+ "filePath": "logger.ts",
2224
+ "line": 22,
2225
+ "character": 35
2226
+ },
2227
+ "name": "any"
2228
+ }
2229
+ },
2230
+ "isOptional": false,
2231
+ "isSpread": true
2232
+ }
2233
+ ],
2234
+ "returnType": {
2235
+ "__schema": "InferenceTypeSchema",
2236
+ "location": {
2237
+ "filePath": "logger.ts",
2238
+ "line": 22,
2239
+ "character": 3
2240
+ },
2241
+ "type": "void"
2242
+ },
2243
+ "modifiers": []
2244
+ },
2245
+ {
2246
+ "__schema": "FunctionLikeSchema",
2247
+ "location": {
2248
+ "filePath": "logger.ts",
2249
+ "line": 25,
2250
+ "character": 3
2251
+ },
2252
+ "signature": "(method) Logger.fatal(message: string, ...meta: any[]): void",
2253
+ "name": "fatal",
2254
+ "params": [
2255
+ {
2256
+ "__schema": "ParameterSchema",
2257
+ "location": {
2258
+ "filePath": "logger.ts",
2259
+ "line": 25,
2260
+ "character": 9
2261
+ },
2262
+ "name": "message",
2263
+ "type": {
2264
+ "__schema": "KeywordTypeSchema",
2265
+ "location": {
2266
+ "filePath": "logger.ts",
2267
+ "line": 25,
2268
+ "character": 18
2269
+ },
2270
+ "name": "string"
2271
+ },
2272
+ "isOptional": false,
2273
+ "isSpread": false
2274
+ },
2275
+ {
2276
+ "__schema": "ParameterSchema",
2277
+ "location": {
2278
+ "filePath": "logger.ts",
2279
+ "line": 25,
2280
+ "character": 26
2281
+ },
2282
+ "name": "meta",
2283
+ "type": {
2284
+ "__schema": "TypeArraySchema",
2285
+ "location": {
2286
+ "filePath": "logger.ts",
2287
+ "line": 25,
2288
+ "character": 35
2289
+ },
2290
+ "type": {
2291
+ "__schema": "KeywordTypeSchema",
2292
+ "location": {
2293
+ "filePath": "logger.ts",
2294
+ "line": 25,
2295
+ "character": 35
2296
+ },
2297
+ "name": "any"
2298
+ }
2299
+ },
2300
+ "isOptional": false,
2301
+ "isSpread": true
2302
+ }
2303
+ ],
2304
+ "returnType": {
2305
+ "__schema": "InferenceTypeSchema",
2306
+ "location": {
2307
+ "filePath": "logger.ts",
2308
+ "line": 25,
2309
+ "character": 3
2310
+ },
2311
+ "type": "void"
2312
+ },
2313
+ "modifiers": []
2314
+ },
2315
+ {
2316
+ "__schema": "GetAccessorSchema",
2317
+ "location": {
2318
+ "filePath": "logger.ts",
2319
+ "line": 29,
2320
+ "character": 3
2321
+ },
2322
+ "signature": "(getter) Logger.isLoaderStarted: boolean",
2323
+ "name": "isLoaderStarted",
2324
+ "type": {
2325
+ "__schema": "InferenceTypeSchema",
2326
+ "location": {
2327
+ "filePath": "logger.ts",
2328
+ "line": 29,
2329
+ "character": 3
2330
+ },
2331
+ "type": "boolean"
2332
+ }
2333
+ },
2334
+ {
2335
+ "__schema": "FunctionLikeSchema",
2336
+ "location": {
2337
+ "filePath": "logger.ts",
2338
+ "line": 40,
2339
+ "character": 3
2340
+ },
2341
+ "doc": {
2342
+ "__schema": "DocSchema",
2343
+ "location": {
2344
+ "filePath": "logger.ts",
2345
+ "line": 32,
2346
+ "character": 3
2347
+ },
2348
+ "raw": "/**\n * use it for a long running process. upon creation it logs the `processDescription`.\n * if the process involves iteration over a list of items, such as running tag on a list of\n * components, then pass the `totalItems` as the total of the total components in the list.\n * later, during the iteration, call `LongProcessLogger.logProgress(componentName)`.\n * once done, call `LongProcessLogger.end()`\n * the status-line will show all messages in the terminal.\n */",
2349
+ "comment": "use it for a long running process. upon creation it logs the `processDescription`.\nif the process involves iteration over a list of items, such as running tag on a list of\ncomponents, then pass the `totalItems` as the total of the total components in the list.\nlater, during the iteration, call `LongProcessLogger.logProgress(componentName)`.\nonce done, call `LongProcessLogger.end()`\nthe status-line will show all messages in the terminal."
2350
+ },
2351
+ "signature": "(method) Logger.createLongProcessLogger(processDescription: string, totalItems?: number, shouldConsole?: ConsoleOnStart): LongProcessLogger",
2352
+ "name": "createLongProcessLogger",
2353
+ "params": [
2354
+ {
2355
+ "__schema": "ParameterSchema",
2356
+ "location": {
2357
+ "filePath": "logger.ts",
2358
+ "line": 41,
2359
+ "character": 5
2360
+ },
2361
+ "name": "processDescription",
2362
+ "type": {
2363
+ "__schema": "KeywordTypeSchema",
2364
+ "location": {
2365
+ "filePath": "logger.ts",
2366
+ "line": 41,
2367
+ "character": 25
2368
+ },
2369
+ "name": "string"
2370
+ },
2371
+ "isOptional": false,
2372
+ "isSpread": false
2373
+ },
2374
+ {
2375
+ "__schema": "ParameterSchema",
2376
+ "location": {
2377
+ "filePath": "logger.ts",
2378
+ "line": 42,
2379
+ "character": 5
2380
+ },
2381
+ "name": "totalItems",
2382
+ "type": {
2383
+ "__schema": "KeywordTypeSchema",
2384
+ "location": {
2385
+ "filePath": "logger.ts",
2386
+ "line": 42,
2387
+ "character": 18
2388
+ },
2389
+ "name": "number"
2390
+ },
2391
+ "isOptional": true,
2392
+ "isSpread": false
2393
+ },
2394
+ {
2395
+ "__schema": "ParameterSchema",
2396
+ "location": {
2397
+ "filePath": "logger.ts",
2398
+ "line": 43,
2399
+ "character": 5
2400
+ },
2401
+ "name": "shouldConsole",
2402
+ "type": {
2403
+ "__schema": "TypeRefSchema",
2404
+ "location": {
2405
+ "filePath": "logger.ts",
2406
+ "line": 43,
2407
+ "character": 21
2408
+ },
2409
+ "name": "ConsoleOnStart"
2410
+ },
2411
+ "isOptional": true,
2412
+ "isSpread": false
2413
+ }
2414
+ ],
2415
+ "returnType": {
2416
+ "__schema": "TypeRefSchema",
2417
+ "location": {
2418
+ "filePath": "logger.ts",
2419
+ "line": 40,
2420
+ "character": 3
2421
+ },
2422
+ "name": "LongProcessLogger"
2423
+ },
2424
+ "modifiers": []
2425
+ },
2426
+ {
2427
+ "__schema": "FunctionLikeSchema",
2428
+ "location": {
2429
+ "filePath": "logger.ts",
2430
+ "line": 51,
2431
+ "character": 3
2432
+ },
2433
+ "doc": {
2434
+ "__schema": "DocSchema",
2435
+ "location": {
2436
+ "filePath": "logger.ts",
2437
+ "line": 47,
2438
+ "character": 3
2439
+ },
2440
+ "raw": "/**\n * single status-line on the bottom of the screen.\n * the text is replaced every time this method is called.\n */",
2441
+ "comment": "single status-line on the bottom of the screen.\nthe text is replaced every time this method is called."
2442
+ },
2443
+ "signature": "(method) Logger.setStatusLine(text: string, shouldPrintOnCI?: boolean): void",
2444
+ "name": "setStatusLine",
2445
+ "params": [
2446
+ {
2447
+ "__schema": "ParameterSchema",
2448
+ "location": {
2449
+ "filePath": "logger.ts",
2450
+ "line": 51,
2451
+ "character": 17
2452
+ },
2453
+ "name": "text",
2454
+ "type": {
2455
+ "__schema": "KeywordTypeSchema",
2456
+ "location": {
2457
+ "filePath": "logger.ts",
2458
+ "line": 51,
2459
+ "character": 23
2460
+ },
2461
+ "name": "string"
2462
+ },
2463
+ "isOptional": false,
2464
+ "isSpread": false
2465
+ },
2466
+ {
2467
+ "__schema": "ParameterSchema",
2468
+ "location": {
2469
+ "filePath": "logger.ts",
2470
+ "line": 51,
2471
+ "character": 31
2472
+ },
2473
+ "name": "shouldPrintOnCI",
2474
+ "type": {
2475
+ "__schema": "InferenceTypeSchema",
2476
+ "location": {
2477
+ "filePath": "logger.ts",
2478
+ "line": 51,
2479
+ "character": 31
2480
+ },
2481
+ "type": "boolean"
2482
+ },
2483
+ "isOptional": true,
2484
+ "defaultValue": "false",
2485
+ "isSpread": false
2486
+ }
2487
+ ],
2488
+ "returnType": {
2489
+ "__schema": "InferenceTypeSchema",
2490
+ "location": {
2491
+ "filePath": "logger.ts",
2492
+ "line": 51,
2493
+ "character": 3
2494
+ },
2495
+ "type": "void"
2496
+ },
2497
+ "modifiers": []
2498
+ },
2499
+ {
2500
+ "__schema": "FunctionLikeSchema",
2501
+ "location": {
2502
+ "filePath": "logger.ts",
2503
+ "line": 58,
2504
+ "character": 3
2505
+ },
2506
+ "doc": {
2507
+ "__schema": "DocSchema",
2508
+ "location": {
2509
+ "filePath": "logger.ts",
2510
+ "line": 55,
2511
+ "character": 3
2512
+ },
2513
+ "raw": "/**\n * remove the text from the last line on the screen.\n */",
2514
+ "comment": "remove the text from the last line on the screen."
2515
+ },
2516
+ "signature": "(method) Logger.clearStatusLine(): void",
2517
+ "name": "clearStatusLine",
2518
+ "params": [],
2519
+ "returnType": {
2520
+ "__schema": "InferenceTypeSchema",
2521
+ "location": {
2522
+ "filePath": "logger.ts",
2523
+ "line": 58,
2524
+ "character": 3
2525
+ },
2526
+ "type": "void"
2527
+ },
2528
+ "modifiers": []
2529
+ },
2530
+ {
2531
+ "__schema": "FunctionLikeSchema",
2532
+ "location": {
2533
+ "filePath": "logger.ts",
2534
+ "line": 64,
2535
+ "character": 3
2536
+ },
2537
+ "doc": {
2538
+ "__schema": "DocSchema",
2539
+ "location": {
2540
+ "filePath": "logger.ts",
2541
+ "line": 61,
2542
+ "character": 3
2543
+ },
2544
+ "raw": "/**\n * print to the screen. if message is empty, print the last logged message.\n */",
2545
+ "comment": "print to the screen. if message is empty, print the last logged message."
2546
+ },
2547
+ "signature": "(method) Logger.console(message?: string, ...meta: any[]): void",
2548
+ "name": "console",
2549
+ "params": [
2550
+ {
2551
+ "__schema": "ParameterSchema",
2552
+ "location": {
2553
+ "filePath": "logger.ts",
2554
+ "line": 64,
2555
+ "character": 11
2556
+ },
2557
+ "name": "message",
2558
+ "type": {
2559
+ "__schema": "KeywordTypeSchema",
2560
+ "location": {
2561
+ "filePath": "logger.ts",
2562
+ "line": 64,
2563
+ "character": 21
2564
+ },
2565
+ "name": "string"
2566
+ },
2567
+ "isOptional": true,
2568
+ "isSpread": false
2569
+ },
2570
+ {
2571
+ "__schema": "ParameterSchema",
2572
+ "location": {
2573
+ "filePath": "logger.ts",
2574
+ "line": 64,
2575
+ "character": 29
2576
+ },
2577
+ "name": "meta",
2578
+ "type": {
2579
+ "__schema": "TypeArraySchema",
2580
+ "location": {
2581
+ "filePath": "logger.ts",
2582
+ "line": 64,
2583
+ "character": 38
2584
+ },
2585
+ "type": {
2586
+ "__schema": "KeywordTypeSchema",
2587
+ "location": {
2588
+ "filePath": "logger.ts",
2589
+ "line": 64,
2590
+ "character": 38
2591
+ },
2592
+ "name": "any"
2593
+ }
2594
+ },
2595
+ "isOptional": false,
2596
+ "isSpread": true
2597
+ }
2598
+ ],
2599
+ "returnType": {
2600
+ "__schema": "InferenceTypeSchema",
2601
+ "location": {
2602
+ "filePath": "logger.ts",
2603
+ "line": 64,
2604
+ "character": 3
2605
+ },
2606
+ "type": "void"
2607
+ },
2608
+ "modifiers": []
2609
+ },
2610
+ {
2611
+ "__schema": "FunctionLikeSchema",
2612
+ "location": {
2613
+ "filePath": "logger.ts",
2614
+ "line": 78,
2615
+ "character": 3
2616
+ },
2617
+ "doc": {
2618
+ "__schema": "DocSchema",
2619
+ "location": {
2620
+ "filePath": "logger.ts",
2621
+ "line": 74,
2622
+ "character": 3
2623
+ },
2624
+ "raw": "/**\n * @deprecated\n * try using consoleWarning. if not possible, rename this method to a clearer one\n */",
2625
+ "tags": [
2626
+ {
2627
+ "__schema": "TagSchema",
2628
+ "location": {
2629
+ "filePath": "logger.ts",
2630
+ "line": 75,
2631
+ "character": 6
2632
+ },
2633
+ "tagName": "deprecated",
2634
+ "comment": "try using consoleWarning. if not possible, rename this method to a clearer one"
2635
+ }
2636
+ ]
2637
+ },
2638
+ "signature": "(method) Logger.consoleWarn(message?: string, ...meta: any[]): void",
2639
+ "name": "consoleWarn",
2640
+ "params": [
2641
+ {
2642
+ "__schema": "ParameterSchema",
2643
+ "location": {
2644
+ "filePath": "logger.ts",
2645
+ "line": 78,
2646
+ "character": 15
2647
+ },
2648
+ "name": "message",
2649
+ "type": {
2650
+ "__schema": "KeywordTypeSchema",
2651
+ "location": {
2652
+ "filePath": "logger.ts",
2653
+ "line": 78,
2654
+ "character": 25
2655
+ },
2656
+ "name": "string"
2657
+ },
2658
+ "isOptional": true,
2659
+ "isSpread": false
2660
+ },
2661
+ {
2662
+ "__schema": "ParameterSchema",
2663
+ "location": {
2664
+ "filePath": "logger.ts",
2665
+ "line": 78,
2666
+ "character": 33
2667
+ },
2668
+ "name": "meta",
2669
+ "type": {
2670
+ "__schema": "TypeArraySchema",
2671
+ "location": {
2672
+ "filePath": "logger.ts",
2673
+ "line": 78,
2674
+ "character": 42
2675
+ },
2676
+ "type": {
2677
+ "__schema": "KeywordTypeSchema",
2678
+ "location": {
2679
+ "filePath": "logger.ts",
2680
+ "line": 78,
2681
+ "character": 42
2682
+ },
2683
+ "name": "any"
2684
+ }
2685
+ },
2686
+ "isOptional": false,
2687
+ "isSpread": true
2688
+ }
2689
+ ],
2690
+ "returnType": {
2691
+ "__schema": "InferenceTypeSchema",
2692
+ "location": {
2693
+ "filePath": "logger.ts",
2694
+ "line": 78,
2695
+ "character": 3
2696
+ },
2697
+ "type": "void"
2698
+ },
2699
+ "modifiers": []
2700
+ },
2701
+ {
2702
+ "__schema": "FunctionLikeSchema",
2703
+ "location": {
2704
+ "filePath": "logger.ts",
2705
+ "line": 92,
2706
+ "character": 3
2707
+ },
2708
+ "doc": {
2709
+ "__schema": "DocSchema",
2710
+ "location": {
2711
+ "filePath": "logger.ts",
2712
+ "line": 88,
2713
+ "character": 3
2714
+ },
2715
+ "raw": "/**\n * @deprecated\n * try using consoleFailure. if not possible, rename this method to a clearer one\n */",
2716
+ "tags": [
2717
+ {
2718
+ "__schema": "TagSchema",
2719
+ "location": {
2720
+ "filePath": "logger.ts",
2721
+ "line": 89,
2722
+ "character": 6
2723
+ },
2724
+ "tagName": "deprecated",
2725
+ "comment": "try using consoleFailure. if not possible, rename this method to a clearer one"
2726
+ }
2727
+ ]
2728
+ },
2729
+ "signature": "(method) Logger.consoleError(message?: string, ...meta: any[]): void",
2730
+ "name": "consoleError",
2731
+ "params": [
2732
+ {
2733
+ "__schema": "ParameterSchema",
2734
+ "location": {
2735
+ "filePath": "logger.ts",
2736
+ "line": 92,
2737
+ "character": 16
2738
+ },
2739
+ "name": "message",
2740
+ "type": {
2741
+ "__schema": "KeywordTypeSchema",
2742
+ "location": {
2743
+ "filePath": "logger.ts",
2744
+ "line": 92,
2745
+ "character": 26
2746
+ },
2747
+ "name": "string"
2748
+ },
2749
+ "isOptional": true,
2750
+ "isSpread": false
2751
+ },
2752
+ {
2753
+ "__schema": "ParameterSchema",
2754
+ "location": {
2755
+ "filePath": "logger.ts",
2756
+ "line": 92,
2757
+ "character": 34
2758
+ },
2759
+ "name": "meta",
2760
+ "type": {
2761
+ "__schema": "TypeArraySchema",
2762
+ "location": {
2763
+ "filePath": "logger.ts",
2764
+ "line": 92,
2765
+ "character": 43
2766
+ },
2767
+ "type": {
2768
+ "__schema": "KeywordTypeSchema",
2769
+ "location": {
2770
+ "filePath": "logger.ts",
2771
+ "line": 92,
2772
+ "character": 43
2773
+ },
2774
+ "name": "any"
2775
+ }
2776
+ },
2777
+ "isOptional": false,
2778
+ "isSpread": true
2779
+ }
2780
+ ],
2781
+ "returnType": {
2782
+ "__schema": "InferenceTypeSchema",
2783
+ "location": {
2784
+ "filePath": "logger.ts",
2785
+ "line": 92,
2786
+ "character": 3
2787
+ },
2788
+ "type": "void"
2789
+ },
2790
+ "modifiers": []
2791
+ },
2792
+ {
2793
+ "__schema": "FunctionLikeSchema",
2794
+ "location": {
2795
+ "filePath": "logger.ts",
2796
+ "line": 105,
2797
+ "character": 3
2798
+ },
2799
+ "doc": {
2800
+ "__schema": "DocSchema",
2801
+ "location": {
2802
+ "filePath": "logger.ts",
2803
+ "line": 102,
2804
+ "character": 3
2805
+ },
2806
+ "raw": "/**\n * print to the screen as a title, with bold text.\n */",
2807
+ "comment": "print to the screen as a title, with bold text."
2808
+ },
2809
+ "signature": "(method) Logger.consoleTitle(message: string): void",
2810
+ "name": "consoleTitle",
2811
+ "params": [
2812
+ {
2813
+ "__schema": "ParameterSchema",
2814
+ "location": {
2815
+ "filePath": "logger.ts",
2816
+ "line": 105,
2817
+ "character": 16
2818
+ },
2819
+ "name": "message",
2820
+ "type": {
2821
+ "__schema": "KeywordTypeSchema",
2822
+ "location": {
2823
+ "filePath": "logger.ts",
2824
+ "line": 105,
2825
+ "character": 25
2826
+ },
2827
+ "name": "string"
2828
+ },
2829
+ "isOptional": false,
2830
+ "isSpread": false
2831
+ }
2832
+ ],
2833
+ "returnType": {
2834
+ "__schema": "InferenceTypeSchema",
2835
+ "location": {
2836
+ "filePath": "logger.ts",
2837
+ "line": 105,
2838
+ "character": 3
2839
+ },
2840
+ "type": "void"
2841
+ },
2842
+ "modifiers": []
2843
+ },
2844
+ {
2845
+ "__schema": "FunctionLikeSchema",
2846
+ "location": {
2847
+ "filePath": "logger.ts",
2848
+ "line": 112,
2849
+ "character": 3
2850
+ },
2851
+ "doc": {
2852
+ "__schema": "DocSchema",
2853
+ "location": {
2854
+ "filePath": "logger.ts",
2855
+ "line": 109,
2856
+ "character": 3
2857
+ },
2858
+ "raw": "/**\n * print to the screen with a green `✔` prefix. if message is empty, print the last logged message.\n */",
2859
+ "comment": "print to the screen with a green `✔` prefix. if message is empty, print the last logged message."
2860
+ },
2861
+ "signature": "(method) Logger.consoleSuccess(message?: string, startTime?: [number, number]): void",
2862
+ "name": "consoleSuccess",
2863
+ "params": [
2864
+ {
2865
+ "__schema": "ParameterSchema",
2866
+ "location": {
2867
+ "filePath": "logger.ts",
2868
+ "line": 112,
2869
+ "character": 18
2870
+ },
2871
+ "name": "message",
2872
+ "type": {
2873
+ "__schema": "KeywordTypeSchema",
2874
+ "location": {
2875
+ "filePath": "logger.ts",
2876
+ "line": 112,
2877
+ "character": 28
2878
+ },
2879
+ "name": "string"
2880
+ },
2881
+ "isOptional": true,
2882
+ "isSpread": false
2883
+ },
2884
+ {
2885
+ "__schema": "ParameterSchema",
2886
+ "location": {
2887
+ "filePath": "logger.ts",
2888
+ "line": 112,
2889
+ "character": 36
2890
+ },
2891
+ "name": "startTime",
2892
+ "type": {
2893
+ "__schema": "TupleTypeSchema",
2894
+ "location": {
2895
+ "filePath": "logger.ts",
2896
+ "line": 112,
2897
+ "character": 48
2898
+ },
2899
+ "elements": [
2900
+ {
2901
+ "__schema": "KeywordTypeSchema",
2902
+ "location": {
2903
+ "filePath": "logger.ts",
2904
+ "line": 112,
2905
+ "character": 49
2906
+ },
2907
+ "name": "number"
2908
+ },
2909
+ {
2910
+ "__schema": "KeywordTypeSchema",
2911
+ "location": {
2912
+ "filePath": "logger.ts",
2913
+ "line": 112,
2914
+ "character": 57
2915
+ },
2916
+ "name": "number"
2917
+ }
2918
+ ]
2919
+ },
2920
+ "isOptional": true,
2921
+ "isSpread": false
2922
+ }
2923
+ ],
2924
+ "returnType": {
2925
+ "__schema": "InferenceTypeSchema",
2926
+ "location": {
2927
+ "filePath": "logger.ts",
2928
+ "line": 112,
2929
+ "character": 3
2930
+ },
2931
+ "type": "void"
2932
+ },
2933
+ "modifiers": []
2934
+ },
2935
+ {
2936
+ "__schema": "FunctionLikeSchema",
2937
+ "location": {
2938
+ "filePath": "logger.ts",
2939
+ "line": 120,
2940
+ "character": 3
2941
+ },
2942
+ "doc": {
2943
+ "__schema": "DocSchema",
2944
+ "location": {
2945
+ "filePath": "logger.ts",
2946
+ "line": 117,
2947
+ "character": 3
2948
+ },
2949
+ "raw": "/**\n * turn off the logger.\n */",
2950
+ "comment": "turn off the logger."
2951
+ },
2952
+ "signature": "(method) Logger.off(): Loader",
2953
+ "name": "off",
2954
+ "params": [],
2955
+ "returnType": {
2956
+ "__schema": "InferenceTypeSchema",
2957
+ "location": {
2958
+ "filePath": "logger.ts",
2959
+ "line": 120,
2960
+ "character": 3
2961
+ },
2962
+ "type": "Loader"
2963
+ },
2964
+ "modifiers": []
2965
+ },
2966
+ {
2967
+ "__schema": "FunctionLikeSchema",
2968
+ "location": {
2969
+ "filePath": "logger.ts",
2970
+ "line": 124,
2971
+ "character": 3
2972
+ },
2973
+ "signature": "(method) Logger.on(): Loader",
2974
+ "name": "on",
2975
+ "params": [],
2976
+ "returnType": {
2977
+ "__schema": "InferenceTypeSchema",
2978
+ "location": {
2979
+ "filePath": "logger.ts",
2980
+ "line": 124,
2981
+ "character": 3
2982
+ },
2983
+ "type": "Loader"
2984
+ },
2985
+ "modifiers": []
2986
+ },
2987
+ {
2988
+ "__schema": "FunctionLikeSchema",
2989
+ "location": {
2990
+ "filePath": "logger.ts",
2991
+ "line": 128,
2992
+ "character": 3
2993
+ },
2994
+ "signature": "(method) Logger.profile(id: string, console?: boolean): void",
2995
+ "name": "profile",
2996
+ "params": [
2997
+ {
2998
+ "__schema": "ParameterSchema",
2999
+ "location": {
3000
+ "filePath": "logger.ts",
3001
+ "line": 128,
3002
+ "character": 11
3003
+ },
3004
+ "name": "id",
3005
+ "type": {
3006
+ "__schema": "KeywordTypeSchema",
3007
+ "location": {
3008
+ "filePath": "logger.ts",
3009
+ "line": 128,
3010
+ "character": 15
3011
+ },
3012
+ "name": "string"
3013
+ },
3014
+ "isOptional": false,
3015
+ "isSpread": false
3016
+ },
3017
+ {
3018
+ "__schema": "ParameterSchema",
3019
+ "location": {
3020
+ "filePath": "logger.ts",
3021
+ "line": 128,
3022
+ "character": 23
3023
+ },
3024
+ "name": "console",
3025
+ "type": {
3026
+ "__schema": "KeywordTypeSchema",
3027
+ "location": {
3028
+ "filePath": "logger.ts",
3029
+ "line": 128,
3030
+ "character": 33
3031
+ },
3032
+ "name": "boolean"
3033
+ },
3034
+ "isOptional": true,
3035
+ "isSpread": false
3036
+ }
3037
+ ],
3038
+ "returnType": {
3039
+ "__schema": "InferenceTypeSchema",
3040
+ "location": {
3041
+ "filePath": "logger.ts",
3042
+ "line": 128,
3043
+ "character": 3
3044
+ },
3045
+ "type": "void"
3046
+ },
3047
+ "modifiers": []
3048
+ },
3049
+ {
3050
+ "__schema": "FunctionLikeSchema",
3051
+ "location": {
3052
+ "filePath": "logger.ts",
3053
+ "line": 135,
3054
+ "character": 3
3055
+ },
3056
+ "doc": {
3057
+ "__schema": "DocSchema",
3058
+ "location": {
3059
+ "filePath": "logger.ts",
3060
+ "line": 132,
3061
+ "character": 3
3062
+ },
3063
+ "raw": "/**\n * print to the screen with a red `✖` prefix. if message is empty, print the last logged message.\n */",
3064
+ "comment": "print to the screen with a red `✖` prefix. if message is empty, print the last logged message."
3065
+ },
3066
+ "signature": "(method) Logger.consoleFailure(message?: string): void",
3067
+ "name": "consoleFailure",
3068
+ "params": [
3069
+ {
3070
+ "__schema": "ParameterSchema",
3071
+ "location": {
3072
+ "filePath": "logger.ts",
3073
+ "line": 135,
3074
+ "character": 18
3075
+ },
3076
+ "name": "message",
3077
+ "type": {
3078
+ "__schema": "KeywordTypeSchema",
3079
+ "location": {
3080
+ "filePath": "logger.ts",
3081
+ "line": 135,
3082
+ "character": 28
3083
+ },
3084
+ "name": "string"
3085
+ },
3086
+ "isOptional": true,
3087
+ "isSpread": false
3088
+ }
3089
+ ],
3090
+ "returnType": {
3091
+ "__schema": "InferenceTypeSchema",
3092
+ "location": {
3093
+ "filePath": "logger.ts",
3094
+ "line": 135,
3095
+ "character": 3
3096
+ },
3097
+ "type": "void"
3098
+ },
3099
+ "modifiers": []
3100
+ },
3101
+ {
3102
+ "__schema": "FunctionLikeSchema",
3103
+ "location": {
3104
+ "filePath": "logger.ts",
3105
+ "line": 142,
3106
+ "character": 3
3107
+ },
3108
+ "doc": {
3109
+ "__schema": "DocSchema",
3110
+ "location": {
3111
+ "filePath": "logger.ts",
3112
+ "line": 139,
3113
+ "character": 3
3114
+ },
3115
+ "raw": "/**\n * print to the screen with a red `⚠` prefix. if message is empty, print the last logged message.\n */",
3116
+ "comment": "print to the screen with a red `⚠` prefix. if message is empty, print the last logged message."
3117
+ },
3118
+ "signature": "(method) Logger.consoleWarning(message?: string): void",
3119
+ "name": "consoleWarning",
3120
+ "params": [
3121
+ {
3122
+ "__schema": "ParameterSchema",
3123
+ "location": {
3124
+ "filePath": "logger.ts",
3125
+ "line": 142,
3126
+ "character": 18
3127
+ },
3128
+ "name": "message",
3129
+ "type": {
3130
+ "__schema": "KeywordTypeSchema",
3131
+ "location": {
3132
+ "filePath": "logger.ts",
3133
+ "line": 142,
3134
+ "character": 28
3135
+ },
3136
+ "name": "string"
3137
+ },
3138
+ "isOptional": true,
3139
+ "isSpread": false
3140
+ }
3141
+ ],
3142
+ "returnType": {
3143
+ "__schema": "InferenceTypeSchema",
3144
+ "location": {
3145
+ "filePath": "logger.ts",
3146
+ "line": 142,
3147
+ "character": 3
3148
+ },
3149
+ "type": "void"
3150
+ },
3151
+ "modifiers": []
3152
+ },
3153
+ {
3154
+ "__schema": "FunctionLikeSchema",
3155
+ "location": {
3156
+ "filePath": "logger.ts",
3157
+ "line": 159,
3158
+ "character": 3
3159
+ },
3160
+ "doc": {
3161
+ "__schema": "DocSchema",
3162
+ "location": {
3163
+ "filePath": "logger.ts",
3164
+ "line": 155,
3165
+ "character": 3
3166
+ },
3167
+ "raw": "/**\n * a recent change on Windows caused the check mark to be printed as purple.\n * see https://github.com/chalk/chalk/issues/625\n */",
3168
+ "comment": "a recent change on Windows caused the check mark to be printed as purple.\nsee https://github.com/chalk/chalk/issues/625"
3169
+ },
3170
+ "signature": "(method) Logger.successSymbol(): string",
3171
+ "name": "successSymbol",
3172
+ "params": [],
3173
+ "returnType": {
3174
+ "__schema": "InferenceTypeSchema",
3175
+ "location": {
3176
+ "filePath": "logger.ts",
3177
+ "line": 159,
3178
+ "character": 3
3179
+ },
3180
+ "type": "string"
3181
+ },
3182
+ "modifiers": [
3183
+ "static"
3184
+ ]
3185
+ }
3186
+ ],
3187
+ "extendsNodes": [],
3188
+ "implementNodes": [
3189
+ {
3190
+ "__schema": "ExpressionWithTypeArgumentsSchema",
3191
+ "location": {
3192
+ "filePath": "logger.ts",
3193
+ "line": 7,
3194
+ "character": 32
3195
+ },
3196
+ "name": "implements IBitLogger",
3197
+ "typeArgs": [],
3198
+ "expression": {
3199
+ "__schema": "TypeRefSchema",
3200
+ "location": {
3201
+ "filePath": "logger.ts",
3202
+ "line": 7,
3203
+ "character": 32
3204
+ },
3205
+ "name": "IBitLogger",
3206
+ "componentId": {
3207
+ "_legacy": {
3208
+ "scope": "teambit.harmony",
3209
+ "name": "logger",
3210
+ "version": "0.0.945"
3211
+ },
3212
+ "_scope": "teambit.harmony"
3213
+ }
3214
+ }
3215
+ }
3216
+ ]
3217
+ }
3218
+ ],
3219
+ "internals": []
3220
+ },
3221
+ {
3222
+ "__schema": "ModuleSchema",
3223
+ "location": {
3224
+ "filePath": "logger.aspect.ts",
3225
+ "line": 1,
3226
+ "character": 1
3227
+ },
3228
+ "exports": [
3229
+ {
3230
+ "__schema": "VariableLikeSchema",
3231
+ "location": {
3232
+ "filePath": "logger.aspect.ts",
3233
+ "line": 3,
3234
+ "character": 14
3235
+ },
3236
+ "signature": "const LoggerAspect: Aspect",
3237
+ "name": "LoggerAspect",
3238
+ "type": {
3239
+ "__schema": "TypeRefSchema",
3240
+ "location": {
3241
+ "filePath": "logger.aspect.ts",
3242
+ "line": 3,
3243
+ "character": 14
3244
+ },
3245
+ "name": "Aspect",
3246
+ "componentId": {
3247
+ "scope": "teambit.harmony",
3248
+ "name": "harmony",
3249
+ "version": "0.4.6"
3250
+ }
3251
+ },
3252
+ "isOptional": false,
3253
+ "defaultValue": "Aspect.create({\n id: 'teambit.harmony/logger',\n dependencies: [],\n defaultConfig: {},\n})"
3254
+ }
3255
+ ],
3256
+ "internals": []
3257
+ },
3258
+ {
3259
+ "__schema": "ModuleSchema",
3260
+ "location": {
3261
+ "filePath": "long-process-logger.ts",
3262
+ "line": 1,
3263
+ "character": 1
3264
+ },
3265
+ "exports": [
3266
+ {
3267
+ "__schema": "TypeSchema",
3268
+ "location": {
3269
+ "filePath": "long-process-logger.ts",
3270
+ "line": 4,
3271
+ "character": 1
3272
+ },
3273
+ "signature": "type ConsoleOnStart = \"normal\" | \"title\"",
3274
+ "name": "ConsoleOnStart",
3275
+ "type": {
3276
+ "__schema": "TypeUnionSchema",
3277
+ "location": {
3278
+ "filePath": "long-process-logger.ts",
3279
+ "line": 4,
3280
+ "character": 30
3281
+ },
3282
+ "types": [
3283
+ {
3284
+ "__schema": "LiteralTypeSchema",
3285
+ "location": {
3286
+ "filePath": "long-process-logger.ts",
3287
+ "line": 4,
3288
+ "character": 30
3289
+ },
3290
+ "name": "'normal'"
3291
+ },
3292
+ {
3293
+ "__schema": "LiteralTypeSchema",
3294
+ "location": {
3295
+ "filePath": "long-process-logger.ts",
3296
+ "line": 4,
3297
+ "character": 41
3298
+ },
3299
+ "name": "'title'"
3300
+ }
3301
+ ]
3302
+ }
3303
+ },
3304
+ {
3305
+ "__schema": "ClassSchema",
3306
+ "location": {
3307
+ "filePath": "long-process-logger.ts",
3308
+ "line": 15,
3309
+ "character": 1
3310
+ },
3311
+ "doc": {
3312
+ "__schema": "DocSchema",
3313
+ "location": {
3314
+ "filePath": "long-process-logger.ts",
3315
+ "line": 6,
3316
+ "character": 1
3317
+ },
3318
+ "raw": "/**\n * use it for a long running process. upon creation it logs the `processDescription`.\n * if the process involves iteration over a list of items, such as running tag on a list of\n * components, then pass the `totalItems` as the total components in the list.\n * later, during the iteration, call `logProgress(componentName)`.\n * once done, call `end()`.\n * the status-line will show all messages in the terminal.\n * see README for more data.\n */",
3319
+ "comment": "use it for a long running process. upon creation it logs the `processDescription`.\nif the process involves iteration over a list of items, such as running tag on a list of\ncomponents, then pass the `totalItems` as the total components in the list.\nlater, during the iteration, call `logProgress(componentName)`.\nonce done, call `end()`.\nthe status-line will show all messages in the terminal.\nsee README for more data."
3320
+ },
3321
+ "signature": "class LongProcessLogger",
3322
+ "name": "LongProcessLogger",
3323
+ "members": [
3324
+ {
3325
+ "__schema": "ConstructorSchema",
3326
+ "location": {
3327
+ "filePath": "long-process-logger.ts",
3328
+ "line": 18,
3329
+ "character": 3
3330
+ },
3331
+ "signature": "constructor LongProcessLogger(logPublisher: Logger, extensionName: string, processDescription: string, totalItems?: number, shouldConsole?: ConsoleOnStart): LongProcessLogger",
3332
+ "name": "constructor",
3333
+ "params": [
3334
+ {
3335
+ "__schema": "ParameterSchema",
3336
+ "location": {
3337
+ "filePath": "long-process-logger.ts",
3338
+ "line": 19,
3339
+ "character": 5
3340
+ },
3341
+ "name": "logPublisher",
3342
+ "type": {
3343
+ "__schema": "TypeRefSchema",
3344
+ "location": {
3345
+ "filePath": "long-process-logger.ts",
3346
+ "line": 19,
3347
+ "character": 27
3348
+ },
3349
+ "name": "Logger"
3350
+ },
3351
+ "isOptional": false,
3352
+ "isSpread": false
3353
+ },
3354
+ {
3355
+ "__schema": "ParameterSchema",
3356
+ "location": {
3357
+ "filePath": "long-process-logger.ts",
3358
+ "line": 20,
3359
+ "character": 5
3360
+ },
3361
+ "name": "extensionName",
3362
+ "type": {
3363
+ "__schema": "KeywordTypeSchema",
3364
+ "location": {
3365
+ "filePath": "long-process-logger.ts",
3366
+ "line": 20,
3367
+ "character": 28
3368
+ },
3369
+ "name": "string"
3370
+ },
3371
+ "isOptional": false,
3372
+ "isSpread": false
3373
+ },
3374
+ {
3375
+ "__schema": "ParameterSchema",
3376
+ "location": {
3377
+ "filePath": "long-process-logger.ts",
3378
+ "line": 21,
3379
+ "character": 5
3380
+ },
3381
+ "name": "processDescription",
3382
+ "type": {
3383
+ "__schema": "KeywordTypeSchema",
3384
+ "location": {
3385
+ "filePath": "long-process-logger.ts",
3386
+ "line": 21,
3387
+ "character": 33
3388
+ },
3389
+ "name": "string"
3390
+ },
3391
+ "isOptional": false,
3392
+ "isSpread": false
3393
+ },
3394
+ {
3395
+ "__schema": "ParameterSchema",
3396
+ "location": {
3397
+ "filePath": "long-process-logger.ts",
3398
+ "line": 22,
3399
+ "character": 5
3400
+ },
3401
+ "name": "totalItems",
3402
+ "type": {
3403
+ "__schema": "KeywordTypeSchema",
3404
+ "location": {
3405
+ "filePath": "long-process-logger.ts",
3406
+ "line": 22,
3407
+ "character": 26
3408
+ },
3409
+ "name": "number"
3410
+ },
3411
+ "isOptional": true,
3412
+ "isSpread": false
3413
+ },
3414
+ {
3415
+ "__schema": "ParameterSchema",
3416
+ "location": {
3417
+ "filePath": "long-process-logger.ts",
3418
+ "line": 23,
3419
+ "character": 5
3420
+ },
3421
+ "name": "shouldConsole",
3422
+ "type": {
3423
+ "__schema": "TypeRefSchema",
3424
+ "location": {
3425
+ "filePath": "long-process-logger.ts",
3426
+ "line": 23,
3427
+ "character": 21
3428
+ },
3429
+ "name": "ConsoleOnStart"
3430
+ },
3431
+ "isOptional": true,
3432
+ "isSpread": false
3433
+ }
3434
+ ],
3435
+ "returnType": {
3436
+ "__schema": "ThisTypeSchema",
3437
+ "location": {
3438
+ "filePath": "long-process-logger.ts",
3439
+ "line": 15,
3440
+ "character": 1
3441
+ },
3442
+ "name": "LongProcessLogger"
3443
+ },
3444
+ "modifiers": []
3445
+ },
3446
+ {
3447
+ "__schema": "FunctionLikeSchema",
3448
+ "location": {
3449
+ "filePath": "long-process-logger.ts",
3450
+ "line": 28,
3451
+ "character": 3
3452
+ },
3453
+ "signature": "(method) LongProcessLogger.logProgress(itemName?: string, showProcessDescription?: boolean): void",
3454
+ "name": "logProgress",
3455
+ "params": [
3456
+ {
3457
+ "__schema": "ParameterSchema",
3458
+ "location": {
3459
+ "filePath": "long-process-logger.ts",
3460
+ "line": 28,
3461
+ "character": 15
3462
+ },
3463
+ "name": "itemName",
3464
+ "type": {
3465
+ "__schema": "InferenceTypeSchema",
3466
+ "location": {
3467
+ "filePath": "long-process-logger.ts",
3468
+ "line": 28,
3469
+ "character": 15
3470
+ },
3471
+ "type": "string"
3472
+ },
3473
+ "isOptional": true,
3474
+ "defaultValue": "''",
3475
+ "isSpread": false
3476
+ },
3477
+ {
3478
+ "__schema": "ParameterSchema",
3479
+ "location": {
3480
+ "filePath": "long-process-logger.ts",
3481
+ "line": 28,
3482
+ "character": 30
3483
+ },
3484
+ "name": "showProcessDescription",
3485
+ "type": {
3486
+ "__schema": "InferenceTypeSchema",
3487
+ "location": {
3488
+ "filePath": "long-process-logger.ts",
3489
+ "line": 28,
3490
+ "character": 30
3491
+ },
3492
+ "type": "boolean"
3493
+ },
3494
+ "isOptional": true,
3495
+ "defaultValue": "true",
3496
+ "isSpread": false
3497
+ }
3498
+ ],
3499
+ "returnType": {
3500
+ "__schema": "InferenceTypeSchema",
3501
+ "location": {
3502
+ "filePath": "long-process-logger.ts",
3503
+ "line": 28,
3504
+ "character": 3
3505
+ },
3506
+ "type": "void"
3507
+ },
3508
+ "modifiers": []
3509
+ },
3510
+ {
3511
+ "__schema": "FunctionLikeSchema",
3512
+ "location": {
3513
+ "filePath": "long-process-logger.ts",
3514
+ "line": 36,
3515
+ "character": 3
3516
+ },
3517
+ "signature": "(method) LongProcessLogger.end(shouldConsole?: 'success' | 'error'): void",
3518
+ "name": "end",
3519
+ "params": [
3520
+ {
3521
+ "__schema": "ParameterSchema",
3522
+ "location": {
3523
+ "filePath": "long-process-logger.ts",
3524
+ "line": 36,
3525
+ "character": 7
3526
+ },
3527
+ "name": "shouldConsole",
3528
+ "type": {
3529
+ "__schema": "TypeUnionSchema",
3530
+ "location": {
3531
+ "filePath": "long-process-logger.ts",
3532
+ "line": 36,
3533
+ "character": 23
3534
+ },
3535
+ "types": [
3536
+ {
3537
+ "__schema": "LiteralTypeSchema",
3538
+ "location": {
3539
+ "filePath": "long-process-logger.ts",
3540
+ "line": 36,
3541
+ "character": 23
3542
+ },
3543
+ "name": "'success'"
3544
+ },
3545
+ {
3546
+ "__schema": "LiteralTypeSchema",
3547
+ "location": {
3548
+ "filePath": "long-process-logger.ts",
3549
+ "line": 36,
3550
+ "character": 35
3551
+ },
3552
+ "name": "'error'"
3553
+ }
3554
+ ]
3555
+ },
3556
+ "isOptional": true,
3557
+ "isSpread": false
3558
+ }
3559
+ ],
3560
+ "returnType": {
3561
+ "__schema": "InferenceTypeSchema",
3562
+ "location": {
3563
+ "filePath": "long-process-logger.ts",
3564
+ "line": 36,
3565
+ "character": 3
3566
+ },
3567
+ "type": "void"
3568
+ },
3569
+ "modifiers": []
3570
+ },
3571
+ {
3572
+ "__schema": "FunctionLikeSchema",
3573
+ "location": {
3574
+ "filePath": "long-process-logger.ts",
3575
+ "line": 49,
3576
+ "character": 3
3577
+ },
3578
+ "signature": "(method) LongProcessLogger.getProgress(): string",
3579
+ "name": "getProgress",
3580
+ "params": [],
3581
+ "returnType": {
3582
+ "__schema": "InferenceTypeSchema",
3583
+ "location": {
3584
+ "filePath": "long-process-logger.ts",
3585
+ "line": 49,
3586
+ "character": 3
3587
+ },
3588
+ "type": "string"
3589
+ },
3590
+ "modifiers": []
3591
+ }
3592
+ ],
3593
+ "extendsNodes": [],
3594
+ "implementNodes": []
3595
+ }
3596
+ ],
3597
+ "internals": []
3598
+ }
3599
+ ],
3600
+ "componentId": {
3601
+ "scope": "teambit.harmony",
3602
+ "name": "logger",
3603
+ "version": "0.0.945"
3604
+ },
3605
+ "taggedModuleExports": []
3606
+ }