@teambit/issues 1.0.425 → 1.0.427

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,4 +1,4 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <testsuites tests="0" failures="0" errors="0" skipped="0">
3
- <testsuite name="teambit.component/issues@1.0.425" tests="0" failures="0" errors="0" skipped="0"/>
3
+ <testsuite name="teambit.component/issues@1.0.427" tests="0" failures="0" errors="0" skipped="0"/>
4
4
  </testsuites>
@@ -46,16 +46,16 @@
46
46
  "__schema": "ParameterSchema",
47
47
  "location": {
48
48
  "filePath": "issues.main.runtime.ts",
49
- "line": 19,
50
- "character": 15
49
+ "line": 20,
50
+ "character": 5
51
51
  },
52
52
  "name": "config",
53
53
  "type": {
54
54
  "__schema": "TypeRefSchema",
55
55
  "location": {
56
56
  "filePath": "issues.main.runtime.ts",
57
- "line": 19,
58
- "character": 31
57
+ "line": 20,
58
+ "character": 21
59
59
  },
60
60
  "name": "IssuesConfig",
61
61
  "internalFilePath": "issues.main.runtime.ts"
@@ -67,16 +67,16 @@
67
67
  "__schema": "ParameterSchema",
68
68
  "location": {
69
69
  "filePath": "issues.main.runtime.ts",
70
- "line": 19,
71
- "character": 45
70
+ "line": 21,
71
+ "character": 5
72
72
  },
73
73
  "name": "addComponentsIssuesSlot",
74
74
  "type": {
75
75
  "__schema": "TypeRefSchema",
76
76
  "location": {
77
77
  "filePath": "issues.main.runtime.ts",
78
- "line": 19,
79
- "character": 78
78
+ "line": 21,
79
+ "character": 38
80
80
  },
81
81
  "name": "AddComponentsIssuesSlot",
82
82
  "internalFilePath": "issues.main.runtime.ts"
@@ -100,7 +100,7 @@
100
100
  "__schema": "FunctionLikeSchema",
101
101
  "location": {
102
102
  "filePath": "issues.main.runtime.ts",
103
- "line": 21,
103
+ "line": 24,
104
104
  "character": 3
105
105
  },
106
106
  "signature": "(method) IssuesMain.getIssuesToIgnoreGlobally(): string[]",
@@ -110,14 +110,14 @@
110
110
  "__schema": "TypeArraySchema",
111
111
  "location": {
112
112
  "filePath": "issues.main.runtime.ts",
113
- "line": 21,
113
+ "line": 24,
114
114
  "character": 32
115
115
  },
116
116
  "type": {
117
117
  "__schema": "KeywordTypeSchema",
118
118
  "location": {
119
119
  "filePath": "issues.main.runtime.ts",
120
- "line": 21,
120
+ "line": 24,
121
121
  "character": 32
122
122
  },
123
123
  "name": "string"
@@ -129,7 +129,7 @@
129
129
  "__schema": "FunctionLikeSchema",
130
130
  "location": {
131
131
  "filePath": "issues.main.runtime.ts",
132
- "line": 27,
132
+ "line": 30,
133
133
  "character": 3
134
134
  },
135
135
  "signature": "(method) IssuesMain.getIssuesToIgnorePerComponent(component: Component): string[]",
@@ -139,7 +139,7 @@
139
139
  "__schema": "ParameterSchema",
140
140
  "location": {
141
141
  "filePath": "issues.main.runtime.ts",
142
- "line": 27,
142
+ "line": 30,
143
143
  "character": 33
144
144
  },
145
145
  "name": "component",
@@ -147,7 +147,7 @@
147
147
  "__schema": "TypeRefSchema",
148
148
  "location": {
149
149
  "filePath": "issues.main.runtime.ts",
150
- "line": 27,
150
+ "line": 30,
151
151
  "character": 44
152
152
  },
153
153
  "name": "Component",
@@ -164,14 +164,14 @@
164
164
  "__schema": "TypeArraySchema",
165
165
  "location": {
166
166
  "filePath": "issues.main.runtime.ts",
167
- "line": 27,
167
+ "line": 30,
168
168
  "character": 56
169
169
  },
170
170
  "type": {
171
171
  "__schema": "KeywordTypeSchema",
172
172
  "location": {
173
173
  "filePath": "issues.main.runtime.ts",
174
- "line": 27,
174
+ "line": 30,
175
175
  "character": 56
176
176
  },
177
177
  "name": "string"
@@ -183,7 +183,7 @@
183
183
  "__schema": "FunctionLikeSchema",
184
184
  "location": {
185
185
  "filePath": "issues.main.runtime.ts",
186
- "line": 43,
186
+ "line": 46,
187
187
  "character": 3
188
188
  },
189
189
  "signature": "(method) IssuesMain.listIssues(): {\n name: string;\n description: string;\n solution: string;\n isTagBlocker: boolean;\n}[]",
@@ -193,7 +193,7 @@
193
193
  "__schema": "InferenceTypeSchema",
194
194
  "location": {
195
195
  "filePath": "issues.main.runtime.ts",
196
- "line": 43,
196
+ "line": 46,
197
197
  "character": 3
198
198
  },
199
199
  "type": "{\n name: string;\n description: string;\n solution: string;\n isTagBlocker: boolean;\n}[]"
@@ -204,7 +204,7 @@
204
204
  "__schema": "FunctionLikeSchema",
205
205
  "location": {
206
206
  "filePath": "issues.main.runtime.ts",
207
- "line": 57,
207
+ "line": 60,
208
208
  "character": 3
209
209
  },
210
210
  "signature": "(method) IssuesMain.removeIgnoredIssuesFromComponents(components: Component[], extraIssuesToIgnore?: string[]): void",
@@ -214,7 +214,7 @@
214
214
  "__schema": "ParameterSchema",
215
215
  "location": {
216
216
  "filePath": "issues.main.runtime.ts",
217
- "line": 57,
217
+ "line": 60,
218
218
  "character": 37
219
219
  },
220
220
  "name": "components",
@@ -222,14 +222,14 @@
222
222
  "__schema": "TypeArraySchema",
223
223
  "location": {
224
224
  "filePath": "issues.main.runtime.ts",
225
- "line": 57,
225
+ "line": 60,
226
226
  "character": 49
227
227
  },
228
228
  "type": {
229
229
  "__schema": "TypeRefSchema",
230
230
  "location": {
231
231
  "filePath": "issues.main.runtime.ts",
232
- "line": 57,
232
+ "line": 60,
233
233
  "character": 49
234
234
  },
235
235
  "name": "Component",
@@ -246,7 +246,7 @@
246
246
  "__schema": "ParameterSchema",
247
247
  "location": {
248
248
  "filePath": "issues.main.runtime.ts",
249
- "line": 57,
249
+ "line": 60,
250
250
  "character": 62
251
251
  },
252
252
  "name": "extraIssuesToIgnore",
@@ -254,14 +254,14 @@
254
254
  "__schema": "TypeArraySchema",
255
255
  "location": {
256
256
  "filePath": "issues.main.runtime.ts",
257
- "line": 57,
257
+ "line": 60,
258
258
  "character": 83
259
259
  },
260
260
  "type": {
261
261
  "__schema": "KeywordTypeSchema",
262
262
  "location": {
263
263
  "filePath": "issues.main.runtime.ts",
264
- "line": 57,
264
+ "line": 60,
265
265
  "character": 83
266
266
  },
267
267
  "name": "string"
@@ -276,7 +276,7 @@
276
276
  "__schema": "InferenceTypeSchema",
277
277
  "location": {
278
278
  "filePath": "issues.main.runtime.ts",
279
- "line": 57,
279
+ "line": 60,
280
280
  "character": 3
281
281
  },
282
282
  "type": "void"
@@ -287,14 +287,14 @@
287
287
  "__schema": "FunctionLikeSchema",
288
288
  "location": {
289
289
  "filePath": "issues.main.runtime.ts",
290
- "line": 74,
290
+ "line": 77,
291
291
  "character": 3
292
292
  },
293
293
  "doc": {
294
294
  "__schema": "DocSchema",
295
295
  "location": {
296
296
  "filePath": "issues.main.runtime.ts",
297
- "line": 68,
297
+ "line": 71,
298
298
  "character": 3
299
299
  },
300
300
  "raw": "/**\n * register to this slot in order to add a component-issue in bit-status and bit-snap/tag.\n * your function gets all components in one param and the issuesToIgnore as a second param, you don't need to check\n * for issuesToIgnore. if the issue you added is configured to be ignored, it'll be ignored later in the process.\n * this is useful for optimization, if you don't want to calculate the component issue when it's ignored.\n */",
@@ -308,7 +308,7 @@
308
308
  "__schema": "ParameterSchema",
309
309
  "location": {
310
310
  "filePath": "issues.main.runtime.ts",
311
- "line": 74,
311
+ "line": 77,
312
312
  "character": 31
313
313
  },
314
314
  "name": "addComponentsIssues",
@@ -316,7 +316,7 @@
316
316
  "__schema": "TypeRefSchema",
317
317
  "location": {
318
318
  "filePath": "issues.main.runtime.ts",
319
- "line": 74,
319
+ "line": 77,
320
320
  "character": 52
321
321
  },
322
322
  "name": "AddComponentsIssues",
@@ -330,7 +330,7 @@
330
330
  "__schema": "InferenceTypeSchema",
331
331
  "location": {
332
332
  "filePath": "issues.main.runtime.ts",
333
- "line": 74,
333
+ "line": 77,
334
334
  "character": 3
335
335
  },
336
336
  "type": "void"
@@ -341,7 +341,7 @@
341
341
  "__schema": "FunctionLikeSchema",
342
342
  "location": {
343
343
  "filePath": "issues.main.runtime.ts",
344
- "line": 78,
344
+ "line": 81,
345
345
  "character": 3
346
346
  },
347
347
  "signature": "(method) IssuesMain.triggerAddComponentIssues(components: Component[], issuesToIgnore: string[]): Promise<void>",
@@ -351,7 +351,7 @@
351
351
  "__schema": "ParameterSchema",
352
352
  "location": {
353
353
  "filePath": "issues.main.runtime.ts",
354
- "line": 78,
354
+ "line": 81,
355
355
  "character": 35
356
356
  },
357
357
  "name": "components",
@@ -359,14 +359,14 @@
359
359
  "__schema": "TypeArraySchema",
360
360
  "location": {
361
361
  "filePath": "issues.main.runtime.ts",
362
- "line": 78,
362
+ "line": 81,
363
363
  "character": 47
364
364
  },
365
365
  "type": {
366
366
  "__schema": "TypeRefSchema",
367
367
  "location": {
368
368
  "filePath": "issues.main.runtime.ts",
369
- "line": 78,
369
+ "line": 81,
370
370
  "character": 47
371
371
  },
372
372
  "name": "Component",
@@ -383,7 +383,7 @@
383
383
  "__schema": "ParameterSchema",
384
384
  "location": {
385
385
  "filePath": "issues.main.runtime.ts",
386
- "line": 78,
386
+ "line": 81,
387
387
  "character": 60
388
388
  },
389
389
  "name": "issuesToIgnore",
@@ -391,14 +391,14 @@
391
391
  "__schema": "TypeArraySchema",
392
392
  "location": {
393
393
  "filePath": "issues.main.runtime.ts",
394
- "line": 78,
394
+ "line": 81,
395
395
  "character": 76
396
396
  },
397
397
  "type": {
398
398
  "__schema": "KeywordTypeSchema",
399
399
  "location": {
400
400
  "filePath": "issues.main.runtime.ts",
401
- "line": 78,
401
+ "line": 81,
402
402
  "character": 76
403
403
  },
404
404
  "name": "string"
@@ -412,7 +412,7 @@
412
412
  "__schema": "InferenceTypeSchema",
413
413
  "location": {
414
414
  "filePath": "issues.main.runtime.ts",
415
- "line": 78,
415
+ "line": 81,
416
416
  "character": 3
417
417
  },
418
418
  "type": "Promise<void>"
@@ -425,7 +425,7 @@
425
425
  "__schema": "VariableLikeSchema",
426
426
  "location": {
427
427
  "filePath": "issues.main.runtime.ts",
428
- "line": 83,
428
+ "line": 86,
429
429
  "character": 3
430
430
  },
431
431
  "signature": "(property) IssuesMain.slots: ((registerFn: () => string) => SlotRegistry<AddComponentsIssues>)[]",
@@ -434,7 +434,7 @@
434
434
  "__schema": "InferenceTypeSchema",
435
435
  "location": {
436
436
  "filePath": "issues.main.runtime.ts",
437
- "line": 83,
437
+ "line": 86,
438
438
  "character": 3
439
439
  },
440
440
  "type": "((registerFn: () => string) => SlotRegistry<AddComponentsIssues>)[]"
@@ -446,7 +446,7 @@
446
446
  "__schema": "VariableLikeSchema",
447
447
  "location": {
448
448
  "filePath": "issues.main.runtime.ts",
449
- "line": 84,
449
+ "line": 87,
450
450
  "character": 3
451
451
  },
452
452
  "signature": "(property) IssuesMain.dependencies: Aspect[]",
@@ -455,7 +455,7 @@
455
455
  "__schema": "InferenceTypeSchema",
456
456
  "location": {
457
457
  "filePath": "issues.main.runtime.ts",
458
- "line": 84,
458
+ "line": 87,
459
459
  "character": 3
460
460
  },
461
461
  "type": "Aspect[]"
@@ -467,7 +467,7 @@
467
467
  "__schema": "VariableLikeSchema",
468
468
  "location": {
469
469
  "filePath": "issues.main.runtime.ts",
470
- "line": 85,
470
+ "line": 88,
471
471
  "character": 3
472
472
  },
473
473
  "signature": "(property) IssuesMain.defaultConfig: {\n ignoreIssues: never[];\n}",
@@ -476,7 +476,7 @@
476
476
  "__schema": "InferenceTypeSchema",
477
477
  "location": {
478
478
  "filePath": "issues.main.runtime.ts",
479
- "line": 85,
479
+ "line": 88,
480
480
  "character": 3
481
481
  },
482
482
  "type": "{\n ignoreIssues: never[];\n}"
@@ -488,7 +488,7 @@
488
488
  "__schema": "VariableLikeSchema",
489
489
  "location": {
490
490
  "filePath": "issues.main.runtime.ts",
491
- "line": 88,
491
+ "line": 91,
492
492
  "character": 3
493
493
  },
494
494
  "signature": "(property) IssuesMain.runtime: RuntimeDefinition",
@@ -497,7 +497,7 @@
497
497
  "__schema": "InferenceTypeSchema",
498
498
  "location": {
499
499
  "filePath": "issues.main.runtime.ts",
500
- "line": 88,
500
+ "line": 91,
501
501
  "character": 3
502
502
  },
503
503
  "type": "RuntimeDefinition"
@@ -509,7 +509,7 @@
509
509
  "__schema": "FunctionLikeSchema",
510
510
  "location": {
511
511
  "filePath": "issues.main.runtime.ts",
512
- "line": 89,
512
+ "line": 92,
513
513
  "character": 3
514
514
  },
515
515
  "signature": "(method) IssuesMain.provider([cli]: [CLIMain], config: IssuesConfig, [addComponentsIssuesSlot]: [AddComponentsIssuesSlot]): Promise<IssuesMain>",
@@ -519,7 +519,7 @@
519
519
  "__schema": "ParameterSchema",
520
520
  "location": {
521
521
  "filePath": "issues.main.runtime.ts",
522
- "line": 89,
522
+ "line": 92,
523
523
  "character": 25
524
524
  },
525
525
  "name": "[ cli ]",
@@ -527,7 +527,7 @@
527
527
  "__schema": "TupleTypeSchema",
528
528
  "location": {
529
529
  "filePath": "issues.main.runtime.ts",
530
- "line": 89,
530
+ "line": 92,
531
531
  "character": 32
532
532
  },
533
533
  "elements": [
@@ -535,7 +535,7 @@
535
535
  "__schema": "TypeRefSchema",
536
536
  "location": {
537
537
  "filePath": "issues.main.runtime.ts",
538
- "line": 89,
538
+ "line": 92,
539
539
  "character": 33
540
540
  },
541
541
  "name": "CLIMain",
@@ -553,7 +553,7 @@
553
553
  "__schema": "ParameterSchema",
554
554
  "location": {
555
555
  "filePath": "issues.main.runtime.ts",
556
- "line": 89,
556
+ "line": 92,
557
557
  "character": 43
558
558
  },
559
559
  "name": "config",
@@ -561,7 +561,7 @@
561
561
  "__schema": "TypeRefSchema",
562
562
  "location": {
563
563
  "filePath": "issues.main.runtime.ts",
564
- "line": 89,
564
+ "line": 92,
565
565
  "character": 51
566
566
  },
567
567
  "name": "IssuesConfig",
@@ -574,7 +574,7 @@
574
574
  "__schema": "ParameterSchema",
575
575
  "location": {
576
576
  "filePath": "issues.main.runtime.ts",
577
- "line": 89,
577
+ "line": 92,
578
578
  "character": 65
579
579
  },
580
580
  "name": "[ addComponentsIssuesSlot ]",
@@ -582,7 +582,7 @@
582
582
  "__schema": "TupleTypeSchema",
583
583
  "location": {
584
584
  "filePath": "issues.main.runtime.ts",
585
- "line": 89,
585
+ "line": 92,
586
586
  "character": 92
587
587
  },
588
588
  "elements": [
@@ -590,7 +590,7 @@
590
590
  "__schema": "TypeRefSchema",
591
591
  "location": {
592
592
  "filePath": "issues.main.runtime.ts",
593
- "line": 89,
593
+ "line": 92,
594
594
  "character": 93
595
595
  },
596
596
  "name": "AddComponentsIssuesSlot",
@@ -606,7 +606,7 @@
606
606
  "__schema": "InferenceTypeSchema",
607
607
  "location": {
608
608
  "filePath": "issues.main.runtime.ts",
609
- "line": 89,
609
+ "line": 92,
610
610
  "character": 3
611
611
  },
612
612
  "type": "Promise<IssuesMain>"
@@ -890,16 +890,16 @@
890
890
  "__schema": "ParameterSchema",
891
891
  "location": {
892
892
  "filePath": "issues.main.runtime.ts",
893
- "line": 19,
894
- "character": 15
893
+ "line": 20,
894
+ "character": 5
895
895
  },
896
896
  "name": "config",
897
897
  "type": {
898
898
  "__schema": "TypeRefSchema",
899
899
  "location": {
900
900
  "filePath": "issues.main.runtime.ts",
901
- "line": 19,
902
- "character": 31
901
+ "line": 20,
902
+ "character": 21
903
903
  },
904
904
  "name": "IssuesConfig",
905
905
  "internalFilePath": "issues.main.runtime.ts"
@@ -911,16 +911,16 @@
911
911
  "__schema": "ParameterSchema",
912
912
  "location": {
913
913
  "filePath": "issues.main.runtime.ts",
914
- "line": 19,
915
- "character": 45
914
+ "line": 21,
915
+ "character": 5
916
916
  },
917
917
  "name": "addComponentsIssuesSlot",
918
918
  "type": {
919
919
  "__schema": "TypeRefSchema",
920
920
  "location": {
921
921
  "filePath": "issues.main.runtime.ts",
922
- "line": 19,
923
- "character": 78
922
+ "line": 21,
923
+ "character": 38
924
924
  },
925
925
  "name": "AddComponentsIssuesSlot",
926
926
  "internalFilePath": "issues.main.runtime.ts"
@@ -944,7 +944,7 @@
944
944
  "__schema": "FunctionLikeSchema",
945
945
  "location": {
946
946
  "filePath": "issues.main.runtime.ts",
947
- "line": 21,
947
+ "line": 24,
948
948
  "character": 3
949
949
  },
950
950
  "signature": "(method) IssuesMain.getIssuesToIgnoreGlobally(): string[]",
@@ -954,14 +954,14 @@
954
954
  "__schema": "TypeArraySchema",
955
955
  "location": {
956
956
  "filePath": "issues.main.runtime.ts",
957
- "line": 21,
957
+ "line": 24,
958
958
  "character": 32
959
959
  },
960
960
  "type": {
961
961
  "__schema": "KeywordTypeSchema",
962
962
  "location": {
963
963
  "filePath": "issues.main.runtime.ts",
964
- "line": 21,
964
+ "line": 24,
965
965
  "character": 32
966
966
  },
967
967
  "name": "string"
@@ -973,7 +973,7 @@
973
973
  "__schema": "FunctionLikeSchema",
974
974
  "location": {
975
975
  "filePath": "issues.main.runtime.ts",
976
- "line": 27,
976
+ "line": 30,
977
977
  "character": 3
978
978
  },
979
979
  "signature": "(method) IssuesMain.getIssuesToIgnorePerComponent(component: Component): string[]",
@@ -983,7 +983,7 @@
983
983
  "__schema": "ParameterSchema",
984
984
  "location": {
985
985
  "filePath": "issues.main.runtime.ts",
986
- "line": 27,
986
+ "line": 30,
987
987
  "character": 33
988
988
  },
989
989
  "name": "component",
@@ -991,7 +991,7 @@
991
991
  "__schema": "TypeRefSchema",
992
992
  "location": {
993
993
  "filePath": "issues.main.runtime.ts",
994
- "line": 27,
994
+ "line": 30,
995
995
  "character": 44
996
996
  },
997
997
  "name": "Component",
@@ -1008,14 +1008,14 @@
1008
1008
  "__schema": "TypeArraySchema",
1009
1009
  "location": {
1010
1010
  "filePath": "issues.main.runtime.ts",
1011
- "line": 27,
1011
+ "line": 30,
1012
1012
  "character": 56
1013
1013
  },
1014
1014
  "type": {
1015
1015
  "__schema": "KeywordTypeSchema",
1016
1016
  "location": {
1017
1017
  "filePath": "issues.main.runtime.ts",
1018
- "line": 27,
1018
+ "line": 30,
1019
1019
  "character": 56
1020
1020
  },
1021
1021
  "name": "string"
@@ -1027,7 +1027,7 @@
1027
1027
  "__schema": "FunctionLikeSchema",
1028
1028
  "location": {
1029
1029
  "filePath": "issues.main.runtime.ts",
1030
- "line": 43,
1030
+ "line": 46,
1031
1031
  "character": 3
1032
1032
  },
1033
1033
  "signature": "(method) IssuesMain.listIssues(): {\n name: string;\n description: string;\n solution: string;\n isTagBlocker: boolean;\n}[]",
@@ -1037,7 +1037,7 @@
1037
1037
  "__schema": "InferenceTypeSchema",
1038
1038
  "location": {
1039
1039
  "filePath": "issues.main.runtime.ts",
1040
- "line": 43,
1040
+ "line": 46,
1041
1041
  "character": 3
1042
1042
  },
1043
1043
  "type": "{\n name: string;\n description: string;\n solution: string;\n isTagBlocker: boolean;\n}[]"
@@ -1048,7 +1048,7 @@
1048
1048
  "__schema": "FunctionLikeSchema",
1049
1049
  "location": {
1050
1050
  "filePath": "issues.main.runtime.ts",
1051
- "line": 57,
1051
+ "line": 60,
1052
1052
  "character": 3
1053
1053
  },
1054
1054
  "signature": "(method) IssuesMain.removeIgnoredIssuesFromComponents(components: Component[], extraIssuesToIgnore?: string[]): void",
@@ -1058,7 +1058,7 @@
1058
1058
  "__schema": "ParameterSchema",
1059
1059
  "location": {
1060
1060
  "filePath": "issues.main.runtime.ts",
1061
- "line": 57,
1061
+ "line": 60,
1062
1062
  "character": 37
1063
1063
  },
1064
1064
  "name": "components",
@@ -1066,14 +1066,14 @@
1066
1066
  "__schema": "TypeArraySchema",
1067
1067
  "location": {
1068
1068
  "filePath": "issues.main.runtime.ts",
1069
- "line": 57,
1069
+ "line": 60,
1070
1070
  "character": 49
1071
1071
  },
1072
1072
  "type": {
1073
1073
  "__schema": "TypeRefSchema",
1074
1074
  "location": {
1075
1075
  "filePath": "issues.main.runtime.ts",
1076
- "line": 57,
1076
+ "line": 60,
1077
1077
  "character": 49
1078
1078
  },
1079
1079
  "name": "Component",
@@ -1090,7 +1090,7 @@
1090
1090
  "__schema": "ParameterSchema",
1091
1091
  "location": {
1092
1092
  "filePath": "issues.main.runtime.ts",
1093
- "line": 57,
1093
+ "line": 60,
1094
1094
  "character": 62
1095
1095
  },
1096
1096
  "name": "extraIssuesToIgnore",
@@ -1098,14 +1098,14 @@
1098
1098
  "__schema": "TypeArraySchema",
1099
1099
  "location": {
1100
1100
  "filePath": "issues.main.runtime.ts",
1101
- "line": 57,
1101
+ "line": 60,
1102
1102
  "character": 83
1103
1103
  },
1104
1104
  "type": {
1105
1105
  "__schema": "KeywordTypeSchema",
1106
1106
  "location": {
1107
1107
  "filePath": "issues.main.runtime.ts",
1108
- "line": 57,
1108
+ "line": 60,
1109
1109
  "character": 83
1110
1110
  },
1111
1111
  "name": "string"
@@ -1120,7 +1120,7 @@
1120
1120
  "__schema": "InferenceTypeSchema",
1121
1121
  "location": {
1122
1122
  "filePath": "issues.main.runtime.ts",
1123
- "line": 57,
1123
+ "line": 60,
1124
1124
  "character": 3
1125
1125
  },
1126
1126
  "type": "void"
@@ -1131,14 +1131,14 @@
1131
1131
  "__schema": "FunctionLikeSchema",
1132
1132
  "location": {
1133
1133
  "filePath": "issues.main.runtime.ts",
1134
- "line": 74,
1134
+ "line": 77,
1135
1135
  "character": 3
1136
1136
  },
1137
1137
  "doc": {
1138
1138
  "__schema": "DocSchema",
1139
1139
  "location": {
1140
1140
  "filePath": "issues.main.runtime.ts",
1141
- "line": 68,
1141
+ "line": 71,
1142
1142
  "character": 3
1143
1143
  },
1144
1144
  "raw": "/**\n * register to this slot in order to add a component-issue in bit-status and bit-snap/tag.\n * your function gets all components in one param and the issuesToIgnore as a second param, you don't need to check\n * for issuesToIgnore. if the issue you added is configured to be ignored, it'll be ignored later in the process.\n * this is useful for optimization, if you don't want to calculate the component issue when it's ignored.\n */",
@@ -1152,7 +1152,7 @@
1152
1152
  "__schema": "ParameterSchema",
1153
1153
  "location": {
1154
1154
  "filePath": "issues.main.runtime.ts",
1155
- "line": 74,
1155
+ "line": 77,
1156
1156
  "character": 31
1157
1157
  },
1158
1158
  "name": "addComponentsIssues",
@@ -1160,7 +1160,7 @@
1160
1160
  "__schema": "TypeRefSchema",
1161
1161
  "location": {
1162
1162
  "filePath": "issues.main.runtime.ts",
1163
- "line": 74,
1163
+ "line": 77,
1164
1164
  "character": 52
1165
1165
  },
1166
1166
  "name": "AddComponentsIssues",
@@ -1174,7 +1174,7 @@
1174
1174
  "__schema": "InferenceTypeSchema",
1175
1175
  "location": {
1176
1176
  "filePath": "issues.main.runtime.ts",
1177
- "line": 74,
1177
+ "line": 77,
1178
1178
  "character": 3
1179
1179
  },
1180
1180
  "type": "void"
@@ -1185,7 +1185,7 @@
1185
1185
  "__schema": "FunctionLikeSchema",
1186
1186
  "location": {
1187
1187
  "filePath": "issues.main.runtime.ts",
1188
- "line": 78,
1188
+ "line": 81,
1189
1189
  "character": 3
1190
1190
  },
1191
1191
  "signature": "(method) IssuesMain.triggerAddComponentIssues(components: Component[], issuesToIgnore: string[]): Promise<void>",
@@ -1195,7 +1195,7 @@
1195
1195
  "__schema": "ParameterSchema",
1196
1196
  "location": {
1197
1197
  "filePath": "issues.main.runtime.ts",
1198
- "line": 78,
1198
+ "line": 81,
1199
1199
  "character": 35
1200
1200
  },
1201
1201
  "name": "components",
@@ -1203,14 +1203,14 @@
1203
1203
  "__schema": "TypeArraySchema",
1204
1204
  "location": {
1205
1205
  "filePath": "issues.main.runtime.ts",
1206
- "line": 78,
1206
+ "line": 81,
1207
1207
  "character": 47
1208
1208
  },
1209
1209
  "type": {
1210
1210
  "__schema": "TypeRefSchema",
1211
1211
  "location": {
1212
1212
  "filePath": "issues.main.runtime.ts",
1213
- "line": 78,
1213
+ "line": 81,
1214
1214
  "character": 47
1215
1215
  },
1216
1216
  "name": "Component",
@@ -1227,7 +1227,7 @@
1227
1227
  "__schema": "ParameterSchema",
1228
1228
  "location": {
1229
1229
  "filePath": "issues.main.runtime.ts",
1230
- "line": 78,
1230
+ "line": 81,
1231
1231
  "character": 60
1232
1232
  },
1233
1233
  "name": "issuesToIgnore",
@@ -1235,14 +1235,14 @@
1235
1235
  "__schema": "TypeArraySchema",
1236
1236
  "location": {
1237
1237
  "filePath": "issues.main.runtime.ts",
1238
- "line": 78,
1238
+ "line": 81,
1239
1239
  "character": 76
1240
1240
  },
1241
1241
  "type": {
1242
1242
  "__schema": "KeywordTypeSchema",
1243
1243
  "location": {
1244
1244
  "filePath": "issues.main.runtime.ts",
1245
- "line": 78,
1245
+ "line": 81,
1246
1246
  "character": 76
1247
1247
  },
1248
1248
  "name": "string"
@@ -1256,7 +1256,7 @@
1256
1256
  "__schema": "InferenceTypeSchema",
1257
1257
  "location": {
1258
1258
  "filePath": "issues.main.runtime.ts",
1259
- "line": 78,
1259
+ "line": 81,
1260
1260
  "character": 3
1261
1261
  },
1262
1262
  "type": "Promise<void>"
@@ -1269,7 +1269,7 @@
1269
1269
  "__schema": "VariableLikeSchema",
1270
1270
  "location": {
1271
1271
  "filePath": "issues.main.runtime.ts",
1272
- "line": 83,
1272
+ "line": 86,
1273
1273
  "character": 3
1274
1274
  },
1275
1275
  "signature": "(property) IssuesMain.slots: ((registerFn: () => string) => SlotRegistry<AddComponentsIssues>)[]",
@@ -1278,7 +1278,7 @@
1278
1278
  "__schema": "InferenceTypeSchema",
1279
1279
  "location": {
1280
1280
  "filePath": "issues.main.runtime.ts",
1281
- "line": 83,
1281
+ "line": 86,
1282
1282
  "character": 3
1283
1283
  },
1284
1284
  "type": "((registerFn: () => string) => SlotRegistry<AddComponentsIssues>)[]"
@@ -1290,7 +1290,7 @@
1290
1290
  "__schema": "VariableLikeSchema",
1291
1291
  "location": {
1292
1292
  "filePath": "issues.main.runtime.ts",
1293
- "line": 84,
1293
+ "line": 87,
1294
1294
  "character": 3
1295
1295
  },
1296
1296
  "signature": "(property) IssuesMain.dependencies: Aspect[]",
@@ -1299,7 +1299,7 @@
1299
1299
  "__schema": "InferenceTypeSchema",
1300
1300
  "location": {
1301
1301
  "filePath": "issues.main.runtime.ts",
1302
- "line": 84,
1302
+ "line": 87,
1303
1303
  "character": 3
1304
1304
  },
1305
1305
  "type": "Aspect[]"
@@ -1311,7 +1311,7 @@
1311
1311
  "__schema": "VariableLikeSchema",
1312
1312
  "location": {
1313
1313
  "filePath": "issues.main.runtime.ts",
1314
- "line": 85,
1314
+ "line": 88,
1315
1315
  "character": 3
1316
1316
  },
1317
1317
  "signature": "(property) IssuesMain.defaultConfig: {\n ignoreIssues: never[];\n}",
@@ -1320,7 +1320,7 @@
1320
1320
  "__schema": "InferenceTypeSchema",
1321
1321
  "location": {
1322
1322
  "filePath": "issues.main.runtime.ts",
1323
- "line": 85,
1323
+ "line": 88,
1324
1324
  "character": 3
1325
1325
  },
1326
1326
  "type": "{\n ignoreIssues: never[];\n}"
@@ -1332,7 +1332,7 @@
1332
1332
  "__schema": "VariableLikeSchema",
1333
1333
  "location": {
1334
1334
  "filePath": "issues.main.runtime.ts",
1335
- "line": 88,
1335
+ "line": 91,
1336
1336
  "character": 3
1337
1337
  },
1338
1338
  "signature": "(property) IssuesMain.runtime: RuntimeDefinition",
@@ -1341,7 +1341,7 @@
1341
1341
  "__schema": "InferenceTypeSchema",
1342
1342
  "location": {
1343
1343
  "filePath": "issues.main.runtime.ts",
1344
- "line": 88,
1344
+ "line": 91,
1345
1345
  "character": 3
1346
1346
  },
1347
1347
  "type": "RuntimeDefinition"
@@ -1353,7 +1353,7 @@
1353
1353
  "__schema": "FunctionLikeSchema",
1354
1354
  "location": {
1355
1355
  "filePath": "issues.main.runtime.ts",
1356
- "line": 89,
1356
+ "line": 92,
1357
1357
  "character": 3
1358
1358
  },
1359
1359
  "signature": "(method) IssuesMain.provider([cli]: [CLIMain], config: IssuesConfig, [addComponentsIssuesSlot]: [AddComponentsIssuesSlot]): Promise<IssuesMain>",
@@ -1363,7 +1363,7 @@
1363
1363
  "__schema": "ParameterSchema",
1364
1364
  "location": {
1365
1365
  "filePath": "issues.main.runtime.ts",
1366
- "line": 89,
1366
+ "line": 92,
1367
1367
  "character": 25
1368
1368
  },
1369
1369
  "name": "[ cli ]",
@@ -1371,7 +1371,7 @@
1371
1371
  "__schema": "TupleTypeSchema",
1372
1372
  "location": {
1373
1373
  "filePath": "issues.main.runtime.ts",
1374
- "line": 89,
1374
+ "line": 92,
1375
1375
  "character": 32
1376
1376
  },
1377
1377
  "elements": [
@@ -1379,7 +1379,7 @@
1379
1379
  "__schema": "TypeRefSchema",
1380
1380
  "location": {
1381
1381
  "filePath": "issues.main.runtime.ts",
1382
- "line": 89,
1382
+ "line": 92,
1383
1383
  "character": 33
1384
1384
  },
1385
1385
  "name": "CLIMain",
@@ -1397,7 +1397,7 @@
1397
1397
  "__schema": "ParameterSchema",
1398
1398
  "location": {
1399
1399
  "filePath": "issues.main.runtime.ts",
1400
- "line": 89,
1400
+ "line": 92,
1401
1401
  "character": 43
1402
1402
  },
1403
1403
  "name": "config",
@@ -1405,7 +1405,7 @@
1405
1405
  "__schema": "TypeRefSchema",
1406
1406
  "location": {
1407
1407
  "filePath": "issues.main.runtime.ts",
1408
- "line": 89,
1408
+ "line": 92,
1409
1409
  "character": 51
1410
1410
  },
1411
1411
  "name": "IssuesConfig",
@@ -1418,7 +1418,7 @@
1418
1418
  "__schema": "ParameterSchema",
1419
1419
  "location": {
1420
1420
  "filePath": "issues.main.runtime.ts",
1421
- "line": 89,
1421
+ "line": 92,
1422
1422
  "character": 65
1423
1423
  },
1424
1424
  "name": "[ addComponentsIssuesSlot ]",
@@ -1426,7 +1426,7 @@
1426
1426
  "__schema": "TupleTypeSchema",
1427
1427
  "location": {
1428
1428
  "filePath": "issues.main.runtime.ts",
1429
- "line": 89,
1429
+ "line": 92,
1430
1430
  "character": 92
1431
1431
  },
1432
1432
  "elements": [
@@ -1434,7 +1434,7 @@
1434
1434
  "__schema": "TypeRefSchema",
1435
1435
  "location": {
1436
1436
  "filePath": "issues.main.runtime.ts",
1437
- "line": 89,
1437
+ "line": 92,
1438
1438
  "character": 93
1439
1439
  },
1440
1440
  "name": "AddComponentsIssuesSlot",
@@ -1450,7 +1450,7 @@
1450
1450
  "__schema": "InferenceTypeSchema",
1451
1451
  "location": {
1452
1452
  "filePath": "issues.main.runtime.ts",
1453
- "line": 89,
1453
+ "line": 92,
1454
1454
  "character": 3
1455
1455
  },
1456
1456
  "type": "Promise<IssuesMain>"
@@ -1470,7 +1470,7 @@
1470
1470
  "__schema": "UnImplementedSchema",
1471
1471
  "location": {
1472
1472
  "filePath": "issues.main.runtime.ts",
1473
- "line": 96,
1473
+ "line": 99,
1474
1474
  "character": 1
1475
1475
  },
1476
1476
  "name": "IssuesAspect.addRuntime(IssuesMain);",
@@ -1519,7 +1519,7 @@
1519
1519
  "componentId": {
1520
1520
  "scope": "teambit.component",
1521
1521
  "name": "issues",
1522
- "version": "1.0.425"
1522
+ "version": "1.0.427"
1523
1523
  },
1524
1524
  "taggedModuleExports": []
1525
1525
  }
@@ -1 +1 @@
1
- {"version":3,"names":["_cli","data","require","_componentIssues","_harmony","_pMapSeries","_interopRequireDefault","_issuesCmd","_issues","_nonExistIssueError","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","IssuesMain","constructor","config","addComponentsIssuesSlot","getIssuesToIgnoreGlobally","issuesToIgnore","ignoreIssues","validateIssueNames","getIssuesToIgnorePerComponent","component","state","aspects","get","IssuesAspect","id","issues","allIssues","listIssues","map","issue","name","forEach","includes","NonExistIssueError","instances","keys","IssuesClasses","issueClass","issuesList","IssuesList","getAllIssues","issueInstance","description","solution","isTagBlocker","removeIgnoredIssuesFromComponents","components","extraIssuesToIgnore","issuesToIgnoreGlobally","issuesToIgnoreForThisComp","issueToIgnore","delete","registerAddComponentsIssues","addComponentsIssues","register","triggerAddComponentIssues","allFunctions","values","pMapSeries","func","provider","cli","issuesMain","ComponentIssuesCmd","exports","Slot","withType","CLIAspect","MainRuntime","addRuntime"],"sources":["issues.main.runtime.ts"],"sourcesContent":["import { CLIAspect, CLIMain, MainRuntime } from '@teambit/cli';\nimport { Component } from '@teambit/component';\nimport { IssuesClasses, IssuesList } from '@teambit/component-issues';\nimport { Slot, SlotRegistry } from '@teambit/harmony';\nimport pMapSeries from 'p-map-series';\nimport { ComponentIssuesCmd } from './issues-cmd';\nimport { IssuesAspect } from './issues.aspect';\nimport { NonExistIssueError } from './non-exist-issue-error';\n\nexport type IssuesConfig = {\n ignoreIssues: string[];\n};\n\nexport type AddComponentsIssues = (components: Component[], issuesToIgnore: string[]) => Promise<void>;\n\nexport type AddComponentsIssuesSlot = SlotRegistry<AddComponentsIssues>;\n\nexport class IssuesMain {\n constructor(private config: IssuesConfig, private addComponentsIssuesSlot: AddComponentsIssuesSlot) {}\n\n getIssuesToIgnoreGlobally(): string[] {\n const issuesToIgnore = this.config.ignoreIssues || [];\n this.validateIssueNames(issuesToIgnore);\n return issuesToIgnore;\n }\n\n getIssuesToIgnorePerComponent(component: Component): string[] {\n const issuesToIgnore = component.state.aspects.get(IssuesAspect.id)?.config.ignoreIssues;\n if (!issuesToIgnore) return [];\n this.validateIssueNames(issuesToIgnore);\n return issuesToIgnore;\n }\n\n private validateIssueNames(issues: string[]) {\n const allIssues = this.listIssues().map((issue) => issue.name);\n issues.forEach((issue) => {\n if (!allIssues.includes(issue)) {\n throw new NonExistIssueError(issue);\n }\n });\n }\n\n listIssues() {\n const instances = Object.keys(IssuesClasses).map((issueClass) => new IssuesClasses[issueClass]());\n const issuesList = new IssuesList(instances);\n const allIssues = issuesList.getAllIssues();\n return allIssues.map((issueInstance) => {\n return {\n name: issueInstance.constructor.name,\n description: issueInstance.description,\n solution: issueInstance.solution,\n isTagBlocker: issueInstance.isTagBlocker,\n };\n });\n }\n\n removeIgnoredIssuesFromComponents(components: Component[], extraIssuesToIgnore: string[] = []) {\n const issuesToIgnoreGlobally = this.getIssuesToIgnoreGlobally();\n components.forEach((component) => {\n const issuesToIgnoreForThisComp = this.getIssuesToIgnorePerComponent(component);\n const issuesToIgnore = [...issuesToIgnoreGlobally, ...issuesToIgnoreForThisComp, ...extraIssuesToIgnore];\n issuesToIgnore.forEach((issueToIgnore) => {\n component.state.issues.delete(IssuesClasses[issueToIgnore]);\n });\n });\n }\n\n /**\n * register to this slot in order to add a component-issue in bit-status and bit-snap/tag.\n * your function gets all components in one param and the issuesToIgnore as a second param, you don't need to check\n * for issuesToIgnore. if the issue you added is configured to be ignored, it'll be ignored later in the process.\n * this is useful for optimization, if you don't want to calculate the component issue when it's ignored.\n */\n registerAddComponentsIssues(addComponentsIssues: AddComponentsIssues) {\n this.addComponentsIssuesSlot.register(addComponentsIssues);\n }\n\n async triggerAddComponentIssues(components: Component[], issuesToIgnore: string[]) {\n const allFunctions = this.addComponentsIssuesSlot.values();\n await pMapSeries(allFunctions, (func) => func(components, issuesToIgnore));\n }\n\n static slots = [Slot.withType<AddComponentsIssues>()];\n static dependencies = [CLIAspect];\n static defaultConfig = {\n ignoreIssues: [],\n };\n static runtime = MainRuntime;\n static async provider([cli]: [CLIMain], config: IssuesConfig, [addComponentsIssuesSlot]: [AddComponentsIssuesSlot]) {\n const issuesMain = new IssuesMain(config, addComponentsIssuesSlot);\n cli.register(new ComponentIssuesCmd(issuesMain));\n return issuesMain;\n }\n}\n\nIssuesAspect.addRuntime(IssuesMain);\n"],"mappings":";;;;;;AAAA,SAAAA,KAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,IAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAE,iBAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,gBAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,SAAA;EAAA,MAAAH,IAAA,GAAAC,OAAA;EAAAE,QAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,YAAA;EAAA,MAAAJ,IAAA,GAAAK,sBAAA,CAAAJ,OAAA;EAAAG,WAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAM,WAAA;EAAA,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,UAAU,CAACE,MAAM,EAAEC,uBAAuB,CAAC;IAClEgD,GAAG,CAACP,QAAQ,CAAC,KAAIS,+BAAkB,EAACD,UAAU,CAAC,CAAC;IAChD,OAAOA,UAAU;EACnB;AACF;AAACE,OAAA,CAAAtD,UAAA,GAAAA,UAAA;AAAAlB,eAAA,CA5EYkB,UAAU,WAiEN,CAACuD,eAAI,CAACC,QAAQ,CAAsB,CAAC,CAAC;AAAA1E,eAAA,CAjE1CkB,UAAU,kBAkEC,CAACyD,gBAAS,CAAC;AAAA3E,eAAA,CAlEtBkB,UAAU,mBAmEE;EACrBM,YAAY,EAAE;AAChB,CAAC;AAAAxB,eAAA,CArEUkB,UAAU,aAsEJ0D,kBAAW;AAQ9B7C,sBAAY,CAAC8C,UAAU,CAAC3D,UAAU,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_cli","data","require","_componentIssues","_harmony","_pMapSeries","_interopRequireDefault","_issuesCmd","_issues","_nonExistIssueError","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","IssuesMain","constructor","config","addComponentsIssuesSlot","getIssuesToIgnoreGlobally","issuesToIgnore","ignoreIssues","validateIssueNames","getIssuesToIgnorePerComponent","component","state","aspects","get","IssuesAspect","id","issues","allIssues","listIssues","map","issue","name","forEach","includes","NonExistIssueError","instances","keys","IssuesClasses","issueClass","issuesList","IssuesList","getAllIssues","issueInstance","description","solution","isTagBlocker","removeIgnoredIssuesFromComponents","components","extraIssuesToIgnore","issuesToIgnoreGlobally","issuesToIgnoreForThisComp","issueToIgnore","delete","registerAddComponentsIssues","addComponentsIssues","register","triggerAddComponentIssues","allFunctions","values","pMapSeries","func","provider","cli","issuesMain","ComponentIssuesCmd","exports","Slot","withType","CLIAspect","MainRuntime","addRuntime"],"sources":["issues.main.runtime.ts"],"sourcesContent":["import { CLIAspect, CLIMain, MainRuntime } from '@teambit/cli';\nimport { Component } from '@teambit/component';\nimport { IssuesClasses, IssuesList } from '@teambit/component-issues';\nimport { Slot, SlotRegistry } from '@teambit/harmony';\nimport pMapSeries from 'p-map-series';\nimport { ComponentIssuesCmd } from './issues-cmd';\nimport { IssuesAspect } from './issues.aspect';\nimport { NonExistIssueError } from './non-exist-issue-error';\n\nexport type IssuesConfig = {\n ignoreIssues: string[];\n};\n\nexport type AddComponentsIssues = (components: Component[], issuesToIgnore: string[]) => Promise<void>;\n\nexport type AddComponentsIssuesSlot = SlotRegistry<AddComponentsIssues>;\n\nexport class IssuesMain {\n constructor(\n private config: IssuesConfig,\n private addComponentsIssuesSlot: AddComponentsIssuesSlot\n ) {}\n\n getIssuesToIgnoreGlobally(): string[] {\n const issuesToIgnore = this.config.ignoreIssues || [];\n this.validateIssueNames(issuesToIgnore);\n return issuesToIgnore;\n }\n\n getIssuesToIgnorePerComponent(component: Component): string[] {\n const issuesToIgnore = component.state.aspects.get(IssuesAspect.id)?.config.ignoreIssues;\n if (!issuesToIgnore) return [];\n this.validateIssueNames(issuesToIgnore);\n return issuesToIgnore;\n }\n\n private validateIssueNames(issues: string[]) {\n const allIssues = this.listIssues().map((issue) => issue.name);\n issues.forEach((issue) => {\n if (!allIssues.includes(issue)) {\n throw new NonExistIssueError(issue);\n }\n });\n }\n\n listIssues() {\n const instances = Object.keys(IssuesClasses).map((issueClass) => new IssuesClasses[issueClass]());\n const issuesList = new IssuesList(instances);\n const allIssues = issuesList.getAllIssues();\n return allIssues.map((issueInstance) => {\n return {\n name: issueInstance.constructor.name,\n description: issueInstance.description,\n solution: issueInstance.solution,\n isTagBlocker: issueInstance.isTagBlocker,\n };\n });\n }\n\n removeIgnoredIssuesFromComponents(components: Component[], extraIssuesToIgnore: string[] = []) {\n const issuesToIgnoreGlobally = this.getIssuesToIgnoreGlobally();\n components.forEach((component) => {\n const issuesToIgnoreForThisComp = this.getIssuesToIgnorePerComponent(component);\n const issuesToIgnore = [...issuesToIgnoreGlobally, ...issuesToIgnoreForThisComp, ...extraIssuesToIgnore];\n issuesToIgnore.forEach((issueToIgnore) => {\n component.state.issues.delete(IssuesClasses[issueToIgnore]);\n });\n });\n }\n\n /**\n * register to this slot in order to add a component-issue in bit-status and bit-snap/tag.\n * your function gets all components in one param and the issuesToIgnore as a second param, you don't need to check\n * for issuesToIgnore. if the issue you added is configured to be ignored, it'll be ignored later in the process.\n * this is useful for optimization, if you don't want to calculate the component issue when it's ignored.\n */\n registerAddComponentsIssues(addComponentsIssues: AddComponentsIssues) {\n this.addComponentsIssuesSlot.register(addComponentsIssues);\n }\n\n async triggerAddComponentIssues(components: Component[], issuesToIgnore: string[]) {\n const allFunctions = this.addComponentsIssuesSlot.values();\n await pMapSeries(allFunctions, (func) => func(components, issuesToIgnore));\n }\n\n static slots = [Slot.withType<AddComponentsIssues>()];\n static dependencies = [CLIAspect];\n static defaultConfig = {\n ignoreIssues: [],\n };\n static runtime = MainRuntime;\n static async provider([cli]: [CLIMain], config: IssuesConfig, [addComponentsIssuesSlot]: [AddComponentsIssuesSlot]) {\n const issuesMain = new IssuesMain(config, addComponentsIssuesSlot);\n cli.register(new ComponentIssuesCmd(issuesMain));\n return issuesMain;\n }\n}\n\nIssuesAspect.addRuntime(IssuesMain);\n"],"mappings":";;;;;;AAAA,SAAAA,KAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,IAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAE,iBAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,gBAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,SAAA;EAAA,MAAAH,IAAA,GAAAC,OAAA;EAAAE,QAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,YAAA;EAAA,MAAAJ,IAAA,GAAAK,sBAAA,CAAAJ,OAA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C,CAACC,GAAG,CAAY,EAAEjD,MAAoB,EAAE,CAACC,uBAAuB,CAA4B,EAAE;IAClH,MAAMiD,UAAU,GAAG,IAAIpD,UAAU,CAACE,MAAM,EAAEC,uBAAuB,CAAC;IAClEgD,GAAG,CAACP,QAAQ,CAAC,KAAIS,+BAAkB,EAACD,UAAU,CAAC,CAAC;IAChD,OAAOA,UAAU;EACnB;AACF;AAACE,OAAA,CAAAtD,UAAA,GAAAA,UAAA;AAAAlB,eAAA,CA/EYkB,UAAU,WAoEN,CAACuD,eAAI,CAACC,QAAQ,CAAsB,CAAC,CAAC;AAAA1E,eAAA,CApE1CkB,UAAU,kBAqEC,CAACyD,gBAAS,CAAC;AAAA3E,eAAA,CArEtBkB,UAAU,mBAsEE;EACrBM,YAAY,EAAE;AAChB,CAAC;AAAAxB,eAAA,CAxEUkB,UAAU,aAyEJ0D,kBAAW;AAQ9B7C,sBAAY,CAAC8C,UAAU,CAAC3D,UAAU,CAAC","ignoreList":[]}
package/package.json CHANGED
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "name": "@teambit/issues",
3
- "version": "1.0.425",
3
+ "version": "1.0.427",
4
4
  "homepage": "https://bit.cloud/teambit/component/issues",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.component",
8
8
  "name": "issues",
9
- "version": "1.0.425"
9
+ "version": "1.0.427"
10
10
  },
11
11
  "dependencies": {
12
12
  "chalk": "2.4.2",
13
13
  "p-map-series": "2.1.0",
14
14
  "@teambit/harmony": "0.4.6",
15
15
  "@teambit/bit-error": "0.0.404",
16
- "@teambit/cli": "0.0.1002",
16
+ "@teambit/cli": "0.0.1004",
17
17
  "@teambit/component-issues": "0.0.151",
18
- "@teambit/component": "1.0.425"
18
+ "@teambit/component": "1.0.427"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@types/mocha": "9.1.0",