@teambit/logger 0.0.942 → 0.0.944

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