@teambit/logger 0.0.1181 → 0.0.1183

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