@teambit/api-server 1.0.225 → 1.0.227
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.
- package/artifacts/__bit_junit.xml +1 -1
- package/artifacts/schema.json +45 -221
- package/package.json +21 -21
- package/tsconfig.json +58 -1
- package/dist/api-for-ide.d.ts +0 -137
- package/dist/api-server.aspect.d.ts +0 -2
- package/dist/api-server.main.runtime.d.ts +0 -50
- package/dist/cli.route.d.ts +0 -25
- package/dist/ide.route.d.ts +0 -20
- package/dist/index.d.ts +0 -4
- package/dist/server.cmd.d.ts +0 -16
- package/dist/sse-events.route.d.ts +0 -17
- /package/dist/{preview-1712546198033.js → preview-1712719054377.js} +0 -0
|
@@ -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.harmony/api-server@1.0.
|
|
3
|
+
<testsuite name="teambit.harmony/api-server@1.0.227" tests="0" failures="0" errors="0" skipped="0"/>
|
|
4
4
|
</testsuites>
|
package/artifacts/schema.json
CHANGED
|
@@ -48,11 +48,7 @@
|
|
|
48
48
|
"line": 27,
|
|
49
49
|
"character": 24
|
|
50
50
|
},
|
|
51
|
-
"name": "Workspace"
|
|
52
|
-
"componentId": {
|
|
53
|
-
"scope": "teambit.workspace",
|
|
54
|
-
"name": "workspace"
|
|
55
|
-
}
|
|
51
|
+
"name": "Workspace"
|
|
56
52
|
},
|
|
57
53
|
"isOptional": false,
|
|
58
54
|
"isSpread": false
|
|
@@ -72,11 +68,7 @@
|
|
|
72
68
|
"line": 28,
|
|
73
69
|
"character": 21
|
|
74
70
|
},
|
|
75
|
-
"name": "Logger"
|
|
76
|
-
"componentId": {
|
|
77
|
-
"scope": "teambit.harmony",
|
|
78
|
-
"name": "logger"
|
|
79
|
-
}
|
|
71
|
+
"name": "Logger"
|
|
80
72
|
},
|
|
81
73
|
"isOptional": false,
|
|
82
74
|
"isSpread": false
|
|
@@ -96,11 +88,7 @@
|
|
|
96
88
|
"line": 29,
|
|
97
89
|
"character": 22
|
|
98
90
|
},
|
|
99
|
-
"name": "ExpressMain"
|
|
100
|
-
"componentId": {
|
|
101
|
-
"scope": "teambit.harmony",
|
|
102
|
-
"name": "express"
|
|
103
|
-
}
|
|
91
|
+
"name": "ExpressMain"
|
|
104
92
|
},
|
|
105
93
|
"isOptional": false,
|
|
106
94
|
"isSpread": false
|
|
@@ -120,11 +108,7 @@
|
|
|
120
108
|
"line": 30,
|
|
121
109
|
"character": 22
|
|
122
110
|
},
|
|
123
|
-
"name": "WatcherMain"
|
|
124
|
-
"componentId": {
|
|
125
|
-
"scope": "teambit.workspace",
|
|
126
|
-
"name": "watcher"
|
|
127
|
-
}
|
|
111
|
+
"name": "WatcherMain"
|
|
128
112
|
},
|
|
129
113
|
"isOptional": false,
|
|
130
114
|
"isSpread": false
|
|
@@ -144,11 +128,7 @@
|
|
|
144
128
|
"line": 31,
|
|
145
129
|
"character": 24
|
|
146
130
|
},
|
|
147
|
-
"name": "InstallMain"
|
|
148
|
-
"componentId": {
|
|
149
|
-
"scope": "teambit.workspace",
|
|
150
|
-
"name": "install"
|
|
151
|
-
}
|
|
131
|
+
"name": "InstallMain"
|
|
152
132
|
},
|
|
153
133
|
"isOptional": false,
|
|
154
134
|
"isSpread": false
|
|
@@ -168,11 +148,7 @@
|
|
|
168
148
|
"line": 32,
|
|
169
149
|
"character": 23
|
|
170
150
|
},
|
|
171
|
-
"name": "ImporterMain"
|
|
172
|
-
"componentId": {
|
|
173
|
-
"scope": "teambit.scope",
|
|
174
|
-
"name": "importer"
|
|
175
|
-
}
|
|
151
|
+
"name": "ImporterMain"
|
|
176
152
|
},
|
|
177
153
|
"isOptional": false,
|
|
178
154
|
"isSpread": false
|
|
@@ -349,11 +325,7 @@
|
|
|
349
325
|
"line": 136,
|
|
350
326
|
"character": 5
|
|
351
327
|
},
|
|
352
|
-
"name": "CLIMain"
|
|
353
|
-
"componentId": {
|
|
354
|
-
"scope": "teambit.harmony",
|
|
355
|
-
"name": "cli"
|
|
356
|
-
}
|
|
328
|
+
"name": "CLIMain"
|
|
357
329
|
},
|
|
358
330
|
{
|
|
359
331
|
"__schema": "TypeRefSchema",
|
|
@@ -362,11 +334,7 @@
|
|
|
362
334
|
"line": 137,
|
|
363
335
|
"character": 5
|
|
364
336
|
},
|
|
365
|
-
"name": "Workspace"
|
|
366
|
-
"componentId": {
|
|
367
|
-
"scope": "teambit.workspace",
|
|
368
|
-
"name": "workspace"
|
|
369
|
-
}
|
|
337
|
+
"name": "Workspace"
|
|
370
338
|
},
|
|
371
339
|
{
|
|
372
340
|
"__schema": "TypeRefSchema",
|
|
@@ -375,11 +343,7 @@
|
|
|
375
343
|
"line": 138,
|
|
376
344
|
"character": 5
|
|
377
345
|
},
|
|
378
|
-
"name": "LoggerMain"
|
|
379
|
-
"componentId": {
|
|
380
|
-
"scope": "teambit.harmony",
|
|
381
|
-
"name": "logger"
|
|
382
|
-
}
|
|
346
|
+
"name": "LoggerMain"
|
|
383
347
|
},
|
|
384
348
|
{
|
|
385
349
|
"__schema": "TypeRefSchema",
|
|
@@ -388,11 +352,7 @@
|
|
|
388
352
|
"line": 139,
|
|
389
353
|
"character": 5
|
|
390
354
|
},
|
|
391
|
-
"name": "ExpressMain"
|
|
392
|
-
"componentId": {
|
|
393
|
-
"scope": "teambit.harmony",
|
|
394
|
-
"name": "express"
|
|
395
|
-
}
|
|
355
|
+
"name": "ExpressMain"
|
|
396
356
|
},
|
|
397
357
|
{
|
|
398
358
|
"__schema": "TypeRefSchema",
|
|
@@ -401,11 +361,7 @@
|
|
|
401
361
|
"line": 140,
|
|
402
362
|
"character": 5
|
|
403
363
|
},
|
|
404
|
-
"name": "WatcherMain"
|
|
405
|
-
"componentId": {
|
|
406
|
-
"scope": "teambit.workspace",
|
|
407
|
-
"name": "watcher"
|
|
408
|
-
}
|
|
364
|
+
"name": "WatcherMain"
|
|
409
365
|
},
|
|
410
366
|
{
|
|
411
367
|
"__schema": "TypeRefSchema",
|
|
@@ -414,11 +370,7 @@
|
|
|
414
370
|
"line": 141,
|
|
415
371
|
"character": 5
|
|
416
372
|
},
|
|
417
|
-
"name": "SnappingMain"
|
|
418
|
-
"componentId": {
|
|
419
|
-
"scope": "teambit.component",
|
|
420
|
-
"name": "snapping"
|
|
421
|
-
}
|
|
373
|
+
"name": "SnappingMain"
|
|
422
374
|
},
|
|
423
375
|
{
|
|
424
376
|
"__schema": "TypeRefSchema",
|
|
@@ -427,11 +379,7 @@
|
|
|
427
379
|
"line": 142,
|
|
428
380
|
"character": 5
|
|
429
381
|
},
|
|
430
|
-
"name": "LanesMain"
|
|
431
|
-
"componentId": {
|
|
432
|
-
"scope": "teambit.lanes",
|
|
433
|
-
"name": "lanes"
|
|
434
|
-
}
|
|
382
|
+
"name": "LanesMain"
|
|
435
383
|
},
|
|
436
384
|
{
|
|
437
385
|
"__schema": "TypeRefSchema",
|
|
@@ -440,11 +388,7 @@
|
|
|
440
388
|
"line": 143,
|
|
441
389
|
"character": 5
|
|
442
390
|
},
|
|
443
|
-
"name": "InstallMain"
|
|
444
|
-
"componentId": {
|
|
445
|
-
"scope": "teambit.workspace",
|
|
446
|
-
"name": "install"
|
|
447
|
-
}
|
|
391
|
+
"name": "InstallMain"
|
|
448
392
|
},
|
|
449
393
|
{
|
|
450
394
|
"__schema": "TypeRefSchema",
|
|
@@ -453,11 +397,7 @@
|
|
|
453
397
|
"line": 144,
|
|
454
398
|
"character": 5
|
|
455
399
|
},
|
|
456
|
-
"name": "ExportMain"
|
|
457
|
-
"componentId": {
|
|
458
|
-
"scope": "teambit.scope",
|
|
459
|
-
"name": "export"
|
|
460
|
-
}
|
|
400
|
+
"name": "ExportMain"
|
|
461
401
|
},
|
|
462
402
|
{
|
|
463
403
|
"__schema": "TypeRefSchema",
|
|
@@ -466,11 +406,7 @@
|
|
|
466
406
|
"line": 145,
|
|
467
407
|
"character": 5
|
|
468
408
|
},
|
|
469
|
-
"name": "CheckoutMain"
|
|
470
|
-
"componentId": {
|
|
471
|
-
"scope": "teambit.component",
|
|
472
|
-
"name": "checkout"
|
|
473
|
-
}
|
|
409
|
+
"name": "CheckoutMain"
|
|
474
410
|
},
|
|
475
411
|
{
|
|
476
412
|
"__schema": "TypeRefSchema",
|
|
@@ -479,11 +415,7 @@
|
|
|
479
415
|
"line": 146,
|
|
480
416
|
"character": 5
|
|
481
417
|
},
|
|
482
|
-
"name": "ComponentLogMain"
|
|
483
|
-
"componentId": {
|
|
484
|
-
"scope": "teambit.component",
|
|
485
|
-
"name": "component-log"
|
|
486
|
-
}
|
|
418
|
+
"name": "ComponentLogMain"
|
|
487
419
|
},
|
|
488
420
|
{
|
|
489
421
|
"__schema": "TypeRefSchema",
|
|
@@ -492,11 +424,7 @@
|
|
|
492
424
|
"line": 147,
|
|
493
425
|
"character": 5
|
|
494
426
|
},
|
|
495
|
-
"name": "ImporterMain"
|
|
496
|
-
"componentId": {
|
|
497
|
-
"scope": "teambit.scope",
|
|
498
|
-
"name": "importer"
|
|
499
|
-
}
|
|
427
|
+
"name": "ImporterMain"
|
|
500
428
|
},
|
|
501
429
|
{
|
|
502
430
|
"__schema": "TypeRefSchema",
|
|
@@ -505,11 +433,7 @@
|
|
|
505
433
|
"line": 148,
|
|
506
434
|
"character": 5
|
|
507
435
|
},
|
|
508
|
-
"name": "ComponentCompareMain"
|
|
509
|
-
"componentId": {
|
|
510
|
-
"scope": "teambit.component",
|
|
511
|
-
"name": "component-compare"
|
|
512
|
-
}
|
|
436
|
+
"name": "ComponentCompareMain"
|
|
513
437
|
},
|
|
514
438
|
{
|
|
515
439
|
"__schema": "TypeRefSchema",
|
|
@@ -518,11 +442,7 @@
|
|
|
518
442
|
"line": 149,
|
|
519
443
|
"character": 5
|
|
520
444
|
},
|
|
521
|
-
"name": "GeneratorMain"
|
|
522
|
-
"componentId": {
|
|
523
|
-
"scope": "teambit.generator",
|
|
524
|
-
"name": "generator"
|
|
525
|
-
}
|
|
445
|
+
"name": "GeneratorMain"
|
|
526
446
|
},
|
|
527
447
|
{
|
|
528
448
|
"__schema": "TypeRefSchema",
|
|
@@ -531,11 +451,7 @@
|
|
|
531
451
|
"line": 150,
|
|
532
452
|
"character": 5
|
|
533
453
|
},
|
|
534
|
-
"name": "RemoveMain"
|
|
535
|
-
"componentId": {
|
|
536
|
-
"scope": "teambit.component",
|
|
537
|
-
"name": "remove"
|
|
538
|
-
}
|
|
454
|
+
"name": "RemoveMain"
|
|
539
455
|
},
|
|
540
456
|
{
|
|
541
457
|
"__schema": "TypeRefSchema",
|
|
@@ -544,11 +460,7 @@
|
|
|
544
460
|
"line": 151,
|
|
545
461
|
"character": 5
|
|
546
462
|
},
|
|
547
|
-
"name": "ConfigMain"
|
|
548
|
-
"componentId": {
|
|
549
|
-
"scope": "teambit.harmony",
|
|
550
|
-
"name": "config"
|
|
551
|
-
}
|
|
463
|
+
"name": "ConfigMain"
|
|
552
464
|
}
|
|
553
465
|
]
|
|
554
466
|
},
|
|
@@ -657,11 +569,7 @@
|
|
|
657
569
|
"line": 27,
|
|
658
570
|
"character": 24
|
|
659
571
|
},
|
|
660
|
-
"name": "Workspace"
|
|
661
|
-
"componentId": {
|
|
662
|
-
"scope": "teambit.workspace",
|
|
663
|
-
"name": "workspace"
|
|
664
|
-
}
|
|
572
|
+
"name": "Workspace"
|
|
665
573
|
},
|
|
666
574
|
"isOptional": false,
|
|
667
575
|
"isSpread": false
|
|
@@ -681,11 +589,7 @@
|
|
|
681
589
|
"line": 28,
|
|
682
590
|
"character": 21
|
|
683
591
|
},
|
|
684
|
-
"name": "Logger"
|
|
685
|
-
"componentId": {
|
|
686
|
-
"scope": "teambit.harmony",
|
|
687
|
-
"name": "logger"
|
|
688
|
-
}
|
|
592
|
+
"name": "Logger"
|
|
689
593
|
},
|
|
690
594
|
"isOptional": false,
|
|
691
595
|
"isSpread": false
|
|
@@ -705,11 +609,7 @@
|
|
|
705
609
|
"line": 29,
|
|
706
610
|
"character": 22
|
|
707
611
|
},
|
|
708
|
-
"name": "ExpressMain"
|
|
709
|
-
"componentId": {
|
|
710
|
-
"scope": "teambit.harmony",
|
|
711
|
-
"name": "express"
|
|
712
|
-
}
|
|
612
|
+
"name": "ExpressMain"
|
|
713
613
|
},
|
|
714
614
|
"isOptional": false,
|
|
715
615
|
"isSpread": false
|
|
@@ -729,11 +629,7 @@
|
|
|
729
629
|
"line": 30,
|
|
730
630
|
"character": 22
|
|
731
631
|
},
|
|
732
|
-
"name": "WatcherMain"
|
|
733
|
-
"componentId": {
|
|
734
|
-
"scope": "teambit.workspace",
|
|
735
|
-
"name": "watcher"
|
|
736
|
-
}
|
|
632
|
+
"name": "WatcherMain"
|
|
737
633
|
},
|
|
738
634
|
"isOptional": false,
|
|
739
635
|
"isSpread": false
|
|
@@ -753,11 +649,7 @@
|
|
|
753
649
|
"line": 31,
|
|
754
650
|
"character": 24
|
|
755
651
|
},
|
|
756
|
-
"name": "InstallMain"
|
|
757
|
-
"componentId": {
|
|
758
|
-
"scope": "teambit.workspace",
|
|
759
|
-
"name": "install"
|
|
760
|
-
}
|
|
652
|
+
"name": "InstallMain"
|
|
761
653
|
},
|
|
762
654
|
"isOptional": false,
|
|
763
655
|
"isSpread": false
|
|
@@ -777,11 +669,7 @@
|
|
|
777
669
|
"line": 32,
|
|
778
670
|
"character": 23
|
|
779
671
|
},
|
|
780
|
-
"name": "ImporterMain"
|
|
781
|
-
"componentId": {
|
|
782
|
-
"scope": "teambit.scope",
|
|
783
|
-
"name": "importer"
|
|
784
|
-
}
|
|
672
|
+
"name": "ImporterMain"
|
|
785
673
|
},
|
|
786
674
|
"isOptional": false,
|
|
787
675
|
"isSpread": false
|
|
@@ -958,11 +846,7 @@
|
|
|
958
846
|
"line": 136,
|
|
959
847
|
"character": 5
|
|
960
848
|
},
|
|
961
|
-
"name": "CLIMain"
|
|
962
|
-
"componentId": {
|
|
963
|
-
"scope": "teambit.harmony",
|
|
964
|
-
"name": "cli"
|
|
965
|
-
}
|
|
849
|
+
"name": "CLIMain"
|
|
966
850
|
},
|
|
967
851
|
{
|
|
968
852
|
"__schema": "TypeRefSchema",
|
|
@@ -971,11 +855,7 @@
|
|
|
971
855
|
"line": 137,
|
|
972
856
|
"character": 5
|
|
973
857
|
},
|
|
974
|
-
"name": "Workspace"
|
|
975
|
-
"componentId": {
|
|
976
|
-
"scope": "teambit.workspace",
|
|
977
|
-
"name": "workspace"
|
|
978
|
-
}
|
|
858
|
+
"name": "Workspace"
|
|
979
859
|
},
|
|
980
860
|
{
|
|
981
861
|
"__schema": "TypeRefSchema",
|
|
@@ -984,11 +864,7 @@
|
|
|
984
864
|
"line": 138,
|
|
985
865
|
"character": 5
|
|
986
866
|
},
|
|
987
|
-
"name": "LoggerMain"
|
|
988
|
-
"componentId": {
|
|
989
|
-
"scope": "teambit.harmony",
|
|
990
|
-
"name": "logger"
|
|
991
|
-
}
|
|
867
|
+
"name": "LoggerMain"
|
|
992
868
|
},
|
|
993
869
|
{
|
|
994
870
|
"__schema": "TypeRefSchema",
|
|
@@ -997,11 +873,7 @@
|
|
|
997
873
|
"line": 139,
|
|
998
874
|
"character": 5
|
|
999
875
|
},
|
|
1000
|
-
"name": "ExpressMain"
|
|
1001
|
-
"componentId": {
|
|
1002
|
-
"scope": "teambit.harmony",
|
|
1003
|
-
"name": "express"
|
|
1004
|
-
}
|
|
876
|
+
"name": "ExpressMain"
|
|
1005
877
|
},
|
|
1006
878
|
{
|
|
1007
879
|
"__schema": "TypeRefSchema",
|
|
@@ -1010,11 +882,7 @@
|
|
|
1010
882
|
"line": 140,
|
|
1011
883
|
"character": 5
|
|
1012
884
|
},
|
|
1013
|
-
"name": "WatcherMain"
|
|
1014
|
-
"componentId": {
|
|
1015
|
-
"scope": "teambit.workspace",
|
|
1016
|
-
"name": "watcher"
|
|
1017
|
-
}
|
|
885
|
+
"name": "WatcherMain"
|
|
1018
886
|
},
|
|
1019
887
|
{
|
|
1020
888
|
"__schema": "TypeRefSchema",
|
|
@@ -1023,11 +891,7 @@
|
|
|
1023
891
|
"line": 141,
|
|
1024
892
|
"character": 5
|
|
1025
893
|
},
|
|
1026
|
-
"name": "SnappingMain"
|
|
1027
|
-
"componentId": {
|
|
1028
|
-
"scope": "teambit.component",
|
|
1029
|
-
"name": "snapping"
|
|
1030
|
-
}
|
|
894
|
+
"name": "SnappingMain"
|
|
1031
895
|
},
|
|
1032
896
|
{
|
|
1033
897
|
"__schema": "TypeRefSchema",
|
|
@@ -1036,11 +900,7 @@
|
|
|
1036
900
|
"line": 142,
|
|
1037
901
|
"character": 5
|
|
1038
902
|
},
|
|
1039
|
-
"name": "LanesMain"
|
|
1040
|
-
"componentId": {
|
|
1041
|
-
"scope": "teambit.lanes",
|
|
1042
|
-
"name": "lanes"
|
|
1043
|
-
}
|
|
903
|
+
"name": "LanesMain"
|
|
1044
904
|
},
|
|
1045
905
|
{
|
|
1046
906
|
"__schema": "TypeRefSchema",
|
|
@@ -1049,11 +909,7 @@
|
|
|
1049
909
|
"line": 143,
|
|
1050
910
|
"character": 5
|
|
1051
911
|
},
|
|
1052
|
-
"name": "InstallMain"
|
|
1053
|
-
"componentId": {
|
|
1054
|
-
"scope": "teambit.workspace",
|
|
1055
|
-
"name": "install"
|
|
1056
|
-
}
|
|
912
|
+
"name": "InstallMain"
|
|
1057
913
|
},
|
|
1058
914
|
{
|
|
1059
915
|
"__schema": "TypeRefSchema",
|
|
@@ -1062,11 +918,7 @@
|
|
|
1062
918
|
"line": 144,
|
|
1063
919
|
"character": 5
|
|
1064
920
|
},
|
|
1065
|
-
"name": "ExportMain"
|
|
1066
|
-
"componentId": {
|
|
1067
|
-
"scope": "teambit.scope",
|
|
1068
|
-
"name": "export"
|
|
1069
|
-
}
|
|
921
|
+
"name": "ExportMain"
|
|
1070
922
|
},
|
|
1071
923
|
{
|
|
1072
924
|
"__schema": "TypeRefSchema",
|
|
@@ -1075,11 +927,7 @@
|
|
|
1075
927
|
"line": 145,
|
|
1076
928
|
"character": 5
|
|
1077
929
|
},
|
|
1078
|
-
"name": "CheckoutMain"
|
|
1079
|
-
"componentId": {
|
|
1080
|
-
"scope": "teambit.component",
|
|
1081
|
-
"name": "checkout"
|
|
1082
|
-
}
|
|
930
|
+
"name": "CheckoutMain"
|
|
1083
931
|
},
|
|
1084
932
|
{
|
|
1085
933
|
"__schema": "TypeRefSchema",
|
|
@@ -1088,11 +936,7 @@
|
|
|
1088
936
|
"line": 146,
|
|
1089
937
|
"character": 5
|
|
1090
938
|
},
|
|
1091
|
-
"name": "ComponentLogMain"
|
|
1092
|
-
"componentId": {
|
|
1093
|
-
"scope": "teambit.component",
|
|
1094
|
-
"name": "component-log"
|
|
1095
|
-
}
|
|
939
|
+
"name": "ComponentLogMain"
|
|
1096
940
|
},
|
|
1097
941
|
{
|
|
1098
942
|
"__schema": "TypeRefSchema",
|
|
@@ -1101,11 +945,7 @@
|
|
|
1101
945
|
"line": 147,
|
|
1102
946
|
"character": 5
|
|
1103
947
|
},
|
|
1104
|
-
"name": "ImporterMain"
|
|
1105
|
-
"componentId": {
|
|
1106
|
-
"scope": "teambit.scope",
|
|
1107
|
-
"name": "importer"
|
|
1108
|
-
}
|
|
948
|
+
"name": "ImporterMain"
|
|
1109
949
|
},
|
|
1110
950
|
{
|
|
1111
951
|
"__schema": "TypeRefSchema",
|
|
@@ -1114,11 +954,7 @@
|
|
|
1114
954
|
"line": 148,
|
|
1115
955
|
"character": 5
|
|
1116
956
|
},
|
|
1117
|
-
"name": "ComponentCompareMain"
|
|
1118
|
-
"componentId": {
|
|
1119
|
-
"scope": "teambit.component",
|
|
1120
|
-
"name": "component-compare"
|
|
1121
|
-
}
|
|
957
|
+
"name": "ComponentCompareMain"
|
|
1122
958
|
},
|
|
1123
959
|
{
|
|
1124
960
|
"__schema": "TypeRefSchema",
|
|
@@ -1127,11 +963,7 @@
|
|
|
1127
963
|
"line": 149,
|
|
1128
964
|
"character": 5
|
|
1129
965
|
},
|
|
1130
|
-
"name": "GeneratorMain"
|
|
1131
|
-
"componentId": {
|
|
1132
|
-
"scope": "teambit.generator",
|
|
1133
|
-
"name": "generator"
|
|
1134
|
-
}
|
|
966
|
+
"name": "GeneratorMain"
|
|
1135
967
|
},
|
|
1136
968
|
{
|
|
1137
969
|
"__schema": "TypeRefSchema",
|
|
@@ -1140,11 +972,7 @@
|
|
|
1140
972
|
"line": 150,
|
|
1141
973
|
"character": 5
|
|
1142
974
|
},
|
|
1143
|
-
"name": "RemoveMain"
|
|
1144
|
-
"componentId": {
|
|
1145
|
-
"scope": "teambit.component",
|
|
1146
|
-
"name": "remove"
|
|
1147
|
-
}
|
|
975
|
+
"name": "RemoveMain"
|
|
1148
976
|
},
|
|
1149
977
|
{
|
|
1150
978
|
"__schema": "TypeRefSchema",
|
|
@@ -1153,11 +981,7 @@
|
|
|
1153
981
|
"line": 151,
|
|
1154
982
|
"character": 5
|
|
1155
983
|
},
|
|
1156
|
-
"name": "ConfigMain"
|
|
1157
|
-
"componentId": {
|
|
1158
|
-
"scope": "teambit.harmony",
|
|
1159
|
-
"name": "config"
|
|
1160
|
-
}
|
|
984
|
+
"name": "ConfigMain"
|
|
1161
985
|
}
|
|
1162
986
|
]
|
|
1163
987
|
},
|
|
@@ -1248,7 +1072,7 @@
|
|
|
1248
1072
|
"componentId": {
|
|
1249
1073
|
"scope": "teambit.harmony",
|
|
1250
1074
|
"name": "api-server",
|
|
1251
|
-
"version": "1.0.
|
|
1075
|
+
"version": "1.0.227"
|
|
1252
1076
|
},
|
|
1253
1077
|
"taggedModuleExports": []
|
|
1254
1078
|
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/api-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.227",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/harmony/api-server",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.harmony",
|
|
8
8
|
"name": "api-server",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.227"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"fs-extra": "10.0.0",
|
|
@@ -14,31 +14,31 @@
|
|
|
14
14
|
"p-map": "4.0.0",
|
|
15
15
|
"pretty-time": "1.1.0",
|
|
16
16
|
"@teambit/harmony": "0.4.6",
|
|
17
|
-
"@teambit/checkout": "1.0.
|
|
18
|
-
"@teambit/component-compare": "1.0.
|
|
19
|
-
"@teambit/component-log": "1.0.
|
|
20
|
-
"@teambit/config": "0.0.
|
|
21
|
-
"@teambit/export": "1.0.
|
|
22
|
-
"@teambit/generator": "1.0.
|
|
23
|
-
"@teambit/install": "1.0.
|
|
24
|
-
"@teambit/lanes": "1.0.
|
|
25
|
-
"@teambit/merging": "1.0.
|
|
26
|
-
"@teambit/remove": "1.0.
|
|
27
|
-
"@teambit/snapping": "1.0.
|
|
28
|
-
"@teambit/workspace": "1.0.
|
|
29
|
-
"@teambit/cli": "0.0.
|
|
30
|
-
"@teambit/component": "1.0.
|
|
31
|
-
"@teambit/express": "0.0.
|
|
32
|
-
"@teambit/importer": "1.0.
|
|
33
|
-
"@teambit/logger": "0.0.
|
|
34
|
-
"@teambit/watcher": "1.0.
|
|
17
|
+
"@teambit/checkout": "1.0.227",
|
|
18
|
+
"@teambit/component-compare": "1.0.227",
|
|
19
|
+
"@teambit/component-log": "1.0.227",
|
|
20
|
+
"@teambit/config": "0.0.978",
|
|
21
|
+
"@teambit/export": "1.0.227",
|
|
22
|
+
"@teambit/generator": "1.0.228",
|
|
23
|
+
"@teambit/install": "1.0.227",
|
|
24
|
+
"@teambit/lanes": "1.0.227",
|
|
25
|
+
"@teambit/merging": "1.0.227",
|
|
26
|
+
"@teambit/remove": "1.0.227",
|
|
27
|
+
"@teambit/snapping": "1.0.227",
|
|
28
|
+
"@teambit/workspace": "1.0.227",
|
|
29
|
+
"@teambit/cli": "0.0.860",
|
|
30
|
+
"@teambit/component": "1.0.227",
|
|
31
|
+
"@teambit/express": "0.0.959",
|
|
32
|
+
"@teambit/importer": "1.0.227",
|
|
33
|
+
"@teambit/logger": "0.0.953",
|
|
34
|
+
"@teambit/watcher": "1.0.227"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/fs-extra": "9.0.7",
|
|
38
38
|
"@types/lodash": "4.14.165",
|
|
39
39
|
"@types/mocha": "9.1.0",
|
|
40
40
|
"chai": "4.3.0",
|
|
41
|
-
"@teambit/harmony.envs.core-aspect-env": "0.0.
|
|
41
|
+
"@teambit/harmony.envs.core-aspect-env": "0.0.30"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"@teambit/legacy": "1.0.624"
|
package/tsconfig.json
CHANGED
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
"emitDeclarationOnly": true,
|
|
21
21
|
"strict": true,
|
|
22
22
|
"strictPropertyInitialization": false,
|
|
23
|
-
"noImplicitAny": false
|
|
23
|
+
"noImplicitAny": false,
|
|
24
|
+
"composite": true
|
|
24
25
|
},
|
|
25
26
|
"exclude": [
|
|
26
27
|
"artifacts",
|
|
@@ -35,5 +36,61 @@
|
|
|
35
36
|
"include": [
|
|
36
37
|
"**/*",
|
|
37
38
|
"**/*.json"
|
|
39
|
+
],
|
|
40
|
+
"references": [
|
|
41
|
+
{
|
|
42
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_checkout@1.0.227"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component-compare@1.0.227"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component-log@1.0.227"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_config@0.0.978"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.scope_export@1.0.227"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.generator_generator@1.0.228"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_install@1.0.227"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.lanes_lanes@1.0.227"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_merging@1.0.227"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_remove@1.0.227"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_snapping@1.0.227"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_workspace@1.0.227"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_cli@0.0.860"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component@1.0.227"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_express@0.0.959"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.scope_importer@1.0.227"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_logger@0.0.953"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_watcher@1.0.227"
|
|
94
|
+
}
|
|
38
95
|
]
|
|
39
96
|
}
|
package/dist/api-for-ide.d.ts
DELETED
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
import { CompFiles, Workspace, FilesStatus } from '@teambit/workspace';
|
|
2
|
-
import { PathOsBasedAbsolute, PathOsBasedRelative } from '@teambit/legacy/dist/utils/path';
|
|
3
|
-
import { SnappingMain } from '@teambit/snapping';
|
|
4
|
-
import { LanesMain } from '@teambit/lanes';
|
|
5
|
-
import { InstallMain } from '@teambit/install';
|
|
6
|
-
import { ExportMain } from '@teambit/export';
|
|
7
|
-
import { CheckoutMain } from '@teambit/checkout';
|
|
8
|
-
import { ComponentLogMain, FileHashDiffFromParent } from '@teambit/component-log';
|
|
9
|
-
import { Log } from '@teambit/legacy/dist/scope/models/lane';
|
|
10
|
-
import { ComponentCompareMain } from '@teambit/component-compare';
|
|
11
|
-
import { GeneratorMain } from '@teambit/generator';
|
|
12
|
-
import { RemoveMain } from '@teambit/remove';
|
|
13
|
-
import { ConfigMain } from '@teambit/config';
|
|
14
|
-
type PathLinux = string;
|
|
15
|
-
type PathFromLastSnap = {
|
|
16
|
-
[relativeToWorkspace: PathLinux]: string;
|
|
17
|
-
};
|
|
18
|
-
type InitSCMEntry = {
|
|
19
|
-
filesStatus: FilesStatus;
|
|
20
|
-
pathsFromLastSnap: PathFromLastSnap;
|
|
21
|
-
compDir: PathLinux;
|
|
22
|
-
};
|
|
23
|
-
type DataToInitSCM = {
|
|
24
|
-
[compId: string]: InitSCMEntry;
|
|
25
|
-
};
|
|
26
|
-
type LaneObj = {
|
|
27
|
-
name: string;
|
|
28
|
-
scope: string;
|
|
29
|
-
id: string;
|
|
30
|
-
log: Log;
|
|
31
|
-
components: Array<{
|
|
32
|
-
id: string;
|
|
33
|
-
head: string;
|
|
34
|
-
}>;
|
|
35
|
-
isNew: boolean;
|
|
36
|
-
forkedFrom?: string;
|
|
37
|
-
};
|
|
38
|
-
type ModifiedByConfig = {
|
|
39
|
-
id: string;
|
|
40
|
-
version: string;
|
|
41
|
-
dependencies?: {
|
|
42
|
-
workspace: string[];
|
|
43
|
-
scope: string[];
|
|
44
|
-
};
|
|
45
|
-
aspects?: {
|
|
46
|
-
workspace: Record<string, any>;
|
|
47
|
-
scope: Record<string, any>;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
type WorkspaceHistory = {
|
|
51
|
-
current: PathOsBasedAbsolute;
|
|
52
|
-
history: Array<{
|
|
53
|
-
path: PathOsBasedAbsolute;
|
|
54
|
-
fileId: string;
|
|
55
|
-
reason?: string;
|
|
56
|
-
}>;
|
|
57
|
-
};
|
|
58
|
-
export declare class APIForIDE {
|
|
59
|
-
private workspace;
|
|
60
|
-
private snapping;
|
|
61
|
-
private lanes;
|
|
62
|
-
private installer;
|
|
63
|
-
private exporter;
|
|
64
|
-
private checkout;
|
|
65
|
-
private componentLog;
|
|
66
|
-
private componentCompare;
|
|
67
|
-
private generator;
|
|
68
|
-
private remove;
|
|
69
|
-
private config;
|
|
70
|
-
constructor(workspace: Workspace, snapping: SnappingMain, lanes: LanesMain, installer: InstallMain, exporter: ExportMain, checkout: CheckoutMain, componentLog: ComponentLogMain, componentCompare: ComponentCompareMain, generator: GeneratorMain, remove: RemoveMain, config: ConfigMain);
|
|
71
|
-
logStartCmdHistory(op: string): Promise<void>;
|
|
72
|
-
logFinishCmdHistory(op: string, code: number): Promise<void>;
|
|
73
|
-
private writeToCmdHistory;
|
|
74
|
-
listIdsWithPaths(): Promise<{}>;
|
|
75
|
-
getMainFilePath(id: string): Promise<PathOsBasedAbsolute>;
|
|
76
|
-
getWorkspaceHistory(): Promise<WorkspaceHistory>;
|
|
77
|
-
getConfigHistory(): Promise<WorkspaceHistory>;
|
|
78
|
-
importLane(laneName: string, { skipDependencyInstallation }: {
|
|
79
|
-
skipDependencyInstallation?: boolean;
|
|
80
|
-
}): Promise<string[]>;
|
|
81
|
-
getCurrentLaneObject(): Promise<LaneObj | undefined>;
|
|
82
|
-
listLanes(): Promise<import("@teambit/legacy/dist/scope/lanes/lanes").LaneData[]>;
|
|
83
|
-
createLane(name: string): Promise<import("@teambit/lanes").CreateLaneResult>;
|
|
84
|
-
getCompFiles(id: string): Promise<{
|
|
85
|
-
dirAbs: string;
|
|
86
|
-
filesRelative: PathOsBasedRelative[];
|
|
87
|
-
}>;
|
|
88
|
-
getCompFilesDirPathFromLastSnap(id: string): Promise<{
|
|
89
|
-
[relativePath: string]: string;
|
|
90
|
-
}>;
|
|
91
|
-
catObject(hash: string): Promise<string>;
|
|
92
|
-
logFile(filePath: string): Promise<import("@teambit/component-log/component-log.main.runtime").FileLog[]>;
|
|
93
|
-
changedFilesFromParent(id: string): Promise<FileHashDiffFromParent[]>;
|
|
94
|
-
getConfigForDiff(id: string): Promise<{
|
|
95
|
-
version?: string | undefined;
|
|
96
|
-
dependencies?: string[] | undefined;
|
|
97
|
-
aspects?: Record<string, any> | undefined;
|
|
98
|
-
}>;
|
|
99
|
-
setDefaultScope(scopeName: string): Promise<string>;
|
|
100
|
-
getCompFilesDirPathFromLastSnapUsingCompFiles(compFiles: CompFiles): Promise<{
|
|
101
|
-
[relativePath: string]: string;
|
|
102
|
-
}>;
|
|
103
|
-
warmWorkspaceCache(): Promise<void>;
|
|
104
|
-
clearCache(): Promise<void>;
|
|
105
|
-
install(options?: {}): Promise<import("@teambit/component").ComponentMap<string>>;
|
|
106
|
-
export(): Promise<{
|
|
107
|
-
componentsIds: string[];
|
|
108
|
-
removedIds: string[];
|
|
109
|
-
exportedLanes: string[];
|
|
110
|
-
rippleJobs: string[];
|
|
111
|
-
}>;
|
|
112
|
-
checkoutHead(): Promise<{
|
|
113
|
-
succeed: string[] | undefined;
|
|
114
|
-
skipped: string[] | undefined;
|
|
115
|
-
failed: string[] | undefined;
|
|
116
|
-
}>;
|
|
117
|
-
getTemplates(): Promise<import("@teambit/generator/generator.main.runtime").TemplateDescriptor[]>;
|
|
118
|
-
createComponent(templateName: string, idIncludeScope: string): Promise<import("@teambit/generator").GenerateResult[]>;
|
|
119
|
-
removeComponent(id: string): Promise<import("@teambit/legacy/dist/scope/removed-components").RemovedObjectSerialized>;
|
|
120
|
-
switchLane(name: string): Promise<{
|
|
121
|
-
succeed: string[] | undefined;
|
|
122
|
-
skipped: string[] | undefined;
|
|
123
|
-
failed: string[] | undefined;
|
|
124
|
-
}>;
|
|
125
|
-
private adjustCheckoutResultsToIde;
|
|
126
|
-
getModifiedByConfig(): Promise<ModifiedByConfig[]>;
|
|
127
|
-
getDataToInitSCM(): Promise<DataToInitSCM>;
|
|
128
|
-
getFilesStatus(id: string): Promise<FilesStatus>;
|
|
129
|
-
getCompFilesDirPathFromLastSnapForAllComps(): Promise<{
|
|
130
|
-
[relativePath: string]: string;
|
|
131
|
-
}>;
|
|
132
|
-
getCurrentLaneName(): string;
|
|
133
|
-
tagOrSnap(message?: string): Promise<import("@teambit/snapping").SnapResults | import("@teambit/snapping").TagResults | null>;
|
|
134
|
-
tag(message?: string): Promise<string[]>;
|
|
135
|
-
snap(message?: string): Promise<string[]>;
|
|
136
|
-
}
|
|
137
|
-
export {};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { CLIMain } from '@teambit/cli';
|
|
2
|
-
import { ExpressMain } from '@teambit/express';
|
|
3
|
-
import { Logger, LoggerMain } from '@teambit/logger';
|
|
4
|
-
import { LanesMain } from '@teambit/lanes';
|
|
5
|
-
import { RemoveMain } from '@teambit/remove';
|
|
6
|
-
import { SnappingMain } from '@teambit/snapping';
|
|
7
|
-
import { GeneratorMain } from '@teambit/generator';
|
|
8
|
-
import { ComponentCompareMain } from '@teambit/component-compare';
|
|
9
|
-
import { ComponentLogMain } from '@teambit/component-log';
|
|
10
|
-
import { WatcherMain } from '@teambit/watcher';
|
|
11
|
-
import { ConfigMain } from '@teambit/config';
|
|
12
|
-
import { ExportMain } from '@teambit/export';
|
|
13
|
-
import { CheckoutMain } from '@teambit/checkout';
|
|
14
|
-
import { InstallMain } from '@teambit/install';
|
|
15
|
-
import { ImporterMain } from '@teambit/importer';
|
|
16
|
-
import { Workspace } from '@teambit/workspace';
|
|
17
|
-
export declare class ApiServerMain {
|
|
18
|
-
private workspace;
|
|
19
|
-
private logger;
|
|
20
|
-
private express;
|
|
21
|
-
private watcher;
|
|
22
|
-
private installer;
|
|
23
|
-
private importer;
|
|
24
|
-
constructor(workspace: Workspace, logger: Logger, express: ExpressMain, watcher: WatcherMain, installer: InstallMain, importer: ImporterMain);
|
|
25
|
-
runApiServer(options: {
|
|
26
|
-
port: number;
|
|
27
|
-
compile: boolean;
|
|
28
|
-
}): Promise<unknown>;
|
|
29
|
-
static dependencies: import("@teambit/harmony").Aspect[];
|
|
30
|
-
static runtime: import("@teambit/harmony").RuntimeDefinition;
|
|
31
|
-
static provider([cli, workspace, loggerMain, express, watcher, snapping, lanes, installer, exporter, checkout, componentLog, importer, componentCompare, generator, remove, config,]: [
|
|
32
|
-
CLIMain,
|
|
33
|
-
Workspace,
|
|
34
|
-
LoggerMain,
|
|
35
|
-
ExpressMain,
|
|
36
|
-
WatcherMain,
|
|
37
|
-
SnappingMain,
|
|
38
|
-
LanesMain,
|
|
39
|
-
InstallMain,
|
|
40
|
-
ExportMain,
|
|
41
|
-
CheckoutMain,
|
|
42
|
-
ComponentLogMain,
|
|
43
|
-
ImporterMain,
|
|
44
|
-
ComponentCompareMain,
|
|
45
|
-
GeneratorMain,
|
|
46
|
-
RemoveMain,
|
|
47
|
-
ConfigMain
|
|
48
|
-
]): Promise<ApiServerMain>;
|
|
49
|
-
}
|
|
50
|
-
export default ApiServerMain;
|
package/dist/cli.route.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { CLIMain } from '@teambit/cli';
|
|
2
|
-
import { Route, Request, Response } from '@teambit/express';
|
|
3
|
-
import { Logger } from '@teambit/logger';
|
|
4
|
-
import { APIForIDE } from './api-for-ide';
|
|
5
|
-
/**
|
|
6
|
-
* example usage:
|
|
7
|
-
* post to http://localhost:3000/api/cli/list
|
|
8
|
-
* with the following json as the body
|
|
9
|
-
*
|
|
10
|
-
{
|
|
11
|
-
"args": ["teambit.workspace"],
|
|
12
|
-
"options": {
|
|
13
|
-
"ids": true
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
*/
|
|
17
|
-
export declare class CLIRoute implements Route {
|
|
18
|
-
private logger;
|
|
19
|
-
private cli;
|
|
20
|
-
private apiForIDE;
|
|
21
|
-
constructor(logger: Logger, cli: CLIMain, apiForIDE: APIForIDE);
|
|
22
|
-
method: string;
|
|
23
|
-
route: string;
|
|
24
|
-
middlewares: ((req: Request, res: Response) => Promise<void>)[];
|
|
25
|
-
}
|
package/dist/ide.route.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Route, Request, Response } from '@teambit/express';
|
|
2
|
-
import { Logger } from '@teambit/logger';
|
|
3
|
-
import { APIForIDE } from './api-for-ide';
|
|
4
|
-
/**
|
|
5
|
-
* example usage:
|
|
6
|
-
* post to http://localhost:3000/api/ide/list-dirs
|
|
7
|
-
* with the following json as the body
|
|
8
|
-
*
|
|
9
|
-
{
|
|
10
|
-
"args": ["some-args"]
|
|
11
|
-
}
|
|
12
|
-
*/
|
|
13
|
-
export declare class IDERoute implements Route {
|
|
14
|
-
private logger;
|
|
15
|
-
private apiForIDE;
|
|
16
|
-
constructor(logger: Logger, apiForIDE: APIForIDE);
|
|
17
|
-
method: string;
|
|
18
|
-
route: string;
|
|
19
|
-
middlewares: ((req: Request, res: Response) => Promise<void>)[];
|
|
20
|
-
}
|
package/dist/index.d.ts
DELETED
package/dist/server.cmd.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Command, CommandOptions } from '@teambit/cli';
|
|
2
|
-
import { ApiServerMain } from './api-server.main.runtime';
|
|
3
|
-
export declare class ServerCmd implements Command {
|
|
4
|
-
private apiServer;
|
|
5
|
-
name: string;
|
|
6
|
-
description: string;
|
|
7
|
-
alias: string;
|
|
8
|
-
commands: Command[];
|
|
9
|
-
group: string;
|
|
10
|
-
options: CommandOptions;
|
|
11
|
-
constructor(apiServer: ApiServerMain);
|
|
12
|
-
wait(args: any, options: {
|
|
13
|
-
port: number;
|
|
14
|
-
compile: boolean;
|
|
15
|
-
}): Promise<void>;
|
|
16
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { CLIMain } from '@teambit/cli';
|
|
2
|
-
import { Route, Request, Response } from '@teambit/express';
|
|
3
|
-
import { Logger } from '@teambit/logger';
|
|
4
|
-
type EventName = 'onComponentChange' | 'onBitmapChange' | 'onWorkspaceConfigChange' | 'onPostInstall';
|
|
5
|
-
export declare function sendEventsToClients(eventName: EventName, data: any): void;
|
|
6
|
-
/**
|
|
7
|
-
* Server-Sent Events (SSE).
|
|
8
|
-
*/
|
|
9
|
-
export declare class SSEEventsRoute implements Route {
|
|
10
|
-
private logger;
|
|
11
|
-
private cli;
|
|
12
|
-
constructor(logger: Logger, cli: CLIMain);
|
|
13
|
-
method: string;
|
|
14
|
-
route: string;
|
|
15
|
-
middlewares: ((request: Request, response: Response) => Promise<void>)[];
|
|
16
|
-
}
|
|
17
|
-
export {};
|
|
File without changes
|