@teambit/logger 0.0.1185 → 0.0.1187

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