@teambit/refactoring 1.0.516 → 1.0.517

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,2492 +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": 3,
21
- "character": 15
22
- },
23
- "signature": "class RefactoringMain",
24
- "name": "RefactoringMain",
25
- "exportNode": {
26
- "__schema": "ClassSchema",
27
- "location": {
28
- "filePath": "refactoring.main.runtime.ts",
29
- "line": 29,
30
- "character": 1
31
- },
32
- "signature": "class RefactoringMain",
33
- "name": "RefactoringMain",
34
- "members": [
35
- {
36
- "__schema": "ConstructorSchema",
37
- "location": {
38
- "filePath": "refactoring.main.runtime.ts",
39
- "line": 30,
40
- "character": 3
41
- },
42
- "signature": "constructor RefactoringMain(componentMain: ComponentMain, pkg: PkgMain, envs: EnvsMain): RefactoringMain",
43
- "name": "constructor",
44
- "params": [
45
- {
46
- "__schema": "ParameterSchema",
47
- "location": {
48
- "filePath": "refactoring.main.runtime.ts",
49
- "line": 31,
50
- "character": 5
51
- },
52
- "name": "componentMain",
53
- "type": {
54
- "__schema": "TypeRefSchema",
55
- "location": {
56
- "filePath": "refactoring.main.runtime.ts",
57
- "line": 31,
58
- "character": 28
59
- },
60
- "name": "ComponentMain",
61
- "componentId": {
62
- "scope": "teambit.component",
63
- "name": "component"
64
- }
65
- },
66
- "isOptional": false,
67
- "isSpread": false
68
- },
69
- {
70
- "__schema": "ParameterSchema",
71
- "location": {
72
- "filePath": "refactoring.main.runtime.ts",
73
- "line": 32,
74
- "character": 5
75
- },
76
- "name": "pkg",
77
- "type": {
78
- "__schema": "TypeRefSchema",
79
- "location": {
80
- "filePath": "refactoring.main.runtime.ts",
81
- "line": 32,
82
- "character": 18
83
- },
84
- "name": "PkgMain",
85
- "componentId": {
86
- "scope": "teambit.pkg",
87
- "name": "pkg"
88
- }
89
- },
90
- "isOptional": false,
91
- "isSpread": false
92
- },
93
- {
94
- "__schema": "ParameterSchema",
95
- "location": {
96
- "filePath": "refactoring.main.runtime.ts",
97
- "line": 33,
98
- "character": 5
99
- },
100
- "name": "envs",
101
- "type": {
102
- "__schema": "TypeRefSchema",
103
- "location": {
104
- "filePath": "refactoring.main.runtime.ts",
105
- "line": 33,
106
- "character": 19
107
- },
108
- "name": "EnvsMain",
109
- "componentId": {
110
- "scope": "teambit.envs",
111
- "name": "envs"
112
- }
113
- },
114
- "isOptional": false,
115
- "isSpread": false
116
- }
117
- ],
118
- "returnType": {
119
- "__schema": "ThisTypeSchema",
120
- "location": {
121
- "filePath": "refactoring.main.runtime.ts",
122
- "line": 29,
123
- "character": 1
124
- },
125
- "name": "RefactoringMain"
126
- },
127
- "modifiers": []
128
- },
129
- {
130
- "__schema": "FunctionLikeSchema",
131
- "location": {
132
- "filePath": "refactoring.main.runtime.ts",
133
- "line": 41,
134
- "character": 3
135
- },
136
- "doc": {
137
- "__schema": "DocSchema",
138
- "location": {
139
- "filePath": "refactoring.main.runtime.ts",
140
- "line": 36,
141
- "character": 3
142
- },
143
- "raw": "/**\n * refactor the dependency name of a component.\n * oldId and newId can be either a component-id or a package-name.\n * this method changes the source code of the component, but doesn't write to the filesystem.\n */",
144
- "comment": "refactor the dependency name of a component.\noldId and newId can be either a component-id or a package-name.\nthis method changes the source code of the component, but doesn't write to the filesystem.",
145
- "tags": []
146
- },
147
- "signature": "(method) RefactoringMain.refactorDependencyName(components: Component[], oldId: ComponentID | string, newId: ComponentID | string): Promise<{\n oldPackageName: string;\n newPackageName: string;\n changedComponents: Component[];\n}>",
148
- "name": "refactorDependencyName",
149
- "params": [
150
- {
151
- "__schema": "ParameterSchema",
152
- "location": {
153
- "filePath": "refactoring.main.runtime.ts",
154
- "line": 42,
155
- "character": 5
156
- },
157
- "name": "components",
158
- "type": {
159
- "__schema": "TypeArraySchema",
160
- "location": {
161
- "filePath": "refactoring.main.runtime.ts",
162
- "line": 42,
163
- "character": 17
164
- },
165
- "type": {
166
- "__schema": "TypeRefSchema",
167
- "location": {
168
- "filePath": "refactoring.main.runtime.ts",
169
- "line": 42,
170
- "character": 17
171
- },
172
- "name": "Component",
173
- "componentId": {
174
- "scope": "teambit.component",
175
- "name": "component"
176
- }
177
- }
178
- },
179
- "isOptional": false,
180
- "isSpread": false
181
- },
182
- {
183
- "__schema": "ParameterSchema",
184
- "location": {
185
- "filePath": "refactoring.main.runtime.ts",
186
- "line": 43,
187
- "character": 5
188
- },
189
- "name": "oldId",
190
- "type": {
191
- "__schema": "TypeUnionSchema",
192
- "location": {
193
- "filePath": "refactoring.main.runtime.ts",
194
- "line": 43,
195
- "character": 12
196
- },
197
- "types": [
198
- {
199
- "__schema": "TypeRefSchema",
200
- "location": {
201
- "filePath": "refactoring.main.runtime.ts",
202
- "line": 43,
203
- "character": 12
204
- },
205
- "name": "ComponentID",
206
- "componentId": {
207
- "scope": "teambit.component",
208
- "name": "component"
209
- }
210
- },
211
- {
212
- "__schema": "KeywordTypeSchema",
213
- "location": {
214
- "filePath": "refactoring.main.runtime.ts",
215
- "line": 43,
216
- "character": 26
217
- },
218
- "name": "string"
219
- }
220
- ]
221
- },
222
- "isOptional": false,
223
- "isSpread": false
224
- },
225
- {
226
- "__schema": "ParameterSchema",
227
- "location": {
228
- "filePath": "refactoring.main.runtime.ts",
229
- "line": 44,
230
- "character": 5
231
- },
232
- "name": "newId",
233
- "type": {
234
- "__schema": "TypeUnionSchema",
235
- "location": {
236
- "filePath": "refactoring.main.runtime.ts",
237
- "line": 44,
238
- "character": 12
239
- },
240
- "types": [
241
- {
242
- "__schema": "TypeRefSchema",
243
- "location": {
244
- "filePath": "refactoring.main.runtime.ts",
245
- "line": 44,
246
- "character": 12
247
- },
248
- "name": "ComponentID",
249
- "componentId": {
250
- "scope": "teambit.component",
251
- "name": "component"
252
- }
253
- },
254
- {
255
- "__schema": "KeywordTypeSchema",
256
- "location": {
257
- "filePath": "refactoring.main.runtime.ts",
258
- "line": 44,
259
- "character": 26
260
- },
261
- "name": "string"
262
- }
263
- ]
264
- },
265
- "isOptional": false,
266
- "isSpread": false
267
- }
268
- ],
269
- "returnType": {
270
- "__schema": "TypeRefSchema",
271
- "location": {
272
- "filePath": "refactoring.main.runtime.ts",
273
- "line": 45,
274
- "character": 6
275
- },
276
- "name": "Promise",
277
- "typeArgs": [
278
- {
279
- "__schema": "TypeLiteralSchema",
280
- "location": {
281
- "filePath": "refactoring.main.runtime.ts",
282
- "line": 45,
283
- "character": 14
284
- },
285
- "members": [
286
- {
287
- "__schema": "VariableLikeSchema",
288
- "location": {
289
- "filePath": "refactoring.main.runtime.ts",
290
- "line": 45,
291
- "character": 16
292
- },
293
- "signature": "(property) oldPackageName: string",
294
- "name": "oldPackageName",
295
- "type": {
296
- "__schema": "KeywordTypeSchema",
297
- "location": {
298
- "filePath": "refactoring.main.runtime.ts",
299
- "line": 45,
300
- "character": 32
301
- },
302
- "name": "string"
303
- },
304
- "isOptional": false
305
- },
306
- {
307
- "__schema": "VariableLikeSchema",
308
- "location": {
309
- "filePath": "refactoring.main.runtime.ts",
310
- "line": 45,
311
- "character": 40
312
- },
313
- "signature": "(property) newPackageName: string",
314
- "name": "newPackageName",
315
- "type": {
316
- "__schema": "KeywordTypeSchema",
317
- "location": {
318
- "filePath": "refactoring.main.runtime.ts",
319
- "line": 45,
320
- "character": 56
321
- },
322
- "name": "string"
323
- },
324
- "isOptional": false
325
- },
326
- {
327
- "__schema": "VariableLikeSchema",
328
- "location": {
329
- "filePath": "refactoring.main.runtime.ts",
330
- "line": 45,
331
- "character": 64
332
- },
333
- "signature": "(property) changedComponents: Component[]",
334
- "name": "changedComponents",
335
- "type": {
336
- "__schema": "TypeArraySchema",
337
- "location": {
338
- "filePath": "refactoring.main.runtime.ts",
339
- "line": 45,
340
- "character": 83
341
- },
342
- "type": {
343
- "__schema": "TypeRefSchema",
344
- "location": {
345
- "filePath": "refactoring.main.runtime.ts",
346
- "line": 45,
347
- "character": 83
348
- },
349
- "name": "Component",
350
- "componentId": {
351
- "scope": "teambit.component",
352
- "name": "component"
353
- }
354
- }
355
- },
356
- "isOptional": false
357
- }
358
- ]
359
- }
360
- ]
361
- },
362
- "modifiers": [
363
- "async"
364
- ]
365
- },
366
- {
367
- "__schema": "FunctionLikeSchema",
368
- "location": {
369
- "filePath": "refactoring.main.runtime.ts",
370
- "line": 64,
371
- "character": 3
372
- },
373
- "doc": {
374
- "__schema": "DocSchema",
375
- "location": {
376
- "filePath": "refactoring.main.runtime.ts",
377
- "line": 60,
378
- "character": 3
379
- },
380
- "raw": "/**\n * replaces the old-name inside the source code of the given component with the new name.\n * helpful when renaming/forking an aspect/env where the component-name is used as the class-name and variable-name.\n */",
381
- "comment": "replaces the old-name inside the source code of the given component with the new name.\nhelpful when renaming/forking an aspect/env where the component-name is used as the class-name and variable-name.",
382
- "tags": []
383
- },
384
- "signature": "(method) RefactoringMain.refactorVariableAndClasses(component: Component, sourceId: ComponentID, targetId: ComponentID, options?: {\n ast?: boolean;\n}): Promise<void>",
385
- "name": "refactorVariableAndClasses",
386
- "params": [
387
- {
388
- "__schema": "ParameterSchema",
389
- "location": {
390
- "filePath": "refactoring.main.runtime.ts",
391
- "line": 65,
392
- "character": 5
393
- },
394
- "name": "component",
395
- "type": {
396
- "__schema": "TypeRefSchema",
397
- "location": {
398
- "filePath": "refactoring.main.runtime.ts",
399
- "line": 65,
400
- "character": 16
401
- },
402
- "name": "Component",
403
- "componentId": {
404
- "scope": "teambit.component",
405
- "name": "component"
406
- }
407
- },
408
- "isOptional": false,
409
- "isSpread": false
410
- },
411
- {
412
- "__schema": "ParameterSchema",
413
- "location": {
414
- "filePath": "refactoring.main.runtime.ts",
415
- "line": 66,
416
- "character": 5
417
- },
418
- "name": "sourceId",
419
- "type": {
420
- "__schema": "TypeRefSchema",
421
- "location": {
422
- "filePath": "refactoring.main.runtime.ts",
423
- "line": 66,
424
- "character": 15
425
- },
426
- "name": "ComponentID",
427
- "componentId": {
428
- "scope": "teambit.component",
429
- "name": "component"
430
- }
431
- },
432
- "isOptional": false,
433
- "isSpread": false
434
- },
435
- {
436
- "__schema": "ParameterSchema",
437
- "location": {
438
- "filePath": "refactoring.main.runtime.ts",
439
- "line": 67,
440
- "character": 5
441
- },
442
- "name": "targetId",
443
- "type": {
444
- "__schema": "TypeRefSchema",
445
- "location": {
446
- "filePath": "refactoring.main.runtime.ts",
447
- "line": 67,
448
- "character": 15
449
- },
450
- "name": "ComponentID",
451
- "componentId": {
452
- "scope": "teambit.component",
453
- "name": "component"
454
- }
455
- },
456
- "isOptional": false,
457
- "isSpread": false
458
- },
459
- {
460
- "__schema": "ParameterSchema",
461
- "location": {
462
- "filePath": "refactoring.main.runtime.ts",
463
- "line": 68,
464
- "character": 5
465
- },
466
- "name": "options",
467
- "type": {
468
- "__schema": "TypeLiteralSchema",
469
- "location": {
470
- "filePath": "refactoring.main.runtime.ts",
471
- "line": 68,
472
- "character": 15
473
- },
474
- "members": [
475
- {
476
- "__schema": "VariableLikeSchema",
477
- "location": {
478
- "filePath": "refactoring.main.runtime.ts",
479
- "line": 68,
480
- "character": 17
481
- },
482
- "signature": "(property) ast?: boolean | undefined",
483
- "name": "ast",
484
- "type": {
485
- "__schema": "KeywordTypeSchema",
486
- "location": {
487
- "filePath": "refactoring.main.runtime.ts",
488
- "line": 68,
489
- "character": 23
490
- },
491
- "name": "boolean"
492
- },
493
- "isOptional": true
494
- }
495
- ]
496
- },
497
- "isOptional": true,
498
- "isSpread": false
499
- }
500
- ],
501
- "returnType": {
502
- "__schema": "InferenceTypeSchema",
503
- "location": {
504
- "filePath": "refactoring.main.runtime.ts",
505
- "line": 64,
506
- "character": 3
507
- },
508
- "type": "Promise<void>"
509
- },
510
- "modifiers": [
511
- "async"
512
- ]
513
- },
514
- {
515
- "__schema": "FunctionLikeSchema",
516
- "location": {
517
- "filePath": "refactoring.main.runtime.ts",
518
- "line": 80,
519
- "character": 3
520
- },
521
- "signature": "(method) RefactoringMain.getStringReplacementsForVariablesAndClasses(sourceId: ComponentID, targetId: ComponentID): MultipleStringsReplacement",
522
- "name": "getStringReplacementsForVariablesAndClasses",
523
- "params": [
524
- {
525
- "__schema": "ParameterSchema",
526
- "location": {
527
- "filePath": "refactoring.main.runtime.ts",
528
- "line": 81,
529
- "character": 5
530
- },
531
- "name": "sourceId",
532
- "type": {
533
- "__schema": "TypeRefSchema",
534
- "location": {
535
- "filePath": "refactoring.main.runtime.ts",
536
- "line": 81,
537
- "character": 15
538
- },
539
- "name": "ComponentID",
540
- "componentId": {
541
- "scope": "teambit.component",
542
- "name": "component"
543
- }
544
- },
545
- "isOptional": false,
546
- "isSpread": false
547
- },
548
- {
549
- "__schema": "ParameterSchema",
550
- "location": {
551
- "filePath": "refactoring.main.runtime.ts",
552
- "line": 82,
553
- "character": 5
554
- },
555
- "name": "targetId",
556
- "type": {
557
- "__schema": "TypeRefSchema",
558
- "location": {
559
- "filePath": "refactoring.main.runtime.ts",
560
- "line": 82,
561
- "character": 15
562
- },
563
- "name": "ComponentID",
564
- "componentId": {
565
- "scope": "teambit.component",
566
- "name": "component"
567
- }
568
- },
569
- "isOptional": false,
570
- "isSpread": false
571
- }
572
- ],
573
- "returnType": {
574
- "__schema": "TypeRefSchema",
575
- "location": {
576
- "filePath": "refactoring.main.runtime.ts",
577
- "line": 80,
578
- "character": 3
579
- },
580
- "name": "MultipleStringsReplacement"
581
- },
582
- "modifiers": []
583
- },
584
- {
585
- "__schema": "FunctionLikeSchema",
586
- "location": {
587
- "filePath": "refactoring.main.runtime.ts",
588
- "line": 100,
589
- "character": 3
590
- },
591
- "signature": "(method) RefactoringMain.refactorVariableAndClassesUsingAST(component: Component, sourceId: ComponentID, targetId: ComponentID): Promise<void>",
592
- "name": "refactorVariableAndClassesUsingAST",
593
- "params": [
594
- {
595
- "__schema": "ParameterSchema",
596
- "location": {
597
- "filePath": "refactoring.main.runtime.ts",
598
- "line": 100,
599
- "character": 44
600
- },
601
- "name": "component",
602
- "type": {
603
- "__schema": "TypeRefSchema",
604
- "location": {
605
- "filePath": "refactoring.main.runtime.ts",
606
- "line": 100,
607
- "character": 55
608
- },
609
- "name": "Component",
610
- "componentId": {
611
- "scope": "teambit.component",
612
- "name": "component"
613
- }
614
- },
615
- "isOptional": false,
616
- "isSpread": false
617
- },
618
- {
619
- "__schema": "ParameterSchema",
620
- "location": {
621
- "filePath": "refactoring.main.runtime.ts",
622
- "line": 100,
623
- "character": 66
624
- },
625
- "name": "sourceId",
626
- "type": {
627
- "__schema": "TypeRefSchema",
628
- "location": {
629
- "filePath": "refactoring.main.runtime.ts",
630
- "line": 100,
631
- "character": 76
632
- },
633
- "name": "ComponentID",
634
- "componentId": {
635
- "scope": "teambit.component",
636
- "name": "component"
637
- }
638
- },
639
- "isOptional": false,
640
- "isSpread": false
641
- },
642
- {
643
- "__schema": "ParameterSchema",
644
- "location": {
645
- "filePath": "refactoring.main.runtime.ts",
646
- "line": 100,
647
- "character": 89
648
- },
649
- "name": "targetId",
650
- "type": {
651
- "__schema": "TypeRefSchema",
652
- "location": {
653
- "filePath": "refactoring.main.runtime.ts",
654
- "line": 100,
655
- "character": 99
656
- },
657
- "name": "ComponentID",
658
- "componentId": {
659
- "scope": "teambit.component",
660
- "name": "component"
661
- }
662
- },
663
- "isOptional": false,
664
- "isSpread": false
665
- }
666
- ],
667
- "returnType": {
668
- "__schema": "InferenceTypeSchema",
669
- "location": {
670
- "filePath": "refactoring.main.runtime.ts",
671
- "line": 100,
672
- "character": 3
673
- },
674
- "type": "Promise<void>"
675
- },
676
- "modifiers": [
677
- "async"
678
- ]
679
- },
680
- {
681
- "__schema": "FunctionLikeSchema",
682
- "location": {
683
- "filePath": "refactoring.main.runtime.ts",
684
- "line": 154,
685
- "character": 3
686
- },
687
- "signature": "(method) RefactoringMain.refactorFilenames(component: Component, sourceId: ComponentID, targetId: ComponentID): void",
688
- "name": "refactorFilenames",
689
- "params": [
690
- {
691
- "__schema": "ParameterSchema",
692
- "location": {
693
- "filePath": "refactoring.main.runtime.ts",
694
- "line": 154,
695
- "character": 21
696
- },
697
- "name": "component",
698
- "type": {
699
- "__schema": "TypeRefSchema",
700
- "location": {
701
- "filePath": "refactoring.main.runtime.ts",
702
- "line": 154,
703
- "character": 32
704
- },
705
- "name": "Component",
706
- "componentId": {
707
- "scope": "teambit.component",
708
- "name": "component"
709
- }
710
- },
711
- "isOptional": false,
712
- "isSpread": false
713
- },
714
- {
715
- "__schema": "ParameterSchema",
716
- "location": {
717
- "filePath": "refactoring.main.runtime.ts",
718
- "line": 154,
719
- "character": 43
720
- },
721
- "name": "sourceId",
722
- "type": {
723
- "__schema": "TypeRefSchema",
724
- "location": {
725
- "filePath": "refactoring.main.runtime.ts",
726
- "line": 154,
727
- "character": 53
728
- },
729
- "name": "ComponentID",
730
- "componentId": {
731
- "scope": "teambit.component",
732
- "name": "component"
733
- }
734
- },
735
- "isOptional": false,
736
- "isSpread": false
737
- },
738
- {
739
- "__schema": "ParameterSchema",
740
- "location": {
741
- "filePath": "refactoring.main.runtime.ts",
742
- "line": 154,
743
- "character": 66
744
- },
745
- "name": "targetId",
746
- "type": {
747
- "__schema": "TypeRefSchema",
748
- "location": {
749
- "filePath": "refactoring.main.runtime.ts",
750
- "line": 154,
751
- "character": 76
752
- },
753
- "name": "ComponentID",
754
- "componentId": {
755
- "scope": "teambit.component",
756
- "name": "component"
757
- }
758
- },
759
- "isOptional": false,
760
- "isSpread": false
761
- }
762
- ],
763
- "returnType": {
764
- "__schema": "InferenceTypeSchema",
765
- "location": {
766
- "filePath": "refactoring.main.runtime.ts",
767
- "line": 154,
768
- "character": 3
769
- },
770
- "type": "void"
771
- },
772
- "modifiers": []
773
- },
774
- {
775
- "__schema": "FunctionLikeSchema",
776
- "location": {
777
- "filePath": "refactoring.main.runtime.ts",
778
- "line": 166,
779
- "character": 3
780
- },
781
- "doc": {
782
- "__schema": "DocSchema",
783
- "location": {
784
- "filePath": "refactoring.main.runtime.ts",
785
- "line": 162,
786
- "character": 3
787
- },
788
- "raw": "/**\n * rename multiple packages dependencies.\n * this method changes the source code of the component, but doesn't write to the filesystem.\n */",
789
- "comment": "rename multiple packages dependencies.\nthis method changes the source code of the component, but doesn't write to the filesystem.",
790
- "tags": []
791
- },
792
- "signature": "(method) RefactoringMain.replaceMultipleStrings(components: Component[], stringsToReplace?: MultipleStringsReplacement, transformers?: SourceFileTransformer[], shouldAvoidPackageNames?: boolean): Promise<{\n changedComponents: Component[];\n}>",
793
- "name": "replaceMultipleStrings",
794
- "params": [
795
- {
796
- "__schema": "ParameterSchema",
797
- "location": {
798
- "filePath": "refactoring.main.runtime.ts",
799
- "line": 167,
800
- "character": 5
801
- },
802
- "name": "components",
803
- "type": {
804
- "__schema": "TypeArraySchema",
805
- "location": {
806
- "filePath": "refactoring.main.runtime.ts",
807
- "line": 167,
808
- "character": 17
809
- },
810
- "type": {
811
- "__schema": "TypeRefSchema",
812
- "location": {
813
- "filePath": "refactoring.main.runtime.ts",
814
- "line": 167,
815
- "character": 17
816
- },
817
- "name": "Component",
818
- "componentId": {
819
- "scope": "teambit.component",
820
- "name": "component"
821
- }
822
- }
823
- },
824
- "isOptional": false,
825
- "isSpread": false
826
- },
827
- {
828
- "__schema": "ParameterSchema",
829
- "location": {
830
- "filePath": "refactoring.main.runtime.ts",
831
- "line": 168,
832
- "character": 5
833
- },
834
- "name": "stringsToReplace",
835
- "type": {
836
- "__schema": "TypeRefSchema",
837
- "location": {
838
- "filePath": "refactoring.main.runtime.ts",
839
- "line": 168,
840
- "character": 23
841
- },
842
- "name": "MultipleStringsReplacement"
843
- },
844
- "isOptional": true,
845
- "defaultValue": "[]",
846
- "isSpread": false
847
- },
848
- {
849
- "__schema": "ParameterSchema",
850
- "location": {
851
- "filePath": "refactoring.main.runtime.ts",
852
- "line": 169,
853
- "character": 5
854
- },
855
- "name": "transformers",
856
- "type": {
857
- "__schema": "TypeArraySchema",
858
- "location": {
859
- "filePath": "refactoring.main.runtime.ts",
860
- "line": 169,
861
- "character": 20
862
- },
863
- "type": {
864
- "__schema": "TypeRefSchema",
865
- "location": {
866
- "filePath": "refactoring.main.runtime.ts",
867
- "line": 169,
868
- "character": 20
869
- },
870
- "name": "SourceFileTransformer",
871
- "componentId": {
872
- "scope": "teambit.typescript",
873
- "name": "typescript"
874
- }
875
- }
876
- },
877
- "isOptional": true,
878
- "isSpread": false
879
- },
880
- {
881
- "__schema": "ParameterSchema",
882
- "location": {
883
- "filePath": "refactoring.main.runtime.ts",
884
- "line": 170,
885
- "character": 5
886
- },
887
- "name": "shouldAvoidPackageNames",
888
- "type": {
889
- "__schema": "InferenceTypeSchema",
890
- "location": {
891
- "filePath": "refactoring.main.runtime.ts",
892
- "line": 170,
893
- "character": 5
894
- },
895
- "type": "boolean"
896
- },
897
- "isOptional": true,
898
- "defaultValue": "false",
899
- "isSpread": false
900
- }
901
- ],
902
- "returnType": {
903
- "__schema": "TypeRefSchema",
904
- "location": {
905
- "filePath": "refactoring.main.runtime.ts",
906
- "line": 171,
907
- "character": 6
908
- },
909
- "name": "Promise",
910
- "typeArgs": [
911
- {
912
- "__schema": "TypeLiteralSchema",
913
- "location": {
914
- "filePath": "refactoring.main.runtime.ts",
915
- "line": 171,
916
- "character": 14
917
- },
918
- "members": [
919
- {
920
- "__schema": "VariableLikeSchema",
921
- "location": {
922
- "filePath": "refactoring.main.runtime.ts",
923
- "line": 172,
924
- "character": 5
925
- },
926
- "signature": "(property) changedComponents: Component[]",
927
- "name": "changedComponents",
928
- "type": {
929
- "__schema": "TypeArraySchema",
930
- "location": {
931
- "filePath": "refactoring.main.runtime.ts",
932
- "line": 172,
933
- "character": 24
934
- },
935
- "type": {
936
- "__schema": "TypeRefSchema",
937
- "location": {
938
- "filePath": "refactoring.main.runtime.ts",
939
- "line": 172,
940
- "character": 24
941
- },
942
- "name": "Component",
943
- "componentId": {
944
- "scope": "teambit.component",
945
- "name": "component"
946
- }
947
- }
948
- },
949
- "isOptional": false
950
- }
951
- ]
952
- }
953
- ]
954
- },
955
- "modifiers": [
956
- "async"
957
- ]
958
- },
959
- {
960
- "__schema": "VariableLikeSchema",
961
- "location": {
962
- "filePath": "refactoring.main.runtime.ts",
963
- "line": 317,
964
- "character": 3
965
- },
966
- "signature": "(property) RefactoringMain.slots: never[]",
967
- "name": "slots",
968
- "type": {
969
- "__schema": "InferenceTypeSchema",
970
- "location": {
971
- "filePath": "refactoring.main.runtime.ts",
972
- "line": 317,
973
- "character": 3
974
- },
975
- "type": "never[]"
976
- },
977
- "isOptional": true,
978
- "defaultValue": "[]"
979
- },
980
- {
981
- "__schema": "VariableLikeSchema",
982
- "location": {
983
- "filePath": "refactoring.main.runtime.ts",
984
- "line": 318,
985
- "character": 3
986
- },
987
- "signature": "(property) RefactoringMain.dependencies: Aspect[]",
988
- "name": "dependencies",
989
- "type": {
990
- "__schema": "InferenceTypeSchema",
991
- "location": {
992
- "filePath": "refactoring.main.runtime.ts",
993
- "line": 318,
994
- "character": 3
995
- },
996
- "type": "Aspect[]"
997
- },
998
- "isOptional": true,
999
- "defaultValue": "[ComponentAspect, PkgAspect, CLIAspect, EnvsAspect]"
1000
- },
1001
- {
1002
- "__schema": "VariableLikeSchema",
1003
- "location": {
1004
- "filePath": "refactoring.main.runtime.ts",
1005
- "line": 319,
1006
- "character": 3
1007
- },
1008
- "signature": "(property) RefactoringMain.runtime: RuntimeDefinition",
1009
- "name": "runtime",
1010
- "type": {
1011
- "__schema": "InferenceTypeSchema",
1012
- "location": {
1013
- "filePath": "refactoring.main.runtime.ts",
1014
- "line": 319,
1015
- "character": 3
1016
- },
1017
- "type": "RuntimeDefinition"
1018
- },
1019
- "isOptional": true,
1020
- "defaultValue": "MainRuntime"
1021
- },
1022
- {
1023
- "__schema": "FunctionLikeSchema",
1024
- "location": {
1025
- "filePath": "refactoring.main.runtime.ts",
1026
- "line": 320,
1027
- "character": 3
1028
- },
1029
- "signature": "(method) RefactoringMain.provider([componentMain, pkg, cli, envMain]: [ComponentMain, PkgMain, CLIMain, EnvsMain]): Promise<RefactoringMain>",
1030
- "name": "provider",
1031
- "params": [
1032
- {
1033
- "__schema": "ParameterSchema",
1034
- "location": {
1035
- "filePath": "refactoring.main.runtime.ts",
1036
- "line": 320,
1037
- "character": 25
1038
- },
1039
- "name": "[ componentMain, pkg, cli, envMain ]",
1040
- "type": {
1041
- "__schema": "TupleTypeSchema",
1042
- "location": {
1043
- "filePath": "refactoring.main.runtime.ts",
1044
- "line": 320,
1045
- "character": 61
1046
- },
1047
- "elements": [
1048
- {
1049
- "__schema": "TypeRefSchema",
1050
- "location": {
1051
- "filePath": "refactoring.main.runtime.ts",
1052
- "line": 320,
1053
- "character": 62
1054
- },
1055
- "name": "ComponentMain",
1056
- "componentId": {
1057
- "scope": "teambit.component",
1058
- "name": "component"
1059
- }
1060
- },
1061
- {
1062
- "__schema": "TypeRefSchema",
1063
- "location": {
1064
- "filePath": "refactoring.main.runtime.ts",
1065
- "line": 320,
1066
- "character": 77
1067
- },
1068
- "name": "PkgMain",
1069
- "componentId": {
1070
- "scope": "teambit.pkg",
1071
- "name": "pkg"
1072
- }
1073
- },
1074
- {
1075
- "__schema": "TypeRefSchema",
1076
- "location": {
1077
- "filePath": "refactoring.main.runtime.ts",
1078
- "line": 320,
1079
- "character": 86
1080
- },
1081
- "name": "CLIMain",
1082
- "componentId": {
1083
- "scope": "teambit.harmony",
1084
- "name": "cli"
1085
- }
1086
- },
1087
- {
1088
- "__schema": "TypeRefSchema",
1089
- "location": {
1090
- "filePath": "refactoring.main.runtime.ts",
1091
- "line": 320,
1092
- "character": 95
1093
- },
1094
- "name": "EnvsMain",
1095
- "componentId": {
1096
- "scope": "teambit.envs",
1097
- "name": "envs"
1098
- }
1099
- }
1100
- ]
1101
- },
1102
- "isOptional": false,
1103
- "isSpread": false
1104
- }
1105
- ],
1106
- "returnType": {
1107
- "__schema": "InferenceTypeSchema",
1108
- "location": {
1109
- "filePath": "refactoring.main.runtime.ts",
1110
- "line": 320,
1111
- "character": 3
1112
- },
1113
- "type": "Promise<RefactoringMain>"
1114
- },
1115
- "modifiers": [
1116
- "static",
1117
- "async"
1118
- ]
1119
- }
1120
- ],
1121
- "extendsNodes": [],
1122
- "implementNodes": []
1123
- }
1124
- },
1125
- {
1126
- "__schema": "ExportSchema",
1127
- "location": {
1128
- "filePath": "index.ts",
1129
- "line": 3,
1130
- "character": 32
1131
- },
1132
- "signature": "type MultipleStringsReplacement = {\n oldStr: string;\n newStr: string;\n}[]",
1133
- "name": "MultipleStringsReplacement",
1134
- "exportNode": {
1135
- "__schema": "TypeSchema",
1136
- "location": {
1137
- "filePath": "refactoring.main.runtime.ts",
1138
- "line": 27,
1139
- "character": 1
1140
- },
1141
- "signature": "type MultipleStringsReplacement = {\n oldStr: string;\n newStr: string;\n}[]",
1142
- "name": "MultipleStringsReplacement",
1143
- "type": {
1144
- "__schema": "TypeRefSchema",
1145
- "location": {
1146
- "filePath": "refactoring.main.runtime.ts",
1147
- "line": 27,
1148
- "character": 42
1149
- },
1150
- "name": "Array",
1151
- "typeArgs": [
1152
- {
1153
- "__schema": "TypeLiteralSchema",
1154
- "location": {
1155
- "filePath": "refactoring.main.runtime.ts",
1156
- "line": 27,
1157
- "character": 48
1158
- },
1159
- "members": [
1160
- {
1161
- "__schema": "VariableLikeSchema",
1162
- "location": {
1163
- "filePath": "refactoring.main.runtime.ts",
1164
- "line": 27,
1165
- "character": 50
1166
- },
1167
- "signature": "(property) oldStr: string",
1168
- "name": "oldStr",
1169
- "type": {
1170
- "__schema": "KeywordTypeSchema",
1171
- "location": {
1172
- "filePath": "refactoring.main.runtime.ts",
1173
- "line": 27,
1174
- "character": 58
1175
- },
1176
- "name": "string"
1177
- },
1178
- "isOptional": false
1179
- },
1180
- {
1181
- "__schema": "VariableLikeSchema",
1182
- "location": {
1183
- "filePath": "refactoring.main.runtime.ts",
1184
- "line": 27,
1185
- "character": 66
1186
- },
1187
- "signature": "(property) newStr: string",
1188
- "name": "newStr",
1189
- "type": {
1190
- "__schema": "KeywordTypeSchema",
1191
- "location": {
1192
- "filePath": "refactoring.main.runtime.ts",
1193
- "line": 27,
1194
- "character": 74
1195
- },
1196
- "name": "string"
1197
- },
1198
- "isOptional": false
1199
- }
1200
- ]
1201
- }
1202
- ]
1203
- }
1204
- }
1205
- },
1206
- {
1207
- "__schema": "UnImplementedSchema",
1208
- "location": {
1209
- "filePath": "index.ts",
1210
- "line": 4,
1211
- "character": 16
1212
- },
1213
- "name": "RefactoringAspect",
1214
- "type": "Identifier"
1215
- },
1216
- {
1217
- "__schema": "ExportSchema",
1218
- "location": {
1219
- "filePath": "index.ts",
1220
- "line": 5,
1221
- "character": 10
1222
- },
1223
- "signature": "const RefactoringAspect: Aspect",
1224
- "name": "RefactoringAspect",
1225
- "exportNode": {
1226
- "__schema": "VariableLikeSchema",
1227
- "location": {
1228
- "filePath": "refactoring.aspect.ts",
1229
- "line": 3,
1230
- "character": 14
1231
- },
1232
- "signature": "const RefactoringAspect: Aspect",
1233
- "name": "RefactoringAspect",
1234
- "type": {
1235
- "__schema": "TypeRefSchema",
1236
- "location": {
1237
- "filePath": "refactoring.aspect.ts",
1238
- "line": 3,
1239
- "character": 14
1240
- },
1241
- "name": "Aspect",
1242
- "componentId": {
1243
- "scope": "teambit.harmony",
1244
- "name": "harmony",
1245
- "version": "0.4.6"
1246
- }
1247
- },
1248
- "isOptional": false,
1249
- "defaultValue": "Aspect.create({\n id: 'teambit.component/refactoring',\n})"
1250
- }
1251
- }
1252
- ],
1253
- "internals": []
1254
- },
1255
- "internals": [
1256
- {
1257
- "__schema": "ModuleSchema",
1258
- "location": {
1259
- "filePath": "refactoring.main.runtime.ts",
1260
- "line": 1,
1261
- "character": 1
1262
- },
1263
- "exports": [
1264
- {
1265
- "__schema": "TypeSchema",
1266
- "location": {
1267
- "filePath": "refactoring.main.runtime.ts",
1268
- "line": 27,
1269
- "character": 1
1270
- },
1271
- "signature": "type MultipleStringsReplacement = {\n oldStr: string;\n newStr: string;\n}[]",
1272
- "name": "MultipleStringsReplacement",
1273
- "type": {
1274
- "__schema": "TypeRefSchema",
1275
- "location": {
1276
- "filePath": "refactoring.main.runtime.ts",
1277
- "line": 27,
1278
- "character": 42
1279
- },
1280
- "name": "Array",
1281
- "typeArgs": [
1282
- {
1283
- "__schema": "TypeLiteralSchema",
1284
- "location": {
1285
- "filePath": "refactoring.main.runtime.ts",
1286
- "line": 27,
1287
- "character": 48
1288
- },
1289
- "members": [
1290
- {
1291
- "__schema": "VariableLikeSchema",
1292
- "location": {
1293
- "filePath": "refactoring.main.runtime.ts",
1294
- "line": 27,
1295
- "character": 50
1296
- },
1297
- "signature": "(property) oldStr: string",
1298
- "name": "oldStr",
1299
- "type": {
1300
- "__schema": "KeywordTypeSchema",
1301
- "location": {
1302
- "filePath": "refactoring.main.runtime.ts",
1303
- "line": 27,
1304
- "character": 58
1305
- },
1306
- "name": "string"
1307
- },
1308
- "isOptional": false
1309
- },
1310
- {
1311
- "__schema": "VariableLikeSchema",
1312
- "location": {
1313
- "filePath": "refactoring.main.runtime.ts",
1314
- "line": 27,
1315
- "character": 66
1316
- },
1317
- "signature": "(property) newStr: string",
1318
- "name": "newStr",
1319
- "type": {
1320
- "__schema": "KeywordTypeSchema",
1321
- "location": {
1322
- "filePath": "refactoring.main.runtime.ts",
1323
- "line": 27,
1324
- "character": 74
1325
- },
1326
- "name": "string"
1327
- },
1328
- "isOptional": false
1329
- }
1330
- ]
1331
- }
1332
- ]
1333
- }
1334
- },
1335
- {
1336
- "__schema": "ClassSchema",
1337
- "location": {
1338
- "filePath": "refactoring.main.runtime.ts",
1339
- "line": 29,
1340
- "character": 1
1341
- },
1342
- "signature": "class RefactoringMain",
1343
- "name": "RefactoringMain",
1344
- "members": [
1345
- {
1346
- "__schema": "ConstructorSchema",
1347
- "location": {
1348
- "filePath": "refactoring.main.runtime.ts",
1349
- "line": 30,
1350
- "character": 3
1351
- },
1352
- "signature": "constructor RefactoringMain(componentMain: ComponentMain, pkg: PkgMain, envs: EnvsMain): RefactoringMain",
1353
- "name": "constructor",
1354
- "params": [
1355
- {
1356
- "__schema": "ParameterSchema",
1357
- "location": {
1358
- "filePath": "refactoring.main.runtime.ts",
1359
- "line": 31,
1360
- "character": 5
1361
- },
1362
- "name": "componentMain",
1363
- "type": {
1364
- "__schema": "TypeRefSchema",
1365
- "location": {
1366
- "filePath": "refactoring.main.runtime.ts",
1367
- "line": 31,
1368
- "character": 28
1369
- },
1370
- "name": "ComponentMain",
1371
- "componentId": {
1372
- "scope": "teambit.component",
1373
- "name": "component"
1374
- }
1375
- },
1376
- "isOptional": false,
1377
- "isSpread": false
1378
- },
1379
- {
1380
- "__schema": "ParameterSchema",
1381
- "location": {
1382
- "filePath": "refactoring.main.runtime.ts",
1383
- "line": 32,
1384
- "character": 5
1385
- },
1386
- "name": "pkg",
1387
- "type": {
1388
- "__schema": "TypeRefSchema",
1389
- "location": {
1390
- "filePath": "refactoring.main.runtime.ts",
1391
- "line": 32,
1392
- "character": 18
1393
- },
1394
- "name": "PkgMain",
1395
- "componentId": {
1396
- "scope": "teambit.pkg",
1397
- "name": "pkg"
1398
- }
1399
- },
1400
- "isOptional": false,
1401
- "isSpread": false
1402
- },
1403
- {
1404
- "__schema": "ParameterSchema",
1405
- "location": {
1406
- "filePath": "refactoring.main.runtime.ts",
1407
- "line": 33,
1408
- "character": 5
1409
- },
1410
- "name": "envs",
1411
- "type": {
1412
- "__schema": "TypeRefSchema",
1413
- "location": {
1414
- "filePath": "refactoring.main.runtime.ts",
1415
- "line": 33,
1416
- "character": 19
1417
- },
1418
- "name": "EnvsMain",
1419
- "componentId": {
1420
- "scope": "teambit.envs",
1421
- "name": "envs"
1422
- }
1423
- },
1424
- "isOptional": false,
1425
- "isSpread": false
1426
- }
1427
- ],
1428
- "returnType": {
1429
- "__schema": "ThisTypeSchema",
1430
- "location": {
1431
- "filePath": "refactoring.main.runtime.ts",
1432
- "line": 29,
1433
- "character": 1
1434
- },
1435
- "name": "RefactoringMain"
1436
- },
1437
- "modifiers": []
1438
- },
1439
- {
1440
- "__schema": "FunctionLikeSchema",
1441
- "location": {
1442
- "filePath": "refactoring.main.runtime.ts",
1443
- "line": 41,
1444
- "character": 3
1445
- },
1446
- "doc": {
1447
- "__schema": "DocSchema",
1448
- "location": {
1449
- "filePath": "refactoring.main.runtime.ts",
1450
- "line": 36,
1451
- "character": 3
1452
- },
1453
- "raw": "/**\n * refactor the dependency name of a component.\n * oldId and newId can be either a component-id or a package-name.\n * this method changes the source code of the component, but doesn't write to the filesystem.\n */",
1454
- "comment": "refactor the dependency name of a component.\noldId and newId can be either a component-id or a package-name.\nthis method changes the source code of the component, but doesn't write to the filesystem.",
1455
- "tags": []
1456
- },
1457
- "signature": "(method) RefactoringMain.refactorDependencyName(components: Component[], oldId: ComponentID | string, newId: ComponentID | string): Promise<{\n oldPackageName: string;\n newPackageName: string;\n changedComponents: Component[];\n}>",
1458
- "name": "refactorDependencyName",
1459
- "params": [
1460
- {
1461
- "__schema": "ParameterSchema",
1462
- "location": {
1463
- "filePath": "refactoring.main.runtime.ts",
1464
- "line": 42,
1465
- "character": 5
1466
- },
1467
- "name": "components",
1468
- "type": {
1469
- "__schema": "TypeArraySchema",
1470
- "location": {
1471
- "filePath": "refactoring.main.runtime.ts",
1472
- "line": 42,
1473
- "character": 17
1474
- },
1475
- "type": {
1476
- "__schema": "TypeRefSchema",
1477
- "location": {
1478
- "filePath": "refactoring.main.runtime.ts",
1479
- "line": 42,
1480
- "character": 17
1481
- },
1482
- "name": "Component",
1483
- "componentId": {
1484
- "scope": "teambit.component",
1485
- "name": "component"
1486
- }
1487
- }
1488
- },
1489
- "isOptional": false,
1490
- "isSpread": false
1491
- },
1492
- {
1493
- "__schema": "ParameterSchema",
1494
- "location": {
1495
- "filePath": "refactoring.main.runtime.ts",
1496
- "line": 43,
1497
- "character": 5
1498
- },
1499
- "name": "oldId",
1500
- "type": {
1501
- "__schema": "TypeUnionSchema",
1502
- "location": {
1503
- "filePath": "refactoring.main.runtime.ts",
1504
- "line": 43,
1505
- "character": 12
1506
- },
1507
- "types": [
1508
- {
1509
- "__schema": "TypeRefSchema",
1510
- "location": {
1511
- "filePath": "refactoring.main.runtime.ts",
1512
- "line": 43,
1513
- "character": 12
1514
- },
1515
- "name": "ComponentID",
1516
- "componentId": {
1517
- "scope": "teambit.component",
1518
- "name": "component"
1519
- }
1520
- },
1521
- {
1522
- "__schema": "KeywordTypeSchema",
1523
- "location": {
1524
- "filePath": "refactoring.main.runtime.ts",
1525
- "line": 43,
1526
- "character": 26
1527
- },
1528
- "name": "string"
1529
- }
1530
- ]
1531
- },
1532
- "isOptional": false,
1533
- "isSpread": false
1534
- },
1535
- {
1536
- "__schema": "ParameterSchema",
1537
- "location": {
1538
- "filePath": "refactoring.main.runtime.ts",
1539
- "line": 44,
1540
- "character": 5
1541
- },
1542
- "name": "newId",
1543
- "type": {
1544
- "__schema": "TypeUnionSchema",
1545
- "location": {
1546
- "filePath": "refactoring.main.runtime.ts",
1547
- "line": 44,
1548
- "character": 12
1549
- },
1550
- "types": [
1551
- {
1552
- "__schema": "TypeRefSchema",
1553
- "location": {
1554
- "filePath": "refactoring.main.runtime.ts",
1555
- "line": 44,
1556
- "character": 12
1557
- },
1558
- "name": "ComponentID",
1559
- "componentId": {
1560
- "scope": "teambit.component",
1561
- "name": "component"
1562
- }
1563
- },
1564
- {
1565
- "__schema": "KeywordTypeSchema",
1566
- "location": {
1567
- "filePath": "refactoring.main.runtime.ts",
1568
- "line": 44,
1569
- "character": 26
1570
- },
1571
- "name": "string"
1572
- }
1573
- ]
1574
- },
1575
- "isOptional": false,
1576
- "isSpread": false
1577
- }
1578
- ],
1579
- "returnType": {
1580
- "__schema": "TypeRefSchema",
1581
- "location": {
1582
- "filePath": "refactoring.main.runtime.ts",
1583
- "line": 45,
1584
- "character": 6
1585
- },
1586
- "name": "Promise",
1587
- "typeArgs": [
1588
- {
1589
- "__schema": "TypeLiteralSchema",
1590
- "location": {
1591
- "filePath": "refactoring.main.runtime.ts",
1592
- "line": 45,
1593
- "character": 14
1594
- },
1595
- "members": [
1596
- {
1597
- "__schema": "VariableLikeSchema",
1598
- "location": {
1599
- "filePath": "refactoring.main.runtime.ts",
1600
- "line": 45,
1601
- "character": 16
1602
- },
1603
- "signature": "(property) oldPackageName: string",
1604
- "name": "oldPackageName",
1605
- "type": {
1606
- "__schema": "KeywordTypeSchema",
1607
- "location": {
1608
- "filePath": "refactoring.main.runtime.ts",
1609
- "line": 45,
1610
- "character": 32
1611
- },
1612
- "name": "string"
1613
- },
1614
- "isOptional": false
1615
- },
1616
- {
1617
- "__schema": "VariableLikeSchema",
1618
- "location": {
1619
- "filePath": "refactoring.main.runtime.ts",
1620
- "line": 45,
1621
- "character": 40
1622
- },
1623
- "signature": "(property) newPackageName: string",
1624
- "name": "newPackageName",
1625
- "type": {
1626
- "__schema": "KeywordTypeSchema",
1627
- "location": {
1628
- "filePath": "refactoring.main.runtime.ts",
1629
- "line": 45,
1630
- "character": 56
1631
- },
1632
- "name": "string"
1633
- },
1634
- "isOptional": false
1635
- },
1636
- {
1637
- "__schema": "VariableLikeSchema",
1638
- "location": {
1639
- "filePath": "refactoring.main.runtime.ts",
1640
- "line": 45,
1641
- "character": 64
1642
- },
1643
- "signature": "(property) changedComponents: Component[]",
1644
- "name": "changedComponents",
1645
- "type": {
1646
- "__schema": "TypeArraySchema",
1647
- "location": {
1648
- "filePath": "refactoring.main.runtime.ts",
1649
- "line": 45,
1650
- "character": 83
1651
- },
1652
- "type": {
1653
- "__schema": "TypeRefSchema",
1654
- "location": {
1655
- "filePath": "refactoring.main.runtime.ts",
1656
- "line": 45,
1657
- "character": 83
1658
- },
1659
- "name": "Component",
1660
- "componentId": {
1661
- "scope": "teambit.component",
1662
- "name": "component"
1663
- }
1664
- }
1665
- },
1666
- "isOptional": false
1667
- }
1668
- ]
1669
- }
1670
- ]
1671
- },
1672
- "modifiers": [
1673
- "async"
1674
- ]
1675
- },
1676
- {
1677
- "__schema": "FunctionLikeSchema",
1678
- "location": {
1679
- "filePath": "refactoring.main.runtime.ts",
1680
- "line": 64,
1681
- "character": 3
1682
- },
1683
- "doc": {
1684
- "__schema": "DocSchema",
1685
- "location": {
1686
- "filePath": "refactoring.main.runtime.ts",
1687
- "line": 60,
1688
- "character": 3
1689
- },
1690
- "raw": "/**\n * replaces the old-name inside the source code of the given component with the new name.\n * helpful when renaming/forking an aspect/env where the component-name is used as the class-name and variable-name.\n */",
1691
- "comment": "replaces the old-name inside the source code of the given component with the new name.\nhelpful when renaming/forking an aspect/env where the component-name is used as the class-name and variable-name.",
1692
- "tags": []
1693
- },
1694
- "signature": "(method) RefactoringMain.refactorVariableAndClasses(component: Component, sourceId: ComponentID, targetId: ComponentID, options?: {\n ast?: boolean;\n}): Promise<void>",
1695
- "name": "refactorVariableAndClasses",
1696
- "params": [
1697
- {
1698
- "__schema": "ParameterSchema",
1699
- "location": {
1700
- "filePath": "refactoring.main.runtime.ts",
1701
- "line": 65,
1702
- "character": 5
1703
- },
1704
- "name": "component",
1705
- "type": {
1706
- "__schema": "TypeRefSchema",
1707
- "location": {
1708
- "filePath": "refactoring.main.runtime.ts",
1709
- "line": 65,
1710
- "character": 16
1711
- },
1712
- "name": "Component",
1713
- "componentId": {
1714
- "scope": "teambit.component",
1715
- "name": "component"
1716
- }
1717
- },
1718
- "isOptional": false,
1719
- "isSpread": false
1720
- },
1721
- {
1722
- "__schema": "ParameterSchema",
1723
- "location": {
1724
- "filePath": "refactoring.main.runtime.ts",
1725
- "line": 66,
1726
- "character": 5
1727
- },
1728
- "name": "sourceId",
1729
- "type": {
1730
- "__schema": "TypeRefSchema",
1731
- "location": {
1732
- "filePath": "refactoring.main.runtime.ts",
1733
- "line": 66,
1734
- "character": 15
1735
- },
1736
- "name": "ComponentID",
1737
- "componentId": {
1738
- "scope": "teambit.component",
1739
- "name": "component"
1740
- }
1741
- },
1742
- "isOptional": false,
1743
- "isSpread": false
1744
- },
1745
- {
1746
- "__schema": "ParameterSchema",
1747
- "location": {
1748
- "filePath": "refactoring.main.runtime.ts",
1749
- "line": 67,
1750
- "character": 5
1751
- },
1752
- "name": "targetId",
1753
- "type": {
1754
- "__schema": "TypeRefSchema",
1755
- "location": {
1756
- "filePath": "refactoring.main.runtime.ts",
1757
- "line": 67,
1758
- "character": 15
1759
- },
1760
- "name": "ComponentID",
1761
- "componentId": {
1762
- "scope": "teambit.component",
1763
- "name": "component"
1764
- }
1765
- },
1766
- "isOptional": false,
1767
- "isSpread": false
1768
- },
1769
- {
1770
- "__schema": "ParameterSchema",
1771
- "location": {
1772
- "filePath": "refactoring.main.runtime.ts",
1773
- "line": 68,
1774
- "character": 5
1775
- },
1776
- "name": "options",
1777
- "type": {
1778
- "__schema": "TypeLiteralSchema",
1779
- "location": {
1780
- "filePath": "refactoring.main.runtime.ts",
1781
- "line": 68,
1782
- "character": 15
1783
- },
1784
- "members": [
1785
- {
1786
- "__schema": "VariableLikeSchema",
1787
- "location": {
1788
- "filePath": "refactoring.main.runtime.ts",
1789
- "line": 68,
1790
- "character": 17
1791
- },
1792
- "signature": "(property) ast?: boolean | undefined",
1793
- "name": "ast",
1794
- "type": {
1795
- "__schema": "KeywordTypeSchema",
1796
- "location": {
1797
- "filePath": "refactoring.main.runtime.ts",
1798
- "line": 68,
1799
- "character": 23
1800
- },
1801
- "name": "boolean"
1802
- },
1803
- "isOptional": true
1804
- }
1805
- ]
1806
- },
1807
- "isOptional": true,
1808
- "isSpread": false
1809
- }
1810
- ],
1811
- "returnType": {
1812
- "__schema": "InferenceTypeSchema",
1813
- "location": {
1814
- "filePath": "refactoring.main.runtime.ts",
1815
- "line": 64,
1816
- "character": 3
1817
- },
1818
- "type": "Promise<void>"
1819
- },
1820
- "modifiers": [
1821
- "async"
1822
- ]
1823
- },
1824
- {
1825
- "__schema": "FunctionLikeSchema",
1826
- "location": {
1827
- "filePath": "refactoring.main.runtime.ts",
1828
- "line": 80,
1829
- "character": 3
1830
- },
1831
- "signature": "(method) RefactoringMain.getStringReplacementsForVariablesAndClasses(sourceId: ComponentID, targetId: ComponentID): MultipleStringsReplacement",
1832
- "name": "getStringReplacementsForVariablesAndClasses",
1833
- "params": [
1834
- {
1835
- "__schema": "ParameterSchema",
1836
- "location": {
1837
- "filePath": "refactoring.main.runtime.ts",
1838
- "line": 81,
1839
- "character": 5
1840
- },
1841
- "name": "sourceId",
1842
- "type": {
1843
- "__schema": "TypeRefSchema",
1844
- "location": {
1845
- "filePath": "refactoring.main.runtime.ts",
1846
- "line": 81,
1847
- "character": 15
1848
- },
1849
- "name": "ComponentID",
1850
- "componentId": {
1851
- "scope": "teambit.component",
1852
- "name": "component"
1853
- }
1854
- },
1855
- "isOptional": false,
1856
- "isSpread": false
1857
- },
1858
- {
1859
- "__schema": "ParameterSchema",
1860
- "location": {
1861
- "filePath": "refactoring.main.runtime.ts",
1862
- "line": 82,
1863
- "character": 5
1864
- },
1865
- "name": "targetId",
1866
- "type": {
1867
- "__schema": "TypeRefSchema",
1868
- "location": {
1869
- "filePath": "refactoring.main.runtime.ts",
1870
- "line": 82,
1871
- "character": 15
1872
- },
1873
- "name": "ComponentID",
1874
- "componentId": {
1875
- "scope": "teambit.component",
1876
- "name": "component"
1877
- }
1878
- },
1879
- "isOptional": false,
1880
- "isSpread": false
1881
- }
1882
- ],
1883
- "returnType": {
1884
- "__schema": "TypeRefSchema",
1885
- "location": {
1886
- "filePath": "refactoring.main.runtime.ts",
1887
- "line": 80,
1888
- "character": 3
1889
- },
1890
- "name": "MultipleStringsReplacement"
1891
- },
1892
- "modifiers": []
1893
- },
1894
- {
1895
- "__schema": "FunctionLikeSchema",
1896
- "location": {
1897
- "filePath": "refactoring.main.runtime.ts",
1898
- "line": 100,
1899
- "character": 3
1900
- },
1901
- "signature": "(method) RefactoringMain.refactorVariableAndClassesUsingAST(component: Component, sourceId: ComponentID, targetId: ComponentID): Promise<void>",
1902
- "name": "refactorVariableAndClassesUsingAST",
1903
- "params": [
1904
- {
1905
- "__schema": "ParameterSchema",
1906
- "location": {
1907
- "filePath": "refactoring.main.runtime.ts",
1908
- "line": 100,
1909
- "character": 44
1910
- },
1911
- "name": "component",
1912
- "type": {
1913
- "__schema": "TypeRefSchema",
1914
- "location": {
1915
- "filePath": "refactoring.main.runtime.ts",
1916
- "line": 100,
1917
- "character": 55
1918
- },
1919
- "name": "Component",
1920
- "componentId": {
1921
- "scope": "teambit.component",
1922
- "name": "component"
1923
- }
1924
- },
1925
- "isOptional": false,
1926
- "isSpread": false
1927
- },
1928
- {
1929
- "__schema": "ParameterSchema",
1930
- "location": {
1931
- "filePath": "refactoring.main.runtime.ts",
1932
- "line": 100,
1933
- "character": 66
1934
- },
1935
- "name": "sourceId",
1936
- "type": {
1937
- "__schema": "TypeRefSchema",
1938
- "location": {
1939
- "filePath": "refactoring.main.runtime.ts",
1940
- "line": 100,
1941
- "character": 76
1942
- },
1943
- "name": "ComponentID",
1944
- "componentId": {
1945
- "scope": "teambit.component",
1946
- "name": "component"
1947
- }
1948
- },
1949
- "isOptional": false,
1950
- "isSpread": false
1951
- },
1952
- {
1953
- "__schema": "ParameterSchema",
1954
- "location": {
1955
- "filePath": "refactoring.main.runtime.ts",
1956
- "line": 100,
1957
- "character": 89
1958
- },
1959
- "name": "targetId",
1960
- "type": {
1961
- "__schema": "TypeRefSchema",
1962
- "location": {
1963
- "filePath": "refactoring.main.runtime.ts",
1964
- "line": 100,
1965
- "character": 99
1966
- },
1967
- "name": "ComponentID",
1968
- "componentId": {
1969
- "scope": "teambit.component",
1970
- "name": "component"
1971
- }
1972
- },
1973
- "isOptional": false,
1974
- "isSpread": false
1975
- }
1976
- ],
1977
- "returnType": {
1978
- "__schema": "InferenceTypeSchema",
1979
- "location": {
1980
- "filePath": "refactoring.main.runtime.ts",
1981
- "line": 100,
1982
- "character": 3
1983
- },
1984
- "type": "Promise<void>"
1985
- },
1986
- "modifiers": [
1987
- "async"
1988
- ]
1989
- },
1990
- {
1991
- "__schema": "FunctionLikeSchema",
1992
- "location": {
1993
- "filePath": "refactoring.main.runtime.ts",
1994
- "line": 154,
1995
- "character": 3
1996
- },
1997
- "signature": "(method) RefactoringMain.refactorFilenames(component: Component, sourceId: ComponentID, targetId: ComponentID): void",
1998
- "name": "refactorFilenames",
1999
- "params": [
2000
- {
2001
- "__schema": "ParameterSchema",
2002
- "location": {
2003
- "filePath": "refactoring.main.runtime.ts",
2004
- "line": 154,
2005
- "character": 21
2006
- },
2007
- "name": "component",
2008
- "type": {
2009
- "__schema": "TypeRefSchema",
2010
- "location": {
2011
- "filePath": "refactoring.main.runtime.ts",
2012
- "line": 154,
2013
- "character": 32
2014
- },
2015
- "name": "Component",
2016
- "componentId": {
2017
- "scope": "teambit.component",
2018
- "name": "component"
2019
- }
2020
- },
2021
- "isOptional": false,
2022
- "isSpread": false
2023
- },
2024
- {
2025
- "__schema": "ParameterSchema",
2026
- "location": {
2027
- "filePath": "refactoring.main.runtime.ts",
2028
- "line": 154,
2029
- "character": 43
2030
- },
2031
- "name": "sourceId",
2032
- "type": {
2033
- "__schema": "TypeRefSchema",
2034
- "location": {
2035
- "filePath": "refactoring.main.runtime.ts",
2036
- "line": 154,
2037
- "character": 53
2038
- },
2039
- "name": "ComponentID",
2040
- "componentId": {
2041
- "scope": "teambit.component",
2042
- "name": "component"
2043
- }
2044
- },
2045
- "isOptional": false,
2046
- "isSpread": false
2047
- },
2048
- {
2049
- "__schema": "ParameterSchema",
2050
- "location": {
2051
- "filePath": "refactoring.main.runtime.ts",
2052
- "line": 154,
2053
- "character": 66
2054
- },
2055
- "name": "targetId",
2056
- "type": {
2057
- "__schema": "TypeRefSchema",
2058
- "location": {
2059
- "filePath": "refactoring.main.runtime.ts",
2060
- "line": 154,
2061
- "character": 76
2062
- },
2063
- "name": "ComponentID",
2064
- "componentId": {
2065
- "scope": "teambit.component",
2066
- "name": "component"
2067
- }
2068
- },
2069
- "isOptional": false,
2070
- "isSpread": false
2071
- }
2072
- ],
2073
- "returnType": {
2074
- "__schema": "InferenceTypeSchema",
2075
- "location": {
2076
- "filePath": "refactoring.main.runtime.ts",
2077
- "line": 154,
2078
- "character": 3
2079
- },
2080
- "type": "void"
2081
- },
2082
- "modifiers": []
2083
- },
2084
- {
2085
- "__schema": "FunctionLikeSchema",
2086
- "location": {
2087
- "filePath": "refactoring.main.runtime.ts",
2088
- "line": 166,
2089
- "character": 3
2090
- },
2091
- "doc": {
2092
- "__schema": "DocSchema",
2093
- "location": {
2094
- "filePath": "refactoring.main.runtime.ts",
2095
- "line": 162,
2096
- "character": 3
2097
- },
2098
- "raw": "/**\n * rename multiple packages dependencies.\n * this method changes the source code of the component, but doesn't write to the filesystem.\n */",
2099
- "comment": "rename multiple packages dependencies.\nthis method changes the source code of the component, but doesn't write to the filesystem.",
2100
- "tags": []
2101
- },
2102
- "signature": "(method) RefactoringMain.replaceMultipleStrings(components: Component[], stringsToReplace?: MultipleStringsReplacement, transformers?: SourceFileTransformer[], shouldAvoidPackageNames?: boolean): Promise<{\n changedComponents: Component[];\n}>",
2103
- "name": "replaceMultipleStrings",
2104
- "params": [
2105
- {
2106
- "__schema": "ParameterSchema",
2107
- "location": {
2108
- "filePath": "refactoring.main.runtime.ts",
2109
- "line": 167,
2110
- "character": 5
2111
- },
2112
- "name": "components",
2113
- "type": {
2114
- "__schema": "TypeArraySchema",
2115
- "location": {
2116
- "filePath": "refactoring.main.runtime.ts",
2117
- "line": 167,
2118
- "character": 17
2119
- },
2120
- "type": {
2121
- "__schema": "TypeRefSchema",
2122
- "location": {
2123
- "filePath": "refactoring.main.runtime.ts",
2124
- "line": 167,
2125
- "character": 17
2126
- },
2127
- "name": "Component",
2128
- "componentId": {
2129
- "scope": "teambit.component",
2130
- "name": "component"
2131
- }
2132
- }
2133
- },
2134
- "isOptional": false,
2135
- "isSpread": false
2136
- },
2137
- {
2138
- "__schema": "ParameterSchema",
2139
- "location": {
2140
- "filePath": "refactoring.main.runtime.ts",
2141
- "line": 168,
2142
- "character": 5
2143
- },
2144
- "name": "stringsToReplace",
2145
- "type": {
2146
- "__schema": "TypeRefSchema",
2147
- "location": {
2148
- "filePath": "refactoring.main.runtime.ts",
2149
- "line": 168,
2150
- "character": 23
2151
- },
2152
- "name": "MultipleStringsReplacement"
2153
- },
2154
- "isOptional": true,
2155
- "defaultValue": "[]",
2156
- "isSpread": false
2157
- },
2158
- {
2159
- "__schema": "ParameterSchema",
2160
- "location": {
2161
- "filePath": "refactoring.main.runtime.ts",
2162
- "line": 169,
2163
- "character": 5
2164
- },
2165
- "name": "transformers",
2166
- "type": {
2167
- "__schema": "TypeArraySchema",
2168
- "location": {
2169
- "filePath": "refactoring.main.runtime.ts",
2170
- "line": 169,
2171
- "character": 20
2172
- },
2173
- "type": {
2174
- "__schema": "TypeRefSchema",
2175
- "location": {
2176
- "filePath": "refactoring.main.runtime.ts",
2177
- "line": 169,
2178
- "character": 20
2179
- },
2180
- "name": "SourceFileTransformer",
2181
- "componentId": {
2182
- "scope": "teambit.typescript",
2183
- "name": "typescript"
2184
- }
2185
- }
2186
- },
2187
- "isOptional": true,
2188
- "isSpread": false
2189
- },
2190
- {
2191
- "__schema": "ParameterSchema",
2192
- "location": {
2193
- "filePath": "refactoring.main.runtime.ts",
2194
- "line": 170,
2195
- "character": 5
2196
- },
2197
- "name": "shouldAvoidPackageNames",
2198
- "type": {
2199
- "__schema": "InferenceTypeSchema",
2200
- "location": {
2201
- "filePath": "refactoring.main.runtime.ts",
2202
- "line": 170,
2203
- "character": 5
2204
- },
2205
- "type": "boolean"
2206
- },
2207
- "isOptional": true,
2208
- "defaultValue": "false",
2209
- "isSpread": false
2210
- }
2211
- ],
2212
- "returnType": {
2213
- "__schema": "TypeRefSchema",
2214
- "location": {
2215
- "filePath": "refactoring.main.runtime.ts",
2216
- "line": 171,
2217
- "character": 6
2218
- },
2219
- "name": "Promise",
2220
- "typeArgs": [
2221
- {
2222
- "__schema": "TypeLiteralSchema",
2223
- "location": {
2224
- "filePath": "refactoring.main.runtime.ts",
2225
- "line": 171,
2226
- "character": 14
2227
- },
2228
- "members": [
2229
- {
2230
- "__schema": "VariableLikeSchema",
2231
- "location": {
2232
- "filePath": "refactoring.main.runtime.ts",
2233
- "line": 172,
2234
- "character": 5
2235
- },
2236
- "signature": "(property) changedComponents: Component[]",
2237
- "name": "changedComponents",
2238
- "type": {
2239
- "__schema": "TypeArraySchema",
2240
- "location": {
2241
- "filePath": "refactoring.main.runtime.ts",
2242
- "line": 172,
2243
- "character": 24
2244
- },
2245
- "type": {
2246
- "__schema": "TypeRefSchema",
2247
- "location": {
2248
- "filePath": "refactoring.main.runtime.ts",
2249
- "line": 172,
2250
- "character": 24
2251
- },
2252
- "name": "Component",
2253
- "componentId": {
2254
- "scope": "teambit.component",
2255
- "name": "component"
2256
- }
2257
- }
2258
- },
2259
- "isOptional": false
2260
- }
2261
- ]
2262
- }
2263
- ]
2264
- },
2265
- "modifiers": [
2266
- "async"
2267
- ]
2268
- },
2269
- {
2270
- "__schema": "VariableLikeSchema",
2271
- "location": {
2272
- "filePath": "refactoring.main.runtime.ts",
2273
- "line": 317,
2274
- "character": 3
2275
- },
2276
- "signature": "(property) RefactoringMain.slots: never[]",
2277
- "name": "slots",
2278
- "type": {
2279
- "__schema": "InferenceTypeSchema",
2280
- "location": {
2281
- "filePath": "refactoring.main.runtime.ts",
2282
- "line": 317,
2283
- "character": 3
2284
- },
2285
- "type": "never[]"
2286
- },
2287
- "isOptional": true,
2288
- "defaultValue": "[]"
2289
- },
2290
- {
2291
- "__schema": "VariableLikeSchema",
2292
- "location": {
2293
- "filePath": "refactoring.main.runtime.ts",
2294
- "line": 318,
2295
- "character": 3
2296
- },
2297
- "signature": "(property) RefactoringMain.dependencies: Aspect[]",
2298
- "name": "dependencies",
2299
- "type": {
2300
- "__schema": "InferenceTypeSchema",
2301
- "location": {
2302
- "filePath": "refactoring.main.runtime.ts",
2303
- "line": 318,
2304
- "character": 3
2305
- },
2306
- "type": "Aspect[]"
2307
- },
2308
- "isOptional": true,
2309
- "defaultValue": "[ComponentAspect, PkgAspect, CLIAspect, EnvsAspect]"
2310
- },
2311
- {
2312
- "__schema": "VariableLikeSchema",
2313
- "location": {
2314
- "filePath": "refactoring.main.runtime.ts",
2315
- "line": 319,
2316
- "character": 3
2317
- },
2318
- "signature": "(property) RefactoringMain.runtime: RuntimeDefinition",
2319
- "name": "runtime",
2320
- "type": {
2321
- "__schema": "InferenceTypeSchema",
2322
- "location": {
2323
- "filePath": "refactoring.main.runtime.ts",
2324
- "line": 319,
2325
- "character": 3
2326
- },
2327
- "type": "RuntimeDefinition"
2328
- },
2329
- "isOptional": true,
2330
- "defaultValue": "MainRuntime"
2331
- },
2332
- {
2333
- "__schema": "FunctionLikeSchema",
2334
- "location": {
2335
- "filePath": "refactoring.main.runtime.ts",
2336
- "line": 320,
2337
- "character": 3
2338
- },
2339
- "signature": "(method) RefactoringMain.provider([componentMain, pkg, cli, envMain]: [ComponentMain, PkgMain, CLIMain, EnvsMain]): Promise<RefactoringMain>",
2340
- "name": "provider",
2341
- "params": [
2342
- {
2343
- "__schema": "ParameterSchema",
2344
- "location": {
2345
- "filePath": "refactoring.main.runtime.ts",
2346
- "line": 320,
2347
- "character": 25
2348
- },
2349
- "name": "[ componentMain, pkg, cli, envMain ]",
2350
- "type": {
2351
- "__schema": "TupleTypeSchema",
2352
- "location": {
2353
- "filePath": "refactoring.main.runtime.ts",
2354
- "line": 320,
2355
- "character": 61
2356
- },
2357
- "elements": [
2358
- {
2359
- "__schema": "TypeRefSchema",
2360
- "location": {
2361
- "filePath": "refactoring.main.runtime.ts",
2362
- "line": 320,
2363
- "character": 62
2364
- },
2365
- "name": "ComponentMain",
2366
- "componentId": {
2367
- "scope": "teambit.component",
2368
- "name": "component"
2369
- }
2370
- },
2371
- {
2372
- "__schema": "TypeRefSchema",
2373
- "location": {
2374
- "filePath": "refactoring.main.runtime.ts",
2375
- "line": 320,
2376
- "character": 77
2377
- },
2378
- "name": "PkgMain",
2379
- "componentId": {
2380
- "scope": "teambit.pkg",
2381
- "name": "pkg"
2382
- }
2383
- },
2384
- {
2385
- "__schema": "TypeRefSchema",
2386
- "location": {
2387
- "filePath": "refactoring.main.runtime.ts",
2388
- "line": 320,
2389
- "character": 86
2390
- },
2391
- "name": "CLIMain",
2392
- "componentId": {
2393
- "scope": "teambit.harmony",
2394
- "name": "cli"
2395
- }
2396
- },
2397
- {
2398
- "__schema": "TypeRefSchema",
2399
- "location": {
2400
- "filePath": "refactoring.main.runtime.ts",
2401
- "line": 320,
2402
- "character": 95
2403
- },
2404
- "name": "EnvsMain",
2405
- "componentId": {
2406
- "scope": "teambit.envs",
2407
- "name": "envs"
2408
- }
2409
- }
2410
- ]
2411
- },
2412
- "isOptional": false,
2413
- "isSpread": false
2414
- }
2415
- ],
2416
- "returnType": {
2417
- "__schema": "InferenceTypeSchema",
2418
- "location": {
2419
- "filePath": "refactoring.main.runtime.ts",
2420
- "line": 320,
2421
- "character": 3
2422
- },
2423
- "type": "Promise<RefactoringMain>"
2424
- },
2425
- "modifiers": [
2426
- "static",
2427
- "async"
2428
- ]
2429
- }
2430
- ],
2431
- "extendsNodes": [],
2432
- "implementNodes": []
2433
- }
2434
- ],
2435
- "internals": [
2436
- {
2437
- "__schema": "UnImplementedSchema",
2438
- "location": {
2439
- "filePath": "refactoring.main.runtime.ts",
2440
- "line": 330,
2441
- "character": 1
2442
- },
2443
- "name": "RefactoringAspect.addRuntime(RefactoringMain);",
2444
- "type": "ExpressionStatement"
2445
- }
2446
- ]
2447
- },
2448
- {
2449
- "__schema": "ModuleSchema",
2450
- "location": {
2451
- "filePath": "refactoring.aspect.ts",
2452
- "line": 1,
2453
- "character": 1
2454
- },
2455
- "exports": [
2456
- {
2457
- "__schema": "VariableLikeSchema",
2458
- "location": {
2459
- "filePath": "refactoring.aspect.ts",
2460
- "line": 3,
2461
- "character": 14
2462
- },
2463
- "signature": "const RefactoringAspect: Aspect",
2464
- "name": "RefactoringAspect",
2465
- "type": {
2466
- "__schema": "TypeRefSchema",
2467
- "location": {
2468
- "filePath": "refactoring.aspect.ts",
2469
- "line": 3,
2470
- "character": 14
2471
- },
2472
- "name": "Aspect",
2473
- "componentId": {
2474
- "scope": "teambit.harmony",
2475
- "name": "harmony",
2476
- "version": "0.4.6"
2477
- }
2478
- },
2479
- "isOptional": false,
2480
- "defaultValue": "Aspect.create({\n id: 'teambit.component/refactoring',\n})"
2481
- }
2482
- ],
2483
- "internals": []
2484
- }
2485
- ],
2486
- "componentId": {
2487
- "scope": "teambit.component",
2488
- "name": "refactoring",
2489
- "version": "1.0.516"
2490
- },
2491
- "taggedModuleExports": []
2492
- }