@teambit/component 1.0.281 → 1.0.282

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.
@@ -745,13 +745,51 @@
745
745
  "line": 96,
746
746
  "character": 3
747
747
  },
748
+ "signature": "(getter) Component.homepage: string | undefined",
749
+ "name": "homepage",
750
+ "type": {
751
+ "__schema": "TypeUnionSchema",
752
+ "location": {
753
+ "filePath": "component.ts",
754
+ "line": 96,
755
+ "character": 19
756
+ },
757
+ "types": [
758
+ {
759
+ "__schema": "KeywordTypeSchema",
760
+ "location": {
761
+ "filePath": "component.ts",
762
+ "line": 96,
763
+ "character": 19
764
+ },
765
+ "name": "string"
766
+ },
767
+ {
768
+ "__schema": "KeywordTypeSchema",
769
+ "location": {
770
+ "filePath": "component.ts",
771
+ "line": 96,
772
+ "character": 28
773
+ },
774
+ "name": "undefined"
775
+ }
776
+ ]
777
+ }
778
+ },
779
+ {
780
+ "__schema": "GetAccessorSchema",
781
+ "location": {
782
+ "filePath": "component.ts",
783
+ "line": 100,
784
+ "character": 3
785
+ },
748
786
  "signature": "(getter) Component.headTag: Tag | undefined",
749
787
  "name": "headTag",
750
788
  "type": {
751
789
  "__schema": "InferenceTypeSchema",
752
790
  "location": {
753
791
  "filePath": "component.ts",
754
- "line": 96,
792
+ "line": 100,
755
793
  "character": 3
756
794
  },
757
795
  "type": "Tag | undefined"
@@ -761,7 +799,7 @@
761
799
  "__schema": "GetAccessorSchema",
762
800
  "location": {
763
801
  "filePath": "component.ts",
764
- "line": 101,
802
+ "line": 105,
765
803
  "character": 3
766
804
  },
767
805
  "signature": "(getter) Component.latest: string | undefined",
@@ -770,7 +808,7 @@
770
808
  "__schema": "TypeUnionSchema",
771
809
  "location": {
772
810
  "filePath": "component.ts",
773
- "line": 101,
811
+ "line": 105,
774
812
  "character": 17
775
813
  },
776
814
  "types": [
@@ -778,7 +816,7 @@
778
816
  "__schema": "KeywordTypeSchema",
779
817
  "location": {
780
818
  "filePath": "component.ts",
781
- "line": 101,
819
+ "line": 105,
782
820
  "character": 17
783
821
  },
784
822
  "name": "string"
@@ -787,7 +825,7 @@
787
825
  "__schema": "KeywordTypeSchema",
788
826
  "location": {
789
827
  "filePath": "component.ts",
790
- "line": 101,
828
+ "line": 105,
791
829
  "character": 26
792
830
  },
793
831
  "name": "undefined"
@@ -799,14 +837,14 @@
799
837
  "__schema": "FunctionLikeSchema",
800
838
  "location": {
801
839
  "filePath": "component.ts",
802
- "line": 116,
840
+ "line": 120,
803
841
  "character": 3
804
842
  },
805
843
  "doc": {
806
844
  "__schema": "DocSchema",
807
845
  "location": {
808
846
  "filePath": "component.ts",
809
- "line": 113,
847
+ "line": 117,
810
848
  "character": 3
811
849
  },
812
850
  "raw": "/**\n * get aspect data from current state.\n */",
@@ -819,7 +857,7 @@
819
857
  "__schema": "ParameterSchema",
820
858
  "location": {
821
859
  "filePath": "component.ts",
822
- "line": 116,
860
+ "line": 120,
823
861
  "character": 7
824
862
  },
825
863
  "name": "id",
@@ -827,7 +865,7 @@
827
865
  "__schema": "KeywordTypeSchema",
828
866
  "location": {
829
867
  "filePath": "component.ts",
830
- "line": 116,
868
+ "line": 120,
831
869
  "character": 11
832
870
  },
833
871
  "name": "string"
@@ -840,7 +878,7 @@
840
878
  "__schema": "TypeUnionSchema",
841
879
  "location": {
842
880
  "filePath": "component.ts",
843
- "line": 116,
881
+ "line": 120,
844
882
  "character": 20
845
883
  },
846
884
  "types": [
@@ -848,7 +886,7 @@
848
886
  "__schema": "TypeRefSchema",
849
887
  "location": {
850
888
  "filePath": "component.ts",
851
- "line": 116,
889
+ "line": 120,
852
890
  "character": 20
853
891
  },
854
892
  "name": "RawComponentMetadata",
@@ -858,7 +896,7 @@
858
896
  "__schema": "KeywordTypeSchema",
859
897
  "location": {
860
898
  "filePath": "component.ts",
861
- "line": 116,
899
+ "line": 120,
862
900
  "character": 43
863
901
  },
864
902
  "name": "undefined"
@@ -871,7 +909,7 @@
871
909
  "__schema": "FunctionLikeSchema",
872
910
  "location": {
873
911
  "filePath": "component.ts",
874
- "line": 120,
912
+ "line": 124,
875
913
  "character": 3
876
914
  },
877
915
  "signature": "(method) Component.getLogs(filter?: {\n type?: string;\n offset?: number;\n limit?: number;\n head?: string;\n sort?: string;\n}): Promise<ComponentLog[]>",
@@ -881,7 +919,7 @@
881
919
  "__schema": "ParameterSchema",
882
920
  "location": {
883
921
  "filePath": "component.ts",
884
- "line": 120,
922
+ "line": 124,
885
923
  "character": 17
886
924
  },
887
925
  "name": "filter",
@@ -889,7 +927,7 @@
889
927
  "__schema": "TypeLiteralSchema",
890
928
  "location": {
891
929
  "filePath": "component.ts",
892
- "line": 120,
930
+ "line": 124,
893
931
  "character": 26
894
932
  },
895
933
  "members": [
@@ -897,7 +935,7 @@
897
935
  "__schema": "VariableLikeSchema",
898
936
  "location": {
899
937
  "filePath": "component.ts",
900
- "line": 121,
938
+ "line": 125,
901
939
  "character": 5
902
940
  },
903
941
  "signature": "(property) type?: string | undefined",
@@ -906,7 +944,7 @@
906
944
  "__schema": "KeywordTypeSchema",
907
945
  "location": {
908
946
  "filePath": "component.ts",
909
- "line": 121,
947
+ "line": 125,
910
948
  "character": 12
911
949
  },
912
950
  "name": "string"
@@ -917,7 +955,7 @@
917
955
  "__schema": "VariableLikeSchema",
918
956
  "location": {
919
957
  "filePath": "component.ts",
920
- "line": 122,
958
+ "line": 126,
921
959
  "character": 5
922
960
  },
923
961
  "signature": "(property) offset?: number | undefined",
@@ -926,7 +964,7 @@
926
964
  "__schema": "KeywordTypeSchema",
927
965
  "location": {
928
966
  "filePath": "component.ts",
929
- "line": 122,
967
+ "line": 126,
930
968
  "character": 14
931
969
  },
932
970
  "name": "number"
@@ -937,7 +975,7 @@
937
975
  "__schema": "VariableLikeSchema",
938
976
  "location": {
939
977
  "filePath": "component.ts",
940
- "line": 123,
978
+ "line": 127,
941
979
  "character": 5
942
980
  },
943
981
  "signature": "(property) limit?: number | undefined",
@@ -946,7 +984,7 @@
946
984
  "__schema": "KeywordTypeSchema",
947
985
  "location": {
948
986
  "filePath": "component.ts",
949
- "line": 123,
987
+ "line": 127,
950
988
  "character": 13
951
989
  },
952
990
  "name": "number"
@@ -957,7 +995,7 @@
957
995
  "__schema": "VariableLikeSchema",
958
996
  "location": {
959
997
  "filePath": "component.ts",
960
- "line": 124,
998
+ "line": 128,
961
999
  "character": 5
962
1000
  },
963
1001
  "signature": "(property) head?: string | undefined",
@@ -966,7 +1004,7 @@
966
1004
  "__schema": "KeywordTypeSchema",
967
1005
  "location": {
968
1006
  "filePath": "component.ts",
969
- "line": 124,
1007
+ "line": 128,
970
1008
  "character": 12
971
1009
  },
972
1010
  "name": "string"
@@ -977,7 +1015,7 @@
977
1015
  "__schema": "VariableLikeSchema",
978
1016
  "location": {
979
1017
  "filePath": "component.ts",
980
- "line": 125,
1018
+ "line": 129,
981
1019
  "character": 5
982
1020
  },
983
1021
  "signature": "(property) sort?: string | undefined",
@@ -986,7 +1024,7 @@
986
1024
  "__schema": "KeywordTypeSchema",
987
1025
  "location": {
988
1026
  "filePath": "component.ts",
989
- "line": 125,
1027
+ "line": 129,
990
1028
  "character": 12
991
1029
  },
992
1030
  "name": "string"
@@ -1003,7 +1041,7 @@
1003
1041
  "__schema": "TypeRefSchema",
1004
1042
  "location": {
1005
1043
  "filePath": "component.ts",
1006
- "line": 126,
1044
+ "line": 130,
1007
1045
  "character": 7
1008
1046
  },
1009
1047
  "name": "Promise",
@@ -1012,14 +1050,14 @@
1012
1050
  "__schema": "TypeArraySchema",
1013
1051
  "location": {
1014
1052
  "filePath": "component.ts",
1015
- "line": 126,
1053
+ "line": 130,
1016
1054
  "character": 15
1017
1055
  },
1018
1056
  "type": {
1019
1057
  "__schema": "TypeRefSchema",
1020
1058
  "location": {
1021
1059
  "filePath": "component.ts",
1022
- "line": 126,
1060
+ "line": 130,
1023
1061
  "character": 15
1024
1062
  },
1025
1063
  "name": "ComponentLog",
@@ -1036,7 +1074,7 @@
1036
1074
  "__schema": "FunctionLikeSchema",
1037
1075
  "location": {
1038
1076
  "filePath": "component.ts",
1039
- "line": 149,
1077
+ "line": 153,
1040
1078
  "character": 3
1041
1079
  },
1042
1080
  "signature": "(method) Component.getDependencies(): DependencyList",
@@ -1046,7 +1084,7 @@
1046
1084
  "__schema": "TypeRefSchema",
1047
1085
  "location": {
1048
1086
  "filePath": "component.ts",
1049
- "line": 149,
1087
+ "line": 153,
1050
1088
  "character": 3
1051
1089
  },
1052
1090
  "name": "DependencyList",
@@ -1061,7 +1099,7 @@
1061
1099
  "__schema": "FunctionLikeSchema",
1062
1100
  "location": {
1063
1101
  "filePath": "component.ts",
1064
- "line": 153,
1102
+ "line": 157,
1065
1103
  "character": 3
1066
1104
  },
1067
1105
  "signature": "(method) Component.getPackageName(): string",
@@ -1071,7 +1109,7 @@
1071
1109
  "__schema": "KeywordTypeSchema",
1072
1110
  "location": {
1073
1111
  "filePath": "component.ts",
1074
- "line": 153,
1112
+ "line": 157,
1075
1113
  "character": 21
1076
1114
  },
1077
1115
  "name": "string"
@@ -1082,7 +1120,7 @@
1082
1120
  "__schema": "FunctionLikeSchema",
1083
1121
  "location": {
1084
1122
  "filePath": "component.ts",
1085
- "line": 157,
1123
+ "line": 161,
1086
1124
  "character": 3
1087
1125
  },
1088
1126
  "signature": "(method) Component.stringify(): string",
@@ -1092,7 +1130,7 @@
1092
1130
  "__schema": "KeywordTypeSchema",
1093
1131
  "location": {
1094
1132
  "filePath": "component.ts",
1095
- "line": 157,
1133
+ "line": 161,
1096
1134
  "character": 16
1097
1135
  },
1098
1136
  "name": "string"
@@ -1103,7 +1141,7 @@
1103
1141
  "__schema": "GetAccessorSchema",
1104
1142
  "location": {
1105
1143
  "filePath": "component.ts",
1106
- "line": 177,
1144
+ "line": 181,
1107
1145
  "character": 3
1108
1146
  },
1109
1147
  "signature": "(getter) Component.displayName: string",
@@ -1112,7 +1150,7 @@
1112
1150
  "__schema": "InferenceTypeSchema",
1113
1151
  "location": {
1114
1152
  "filePath": "component.ts",
1115
- "line": 177,
1153
+ "line": 181,
1116
1154
  "character": 3
1117
1155
  },
1118
1156
  "type": "string"
@@ -1122,14 +1160,14 @@
1122
1160
  "__schema": "FunctionLikeSchema",
1123
1161
  "location": {
1124
1162
  "filePath": "component.ts",
1125
- "line": 186,
1163
+ "line": 190,
1126
1164
  "character": 3
1127
1165
  },
1128
1166
  "doc": {
1129
1167
  "__schema": "DocSchema",
1130
1168
  "location": {
1131
1169
  "filePath": "component.ts",
1132
- "line": 182,
1170
+ "line": 186,
1133
1171
  "character": 3
1134
1172
  },
1135
1173
  "raw": "/**\n * tag a component `Snap` with a semantic version. we follow SemVer specs as defined [here](https://semver.org/)).\n */",
@@ -1142,7 +1180,7 @@
1142
1180
  "__schema": "ParameterSchema",
1143
1181
  "location": {
1144
1182
  "filePath": "component.ts",
1145
- "line": 186,
1183
+ "line": 190,
1146
1184
  "character": 7
1147
1185
  },
1148
1186
  "name": "version",
@@ -1150,7 +1188,7 @@
1150
1188
  "__schema": "TypeRefSchema",
1151
1189
  "location": {
1152
1190
  "filePath": "component.ts",
1153
- "line": 186,
1191
+ "line": 190,
1154
1192
  "character": 16
1155
1193
  },
1156
1194
  "name": "SemVer",
@@ -1164,7 +1202,7 @@
1164
1202
  "__schema": "InferenceTypeSchema",
1165
1203
  "location": {
1166
1204
  "filePath": "component.ts",
1167
- "line": 186,
1205
+ "line": 190,
1168
1206
  "character": 3
1169
1207
  },
1170
1208
  "type": "void"
@@ -1175,14 +1213,14 @@
1175
1213
  "__schema": "FunctionLikeSchema",
1176
1214
  "location": {
1177
1215
  "filePath": "component.ts",
1178
- "line": 195,
1216
+ "line": 199,
1179
1217
  "character": 3
1180
1218
  },
1181
1219
  "doc": {
1182
1220
  "__schema": "DocSchema",
1183
1221
  "location": {
1184
1222
  "filePath": "component.ts",
1185
- "line": 192,
1223
+ "line": 196,
1186
1224
  "character": 3
1187
1225
  },
1188
1226
  "raw": "/**\n * determines whether this component is modified in the workspace.\n */",
@@ -1195,7 +1233,7 @@
1195
1233
  "__schema": "TypeRefSchema",
1196
1234
  "location": {
1197
1235
  "filePath": "component.ts",
1198
- "line": 195,
1236
+ "line": 199,
1199
1237
  "character": 17
1200
1238
  },
1201
1239
  "name": "Promise",
@@ -1204,7 +1242,7 @@
1204
1242
  "__schema": "KeywordTypeSchema",
1205
1243
  "location": {
1206
1244
  "filePath": "component.ts",
1207
- "line": 195,
1245
+ "line": 199,
1208
1246
  "character": 25
1209
1247
  },
1210
1248
  "name": "boolean"
@@ -1217,14 +1255,14 @@
1217
1255
  "__schema": "FunctionLikeSchema",
1218
1256
  "location": {
1219
1257
  "filePath": "component.ts",
1220
- "line": 204,
1258
+ "line": 208,
1221
1259
  "character": 3
1222
1260
  },
1223
1261
  "doc": {
1224
1262
  "__schema": "DocSchema",
1225
1263
  "location": {
1226
1264
  "filePath": "component.ts",
1227
- "line": 199,
1265
+ "line": 203,
1228
1266
  "character": 3
1229
1267
  },
1230
1268
  "raw": "/**\n * whether a component is marked as deleted.\n * warning! if this component is not the head, it might be deleted by a range later on.\n * to get accurate results, please use teambit.component/remove aspect, \"isDeleted\" method.\n */",
@@ -1237,7 +1275,7 @@
1237
1275
  "__schema": "KeywordTypeSchema",
1238
1276
  "location": {
1239
1277
  "filePath": "component.ts",
1240
- "line": 204,
1278
+ "line": 208,
1241
1279
  "character": 16
1242
1280
  },
1243
1281
  "name": "boolean"
@@ -1248,14 +1286,14 @@
1248
1286
  "__schema": "FunctionLikeSchema",
1249
1287
  "location": {
1250
1288
  "filePath": "component.ts",
1251
- "line": 211,
1289
+ "line": 215,
1252
1290
  "character": 3
1253
1291
  },
1254
1292
  "doc": {
1255
1293
  "__schema": "DocSchema",
1256
1294
  "location": {
1257
1295
  "filePath": "component.ts",
1258
- "line": 208,
1296
+ "line": 212,
1259
1297
  "character": 3
1260
1298
  },
1261
1299
  "raw": "/**\n * is component isOutdated\n */",
@@ -1268,7 +1306,7 @@
1268
1306
  "__schema": "KeywordTypeSchema",
1269
1307
  "location": {
1270
1308
  "filePath": "component.ts",
1271
- "line": 211,
1309
+ "line": 215,
1272
1310
  "character": 17
1273
1311
  },
1274
1312
  "name": "boolean"
@@ -1279,14 +1317,14 @@
1279
1317
  "__schema": "FunctionLikeSchema",
1280
1318
  "location": {
1281
1319
  "filePath": "component.ts",
1282
- "line": 222,
1320
+ "line": 226,
1283
1321
  "character": 3
1284
1322
  },
1285
1323
  "doc": {
1286
1324
  "__schema": "DocSchema",
1287
1325
  "location": {
1288
1326
  "filePath": "component.ts",
1289
- "line": 219,
1327
+ "line": 223,
1290
1328
  "character": 3
1291
1329
  },
1292
1330
  "raw": "/**\n * determines whether this component is new.\n */",
@@ -1299,7 +1337,7 @@
1299
1337
  "__schema": "TypeRefSchema",
1300
1338
  "location": {
1301
1339
  "filePath": "component.ts",
1302
- "line": 222,
1340
+ "line": 226,
1303
1341
  "character": 12
1304
1342
  },
1305
1343
  "name": "Promise",
@@ -1308,7 +1346,7 @@
1308
1346
  "__schema": "KeywordTypeSchema",
1309
1347
  "location": {
1310
1348
  "filePath": "component.ts",
1311
- "line": 222,
1349
+ "line": 226,
1312
1350
  "character": 20
1313
1351
  },
1314
1352
  "name": "boolean"
@@ -1321,7 +1359,38 @@
1321
1359
  "__schema": "FunctionLikeSchema",
1322
1360
  "location": {
1323
1361
  "filePath": "component.ts",
1324
- "line": 227,
1362
+ "line": 233,
1363
+ "character": 3
1364
+ },
1365
+ "doc": {
1366
+ "__schema": "DocSchema",
1367
+ "location": {
1368
+ "filePath": "component.ts",
1369
+ "line": 230,
1370
+ "character": 3
1371
+ },
1372
+ "raw": "/**\n * whether the component exists on the remote.\n */",
1373
+ "comment": "whether the component exists on the remote."
1374
+ },
1375
+ "signature": "(method) Component.isExported(): boolean",
1376
+ "name": "isExported",
1377
+ "params": [],
1378
+ "returnType": {
1379
+ "__schema": "KeywordTypeSchema",
1380
+ "location": {
1381
+ "filePath": "component.ts",
1382
+ "line": 233,
1383
+ "character": 17
1384
+ },
1385
+ "name": "boolean"
1386
+ },
1387
+ "modifiers": []
1388
+ },
1389
+ {
1390
+ "__schema": "FunctionLikeSchema",
1391
+ "location": {
1392
+ "filePath": "component.ts",
1393
+ "line": 238,
1325
1394
  "character": 3
1326
1395
  },
1327
1396
  "signature": "(method) Component.loadState(snapId: string): Promise<State>",
@@ -1331,7 +1400,7 @@
1331
1400
  "__schema": "ParameterSchema",
1332
1401
  "location": {
1333
1402
  "filePath": "component.ts",
1334
- "line": 227,
1403
+ "line": 238,
1335
1404
  "character": 13
1336
1405
  },
1337
1406
  "name": "snapId",
@@ -1339,7 +1408,7 @@
1339
1408
  "__schema": "KeywordTypeSchema",
1340
1409
  "location": {
1341
1410
  "filePath": "component.ts",
1342
- "line": 227,
1411
+ "line": 238,
1343
1412
  "character": 21
1344
1413
  },
1345
1414
  "name": "string"
@@ -1352,7 +1421,7 @@
1352
1421
  "__schema": "TypeRefSchema",
1353
1422
  "location": {
1354
1423
  "filePath": "component.ts",
1355
- "line": 227,
1424
+ "line": 238,
1356
1425
  "character": 30
1357
1426
  },
1358
1427
  "name": "Promise",
@@ -1361,7 +1430,7 @@
1361
1430
  "__schema": "TypeRefSchema",
1362
1431
  "location": {
1363
1432
  "filePath": "component.ts",
1364
- "line": 227,
1433
+ "line": 238,
1365
1434
  "character": 38
1366
1435
  },
1367
1436
  "name": "State"
@@ -1374,7 +1443,7 @@
1374
1443
  "__schema": "FunctionLikeSchema",
1375
1444
  "location": {
1376
1445
  "filePath": "component.ts",
1377
- "line": 231,
1446
+ "line": 242,
1378
1447
  "character": 3
1379
1448
  },
1380
1449
  "signature": "(method) Component.loadSnap(snapId?: string): Promise<Snap>",
@@ -1384,7 +1453,7 @@
1384
1453
  "__schema": "ParameterSchema",
1385
1454
  "location": {
1386
1455
  "filePath": "component.ts",
1387
- "line": 231,
1456
+ "line": 242,
1388
1457
  "character": 12
1389
1458
  },
1390
1459
  "name": "snapId",
@@ -1392,7 +1461,7 @@
1392
1461
  "__schema": "KeywordTypeSchema",
1393
1462
  "location": {
1394
1463
  "filePath": "component.ts",
1395
- "line": 231,
1464
+ "line": 242,
1396
1465
  "character": 21
1397
1466
  },
1398
1467
  "name": "string"
@@ -1405,7 +1474,7 @@
1405
1474
  "__schema": "TypeRefSchema",
1406
1475
  "location": {
1407
1476
  "filePath": "component.ts",
1408
- "line": 231,
1477
+ "line": 242,
1409
1478
  "character": 30
1410
1479
  },
1411
1480
  "name": "Promise",
@@ -1414,7 +1483,7 @@
1414
1483
  "__schema": "TypeRefSchema",
1415
1484
  "location": {
1416
1485
  "filePath": "component.ts",
1417
- "line": 231,
1486
+ "line": 242,
1418
1487
  "character": 38
1419
1488
  },
1420
1489
  "name": "Snap"
@@ -1427,14 +1496,14 @@
1427
1496
  "__schema": "FunctionLikeSchema",
1428
1497
  "location": {
1429
1498
  "filePath": "component.ts",
1430
- "line": 244,
1499
+ "line": 255,
1431
1500
  "character": 3
1432
1501
  },
1433
1502
  "doc": {
1434
1503
  "__schema": "DocSchema",
1435
1504
  "location": {
1436
1505
  "filePath": "component.ts",
1437
- "line": 239,
1506
+ "line": 250,
1438
1507
  "character": 3
1439
1508
  },
1440
1509
  "raw": "/**\n * Get iterable which iterate over snap parents lazily\n * @param snapId\n * @param options\n */",
@@ -1444,7 +1513,7 @@
1444
1513
  "__schema": "PropertyLikeTagSchema",
1445
1514
  "location": {
1446
1515
  "filePath": "component.ts",
1447
- "line": 241,
1516
+ "line": 252,
1448
1517
  "character": 6
1449
1518
  },
1450
1519
  "name": "snapId",
@@ -1454,7 +1523,7 @@
1454
1523
  "__schema": "PropertyLikeTagSchema",
1455
1524
  "location": {
1456
1525
  "filePath": "component.ts",
1457
- "line": 242,
1526
+ "line": 253,
1458
1527
  "character": 6
1459
1528
  },
1460
1529
  "name": "options",
@@ -1469,7 +1538,7 @@
1469
1538
  "__schema": "ParameterSchema",
1470
1539
  "location": {
1471
1540
  "filePath": "component.ts",
1472
- "line": 244,
1541
+ "line": 255,
1473
1542
  "character": 17
1474
1543
  },
1475
1544
  "name": "snapId",
@@ -1477,7 +1546,7 @@
1477
1546
  "__schema": "KeywordTypeSchema",
1478
1547
  "location": {
1479
1548
  "filePath": "component.ts",
1480
- "line": 244,
1549
+ "line": 255,
1481
1550
  "character": 26
1482
1551
  },
1483
1552
  "name": "string"
@@ -1489,7 +1558,7 @@
1489
1558
  "__schema": "ParameterSchema",
1490
1559
  "location": {
1491
1560
  "filePath": "component.ts",
1492
- "line": 244,
1561
+ "line": 255,
1493
1562
  "character": 34
1494
1563
  },
1495
1564
  "name": "options",
@@ -1497,7 +1566,7 @@
1497
1566
  "__schema": "TypeRefSchema",
1498
1567
  "location": {
1499
1568
  "filePath": "component.ts",
1500
- "line": 244,
1569
+ "line": 255,
1501
1570
  "character": 43
1502
1571
  },
1503
1572
  "name": "SnapsIterableOpts",
@@ -1512,7 +1581,7 @@
1512
1581
  "__schema": "TypeRefSchema",
1513
1582
  "location": {
1514
1583
  "filePath": "component.ts",
1515
- "line": 244,
1584
+ "line": 255,
1516
1585
  "character": 68
1517
1586
  },
1518
1587
  "name": "AsyncIterable",
@@ -1521,7 +1590,7 @@
1521
1590
  "__schema": "TypeRefSchema",
1522
1591
  "location": {
1523
1592
  "filePath": "component.ts",
1524
- "line": 244,
1593
+ "line": 255,
1525
1594
  "character": 82
1526
1595
  },
1527
1596
  "name": "Snap"
@@ -1534,14 +1603,14 @@
1534
1603
  "__schema": "FunctionLikeSchema",
1535
1604
  "location": {
1536
1605
  "filePath": "component.ts",
1537
- "line": 283,
1606
+ "line": 294,
1538
1607
  "character": 3
1539
1608
  },
1540
1609
  "doc": {
1541
1610
  "__schema": "DocSchema",
1542
1611
  "location": {
1543
1612
  "filePath": "component.ts",
1544
- "line": 279,
1613
+ "line": 290,
1545
1614
  "character": 3
1546
1615
  },
1547
1616
  "raw": "/**\n * traverse recursively from the provided snap (or head) upwards until it finds a tag\n * @param snapToStartFrom\n */",
@@ -1551,7 +1620,7 @@
1551
1620
  "__schema": "PropertyLikeTagSchema",
1552
1621
  "location": {
1553
1622
  "filePath": "component.ts",
1554
- "line": 281,
1623
+ "line": 292,
1555
1624
  "character": 6
1556
1625
  },
1557
1626
  "name": "snapToStartFrom",
@@ -1566,7 +1635,7 @@
1566
1635
  "__schema": "ParameterSchema",
1567
1636
  "location": {
1568
1637
  "filePath": "component.ts",
1569
- "line": 283,
1638
+ "line": 294,
1570
1639
  "character": 23
1571
1640
  },
1572
1641
  "name": "snapToStartFrom",
@@ -1574,7 +1643,7 @@
1574
1643
  "__schema": "KeywordTypeSchema",
1575
1644
  "location": {
1576
1645
  "filePath": "component.ts",
1577
- "line": 283,
1646
+ "line": 294,
1578
1647
  "character": 41
1579
1648
  },
1580
1649
  "name": "string"
@@ -1587,7 +1656,7 @@
1587
1656
  "__schema": "TypeRefSchema",
1588
1657
  "location": {
1589
1658
  "filePath": "component.ts",
1590
- "line": 283,
1659
+ "line": 294,
1591
1660
  "character": 50
1592
1661
  },
1593
1662
  "name": "Promise",
@@ -1596,7 +1665,7 @@
1596
1665
  "__schema": "TypeUnionSchema",
1597
1666
  "location": {
1598
1667
  "filePath": "component.ts",
1599
- "line": 283,
1668
+ "line": 294,
1600
1669
  "character": 58
1601
1670
  },
1602
1671
  "types": [
@@ -1604,7 +1673,7 @@
1604
1673
  "__schema": "TypeRefSchema",
1605
1674
  "location": {
1606
1675
  "filePath": "component.ts",
1607
- "line": 283,
1676
+ "line": 294,
1608
1677
  "character": 58
1609
1678
  },
1610
1679
  "name": "Tag"
@@ -1613,7 +1682,7 @@
1613
1682
  "__schema": "KeywordTypeSchema",
1614
1683
  "location": {
1615
1684
  "filePath": "component.ts",
1616
- "line": 283,
1685
+ "line": 294,
1617
1686
  "character": 64
1618
1687
  },
1619
1688
  "name": "undefined"
@@ -1630,14 +1699,14 @@
1630
1699
  "__schema": "FunctionLikeSchema",
1631
1700
  "location": {
1632
1701
  "filePath": "component.ts",
1633
- "line": 307,
1702
+ "line": 318,
1634
1703
  "character": 3
1635
1704
  },
1636
1705
  "doc": {
1637
1706
  "__schema": "DocSchema",
1638
1707
  "location": {
1639
1708
  "filePath": "component.ts",
1640
- "line": 303,
1709
+ "line": 314,
1641
1710
  "character": 3
1642
1711
  },
1643
1712
  "raw": "/**\n * id.version can be either a tag or a hash.\n * if it's a hash, it may have a tag point to it. if it does, return the tag.\n */",
@@ -1650,7 +1719,7 @@
1650
1719
  "__schema": "TypeUnionSchema",
1651
1720
  "location": {
1652
1721
  "filePath": "component.ts",
1653
- "line": 307,
1722
+ "line": 318,
1654
1723
  "character": 13
1655
1724
  },
1656
1725
  "types": [
@@ -1658,7 +1727,7 @@
1658
1727
  "__schema": "TypeRefSchema",
1659
1728
  "location": {
1660
1729
  "filePath": "component.ts",
1661
- "line": 307,
1730
+ "line": 318,
1662
1731
  "character": 13
1663
1732
  },
1664
1733
  "name": "Tag"
@@ -1667,7 +1736,7 @@
1667
1736
  "__schema": "KeywordTypeSchema",
1668
1737
  "location": {
1669
1738
  "filePath": "component.ts",
1670
- "line": 307,
1739
+ "line": 318,
1671
1740
  "character": 19
1672
1741
  },
1673
1742
  "name": "undefined"
@@ -1680,14 +1749,14 @@
1680
1749
  "__schema": "FunctionLikeSchema",
1681
1750
  "location": {
1682
1751
  "filePath": "component.ts",
1683
- "line": 317,
1752
+ "line": 328,
1684
1753
  "character": 3
1685
1754
  },
1686
1755
  "doc": {
1687
1756
  "__schema": "DocSchema",
1688
1757
  "location": {
1689
1758
  "filePath": "component.ts",
1690
- "line": 313,
1759
+ "line": 324,
1691
1760
  "character": 3
1692
1761
  },
1693
1762
  "raw": "/**\n * id.version can be either a tag or a hash.\n * if it's a tag, find the hash it points to.\n */",
@@ -1700,7 +1769,7 @@
1700
1769
  "__schema": "TypeUnionSchema",
1701
1770
  "location": {
1702
1771
  "filePath": "component.ts",
1703
- "line": 317,
1772
+ "line": 328,
1704
1773
  "character": 18
1705
1774
  },
1706
1775
  "types": [
@@ -1708,7 +1777,7 @@
1708
1777
  "__schema": "KeywordTypeSchema",
1709
1778
  "location": {
1710
1779
  "filePath": "component.ts",
1711
- "line": 317,
1780
+ "line": 328,
1712
1781
  "character": 18
1713
1782
  },
1714
1783
  "name": "string"
@@ -1717,7 +1786,7 @@
1717
1786
  "__schema": "KeywordTypeSchema",
1718
1787
  "location": {
1719
1788
  "filePath": "component.ts",
1720
- "line": 317,
1789
+ "line": 328,
1721
1790
  "character": 27
1722
1791
  },
1723
1792
  "name": "undefined"
@@ -1730,14 +1799,14 @@
1730
1799
  "__schema": "FunctionLikeSchema",
1731
1800
  "location": {
1732
1801
  "filePath": "component.ts",
1733
- "line": 328,
1802
+ "line": 339,
1734
1803
  "character": 3
1735
1804
  },
1736
1805
  "doc": {
1737
1806
  "__schema": "DocSchema",
1738
1807
  "location": {
1739
1808
  "filePath": "component.ts",
1740
- "line": 324,
1809
+ "line": 335,
1741
1810
  "character": 3
1742
1811
  },
1743
1812
  "raw": "/**\n * in case a component is new, it returns undefined.\n * otherwise, it returns the Snap object (hash/parents/log) of the current component (according to the version in the id)\n */",
@@ -1750,7 +1819,7 @@
1750
1819
  "__schema": "TypeRefSchema",
1751
1820
  "location": {
1752
1821
  "filePath": "component.ts",
1753
- "line": 328,
1822
+ "line": 339,
1754
1823
  "character": 27
1755
1824
  },
1756
1825
  "name": "Promise",
@@ -1759,7 +1828,7 @@
1759
1828
  "__schema": "TypeUnionSchema",
1760
1829
  "location": {
1761
1830
  "filePath": "component.ts",
1762
- "line": 328,
1831
+ "line": 339,
1763
1832
  "character": 35
1764
1833
  },
1765
1834
  "types": [
@@ -1767,7 +1836,7 @@
1767
1836
  "__schema": "TypeRefSchema",
1768
1837
  "location": {
1769
1838
  "filePath": "component.ts",
1770
- "line": 328,
1839
+ "line": 339,
1771
1840
  "character": 35
1772
1841
  },
1773
1842
  "name": "Snap"
@@ -1776,7 +1845,7 @@
1776
1845
  "__schema": "KeywordTypeSchema",
1777
1846
  "location": {
1778
1847
  "filePath": "component.ts",
1779
- "line": 328,
1848
+ "line": 339,
1780
1849
  "character": 42
1781
1850
  },
1782
1851
  "name": "undefined"
@@ -1793,14 +1862,14 @@
1793
1862
  "__schema": "FunctionLikeSchema",
1794
1863
  "location": {
1795
1864
  "filePath": "component.ts",
1796
- "line": 338,
1865
+ "line": 349,
1797
1866
  "character": 3
1798
1867
  },
1799
1868
  "doc": {
1800
1869
  "__schema": "DocSchema",
1801
1870
  "location": {
1802
1871
  "filePath": "component.ts",
1803
- "line": 334,
1872
+ "line": 345,
1804
1873
  "character": 3
1805
1874
  },
1806
1875
  "raw": "/**\n * checkout the component to a different version in its working tree.\n */",
@@ -1813,7 +1882,7 @@
1813
1882
  "__schema": "ParameterSchema",
1814
1883
  "location": {
1815
1884
  "filePath": "component.ts",
1816
- "line": 338,
1885
+ "line": 349,
1817
1886
  "character": 12
1818
1887
  },
1819
1888
  "name": "version",
@@ -1821,7 +1890,7 @@
1821
1890
  "__schema": "TypeRefSchema",
1822
1891
  "location": {
1823
1892
  "filePath": "component.ts",
1824
- "line": 338,
1893
+ "line": 349,
1825
1894
  "character": 21
1826
1895
  },
1827
1896
  "name": "SemVer",
@@ -1835,7 +1904,7 @@
1835
1904
  "__schema": "InferenceTypeSchema",
1836
1905
  "location": {
1837
1906
  "filePath": "component.ts",
1838
- "line": 338,
1907
+ "line": 349,
1839
1908
  "character": 3
1840
1909
  },
1841
1910
  "type": "void"
@@ -1846,14 +1915,14 @@
1846
1915
  "__schema": "FunctionLikeSchema",
1847
1916
  "location": {
1848
1917
  "filePath": "component.ts",
1849
- "line": 356,
1918
+ "line": 367,
1850
1919
  "character": 3
1851
1920
  },
1852
1921
  "doc": {
1853
1922
  "__schema": "DocSchema",
1854
1923
  "location": {
1855
1924
  "filePath": "component.ts",
1856
- "line": 340,
1925
+ "line": 351,
1857
1926
  "character": 3
1858
1927
  },
1859
1928
  "raw": "/**\n * examine difference between two components.\n */",
@@ -1866,7 +1935,7 @@
1866
1935
  "__schema": "ParameterSchema",
1867
1936
  "location": {
1868
1937
  "filePath": "component.ts",
1869
- "line": 356,
1938
+ "line": 367,
1870
1939
  "character": 9
1871
1940
  },
1872
1941
  "name": "path",
@@ -1874,7 +1943,7 @@
1874
1943
  "__schema": "KeywordTypeSchema",
1875
1944
  "location": {
1876
1945
  "filePath": "component.ts",
1877
- "line": 356,
1946
+ "line": 367,
1878
1947
  "character": 15
1879
1948
  },
1880
1949
  "name": "string"
@@ -1886,7 +1955,7 @@
1886
1955
  "__schema": "ParameterSchema",
1887
1956
  "location": {
1888
1957
  "filePath": "component.ts",
1889
- "line": 356,
1958
+ "line": 367,
1890
1959
  "character": 23
1891
1960
  },
1892
1961
  "name": "fs",
@@ -1894,7 +1963,7 @@
1894
1963
  "__schema": "TypeRefSchema",
1895
1964
  "location": {
1896
1965
  "filePath": "component.ts",
1897
- "line": 356,
1966
+ "line": 367,
1898
1967
  "character": 28
1899
1968
  },
1900
1969
  "name": "AnyFS",
@@ -1908,7 +1977,7 @@
1908
1977
  "__schema": "InferenceTypeSchema",
1909
1978
  "location": {
1910
1979
  "filePath": "component.ts",
1911
- "line": 356,
1980
+ "line": 367,
1912
1981
  "character": 3
1913
1982
  },
1914
1983
  "type": "void"
@@ -1919,14 +1988,14 @@
1919
1988
  "__schema": "FunctionLikeSchema",
1920
1989
  "location": {
1921
1990
  "filePath": "component.ts",
1922
- "line": 366,
1991
+ "line": 377,
1923
1992
  "character": 3
1924
1993
  },
1925
1994
  "doc": {
1926
1995
  "__schema": "DocSchema",
1927
1996
  "location": {
1928
1997
  "filePath": "component.ts",
1929
- "line": 358,
1998
+ "line": 369,
1930
1999
  "character": 3
1931
2000
  },
1932
2001
  "raw": "/**\n *\n * Check if 2 components are equal\n * @param {Component} component\n * @returns {boolean}\n * @memberof Component\n */",
@@ -1936,7 +2005,7 @@
1936
2005
  "__schema": "PropertyLikeTagSchema",
1937
2006
  "location": {
1938
2007
  "filePath": "component.ts",
1939
- "line": 361,
2008
+ "line": 372,
1940
2009
  "character": 6
1941
2010
  },
1942
2011
  "name": "component",
@@ -1945,7 +2014,7 @@
1945
2014
  "__schema": "TypeRefSchema",
1946
2015
  "location": {
1947
2016
  "filePath": "component.ts",
1948
- "line": 361,
2017
+ "line": 372,
1949
2018
  "character": 14
1950
2019
  },
1951
2020
  "name": "Component"
@@ -1955,7 +2024,7 @@
1955
2024
  "__schema": "ReturnTagSchema",
1956
2025
  "location": {
1957
2026
  "filePath": "component.ts",
1958
- "line": 362,
2027
+ "line": 373,
1959
2028
  "character": 6
1960
2029
  },
1961
2030
  "tagName": "return",
@@ -1963,7 +2032,7 @@
1963
2032
  "__schema": "KeywordTypeSchema",
1964
2033
  "location": {
1965
2034
  "filePath": "component.ts",
1966
- "line": 362,
2035
+ "line": 373,
1967
2036
  "character": 16
1968
2037
  },
1969
2038
  "name": "boolean"
@@ -1973,7 +2042,7 @@
1973
2042
  "__schema": "TagSchema",
1974
2043
  "location": {
1975
2044
  "filePath": "component.ts",
1976
- "line": 363,
2045
+ "line": 374,
1977
2046
  "character": 6
1978
2047
  },
1979
2048
  "tagName": "memberof",
@@ -1988,7 +2057,7 @@
1988
2057
  "__schema": "ParameterSchema",
1989
2058
  "location": {
1990
2059
  "filePath": "component.ts",
1991
- "line": 366,
2060
+ "line": 377,
1992
2061
  "character": 10
1993
2062
  },
1994
2063
  "name": "component",
@@ -1996,7 +2065,7 @@
1996
2065
  "__schema": "TypeRefSchema",
1997
2066
  "location": {
1998
2067
  "filePath": "component.ts",
1999
- "line": 366,
2068
+ "line": 377,
2000
2069
  "character": 21
2001
2070
  },
2002
2071
  "name": "Component"
@@ -2009,7 +2078,7 @@
2009
2078
  "__schema": "KeywordTypeSchema",
2010
2079
  "location": {
2011
2080
  "filePath": "component.ts",
2012
- "line": 366,
2081
+ "line": 377,
2013
2082
  "character": 33
2014
2083
  },
2015
2084
  "name": "boolean"
@@ -2610,7 +2679,7 @@
2610
2679
  "_legacy": {
2611
2680
  "scope": "teambit.component",
2612
2681
  "name": "component",
2613
- "version": "1.0.281"
2682
+ "version": "1.0.282"
2614
2683
  },
2615
2684
  "_scope": "teambit.component"
2616
2685
  }
@@ -4732,7 +4801,7 @@
4732
4801
  "line": 171,
4733
4802
  "character": 3
4734
4803
  },
4735
- "signature": "(method) ComponentFactory.hasId(componentId: ComponentID): Promise<boolean>",
4804
+ "signature": "(method) ComponentFactory.hasId(componentId: ComponentID): Promise<boolean> | boolean",
4736
4805
  "name": "hasId",
4737
4806
  "params": [
4738
4807
  {
@@ -4762,20 +4831,39 @@
4762
4831
  }
4763
4832
  ],
4764
4833
  "returnType": {
4765
- "__schema": "TypeRefSchema",
4834
+ "__schema": "TypeUnionSchema",
4766
4835
  "location": {
4767
4836
  "filePath": "component-factory.ts",
4768
4837
  "line": 171,
4769
4838
  "character": 36
4770
4839
  },
4771
- "name": "Promise",
4772
- "typeArgs": [
4840
+ "types": [
4841
+ {
4842
+ "__schema": "TypeRefSchema",
4843
+ "location": {
4844
+ "filePath": "component-factory.ts",
4845
+ "line": 171,
4846
+ "character": 36
4847
+ },
4848
+ "name": "Promise",
4849
+ "typeArgs": [
4850
+ {
4851
+ "__schema": "KeywordTypeSchema",
4852
+ "location": {
4853
+ "filePath": "component-factory.ts",
4854
+ "line": 171,
4855
+ "character": 44
4856
+ },
4857
+ "name": "boolean"
4858
+ }
4859
+ ]
4860
+ },
4773
4861
  {
4774
4862
  "__schema": "KeywordTypeSchema",
4775
4863
  "location": {
4776
4864
  "filePath": "component-factory.ts",
4777
4865
  "line": 171,
4778
- "character": 44
4866
+ "character": 55
4779
4867
  },
4780
4868
  "name": "boolean"
4781
4869
  }
@@ -4950,7 +5038,7 @@
4950
5038
  "__schema": "FunctionLikeSchema",
4951
5039
  "location": {
4952
5040
  "filePath": "component-factory.ts",
4953
- "line": 190,
5041
+ "line": 189,
4954
5042
  "character": 3
4955
5043
  },
4956
5044
  "doc": {
@@ -4960,6 +5048,63 @@
4960
5048
  "line": 186,
4961
5049
  "character": 3
4962
5050
  },
5051
+ "raw": "/**\n * whether the component exists on the remote.\n */",
5052
+ "comment": "whether the component exists on the remote."
5053
+ },
5054
+ "signature": "(method) ComponentFactory.isExported(componentId: ComponentID): boolean",
5055
+ "name": "isExported",
5056
+ "params": [
5057
+ {
5058
+ "__schema": "ParameterSchema",
5059
+ "location": {
5060
+ "filePath": "component-factory.ts",
5061
+ "line": 189,
5062
+ "character": 14
5063
+ },
5064
+ "name": "componentId",
5065
+ "type": {
5066
+ "__schema": "TypeRefSchema",
5067
+ "location": {
5068
+ "filePath": "component-factory.ts",
5069
+ "line": 189,
5070
+ "character": 27
5071
+ },
5072
+ "name": "ComponentID",
5073
+ "componentId": {
5074
+ "scope": "teambit.component",
5075
+ "name": "component-id",
5076
+ "version": "1.2.0"
5077
+ }
5078
+ },
5079
+ "isOptional": false,
5080
+ "isSpread": false
5081
+ }
5082
+ ],
5083
+ "returnType": {
5084
+ "__schema": "KeywordTypeSchema",
5085
+ "location": {
5086
+ "filePath": "component-factory.ts",
5087
+ "line": 189,
5088
+ "character": 41
5089
+ },
5090
+ "name": "boolean"
5091
+ },
5092
+ "modifiers": []
5093
+ },
5094
+ {
5095
+ "__schema": "FunctionLikeSchema",
5096
+ "location": {
5097
+ "filePath": "component-factory.ts",
5098
+ "line": 195,
5099
+ "character": 3
5100
+ },
5101
+ "doc": {
5102
+ "__schema": "DocSchema",
5103
+ "location": {
5104
+ "filePath": "component-factory.ts",
5105
+ "line": 191,
5106
+ "character": 3
5107
+ },
4963
5108
  "raw": "/**\n * write the component to the filesystem when applicable (no-op for scope).\n * to change the component-path, specify the \"rootPath\", which should be a relative path inside the workspace.\n */",
4964
5109
  "comment": "write the component to the filesystem when applicable (no-op for scope).\nto change the component-path, specify the \"rootPath\", which should be a relative path inside the workspace."
4965
5110
  },
@@ -4970,7 +5115,7 @@
4970
5115
  "__schema": "ParameterSchema",
4971
5116
  "location": {
4972
5117
  "filePath": "component-factory.ts",
4973
- "line": 190,
5118
+ "line": 195,
4974
5119
  "character": 9
4975
5120
  },
4976
5121
  "name": "component",
@@ -4978,7 +5123,7 @@
4978
5123
  "__schema": "TypeRefSchema",
4979
5124
  "location": {
4980
5125
  "filePath": "component-factory.ts",
4981
- "line": 190,
5126
+ "line": 195,
4982
5127
  "character": 20
4983
5128
  },
4984
5129
  "name": "Component"
@@ -4990,7 +5135,7 @@
4990
5135
  "__schema": "ParameterSchema",
4991
5136
  "location": {
4992
5137
  "filePath": "component-factory.ts",
4993
- "line": 190,
5138
+ "line": 195,
4994
5139
  "character": 31
4995
5140
  },
4996
5141
  "name": "rootPath",
@@ -4998,7 +5143,7 @@
4998
5143
  "__schema": "KeywordTypeSchema",
4999
5144
  "location": {
5000
5145
  "filePath": "component-factory.ts",
5001
- "line": 190,
5146
+ "line": 195,
5002
5147
  "character": 42
5003
5148
  },
5004
5149
  "name": "string"
@@ -5011,7 +5156,7 @@
5011
5156
  "__schema": "TypeRefSchema",
5012
5157
  "location": {
5013
5158
  "filePath": "component-factory.ts",
5014
- "line": 190,
5159
+ "line": 195,
5015
5160
  "character": 51
5016
5161
  },
5017
5162
  "name": "Promise",
@@ -5020,7 +5165,7 @@
5020
5165
  "__schema": "KeywordTypeSchema",
5021
5166
  "location": {
5022
5167
  "filePath": "component-factory.ts",
5023
- "line": 190,
5168
+ "line": 195,
5024
5169
  "character": 59
5025
5170
  },
5026
5171
  "name": "void"
@@ -5033,14 +5178,14 @@
5033
5178
  "__schema": "VariableLikeSchema",
5034
5179
  "location": {
5035
5180
  "filePath": "component-factory.ts",
5036
- "line": 195,
5181
+ "line": 200,
5037
5182
  "character": 3
5038
5183
  },
5039
5184
  "doc": {
5040
5185
  "__schema": "DocSchema",
5041
5186
  "location": {
5042
5187
  "filePath": "component-factory.ts",
5043
- "line": 192,
5188
+ "line": 197,
5044
5189
  "character": 3
5045
5190
  },
5046
5191
  "raw": "/**\n * determine whether host should be the prior one in case multiple hosts persist.\n */",
@@ -5052,7 +5197,7 @@
5052
5197
  "__schema": "KeywordTypeSchema",
5053
5198
  "location": {
5054
5199
  "filePath": "component-factory.ts",
5055
- "line": 195,
5200
+ "line": 200,
5056
5201
  "character": 14
5057
5202
  },
5058
5203
  "name": "boolean"
@@ -8575,7 +8720,7 @@
8575
8720
  "_legacy": {
8576
8721
  "scope": "teambit.component",
8577
8722
  "name": "component",
8578
- "version": "1.0.281"
8723
+ "version": "1.0.282"
8579
8724
  },
8580
8725
  "_scope": "teambit.component"
8581
8726
  }
@@ -9891,7 +10036,7 @@
9891
10036
  "__schema": "ClassSchema",
9892
10037
  "location": {
9893
10038
  "filePath": "component.main.runtime.ts",
9894
- "line": 30,
10039
+ "line": 31,
9895
10040
  "character": 1
9896
10041
  },
9897
10042
  "signature": "class ComponentMain",
@@ -9901,7 +10046,7 @@
9901
10046
  "__schema": "ConstructorSchema",
9902
10047
  "location": {
9903
10048
  "filePath": "component.main.runtime.ts",
9904
- "line": 31,
10049
+ "line": 32,
9905
10050
  "character": 3
9906
10051
  },
9907
10052
  "signature": "constructor ComponentMain(hostSlot: ComponentHostSlot, express: ExpressMain, showFragmentSlot: ShowFragmentSlot): ComponentMain",
@@ -9911,7 +10056,7 @@
9911
10056
  "__schema": "ParameterSchema",
9912
10057
  "location": {
9913
10058
  "filePath": "component.main.runtime.ts",
9914
- "line": 35,
10059
+ "line": 36,
9915
10060
  "character": 5
9916
10061
  },
9917
10062
  "name": "hostSlot",
@@ -9919,7 +10064,7 @@
9919
10064
  "__schema": "TypeRefSchema",
9920
10065
  "location": {
9921
10066
  "filePath": "component.main.runtime.ts",
9922
- "line": 35,
10067
+ "line": 36,
9923
10068
  "character": 23
9924
10069
  },
9925
10070
  "name": "ComponentHostSlot",
@@ -9932,7 +10077,7 @@
9932
10077
  "__schema": "ParameterSchema",
9933
10078
  "location": {
9934
10079
  "filePath": "component.main.runtime.ts",
9935
- "line": 40,
10080
+ "line": 41,
9936
10081
  "character": 5
9937
10082
  },
9938
10083
  "name": "express",
@@ -9940,7 +10085,7 @@
9940
10085
  "__schema": "TypeRefSchema",
9941
10086
  "location": {
9942
10087
  "filePath": "component.main.runtime.ts",
9943
- "line": 40,
10088
+ "line": 41,
9944
10089
  "character": 22
9945
10090
  },
9946
10091
  "name": "ExpressMain",
@@ -9956,7 +10101,7 @@
9956
10101
  "__schema": "ParameterSchema",
9957
10102
  "location": {
9958
10103
  "filePath": "component.main.runtime.ts",
9959
- "line": 42,
10104
+ "line": 43,
9960
10105
  "character": 5
9961
10106
  },
9962
10107
  "name": "showFragmentSlot",
@@ -9964,7 +10109,7 @@
9964
10109
  "__schema": "TypeRefSchema",
9965
10110
  "location": {
9966
10111
  "filePath": "component.main.runtime.ts",
9967
- "line": 42,
10112
+ "line": 43,
9968
10113
  "character": 31
9969
10114
  },
9970
10115
  "name": "ShowFragmentSlot",
@@ -9978,7 +10123,7 @@
9978
10123
  "__schema": "ThisTypeSchema",
9979
10124
  "location": {
9980
10125
  "filePath": "component.main.runtime.ts",
9981
- "line": 30,
10126
+ "line": 31,
9982
10127
  "character": 1
9983
10128
  },
9984
10129
  "name": "ComponentMain"
@@ -9989,14 +10134,14 @@
9989
10134
  "__schema": "FunctionLikeSchema",
9990
10135
  "location": {
9991
10136
  "filePath": "component.main.runtime.ts",
9992
- "line": 48,
10137
+ "line": 49,
9993
10138
  "character": 3
9994
10139
  },
9995
10140
  "doc": {
9996
10141
  "__schema": "DocSchema",
9997
10142
  "location": {
9998
10143
  "filePath": "component.main.runtime.ts",
9999
- "line": 45,
10144
+ "line": 46,
10000
10145
  "character": 3
10001
10146
  },
10002
10147
  "raw": "/**\n * register a new component host.\n */",
@@ -10009,7 +10154,7 @@
10009
10154
  "__schema": "ParameterSchema",
10010
10155
  "location": {
10011
10156
  "filePath": "component.main.runtime.ts",
10012
- "line": 48,
10157
+ "line": 49,
10013
10158
  "character": 16
10014
10159
  },
10015
10160
  "name": "host",
@@ -10017,7 +10162,7 @@
10017
10162
  "__schema": "TypeRefSchema",
10018
10163
  "location": {
10019
10164
  "filePath": "component.main.runtime.ts",
10020
- "line": 48,
10165
+ "line": 49,
10021
10166
  "character": 22
10022
10167
  },
10023
10168
  "name": "ComponentFactory"
@@ -10030,7 +10175,7 @@
10030
10175
  "__schema": "TypeRefSchema",
10031
10176
  "location": {
10032
10177
  "filePath": "component.main.runtime.ts",
10033
- "line": 48,
10178
+ "line": 49,
10034
10179
  "character": 3
10035
10180
  },
10036
10181
  "name": "ComponentMain"
@@ -10041,14 +10186,14 @@
10041
10186
  "__schema": "FunctionLikeSchema",
10042
10187
  "location": {
10043
10188
  "filePath": "component.main.runtime.ts",
10044
- "line": 63,
10189
+ "line": 64,
10045
10190
  "character": 3
10046
10191
  },
10047
10192
  "doc": {
10048
10193
  "__schema": "DocSchema",
10049
10194
  "location": {
10050
10195
  "filePath": "component.main.runtime.ts",
10051
- "line": 53,
10196
+ "line": 54,
10052
10197
  "character": 3
10053
10198
  },
10054
10199
  "raw": "/**\n * important! avoid using this method.\n * seems like this method was written to work around a very specific case when the ComponentID of the aspects are\n * not available. in case of new components, to get the ComponentID, the workspace-aspect is needed to get the\n * default-scope. when this method is called from the scope, there is no way to get the real component-id.\n * instead, this method asks for the \"scope\", which when called by the scope-aspect is the current scope-name.\n * it may or may not be the real scope-name of the aspect.\n * to fix this possibly incorrect scope-name, the `workspace.resolveScopeAspectListIds()` checks whether the\n * scope-name is the same as scope.name, and if so, resolve it to the correct scope-name.\n */",
@@ -10061,7 +10206,7 @@
10061
10206
  "__schema": "ParameterSchema",
10062
10207
  "location": {
10063
10208
  "filePath": "component.main.runtime.ts",
10064
- "line": 63,
10209
+ "line": 64,
10065
10210
  "character": 30
10066
10211
  },
10067
10212
  "name": "legacyExtensionDataList",
@@ -10069,7 +10214,7 @@
10069
10214
  "__schema": "TypeRefSchema",
10070
10215
  "location": {
10071
10216
  "filePath": "component.main.runtime.ts",
10072
- "line": 63,
10217
+ "line": 64,
10073
10218
  "character": 55
10074
10219
  },
10075
10220
  "name": "ExtensionDataList",
@@ -10083,7 +10228,7 @@
10083
10228
  "__schema": "TypeRefSchema",
10084
10229
  "location": {
10085
10230
  "filePath": "component.main.runtime.ts",
10086
- "line": 63,
10231
+ "line": 64,
10087
10232
  "character": 3
10088
10233
  },
10089
10234
  "name": "AspectList"
@@ -10094,7 +10239,7 @@
10094
10239
  "__schema": "FunctionLikeSchema",
10095
10240
  "location": {
10096
10241
  "filePath": "component.main.runtime.ts",
10097
- "line": 67,
10242
+ "line": 68,
10098
10243
  "character": 3
10099
10244
  },
10100
10245
  "signature": "(method) ComponentMain.createAspectListFromEntries(entries: AspectEntry[]): AspectList",
@@ -10104,7 +10249,7 @@
10104
10249
  "__schema": "ParameterSchema",
10105
10250
  "location": {
10106
10251
  "filePath": "component.main.runtime.ts",
10107
- "line": 67,
10252
+ "line": 68,
10108
10253
  "character": 31
10109
10254
  },
10110
10255
  "name": "entries",
@@ -10112,14 +10257,14 @@
10112
10257
  "__schema": "TypeArraySchema",
10113
10258
  "location": {
10114
10259
  "filePath": "component.main.runtime.ts",
10115
- "line": 67,
10260
+ "line": 68,
10116
10261
  "character": 40
10117
10262
  },
10118
10263
  "type": {
10119
10264
  "__schema": "TypeRefSchema",
10120
10265
  "location": {
10121
10266
  "filePath": "component.main.runtime.ts",
10122
- "line": 67,
10267
+ "line": 68,
10123
10268
  "character": 40
10124
10269
  },
10125
10270
  "name": "AspectEntry"
@@ -10133,7 +10278,7 @@
10133
10278
  "__schema": "TypeRefSchema",
10134
10279
  "location": {
10135
10280
  "filePath": "component.main.runtime.ts",
10136
- "line": 67,
10281
+ "line": 68,
10137
10282
  "character": 3
10138
10283
  },
10139
10284
  "name": "AspectList"
@@ -10144,7 +10289,7 @@
10144
10289
  "__schema": "FunctionLikeSchema",
10145
10290
  "location": {
10146
10291
  "filePath": "component.main.runtime.ts",
10147
- "line": 71,
10292
+ "line": 72,
10148
10293
  "character": 3
10149
10294
  },
10150
10295
  "signature": "(method) ComponentMain.registerRoute(routes: RegisteredComponentRoute[]): this",
@@ -10154,7 +10299,7 @@
10154
10299
  "__schema": "ParameterSchema",
10155
10300
  "location": {
10156
10301
  "filePath": "component.main.runtime.ts",
10157
- "line": 71,
10302
+ "line": 72,
10158
10303
  "character": 17
10159
10304
  },
10160
10305
  "name": "routes",
@@ -10162,14 +10307,14 @@
10162
10307
  "__schema": "TypeArraySchema",
10163
10308
  "location": {
10164
10309
  "filePath": "component.main.runtime.ts",
10165
- "line": 71,
10310
+ "line": 72,
10166
10311
  "character": 25
10167
10312
  },
10168
10313
  "type": {
10169
10314
  "__schema": "TypeRefSchema",
10170
10315
  "location": {
10171
10316
  "filePath": "component.main.runtime.ts",
10172
- "line": 71,
10317
+ "line": 72,
10173
10318
  "character": 25
10174
10319
  },
10175
10320
  "name": "RegisteredComponentRoute"
@@ -10183,7 +10328,7 @@
10183
10328
  "__schema": "TypeRefSchema",
10184
10329
  "location": {
10185
10330
  "filePath": "component.main.runtime.ts",
10186
- "line": 71,
10331
+ "line": 72,
10187
10332
  "character": 3
10188
10333
  },
10189
10334
  "name": "ComponentMain"
@@ -10194,14 +10339,14 @@
10194
10339
  "__schema": "FunctionLikeSchema",
10195
10340
  "location": {
10196
10341
  "filePath": "component.main.runtime.ts",
10197
- "line": 85,
10342
+ "line": 86,
10198
10343
  "character": 3
10199
10344
  },
10200
10345
  "doc": {
10201
10346
  "__schema": "DocSchema",
10202
10347
  "location": {
10203
10348
  "filePath": "component.main.runtime.ts",
10204
- "line": 82,
10349
+ "line": 83,
10205
10350
  "character": 3
10206
10351
  },
10207
10352
  "raw": "/**\n * set the prior host.\n */",
@@ -10214,7 +10359,7 @@
10214
10359
  "__schema": "ParameterSchema",
10215
10360
  "location": {
10216
10361
  "filePath": "component.main.runtime.ts",
10217
- "line": 85,
10362
+ "line": 86,
10218
10363
  "character": 19
10219
10364
  },
10220
10365
  "name": "id",
@@ -10222,7 +10367,7 @@
10222
10367
  "__schema": "KeywordTypeSchema",
10223
10368
  "location": {
10224
10369
  "filePath": "component.main.runtime.ts",
10225
- "line": 85,
10370
+ "line": 86,
10226
10371
  "character": 23
10227
10372
  },
10228
10373
  "name": "string"
@@ -10235,7 +10380,7 @@
10235
10380
  "__schema": "TypeRefSchema",
10236
10381
  "location": {
10237
10382
  "filePath": "component.main.runtime.ts",
10238
- "line": 85,
10383
+ "line": 86,
10239
10384
  "character": 3
10240
10385
  },
10241
10386
  "name": "ComponentMain"
@@ -10246,14 +10391,14 @@
10246
10391
  "__schema": "FunctionLikeSchema",
10247
10392
  "location": {
10248
10393
  "filePath": "component.main.runtime.ts",
10249
- "line": 98,
10394
+ "line": 99,
10250
10395
  "character": 3
10251
10396
  },
10252
10397
  "doc": {
10253
10398
  "__schema": "DocSchema",
10254
10399
  "location": {
10255
10400
  "filePath": "component.main.runtime.ts",
10256
- "line": 95,
10401
+ "line": 96,
10257
10402
  "character": 3
10258
10403
  },
10259
10404
  "raw": "/**\n * get component host by extension ID.\n */",
@@ -10266,7 +10411,7 @@
10266
10411
  "__schema": "ParameterSchema",
10267
10412
  "location": {
10268
10413
  "filePath": "component.main.runtime.ts",
10269
- "line": 98,
10414
+ "line": 99,
10270
10415
  "character": 11
10271
10416
  },
10272
10417
  "name": "id",
@@ -10274,7 +10419,7 @@
10274
10419
  "__schema": "KeywordTypeSchema",
10275
10420
  "location": {
10276
10421
  "filePath": "component.main.runtime.ts",
10277
- "line": 98,
10422
+ "line": 99,
10278
10423
  "character": 16
10279
10424
  },
10280
10425
  "name": "string"
@@ -10287,7 +10432,7 @@
10287
10432
  "__schema": "TypeRefSchema",
10288
10433
  "location": {
10289
10434
  "filePath": "component.main.runtime.ts",
10290
- "line": 98,
10435
+ "line": 99,
10291
10436
  "character": 3
10292
10437
  },
10293
10438
  "name": "ComponentFactory"
@@ -10298,7 +10443,7 @@
10298
10443
  "__schema": "FunctionLikeSchema",
10299
10444
  "location": {
10300
10445
  "filePath": "component.main.runtime.ts",
10301
- "line": 108,
10446
+ "line": 109,
10302
10447
  "character": 3
10303
10448
  },
10304
10449
  "signature": "(method) ComponentMain.getHostIfExist(id?: string): ComponentFactory | undefined",
@@ -10308,7 +10453,7 @@
10308
10453
  "__schema": "ParameterSchema",
10309
10454
  "location": {
10310
10455
  "filePath": "component.main.runtime.ts",
10311
- "line": 108,
10456
+ "line": 109,
10312
10457
  "character": 18
10313
10458
  },
10314
10459
  "name": "id",
@@ -10316,7 +10461,7 @@
10316
10461
  "__schema": "KeywordTypeSchema",
10317
10462
  "location": {
10318
10463
  "filePath": "component.main.runtime.ts",
10319
- "line": 108,
10464
+ "line": 109,
10320
10465
  "character": 23
10321
10466
  },
10322
10467
  "name": "string"
@@ -10329,7 +10474,7 @@
10329
10474
  "__schema": "TypeUnionSchema",
10330
10475
  "location": {
10331
10476
  "filePath": "component.main.runtime.ts",
10332
- "line": 108,
10477
+ "line": 109,
10333
10478
  "character": 32
10334
10479
  },
10335
10480
  "types": [
@@ -10337,7 +10482,7 @@
10337
10482
  "__schema": "TypeRefSchema",
10338
10483
  "location": {
10339
10484
  "filePath": "component.main.runtime.ts",
10340
- "line": 108,
10485
+ "line": 109,
10341
10486
  "character": 32
10342
10487
  },
10343
10488
  "name": "ComponentFactory"
@@ -10346,7 +10491,7 @@
10346
10491
  "__schema": "KeywordTypeSchema",
10347
10492
  "location": {
10348
10493
  "filePath": "component.main.runtime.ts",
10349
- "line": 108,
10494
+ "line": 109,
10350
10495
  "character": 51
10351
10496
  },
10352
10497
  "name": "undefined"
@@ -10359,7 +10504,7 @@
10359
10504
  "__schema": "FunctionLikeSchema",
10360
10505
  "location": {
10361
10506
  "filePath": "component.main.runtime.ts",
10362
- "line": 117,
10507
+ "line": 118,
10363
10508
  "character": 3
10364
10509
  },
10365
10510
  "signature": "(method) ComponentMain.getRoute(id: ComponentID, routeName: string): string",
@@ -10369,7 +10514,7 @@
10369
10514
  "__schema": "ParameterSchema",
10370
10515
  "location": {
10371
10516
  "filePath": "component.main.runtime.ts",
10372
- "line": 117,
10517
+ "line": 118,
10373
10518
  "character": 12
10374
10519
  },
10375
10520
  "name": "id",
@@ -10377,7 +10522,7 @@
10377
10522
  "__schema": "TypeRefSchema",
10378
10523
  "location": {
10379
10524
  "filePath": "component.main.runtime.ts",
10380
- "line": 117,
10525
+ "line": 118,
10381
10526
  "character": 16
10382
10527
  },
10383
10528
  "name": "ComponentID",
@@ -10394,7 +10539,7 @@
10394
10539
  "__schema": "ParameterSchema",
10395
10540
  "location": {
10396
10541
  "filePath": "component.main.runtime.ts",
10397
- "line": 117,
10542
+ "line": 118,
10398
10543
  "character": 29
10399
10544
  },
10400
10545
  "name": "routeName",
@@ -10402,7 +10547,7 @@
10402
10547
  "__schema": "KeywordTypeSchema",
10403
10548
  "location": {
10404
10549
  "filePath": "component.main.runtime.ts",
10405
- "line": 117,
10550
+ "line": 118,
10406
10551
  "character": 40
10407
10552
  },
10408
10553
  "name": "string"
@@ -10415,7 +10560,7 @@
10415
10560
  "__schema": "InferenceTypeSchema",
10416
10561
  "location": {
10417
10562
  "filePath": "component.main.runtime.ts",
10418
- "line": 117,
10563
+ "line": 118,
10419
10564
  "character": 3
10420
10565
  },
10421
10566
  "type": "string"
@@ -10426,7 +10571,7 @@
10426
10571
  "__schema": "FunctionLikeSchema",
10427
10572
  "location": {
10428
10573
  "filePath": "component.main.runtime.ts",
10429
- "line": 132,
10574
+ "line": 133,
10430
10575
  "character": 3
10431
10576
  },
10432
10577
  "signature": "(method) ComponentMain.getShowFragments(): ShowFragment[]",
@@ -10436,7 +10581,7 @@
10436
10581
  "__schema": "TypeRefSchema",
10437
10582
  "location": {
10438
10583
  "filePath": "component.main.runtime.ts",
10439
- "line": 132,
10584
+ "line": 133,
10440
10585
  "character": 3
10441
10586
  },
10442
10587
  "name": "ShowFragment"
@@ -10447,7 +10592,7 @@
10447
10592
  "__schema": "FunctionLikeSchema",
10448
10593
  "location": {
10449
10594
  "filePath": "component.main.runtime.ts",
10450
- "line": 137,
10595
+ "line": 138,
10451
10596
  "character": 3
10452
10597
  },
10453
10598
  "signature": "(method) ComponentMain.isHost(name: string): boolean",
@@ -10457,7 +10602,7 @@
10457
10602
  "__schema": "ParameterSchema",
10458
10603
  "location": {
10459
10604
  "filePath": "component.main.runtime.ts",
10460
- "line": 137,
10605
+ "line": 138,
10461
10606
  "character": 10
10462
10607
  },
10463
10608
  "name": "name",
@@ -10465,7 +10610,7 @@
10465
10610
  "__schema": "KeywordTypeSchema",
10466
10611
  "location": {
10467
10612
  "filePath": "component.main.runtime.ts",
10468
- "line": 137,
10613
+ "line": 138,
10469
10614
  "character": 16
10470
10615
  },
10471
10616
  "name": "string"
@@ -10478,7 +10623,7 @@
10478
10623
  "__schema": "InferenceTypeSchema",
10479
10624
  "location": {
10480
10625
  "filePath": "component.main.runtime.ts",
10481
- "line": 137,
10626
+ "line": 138,
10482
10627
  "character": 3
10483
10628
  },
10484
10629
  "type": "boolean"
@@ -10489,14 +10634,14 @@
10489
10634
  "__schema": "FunctionLikeSchema",
10490
10635
  "location": {
10491
10636
  "filePath": "component.main.runtime.ts",
10492
- "line": 144,
10637
+ "line": 145,
10493
10638
  "character": 3
10494
10639
  },
10495
10640
  "doc": {
10496
10641
  "__schema": "DocSchema",
10497
10642
  "location": {
10498
10643
  "filePath": "component.main.runtime.ts",
10499
- "line": 141,
10644
+ "line": 142,
10500
10645
  "character": 3
10501
10646
  },
10502
10647
  "raw": "/**\n * register a show fragment to display further information in the `bit show` command.\n */",
@@ -10509,7 +10654,7 @@
10509
10654
  "__schema": "ParameterSchema",
10510
10655
  "location": {
10511
10656
  "filePath": "component.main.runtime.ts",
10512
- "line": 144,
10657
+ "line": 145,
10513
10658
  "character": 25
10514
10659
  },
10515
10660
  "name": "showFragments",
@@ -10517,14 +10662,14 @@
10517
10662
  "__schema": "TypeArraySchema",
10518
10663
  "location": {
10519
10664
  "filePath": "component.main.runtime.ts",
10520
- "line": 144,
10665
+ "line": 145,
10521
10666
  "character": 40
10522
10667
  },
10523
10668
  "type": {
10524
10669
  "__schema": "TypeRefSchema",
10525
10670
  "location": {
10526
10671
  "filePath": "component.main.runtime.ts",
10527
- "line": 144,
10672
+ "line": 145,
10528
10673
  "character": 40
10529
10674
  },
10530
10675
  "name": "ShowFragment"
@@ -10538,7 +10683,7 @@
10538
10683
  "__schema": "TypeRefSchema",
10539
10684
  "location": {
10540
10685
  "filePath": "component.main.runtime.ts",
10541
- "line": 144,
10686
+ "line": 145,
10542
10687
  "character": 3
10543
10688
  },
10544
10689
  "name": "ComponentMain"
@@ -10549,7 +10694,7 @@
10549
10694
  "__schema": "VariableLikeSchema",
10550
10695
  "location": {
10551
10696
  "filePath": "component.main.runtime.ts",
10552
- "line": 151,
10697
+ "line": 152,
10553
10698
  "character": 3
10554
10699
  },
10555
10700
  "signature": "(property) ComponentMain.slots: (((registerFn: () => string) => SlotRegistry<ComponentFactory>) | ((registerFn: () => string) => SlotRegistry<Route[]>) | ((registerFn: () => string) => SlotRegistry<...>))[]",
@@ -10558,7 +10703,7 @@
10558
10703
  "__schema": "InferenceTypeSchema",
10559
10704
  "location": {
10560
10705
  "filePath": "component.main.runtime.ts",
10561
- "line": 151,
10706
+ "line": 152,
10562
10707
  "character": 3
10563
10708
  },
10564
10709
  "type": "(((registerFn: () => string) => SlotRegistry<ComponentFactory>) | ((registerFn: () => string) => SlotRegistry<Route[]>) | ((registerFn: () => string) => SlotRegistry<...>))[]"
@@ -10570,7 +10715,7 @@
10570
10715
  "__schema": "VariableLikeSchema",
10571
10716
  "location": {
10572
10717
  "filePath": "component.main.runtime.ts",
10573
- "line": 153,
10718
+ "line": 154,
10574
10719
  "character": 3
10575
10720
  },
10576
10721
  "signature": "(property) ComponentMain.runtime: RuntimeDefinition",
@@ -10579,7 +10724,7 @@
10579
10724
  "__schema": "InferenceTypeSchema",
10580
10725
  "location": {
10581
10726
  "filePath": "component.main.runtime.ts",
10582
- "line": 153,
10727
+ "line": 154,
10583
10728
  "character": 3
10584
10729
  },
10585
10730
  "type": "RuntimeDefinition"
@@ -10591,7 +10736,7 @@
10591
10736
  "__schema": "VariableLikeSchema",
10592
10737
  "location": {
10593
10738
  "filePath": "component.main.runtime.ts",
10594
- "line": 154,
10739
+ "line": 155,
10595
10740
  "character": 3
10596
10741
  },
10597
10742
  "signature": "(property) ComponentMain.dependencies: Aspect[]",
@@ -10600,46 +10745,46 @@
10600
10745
  "__schema": "InferenceTypeSchema",
10601
10746
  "location": {
10602
10747
  "filePath": "component.main.runtime.ts",
10603
- "line": 154,
10748
+ "line": 155,
10604
10749
  "character": 3
10605
10750
  },
10606
10751
  "type": "Aspect[]"
10607
10752
  },
10608
10753
  "isOptional": true,
10609
- "defaultValue": "[GraphqlAspect, ExpressAspect, CLIAspect]"
10754
+ "defaultValue": "[GraphqlAspect, ExpressAspect, CLIAspect, LoggerAspect]"
10610
10755
  },
10611
10756
  {
10612
10757
  "__schema": "FunctionLikeSchema",
10613
10758
  "location": {
10614
10759
  "filePath": "component.main.runtime.ts",
10615
- "line": 156,
10760
+ "line": 157,
10616
10761
  "character": 3
10617
10762
  },
10618
- "signature": "(method) ComponentMain.provider([graphql, express, cli]: [GraphqlMain, ExpressMain, CLIMain], config: any, [hostSlot, showFragmentSlot]: [ComponentHostSlot, ShowFragmentSlot]): Promise<ComponentMain>",
10763
+ "signature": "(method) ComponentMain.provider([graphql, express, cli, loggerMain]: [GraphqlMain, ExpressMain, CLIMain, LoggerMain], config: any, [hostSlot, showFragmentSlot]: [ComponentHostSlot, ShowFragmentSlot]): Promise<ComponentMain>",
10619
10764
  "name": "provider",
10620
10765
  "params": [
10621
10766
  {
10622
10767
  "__schema": "ParameterSchema",
10623
10768
  "location": {
10624
10769
  "filePath": "component.main.runtime.ts",
10625
- "line": 157,
10770
+ "line": 158,
10626
10771
  "character": 5
10627
10772
  },
10628
- "name": "[ graphql, express, cli ]",
10773
+ "name": "[ graphql, express, cli, loggerMain ]",
10629
10774
  "type": {
10630
10775
  "__schema": "TupleTypeSchema",
10631
10776
  "location": {
10632
10777
  "filePath": "component.main.runtime.ts",
10633
- "line": 157,
10634
- "character": 30
10778
+ "line": 158,
10779
+ "character": 42
10635
10780
  },
10636
10781
  "elements": [
10637
10782
  {
10638
10783
  "__schema": "TypeRefSchema",
10639
10784
  "location": {
10640
10785
  "filePath": "component.main.runtime.ts",
10641
- "line": 157,
10642
- "character": 31
10786
+ "line": 158,
10787
+ "character": 43
10643
10788
  },
10644
10789
  "name": "GraphqlMain",
10645
10790
  "componentId": {
@@ -10651,8 +10796,8 @@
10651
10796
  "__schema": "TypeRefSchema",
10652
10797
  "location": {
10653
10798
  "filePath": "component.main.runtime.ts",
10654
- "line": 157,
10655
- "character": 44
10799
+ "line": 158,
10800
+ "character": 56
10656
10801
  },
10657
10802
  "name": "ExpressMain",
10658
10803
  "componentId": {
@@ -10664,14 +10809,27 @@
10664
10809
  "__schema": "TypeRefSchema",
10665
10810
  "location": {
10666
10811
  "filePath": "component.main.runtime.ts",
10667
- "line": 157,
10668
- "character": 57
10812
+ "line": 158,
10813
+ "character": 69
10669
10814
  },
10670
10815
  "name": "CLIMain",
10671
10816
  "componentId": {
10672
10817
  "scope": "teambit.harmony",
10673
10818
  "name": "cli"
10674
10819
  }
10820
+ },
10821
+ {
10822
+ "__schema": "TypeRefSchema",
10823
+ "location": {
10824
+ "filePath": "component.main.runtime.ts",
10825
+ "line": 158,
10826
+ "character": 78
10827
+ },
10828
+ "name": "LoggerMain",
10829
+ "componentId": {
10830
+ "scope": "teambit.harmony",
10831
+ "name": "logger"
10832
+ }
10675
10833
  }
10676
10834
  ]
10677
10835
  },
@@ -10682,7 +10840,7 @@
10682
10840
  "__schema": "ParameterSchema",
10683
10841
  "location": {
10684
10842
  "filePath": "component.main.runtime.ts",
10685
- "line": 158,
10843
+ "line": 159,
10686
10844
  "character": 5
10687
10845
  },
10688
10846
  "name": "config",
@@ -10690,7 +10848,7 @@
10690
10848
  "__schema": "InferenceTypeSchema",
10691
10849
  "location": {
10692
10850
  "filePath": "component.main.runtime.ts",
10693
- "line": 158,
10851
+ "line": 159,
10694
10852
  "character": 5
10695
10853
  },
10696
10854
  "type": "any"
@@ -10702,7 +10860,7 @@
10702
10860
  "__schema": "ParameterSchema",
10703
10861
  "location": {
10704
10862
  "filePath": "component.main.runtime.ts",
10705
- "line": 159,
10863
+ "line": 160,
10706
10864
  "character": 5
10707
10865
  },
10708
10866
  "name": "[ hostSlot, showFragmentSlot ]",
@@ -10710,7 +10868,7 @@
10710
10868
  "__schema": "TupleTypeSchema",
10711
10869
  "location": {
10712
10870
  "filePath": "component.main.runtime.ts",
10713
- "line": 159,
10871
+ "line": 160,
10714
10872
  "character": 35
10715
10873
  },
10716
10874
  "elements": [
@@ -10718,7 +10876,7 @@
10718
10876
  "__schema": "TypeRefSchema",
10719
10877
  "location": {
10720
10878
  "filePath": "component.main.runtime.ts",
10721
- "line": 159,
10879
+ "line": 160,
10722
10880
  "character": 36
10723
10881
  },
10724
10882
  "name": "ComponentHostSlot",
@@ -10728,7 +10886,7 @@
10728
10886
  "__schema": "TypeRefSchema",
10729
10887
  "location": {
10730
10888
  "filePath": "component.main.runtime.ts",
10731
- "line": 159,
10889
+ "line": 160,
10732
10890
  "character": 55
10733
10891
  },
10734
10892
  "name": "ShowFragmentSlot",
@@ -10744,7 +10902,7 @@
10744
10902
  "__schema": "InferenceTypeSchema",
10745
10903
  "location": {
10746
10904
  "filePath": "component.main.runtime.ts",
10747
- "line": 156,
10905
+ "line": 157,
10748
10906
  "character": 3
10749
10907
  },
10750
10908
  "type": "Promise<ComponentMain>"
@@ -17966,13 +18124,51 @@
17966
18124
  "line": 96,
17967
18125
  "character": 3
17968
18126
  },
18127
+ "signature": "(getter) Component.homepage: string | undefined",
18128
+ "name": "homepage",
18129
+ "type": {
18130
+ "__schema": "TypeUnionSchema",
18131
+ "location": {
18132
+ "filePath": "component.ts",
18133
+ "line": 96,
18134
+ "character": 19
18135
+ },
18136
+ "types": [
18137
+ {
18138
+ "__schema": "KeywordTypeSchema",
18139
+ "location": {
18140
+ "filePath": "component.ts",
18141
+ "line": 96,
18142
+ "character": 19
18143
+ },
18144
+ "name": "string"
18145
+ },
18146
+ {
18147
+ "__schema": "KeywordTypeSchema",
18148
+ "location": {
18149
+ "filePath": "component.ts",
18150
+ "line": 96,
18151
+ "character": 28
18152
+ },
18153
+ "name": "undefined"
18154
+ }
18155
+ ]
18156
+ }
18157
+ },
18158
+ {
18159
+ "__schema": "GetAccessorSchema",
18160
+ "location": {
18161
+ "filePath": "component.ts",
18162
+ "line": 100,
18163
+ "character": 3
18164
+ },
17969
18165
  "signature": "(getter) Component.headTag: Tag | undefined",
17970
18166
  "name": "headTag",
17971
18167
  "type": {
17972
18168
  "__schema": "InferenceTypeSchema",
17973
18169
  "location": {
17974
18170
  "filePath": "component.ts",
17975
- "line": 96,
18171
+ "line": 100,
17976
18172
  "character": 3
17977
18173
  },
17978
18174
  "type": "Tag | undefined"
@@ -17982,7 +18178,7 @@
17982
18178
  "__schema": "GetAccessorSchema",
17983
18179
  "location": {
17984
18180
  "filePath": "component.ts",
17985
- "line": 101,
18181
+ "line": 105,
17986
18182
  "character": 3
17987
18183
  },
17988
18184
  "signature": "(getter) Component.latest: string | undefined",
@@ -17991,7 +18187,7 @@
17991
18187
  "__schema": "TypeUnionSchema",
17992
18188
  "location": {
17993
18189
  "filePath": "component.ts",
17994
- "line": 101,
18190
+ "line": 105,
17995
18191
  "character": 17
17996
18192
  },
17997
18193
  "types": [
@@ -17999,7 +18195,7 @@
17999
18195
  "__schema": "KeywordTypeSchema",
18000
18196
  "location": {
18001
18197
  "filePath": "component.ts",
18002
- "line": 101,
18198
+ "line": 105,
18003
18199
  "character": 17
18004
18200
  },
18005
18201
  "name": "string"
@@ -18008,7 +18204,7 @@
18008
18204
  "__schema": "KeywordTypeSchema",
18009
18205
  "location": {
18010
18206
  "filePath": "component.ts",
18011
- "line": 101,
18207
+ "line": 105,
18012
18208
  "character": 26
18013
18209
  },
18014
18210
  "name": "undefined"
@@ -18020,14 +18216,14 @@
18020
18216
  "__schema": "FunctionLikeSchema",
18021
18217
  "location": {
18022
18218
  "filePath": "component.ts",
18023
- "line": 116,
18219
+ "line": 120,
18024
18220
  "character": 3
18025
18221
  },
18026
18222
  "doc": {
18027
18223
  "__schema": "DocSchema",
18028
18224
  "location": {
18029
18225
  "filePath": "component.ts",
18030
- "line": 113,
18226
+ "line": 117,
18031
18227
  "character": 3
18032
18228
  },
18033
18229
  "raw": "/**\n * get aspect data from current state.\n */",
@@ -18040,7 +18236,7 @@
18040
18236
  "__schema": "ParameterSchema",
18041
18237
  "location": {
18042
18238
  "filePath": "component.ts",
18043
- "line": 116,
18239
+ "line": 120,
18044
18240
  "character": 7
18045
18241
  },
18046
18242
  "name": "id",
@@ -18048,7 +18244,7 @@
18048
18244
  "__schema": "KeywordTypeSchema",
18049
18245
  "location": {
18050
18246
  "filePath": "component.ts",
18051
- "line": 116,
18247
+ "line": 120,
18052
18248
  "character": 11
18053
18249
  },
18054
18250
  "name": "string"
@@ -18061,7 +18257,7 @@
18061
18257
  "__schema": "TypeUnionSchema",
18062
18258
  "location": {
18063
18259
  "filePath": "component.ts",
18064
- "line": 116,
18260
+ "line": 120,
18065
18261
  "character": 20
18066
18262
  },
18067
18263
  "types": [
@@ -18069,7 +18265,7 @@
18069
18265
  "__schema": "TypeRefSchema",
18070
18266
  "location": {
18071
18267
  "filePath": "component.ts",
18072
- "line": 116,
18268
+ "line": 120,
18073
18269
  "character": 20
18074
18270
  },
18075
18271
  "name": "RawComponentMetadata",
@@ -18079,7 +18275,7 @@
18079
18275
  "__schema": "KeywordTypeSchema",
18080
18276
  "location": {
18081
18277
  "filePath": "component.ts",
18082
- "line": 116,
18278
+ "line": 120,
18083
18279
  "character": 43
18084
18280
  },
18085
18281
  "name": "undefined"
@@ -18092,7 +18288,7 @@
18092
18288
  "__schema": "FunctionLikeSchema",
18093
18289
  "location": {
18094
18290
  "filePath": "component.ts",
18095
- "line": 120,
18291
+ "line": 124,
18096
18292
  "character": 3
18097
18293
  },
18098
18294
  "signature": "(method) Component.getLogs(filter?: {\n type?: string;\n offset?: number;\n limit?: number;\n head?: string;\n sort?: string;\n}): Promise<ComponentLog[]>",
@@ -18102,7 +18298,7 @@
18102
18298
  "__schema": "ParameterSchema",
18103
18299
  "location": {
18104
18300
  "filePath": "component.ts",
18105
- "line": 120,
18301
+ "line": 124,
18106
18302
  "character": 17
18107
18303
  },
18108
18304
  "name": "filter",
@@ -18110,7 +18306,7 @@
18110
18306
  "__schema": "TypeLiteralSchema",
18111
18307
  "location": {
18112
18308
  "filePath": "component.ts",
18113
- "line": 120,
18309
+ "line": 124,
18114
18310
  "character": 26
18115
18311
  },
18116
18312
  "members": [
@@ -18118,7 +18314,7 @@
18118
18314
  "__schema": "VariableLikeSchema",
18119
18315
  "location": {
18120
18316
  "filePath": "component.ts",
18121
- "line": 121,
18317
+ "line": 125,
18122
18318
  "character": 5
18123
18319
  },
18124
18320
  "signature": "(property) type?: string | undefined",
@@ -18127,7 +18323,7 @@
18127
18323
  "__schema": "KeywordTypeSchema",
18128
18324
  "location": {
18129
18325
  "filePath": "component.ts",
18130
- "line": 121,
18326
+ "line": 125,
18131
18327
  "character": 12
18132
18328
  },
18133
18329
  "name": "string"
@@ -18138,7 +18334,7 @@
18138
18334
  "__schema": "VariableLikeSchema",
18139
18335
  "location": {
18140
18336
  "filePath": "component.ts",
18141
- "line": 122,
18337
+ "line": 126,
18142
18338
  "character": 5
18143
18339
  },
18144
18340
  "signature": "(property) offset?: number | undefined",
@@ -18147,7 +18343,7 @@
18147
18343
  "__schema": "KeywordTypeSchema",
18148
18344
  "location": {
18149
18345
  "filePath": "component.ts",
18150
- "line": 122,
18346
+ "line": 126,
18151
18347
  "character": 14
18152
18348
  },
18153
18349
  "name": "number"
@@ -18158,7 +18354,7 @@
18158
18354
  "__schema": "VariableLikeSchema",
18159
18355
  "location": {
18160
18356
  "filePath": "component.ts",
18161
- "line": 123,
18357
+ "line": 127,
18162
18358
  "character": 5
18163
18359
  },
18164
18360
  "signature": "(property) limit?: number | undefined",
@@ -18167,7 +18363,7 @@
18167
18363
  "__schema": "KeywordTypeSchema",
18168
18364
  "location": {
18169
18365
  "filePath": "component.ts",
18170
- "line": 123,
18366
+ "line": 127,
18171
18367
  "character": 13
18172
18368
  },
18173
18369
  "name": "number"
@@ -18178,7 +18374,7 @@
18178
18374
  "__schema": "VariableLikeSchema",
18179
18375
  "location": {
18180
18376
  "filePath": "component.ts",
18181
- "line": 124,
18377
+ "line": 128,
18182
18378
  "character": 5
18183
18379
  },
18184
18380
  "signature": "(property) head?: string | undefined",
@@ -18187,7 +18383,7 @@
18187
18383
  "__schema": "KeywordTypeSchema",
18188
18384
  "location": {
18189
18385
  "filePath": "component.ts",
18190
- "line": 124,
18386
+ "line": 128,
18191
18387
  "character": 12
18192
18388
  },
18193
18389
  "name": "string"
@@ -18198,7 +18394,7 @@
18198
18394
  "__schema": "VariableLikeSchema",
18199
18395
  "location": {
18200
18396
  "filePath": "component.ts",
18201
- "line": 125,
18397
+ "line": 129,
18202
18398
  "character": 5
18203
18399
  },
18204
18400
  "signature": "(property) sort?: string | undefined",
@@ -18207,7 +18403,7 @@
18207
18403
  "__schema": "KeywordTypeSchema",
18208
18404
  "location": {
18209
18405
  "filePath": "component.ts",
18210
- "line": 125,
18406
+ "line": 129,
18211
18407
  "character": 12
18212
18408
  },
18213
18409
  "name": "string"
@@ -18224,7 +18420,7 @@
18224
18420
  "__schema": "TypeRefSchema",
18225
18421
  "location": {
18226
18422
  "filePath": "component.ts",
18227
- "line": 126,
18423
+ "line": 130,
18228
18424
  "character": 7
18229
18425
  },
18230
18426
  "name": "Promise",
@@ -18233,14 +18429,14 @@
18233
18429
  "__schema": "TypeArraySchema",
18234
18430
  "location": {
18235
18431
  "filePath": "component.ts",
18236
- "line": 126,
18432
+ "line": 130,
18237
18433
  "character": 15
18238
18434
  },
18239
18435
  "type": {
18240
18436
  "__schema": "TypeRefSchema",
18241
18437
  "location": {
18242
18438
  "filePath": "component.ts",
18243
- "line": 126,
18439
+ "line": 130,
18244
18440
  "character": 15
18245
18441
  },
18246
18442
  "name": "ComponentLog",
@@ -18257,7 +18453,7 @@
18257
18453
  "__schema": "FunctionLikeSchema",
18258
18454
  "location": {
18259
18455
  "filePath": "component.ts",
18260
- "line": 149,
18456
+ "line": 153,
18261
18457
  "character": 3
18262
18458
  },
18263
18459
  "signature": "(method) Component.getDependencies(): DependencyList",
@@ -18267,7 +18463,7 @@
18267
18463
  "__schema": "TypeRefSchema",
18268
18464
  "location": {
18269
18465
  "filePath": "component.ts",
18270
- "line": 149,
18466
+ "line": 153,
18271
18467
  "character": 3
18272
18468
  },
18273
18469
  "name": "DependencyList",
@@ -18282,7 +18478,7 @@
18282
18478
  "__schema": "FunctionLikeSchema",
18283
18479
  "location": {
18284
18480
  "filePath": "component.ts",
18285
- "line": 153,
18481
+ "line": 157,
18286
18482
  "character": 3
18287
18483
  },
18288
18484
  "signature": "(method) Component.getPackageName(): string",
@@ -18292,7 +18488,7 @@
18292
18488
  "__schema": "KeywordTypeSchema",
18293
18489
  "location": {
18294
18490
  "filePath": "component.ts",
18295
- "line": 153,
18491
+ "line": 157,
18296
18492
  "character": 21
18297
18493
  },
18298
18494
  "name": "string"
@@ -18303,7 +18499,7 @@
18303
18499
  "__schema": "FunctionLikeSchema",
18304
18500
  "location": {
18305
18501
  "filePath": "component.ts",
18306
- "line": 157,
18502
+ "line": 161,
18307
18503
  "character": 3
18308
18504
  },
18309
18505
  "signature": "(method) Component.stringify(): string",
@@ -18313,7 +18509,7 @@
18313
18509
  "__schema": "KeywordTypeSchema",
18314
18510
  "location": {
18315
18511
  "filePath": "component.ts",
18316
- "line": 157,
18512
+ "line": 161,
18317
18513
  "character": 16
18318
18514
  },
18319
18515
  "name": "string"
@@ -18324,7 +18520,7 @@
18324
18520
  "__schema": "GetAccessorSchema",
18325
18521
  "location": {
18326
18522
  "filePath": "component.ts",
18327
- "line": 177,
18523
+ "line": 181,
18328
18524
  "character": 3
18329
18525
  },
18330
18526
  "signature": "(getter) Component.displayName: string",
@@ -18333,7 +18529,7 @@
18333
18529
  "__schema": "InferenceTypeSchema",
18334
18530
  "location": {
18335
18531
  "filePath": "component.ts",
18336
- "line": 177,
18532
+ "line": 181,
18337
18533
  "character": 3
18338
18534
  },
18339
18535
  "type": "string"
@@ -18343,14 +18539,14 @@
18343
18539
  "__schema": "FunctionLikeSchema",
18344
18540
  "location": {
18345
18541
  "filePath": "component.ts",
18346
- "line": 186,
18542
+ "line": 190,
18347
18543
  "character": 3
18348
18544
  },
18349
18545
  "doc": {
18350
18546
  "__schema": "DocSchema",
18351
18547
  "location": {
18352
18548
  "filePath": "component.ts",
18353
- "line": 182,
18549
+ "line": 186,
18354
18550
  "character": 3
18355
18551
  },
18356
18552
  "raw": "/**\n * tag a component `Snap` with a semantic version. we follow SemVer specs as defined [here](https://semver.org/)).\n */",
@@ -18363,7 +18559,7 @@
18363
18559
  "__schema": "ParameterSchema",
18364
18560
  "location": {
18365
18561
  "filePath": "component.ts",
18366
- "line": 186,
18562
+ "line": 190,
18367
18563
  "character": 7
18368
18564
  },
18369
18565
  "name": "version",
@@ -18371,7 +18567,7 @@
18371
18567
  "__schema": "TypeRefSchema",
18372
18568
  "location": {
18373
18569
  "filePath": "component.ts",
18374
- "line": 186,
18570
+ "line": 190,
18375
18571
  "character": 16
18376
18572
  },
18377
18573
  "name": "SemVer",
@@ -18385,7 +18581,7 @@
18385
18581
  "__schema": "InferenceTypeSchema",
18386
18582
  "location": {
18387
18583
  "filePath": "component.ts",
18388
- "line": 186,
18584
+ "line": 190,
18389
18585
  "character": 3
18390
18586
  },
18391
18587
  "type": "void"
@@ -18396,14 +18592,14 @@
18396
18592
  "__schema": "FunctionLikeSchema",
18397
18593
  "location": {
18398
18594
  "filePath": "component.ts",
18399
- "line": 195,
18595
+ "line": 199,
18400
18596
  "character": 3
18401
18597
  },
18402
18598
  "doc": {
18403
18599
  "__schema": "DocSchema",
18404
18600
  "location": {
18405
18601
  "filePath": "component.ts",
18406
- "line": 192,
18602
+ "line": 196,
18407
18603
  "character": 3
18408
18604
  },
18409
18605
  "raw": "/**\n * determines whether this component is modified in the workspace.\n */",
@@ -18416,7 +18612,7 @@
18416
18612
  "__schema": "TypeRefSchema",
18417
18613
  "location": {
18418
18614
  "filePath": "component.ts",
18419
- "line": 195,
18615
+ "line": 199,
18420
18616
  "character": 17
18421
18617
  },
18422
18618
  "name": "Promise",
@@ -18425,7 +18621,7 @@
18425
18621
  "__schema": "KeywordTypeSchema",
18426
18622
  "location": {
18427
18623
  "filePath": "component.ts",
18428
- "line": 195,
18624
+ "line": 199,
18429
18625
  "character": 25
18430
18626
  },
18431
18627
  "name": "boolean"
@@ -18438,14 +18634,14 @@
18438
18634
  "__schema": "FunctionLikeSchema",
18439
18635
  "location": {
18440
18636
  "filePath": "component.ts",
18441
- "line": 204,
18637
+ "line": 208,
18442
18638
  "character": 3
18443
18639
  },
18444
18640
  "doc": {
18445
18641
  "__schema": "DocSchema",
18446
18642
  "location": {
18447
18643
  "filePath": "component.ts",
18448
- "line": 199,
18644
+ "line": 203,
18449
18645
  "character": 3
18450
18646
  },
18451
18647
  "raw": "/**\n * whether a component is marked as deleted.\n * warning! if this component is not the head, it might be deleted by a range later on.\n * to get accurate results, please use teambit.component/remove aspect, \"isDeleted\" method.\n */",
@@ -18458,7 +18654,7 @@
18458
18654
  "__schema": "KeywordTypeSchema",
18459
18655
  "location": {
18460
18656
  "filePath": "component.ts",
18461
- "line": 204,
18657
+ "line": 208,
18462
18658
  "character": 16
18463
18659
  },
18464
18660
  "name": "boolean"
@@ -18469,14 +18665,14 @@
18469
18665
  "__schema": "FunctionLikeSchema",
18470
18666
  "location": {
18471
18667
  "filePath": "component.ts",
18472
- "line": 211,
18668
+ "line": 215,
18473
18669
  "character": 3
18474
18670
  },
18475
18671
  "doc": {
18476
18672
  "__schema": "DocSchema",
18477
18673
  "location": {
18478
18674
  "filePath": "component.ts",
18479
- "line": 208,
18675
+ "line": 212,
18480
18676
  "character": 3
18481
18677
  },
18482
18678
  "raw": "/**\n * is component isOutdated\n */",
@@ -18489,7 +18685,7 @@
18489
18685
  "__schema": "KeywordTypeSchema",
18490
18686
  "location": {
18491
18687
  "filePath": "component.ts",
18492
- "line": 211,
18688
+ "line": 215,
18493
18689
  "character": 17
18494
18690
  },
18495
18691
  "name": "boolean"
@@ -18500,14 +18696,14 @@
18500
18696
  "__schema": "FunctionLikeSchema",
18501
18697
  "location": {
18502
18698
  "filePath": "component.ts",
18503
- "line": 222,
18699
+ "line": 226,
18504
18700
  "character": 3
18505
18701
  },
18506
18702
  "doc": {
18507
18703
  "__schema": "DocSchema",
18508
18704
  "location": {
18509
18705
  "filePath": "component.ts",
18510
- "line": 219,
18706
+ "line": 223,
18511
18707
  "character": 3
18512
18708
  },
18513
18709
  "raw": "/**\n * determines whether this component is new.\n */",
@@ -18520,7 +18716,7 @@
18520
18716
  "__schema": "TypeRefSchema",
18521
18717
  "location": {
18522
18718
  "filePath": "component.ts",
18523
- "line": 222,
18719
+ "line": 226,
18524
18720
  "character": 12
18525
18721
  },
18526
18722
  "name": "Promise",
@@ -18529,7 +18725,7 @@
18529
18725
  "__schema": "KeywordTypeSchema",
18530
18726
  "location": {
18531
18727
  "filePath": "component.ts",
18532
- "line": 222,
18728
+ "line": 226,
18533
18729
  "character": 20
18534
18730
  },
18535
18731
  "name": "boolean"
@@ -18542,7 +18738,38 @@
18542
18738
  "__schema": "FunctionLikeSchema",
18543
18739
  "location": {
18544
18740
  "filePath": "component.ts",
18545
- "line": 227,
18741
+ "line": 233,
18742
+ "character": 3
18743
+ },
18744
+ "doc": {
18745
+ "__schema": "DocSchema",
18746
+ "location": {
18747
+ "filePath": "component.ts",
18748
+ "line": 230,
18749
+ "character": 3
18750
+ },
18751
+ "raw": "/**\n * whether the component exists on the remote.\n */",
18752
+ "comment": "whether the component exists on the remote."
18753
+ },
18754
+ "signature": "(method) Component.isExported(): boolean",
18755
+ "name": "isExported",
18756
+ "params": [],
18757
+ "returnType": {
18758
+ "__schema": "KeywordTypeSchema",
18759
+ "location": {
18760
+ "filePath": "component.ts",
18761
+ "line": 233,
18762
+ "character": 17
18763
+ },
18764
+ "name": "boolean"
18765
+ },
18766
+ "modifiers": []
18767
+ },
18768
+ {
18769
+ "__schema": "FunctionLikeSchema",
18770
+ "location": {
18771
+ "filePath": "component.ts",
18772
+ "line": 238,
18546
18773
  "character": 3
18547
18774
  },
18548
18775
  "signature": "(method) Component.loadState(snapId: string): Promise<State>",
@@ -18552,7 +18779,7 @@
18552
18779
  "__schema": "ParameterSchema",
18553
18780
  "location": {
18554
18781
  "filePath": "component.ts",
18555
- "line": 227,
18782
+ "line": 238,
18556
18783
  "character": 13
18557
18784
  },
18558
18785
  "name": "snapId",
@@ -18560,7 +18787,7 @@
18560
18787
  "__schema": "KeywordTypeSchema",
18561
18788
  "location": {
18562
18789
  "filePath": "component.ts",
18563
- "line": 227,
18790
+ "line": 238,
18564
18791
  "character": 21
18565
18792
  },
18566
18793
  "name": "string"
@@ -18573,7 +18800,7 @@
18573
18800
  "__schema": "TypeRefSchema",
18574
18801
  "location": {
18575
18802
  "filePath": "component.ts",
18576
- "line": 227,
18803
+ "line": 238,
18577
18804
  "character": 30
18578
18805
  },
18579
18806
  "name": "Promise",
@@ -18582,7 +18809,7 @@
18582
18809
  "__schema": "TypeRefSchema",
18583
18810
  "location": {
18584
18811
  "filePath": "component.ts",
18585
- "line": 227,
18812
+ "line": 238,
18586
18813
  "character": 38
18587
18814
  },
18588
18815
  "name": "State"
@@ -18595,7 +18822,7 @@
18595
18822
  "__schema": "FunctionLikeSchema",
18596
18823
  "location": {
18597
18824
  "filePath": "component.ts",
18598
- "line": 231,
18825
+ "line": 242,
18599
18826
  "character": 3
18600
18827
  },
18601
18828
  "signature": "(method) Component.loadSnap(snapId?: string): Promise<Snap>",
@@ -18605,7 +18832,7 @@
18605
18832
  "__schema": "ParameterSchema",
18606
18833
  "location": {
18607
18834
  "filePath": "component.ts",
18608
- "line": 231,
18835
+ "line": 242,
18609
18836
  "character": 12
18610
18837
  },
18611
18838
  "name": "snapId",
@@ -18613,7 +18840,7 @@
18613
18840
  "__schema": "KeywordTypeSchema",
18614
18841
  "location": {
18615
18842
  "filePath": "component.ts",
18616
- "line": 231,
18843
+ "line": 242,
18617
18844
  "character": 21
18618
18845
  },
18619
18846
  "name": "string"
@@ -18626,7 +18853,7 @@
18626
18853
  "__schema": "TypeRefSchema",
18627
18854
  "location": {
18628
18855
  "filePath": "component.ts",
18629
- "line": 231,
18856
+ "line": 242,
18630
18857
  "character": 30
18631
18858
  },
18632
18859
  "name": "Promise",
@@ -18635,7 +18862,7 @@
18635
18862
  "__schema": "TypeRefSchema",
18636
18863
  "location": {
18637
18864
  "filePath": "component.ts",
18638
- "line": 231,
18865
+ "line": 242,
18639
18866
  "character": 38
18640
18867
  },
18641
18868
  "name": "Snap"
@@ -18648,14 +18875,14 @@
18648
18875
  "__schema": "FunctionLikeSchema",
18649
18876
  "location": {
18650
18877
  "filePath": "component.ts",
18651
- "line": 244,
18878
+ "line": 255,
18652
18879
  "character": 3
18653
18880
  },
18654
18881
  "doc": {
18655
18882
  "__schema": "DocSchema",
18656
18883
  "location": {
18657
18884
  "filePath": "component.ts",
18658
- "line": 239,
18885
+ "line": 250,
18659
18886
  "character": 3
18660
18887
  },
18661
18888
  "raw": "/**\n * Get iterable which iterate over snap parents lazily\n * @param snapId\n * @param options\n */",
@@ -18665,7 +18892,7 @@
18665
18892
  "__schema": "PropertyLikeTagSchema",
18666
18893
  "location": {
18667
18894
  "filePath": "component.ts",
18668
- "line": 241,
18895
+ "line": 252,
18669
18896
  "character": 6
18670
18897
  },
18671
18898
  "name": "snapId",
@@ -18675,7 +18902,7 @@
18675
18902
  "__schema": "PropertyLikeTagSchema",
18676
18903
  "location": {
18677
18904
  "filePath": "component.ts",
18678
- "line": 242,
18905
+ "line": 253,
18679
18906
  "character": 6
18680
18907
  },
18681
18908
  "name": "options",
@@ -18690,7 +18917,7 @@
18690
18917
  "__schema": "ParameterSchema",
18691
18918
  "location": {
18692
18919
  "filePath": "component.ts",
18693
- "line": 244,
18920
+ "line": 255,
18694
18921
  "character": 17
18695
18922
  },
18696
18923
  "name": "snapId",
@@ -18698,7 +18925,7 @@
18698
18925
  "__schema": "KeywordTypeSchema",
18699
18926
  "location": {
18700
18927
  "filePath": "component.ts",
18701
- "line": 244,
18928
+ "line": 255,
18702
18929
  "character": 26
18703
18930
  },
18704
18931
  "name": "string"
@@ -18710,7 +18937,7 @@
18710
18937
  "__schema": "ParameterSchema",
18711
18938
  "location": {
18712
18939
  "filePath": "component.ts",
18713
- "line": 244,
18940
+ "line": 255,
18714
18941
  "character": 34
18715
18942
  },
18716
18943
  "name": "options",
@@ -18718,7 +18945,7 @@
18718
18945
  "__schema": "TypeRefSchema",
18719
18946
  "location": {
18720
18947
  "filePath": "component.ts",
18721
- "line": 244,
18948
+ "line": 255,
18722
18949
  "character": 43
18723
18950
  },
18724
18951
  "name": "SnapsIterableOpts",
@@ -18733,7 +18960,7 @@
18733
18960
  "__schema": "TypeRefSchema",
18734
18961
  "location": {
18735
18962
  "filePath": "component.ts",
18736
- "line": 244,
18963
+ "line": 255,
18737
18964
  "character": 68
18738
18965
  },
18739
18966
  "name": "AsyncIterable",
@@ -18742,7 +18969,7 @@
18742
18969
  "__schema": "TypeRefSchema",
18743
18970
  "location": {
18744
18971
  "filePath": "component.ts",
18745
- "line": 244,
18972
+ "line": 255,
18746
18973
  "character": 82
18747
18974
  },
18748
18975
  "name": "Snap"
@@ -18755,14 +18982,14 @@
18755
18982
  "__schema": "FunctionLikeSchema",
18756
18983
  "location": {
18757
18984
  "filePath": "component.ts",
18758
- "line": 283,
18985
+ "line": 294,
18759
18986
  "character": 3
18760
18987
  },
18761
18988
  "doc": {
18762
18989
  "__schema": "DocSchema",
18763
18990
  "location": {
18764
18991
  "filePath": "component.ts",
18765
- "line": 279,
18992
+ "line": 290,
18766
18993
  "character": 3
18767
18994
  },
18768
18995
  "raw": "/**\n * traverse recursively from the provided snap (or head) upwards until it finds a tag\n * @param snapToStartFrom\n */",
@@ -18772,7 +18999,7 @@
18772
18999
  "__schema": "PropertyLikeTagSchema",
18773
19000
  "location": {
18774
19001
  "filePath": "component.ts",
18775
- "line": 281,
19002
+ "line": 292,
18776
19003
  "character": 6
18777
19004
  },
18778
19005
  "name": "snapToStartFrom",
@@ -18787,7 +19014,7 @@
18787
19014
  "__schema": "ParameterSchema",
18788
19015
  "location": {
18789
19016
  "filePath": "component.ts",
18790
- "line": 283,
19017
+ "line": 294,
18791
19018
  "character": 23
18792
19019
  },
18793
19020
  "name": "snapToStartFrom",
@@ -18795,7 +19022,7 @@
18795
19022
  "__schema": "KeywordTypeSchema",
18796
19023
  "location": {
18797
19024
  "filePath": "component.ts",
18798
- "line": 283,
19025
+ "line": 294,
18799
19026
  "character": 41
18800
19027
  },
18801
19028
  "name": "string"
@@ -18808,7 +19035,7 @@
18808
19035
  "__schema": "TypeRefSchema",
18809
19036
  "location": {
18810
19037
  "filePath": "component.ts",
18811
- "line": 283,
19038
+ "line": 294,
18812
19039
  "character": 50
18813
19040
  },
18814
19041
  "name": "Promise",
@@ -18817,7 +19044,7 @@
18817
19044
  "__schema": "TypeUnionSchema",
18818
19045
  "location": {
18819
19046
  "filePath": "component.ts",
18820
- "line": 283,
19047
+ "line": 294,
18821
19048
  "character": 58
18822
19049
  },
18823
19050
  "types": [
@@ -18825,7 +19052,7 @@
18825
19052
  "__schema": "TypeRefSchema",
18826
19053
  "location": {
18827
19054
  "filePath": "component.ts",
18828
- "line": 283,
19055
+ "line": 294,
18829
19056
  "character": 58
18830
19057
  },
18831
19058
  "name": "Tag"
@@ -18834,7 +19061,7 @@
18834
19061
  "__schema": "KeywordTypeSchema",
18835
19062
  "location": {
18836
19063
  "filePath": "component.ts",
18837
- "line": 283,
19064
+ "line": 294,
18838
19065
  "character": 64
18839
19066
  },
18840
19067
  "name": "undefined"
@@ -18851,14 +19078,14 @@
18851
19078
  "__schema": "FunctionLikeSchema",
18852
19079
  "location": {
18853
19080
  "filePath": "component.ts",
18854
- "line": 307,
19081
+ "line": 318,
18855
19082
  "character": 3
18856
19083
  },
18857
19084
  "doc": {
18858
19085
  "__schema": "DocSchema",
18859
19086
  "location": {
18860
19087
  "filePath": "component.ts",
18861
- "line": 303,
19088
+ "line": 314,
18862
19089
  "character": 3
18863
19090
  },
18864
19091
  "raw": "/**\n * id.version can be either a tag or a hash.\n * if it's a hash, it may have a tag point to it. if it does, return the tag.\n */",
@@ -18871,7 +19098,7 @@
18871
19098
  "__schema": "TypeUnionSchema",
18872
19099
  "location": {
18873
19100
  "filePath": "component.ts",
18874
- "line": 307,
19101
+ "line": 318,
18875
19102
  "character": 13
18876
19103
  },
18877
19104
  "types": [
@@ -18879,7 +19106,7 @@
18879
19106
  "__schema": "TypeRefSchema",
18880
19107
  "location": {
18881
19108
  "filePath": "component.ts",
18882
- "line": 307,
19109
+ "line": 318,
18883
19110
  "character": 13
18884
19111
  },
18885
19112
  "name": "Tag"
@@ -18888,7 +19115,7 @@
18888
19115
  "__schema": "KeywordTypeSchema",
18889
19116
  "location": {
18890
19117
  "filePath": "component.ts",
18891
- "line": 307,
19118
+ "line": 318,
18892
19119
  "character": 19
18893
19120
  },
18894
19121
  "name": "undefined"
@@ -18901,14 +19128,14 @@
18901
19128
  "__schema": "FunctionLikeSchema",
18902
19129
  "location": {
18903
19130
  "filePath": "component.ts",
18904
- "line": 317,
19131
+ "line": 328,
18905
19132
  "character": 3
18906
19133
  },
18907
19134
  "doc": {
18908
19135
  "__schema": "DocSchema",
18909
19136
  "location": {
18910
19137
  "filePath": "component.ts",
18911
- "line": 313,
19138
+ "line": 324,
18912
19139
  "character": 3
18913
19140
  },
18914
19141
  "raw": "/**\n * id.version can be either a tag or a hash.\n * if it's a tag, find the hash it points to.\n */",
@@ -18921,7 +19148,7 @@
18921
19148
  "__schema": "TypeUnionSchema",
18922
19149
  "location": {
18923
19150
  "filePath": "component.ts",
18924
- "line": 317,
19151
+ "line": 328,
18925
19152
  "character": 18
18926
19153
  },
18927
19154
  "types": [
@@ -18929,7 +19156,7 @@
18929
19156
  "__schema": "KeywordTypeSchema",
18930
19157
  "location": {
18931
19158
  "filePath": "component.ts",
18932
- "line": 317,
19159
+ "line": 328,
18933
19160
  "character": 18
18934
19161
  },
18935
19162
  "name": "string"
@@ -18938,7 +19165,7 @@
18938
19165
  "__schema": "KeywordTypeSchema",
18939
19166
  "location": {
18940
19167
  "filePath": "component.ts",
18941
- "line": 317,
19168
+ "line": 328,
18942
19169
  "character": 27
18943
19170
  },
18944
19171
  "name": "undefined"
@@ -18951,14 +19178,14 @@
18951
19178
  "__schema": "FunctionLikeSchema",
18952
19179
  "location": {
18953
19180
  "filePath": "component.ts",
18954
- "line": 328,
19181
+ "line": 339,
18955
19182
  "character": 3
18956
19183
  },
18957
19184
  "doc": {
18958
19185
  "__schema": "DocSchema",
18959
19186
  "location": {
18960
19187
  "filePath": "component.ts",
18961
- "line": 324,
19188
+ "line": 335,
18962
19189
  "character": 3
18963
19190
  },
18964
19191
  "raw": "/**\n * in case a component is new, it returns undefined.\n * otherwise, it returns the Snap object (hash/parents/log) of the current component (according to the version in the id)\n */",
@@ -18971,7 +19198,7 @@
18971
19198
  "__schema": "TypeRefSchema",
18972
19199
  "location": {
18973
19200
  "filePath": "component.ts",
18974
- "line": 328,
19201
+ "line": 339,
18975
19202
  "character": 27
18976
19203
  },
18977
19204
  "name": "Promise",
@@ -18980,7 +19207,7 @@
18980
19207
  "__schema": "TypeUnionSchema",
18981
19208
  "location": {
18982
19209
  "filePath": "component.ts",
18983
- "line": 328,
19210
+ "line": 339,
18984
19211
  "character": 35
18985
19212
  },
18986
19213
  "types": [
@@ -18988,7 +19215,7 @@
18988
19215
  "__schema": "TypeRefSchema",
18989
19216
  "location": {
18990
19217
  "filePath": "component.ts",
18991
- "line": 328,
19218
+ "line": 339,
18992
19219
  "character": 35
18993
19220
  },
18994
19221
  "name": "Snap"
@@ -18997,7 +19224,7 @@
18997
19224
  "__schema": "KeywordTypeSchema",
18998
19225
  "location": {
18999
19226
  "filePath": "component.ts",
19000
- "line": 328,
19227
+ "line": 339,
19001
19228
  "character": 42
19002
19229
  },
19003
19230
  "name": "undefined"
@@ -19014,14 +19241,14 @@
19014
19241
  "__schema": "FunctionLikeSchema",
19015
19242
  "location": {
19016
19243
  "filePath": "component.ts",
19017
- "line": 338,
19244
+ "line": 349,
19018
19245
  "character": 3
19019
19246
  },
19020
19247
  "doc": {
19021
19248
  "__schema": "DocSchema",
19022
19249
  "location": {
19023
19250
  "filePath": "component.ts",
19024
- "line": 334,
19251
+ "line": 345,
19025
19252
  "character": 3
19026
19253
  },
19027
19254
  "raw": "/**\n * checkout the component to a different version in its working tree.\n */",
@@ -19034,7 +19261,7 @@
19034
19261
  "__schema": "ParameterSchema",
19035
19262
  "location": {
19036
19263
  "filePath": "component.ts",
19037
- "line": 338,
19264
+ "line": 349,
19038
19265
  "character": 12
19039
19266
  },
19040
19267
  "name": "version",
@@ -19042,7 +19269,7 @@
19042
19269
  "__schema": "TypeRefSchema",
19043
19270
  "location": {
19044
19271
  "filePath": "component.ts",
19045
- "line": 338,
19272
+ "line": 349,
19046
19273
  "character": 21
19047
19274
  },
19048
19275
  "name": "SemVer",
@@ -19056,7 +19283,7 @@
19056
19283
  "__schema": "InferenceTypeSchema",
19057
19284
  "location": {
19058
19285
  "filePath": "component.ts",
19059
- "line": 338,
19286
+ "line": 349,
19060
19287
  "character": 3
19061
19288
  },
19062
19289
  "type": "void"
@@ -19067,14 +19294,14 @@
19067
19294
  "__schema": "FunctionLikeSchema",
19068
19295
  "location": {
19069
19296
  "filePath": "component.ts",
19070
- "line": 356,
19297
+ "line": 367,
19071
19298
  "character": 3
19072
19299
  },
19073
19300
  "doc": {
19074
19301
  "__schema": "DocSchema",
19075
19302
  "location": {
19076
19303
  "filePath": "component.ts",
19077
- "line": 340,
19304
+ "line": 351,
19078
19305
  "character": 3
19079
19306
  },
19080
19307
  "raw": "/**\n * examine difference between two components.\n */",
@@ -19087,7 +19314,7 @@
19087
19314
  "__schema": "ParameterSchema",
19088
19315
  "location": {
19089
19316
  "filePath": "component.ts",
19090
- "line": 356,
19317
+ "line": 367,
19091
19318
  "character": 9
19092
19319
  },
19093
19320
  "name": "path",
@@ -19095,7 +19322,7 @@
19095
19322
  "__schema": "KeywordTypeSchema",
19096
19323
  "location": {
19097
19324
  "filePath": "component.ts",
19098
- "line": 356,
19325
+ "line": 367,
19099
19326
  "character": 15
19100
19327
  },
19101
19328
  "name": "string"
@@ -19107,7 +19334,7 @@
19107
19334
  "__schema": "ParameterSchema",
19108
19335
  "location": {
19109
19336
  "filePath": "component.ts",
19110
- "line": 356,
19337
+ "line": 367,
19111
19338
  "character": 23
19112
19339
  },
19113
19340
  "name": "fs",
@@ -19115,7 +19342,7 @@
19115
19342
  "__schema": "TypeRefSchema",
19116
19343
  "location": {
19117
19344
  "filePath": "component.ts",
19118
- "line": 356,
19345
+ "line": 367,
19119
19346
  "character": 28
19120
19347
  },
19121
19348
  "name": "AnyFS",
@@ -19129,7 +19356,7 @@
19129
19356
  "__schema": "InferenceTypeSchema",
19130
19357
  "location": {
19131
19358
  "filePath": "component.ts",
19132
- "line": 356,
19359
+ "line": 367,
19133
19360
  "character": 3
19134
19361
  },
19135
19362
  "type": "void"
@@ -19140,14 +19367,14 @@
19140
19367
  "__schema": "FunctionLikeSchema",
19141
19368
  "location": {
19142
19369
  "filePath": "component.ts",
19143
- "line": 366,
19370
+ "line": 377,
19144
19371
  "character": 3
19145
19372
  },
19146
19373
  "doc": {
19147
19374
  "__schema": "DocSchema",
19148
19375
  "location": {
19149
19376
  "filePath": "component.ts",
19150
- "line": 358,
19377
+ "line": 369,
19151
19378
  "character": 3
19152
19379
  },
19153
19380
  "raw": "/**\n *\n * Check if 2 components are equal\n * @param {Component} component\n * @returns {boolean}\n * @memberof Component\n */",
@@ -19157,7 +19384,7 @@
19157
19384
  "__schema": "PropertyLikeTagSchema",
19158
19385
  "location": {
19159
19386
  "filePath": "component.ts",
19160
- "line": 361,
19387
+ "line": 372,
19161
19388
  "character": 6
19162
19389
  },
19163
19390
  "name": "component",
@@ -19166,7 +19393,7 @@
19166
19393
  "__schema": "TypeRefSchema",
19167
19394
  "location": {
19168
19395
  "filePath": "component.ts",
19169
- "line": 361,
19396
+ "line": 372,
19170
19397
  "character": 14
19171
19398
  },
19172
19399
  "name": "Component"
@@ -19176,7 +19403,7 @@
19176
19403
  "__schema": "ReturnTagSchema",
19177
19404
  "location": {
19178
19405
  "filePath": "component.ts",
19179
- "line": 362,
19406
+ "line": 373,
19180
19407
  "character": 6
19181
19408
  },
19182
19409
  "tagName": "return",
@@ -19184,7 +19411,7 @@
19184
19411
  "__schema": "KeywordTypeSchema",
19185
19412
  "location": {
19186
19413
  "filePath": "component.ts",
19187
- "line": 362,
19414
+ "line": 373,
19188
19415
  "character": 16
19189
19416
  },
19190
19417
  "name": "boolean"
@@ -19194,7 +19421,7 @@
19194
19421
  "__schema": "TagSchema",
19195
19422
  "location": {
19196
19423
  "filePath": "component.ts",
19197
- "line": 363,
19424
+ "line": 374,
19198
19425
  "character": 6
19199
19426
  },
19200
19427
  "tagName": "memberof",
@@ -19209,7 +19436,7 @@
19209
19436
  "__schema": "ParameterSchema",
19210
19437
  "location": {
19211
19438
  "filePath": "component.ts",
19212
- "line": 366,
19439
+ "line": 377,
19213
19440
  "character": 10
19214
19441
  },
19215
19442
  "name": "component",
@@ -19217,7 +19444,7 @@
19217
19444
  "__schema": "TypeRefSchema",
19218
19445
  "location": {
19219
19446
  "filePath": "component.ts",
19220
- "line": 366,
19447
+ "line": 377,
19221
19448
  "character": 21
19222
19449
  },
19223
19450
  "name": "Component"
@@ -19230,7 +19457,7 @@
19230
19457
  "__schema": "KeywordTypeSchema",
19231
19458
  "location": {
19232
19459
  "filePath": "component.ts",
19233
- "line": 366,
19460
+ "line": 377,
19234
19461
  "character": 33
19235
19462
  },
19236
19463
  "name": "boolean"
@@ -19841,7 +20068,7 @@
19841
20068
  "_legacy": {
19842
20069
  "scope": "teambit.component",
19843
20070
  "name": "component",
19844
- "version": "1.0.281"
20071
+ "version": "1.0.282"
19845
20072
  },
19846
20073
  "_scope": "teambit.component"
19847
20074
  }
@@ -22351,7 +22578,7 @@
22351
22578
  "line": 171,
22352
22579
  "character": 3
22353
22580
  },
22354
- "signature": "(method) ComponentFactory.hasId(componentId: ComponentID): Promise<boolean>",
22581
+ "signature": "(method) ComponentFactory.hasId(componentId: ComponentID): Promise<boolean> | boolean",
22355
22582
  "name": "hasId",
22356
22583
  "params": [
22357
22584
  {
@@ -22381,20 +22608,39 @@
22381
22608
  }
22382
22609
  ],
22383
22610
  "returnType": {
22384
- "__schema": "TypeRefSchema",
22611
+ "__schema": "TypeUnionSchema",
22385
22612
  "location": {
22386
22613
  "filePath": "component-factory.ts",
22387
22614
  "line": 171,
22388
22615
  "character": 36
22389
22616
  },
22390
- "name": "Promise",
22391
- "typeArgs": [
22617
+ "types": [
22618
+ {
22619
+ "__schema": "TypeRefSchema",
22620
+ "location": {
22621
+ "filePath": "component-factory.ts",
22622
+ "line": 171,
22623
+ "character": 36
22624
+ },
22625
+ "name": "Promise",
22626
+ "typeArgs": [
22627
+ {
22628
+ "__schema": "KeywordTypeSchema",
22629
+ "location": {
22630
+ "filePath": "component-factory.ts",
22631
+ "line": 171,
22632
+ "character": 44
22633
+ },
22634
+ "name": "boolean"
22635
+ }
22636
+ ]
22637
+ },
22392
22638
  {
22393
22639
  "__schema": "KeywordTypeSchema",
22394
22640
  "location": {
22395
22641
  "filePath": "component-factory.ts",
22396
22642
  "line": 171,
22397
- "character": 44
22643
+ "character": 55
22398
22644
  },
22399
22645
  "name": "boolean"
22400
22646
  }
@@ -22569,7 +22815,7 @@
22569
22815
  "__schema": "FunctionLikeSchema",
22570
22816
  "location": {
22571
22817
  "filePath": "component-factory.ts",
22572
- "line": 190,
22818
+ "line": 189,
22573
22819
  "character": 3
22574
22820
  },
22575
22821
  "doc": {
@@ -22579,6 +22825,63 @@
22579
22825
  "line": 186,
22580
22826
  "character": 3
22581
22827
  },
22828
+ "raw": "/**\n * whether the component exists on the remote.\n */",
22829
+ "comment": "whether the component exists on the remote."
22830
+ },
22831
+ "signature": "(method) ComponentFactory.isExported(componentId: ComponentID): boolean",
22832
+ "name": "isExported",
22833
+ "params": [
22834
+ {
22835
+ "__schema": "ParameterSchema",
22836
+ "location": {
22837
+ "filePath": "component-factory.ts",
22838
+ "line": 189,
22839
+ "character": 14
22840
+ },
22841
+ "name": "componentId",
22842
+ "type": {
22843
+ "__schema": "TypeRefSchema",
22844
+ "location": {
22845
+ "filePath": "component-factory.ts",
22846
+ "line": 189,
22847
+ "character": 27
22848
+ },
22849
+ "name": "ComponentID",
22850
+ "componentId": {
22851
+ "scope": "teambit.component",
22852
+ "name": "component-id",
22853
+ "version": "1.2.0"
22854
+ }
22855
+ },
22856
+ "isOptional": false,
22857
+ "isSpread": false
22858
+ }
22859
+ ],
22860
+ "returnType": {
22861
+ "__schema": "KeywordTypeSchema",
22862
+ "location": {
22863
+ "filePath": "component-factory.ts",
22864
+ "line": 189,
22865
+ "character": 41
22866
+ },
22867
+ "name": "boolean"
22868
+ },
22869
+ "modifiers": []
22870
+ },
22871
+ {
22872
+ "__schema": "FunctionLikeSchema",
22873
+ "location": {
22874
+ "filePath": "component-factory.ts",
22875
+ "line": 195,
22876
+ "character": 3
22877
+ },
22878
+ "doc": {
22879
+ "__schema": "DocSchema",
22880
+ "location": {
22881
+ "filePath": "component-factory.ts",
22882
+ "line": 191,
22883
+ "character": 3
22884
+ },
22582
22885
  "raw": "/**\n * write the component to the filesystem when applicable (no-op for scope).\n * to change the component-path, specify the \"rootPath\", which should be a relative path inside the workspace.\n */",
22583
22886
  "comment": "write the component to the filesystem when applicable (no-op for scope).\nto change the component-path, specify the \"rootPath\", which should be a relative path inside the workspace."
22584
22887
  },
@@ -22589,7 +22892,7 @@
22589
22892
  "__schema": "ParameterSchema",
22590
22893
  "location": {
22591
22894
  "filePath": "component-factory.ts",
22592
- "line": 190,
22895
+ "line": 195,
22593
22896
  "character": 9
22594
22897
  },
22595
22898
  "name": "component",
@@ -22597,7 +22900,7 @@
22597
22900
  "__schema": "TypeRefSchema",
22598
22901
  "location": {
22599
22902
  "filePath": "component-factory.ts",
22600
- "line": 190,
22903
+ "line": 195,
22601
22904
  "character": 20
22602
22905
  },
22603
22906
  "name": "Component"
@@ -22609,7 +22912,7 @@
22609
22912
  "__schema": "ParameterSchema",
22610
22913
  "location": {
22611
22914
  "filePath": "component-factory.ts",
22612
- "line": 190,
22915
+ "line": 195,
22613
22916
  "character": 31
22614
22917
  },
22615
22918
  "name": "rootPath",
@@ -22617,7 +22920,7 @@
22617
22920
  "__schema": "KeywordTypeSchema",
22618
22921
  "location": {
22619
22922
  "filePath": "component-factory.ts",
22620
- "line": 190,
22923
+ "line": 195,
22621
22924
  "character": 42
22622
22925
  },
22623
22926
  "name": "string"
@@ -22630,7 +22933,7 @@
22630
22933
  "__schema": "TypeRefSchema",
22631
22934
  "location": {
22632
22935
  "filePath": "component-factory.ts",
22633
- "line": 190,
22936
+ "line": 195,
22634
22937
  "character": 51
22635
22938
  },
22636
22939
  "name": "Promise",
@@ -22639,7 +22942,7 @@
22639
22942
  "__schema": "KeywordTypeSchema",
22640
22943
  "location": {
22641
22944
  "filePath": "component-factory.ts",
22642
- "line": 190,
22945
+ "line": 195,
22643
22946
  "character": 59
22644
22947
  },
22645
22948
  "name": "void"
@@ -22652,14 +22955,14 @@
22652
22955
  "__schema": "VariableLikeSchema",
22653
22956
  "location": {
22654
22957
  "filePath": "component-factory.ts",
22655
- "line": 195,
22958
+ "line": 200,
22656
22959
  "character": 3
22657
22960
  },
22658
22961
  "doc": {
22659
22962
  "__schema": "DocSchema",
22660
22963
  "location": {
22661
22964
  "filePath": "component-factory.ts",
22662
- "line": 192,
22965
+ "line": 197,
22663
22966
  "character": 3
22664
22967
  },
22665
22968
  "raw": "/**\n * determine whether host should be the prior one in case multiple hosts persist.\n */",
@@ -22671,7 +22974,7 @@
22671
22974
  "__schema": "KeywordTypeSchema",
22672
22975
  "location": {
22673
22976
  "filePath": "component-factory.ts",
22674
- "line": 195,
22977
+ "line": 200,
22675
22978
  "character": 14
22676
22979
  },
22677
22980
  "name": "boolean"
@@ -25209,7 +25512,7 @@
25209
25512
  "_legacy": {
25210
25513
  "scope": "teambit.component",
25211
25514
  "name": "component",
25212
- "version": "1.0.281"
25515
+ "version": "1.0.282"
25213
25516
  },
25214
25517
  "_scope": "teambit.component"
25215
25518
  }
@@ -25233,7 +25536,7 @@
25233
25536
  "__schema": "TypeSchema",
25234
25537
  "location": {
25235
25538
  "filePath": "component.main.runtime.ts",
25236
- "line": 26,
25539
+ "line": 27,
25237
25540
  "character": 1
25238
25541
  },
25239
25542
  "signature": "type ComponentHostSlot = SlotRegistry<ComponentFactory>",
@@ -25242,7 +25545,7 @@
25242
25545
  "__schema": "TypeRefSchema",
25243
25546
  "location": {
25244
25547
  "filePath": "component.main.runtime.ts",
25245
- "line": 26,
25548
+ "line": 27,
25246
25549
  "character": 33
25247
25550
  },
25248
25551
  "name": "SlotRegistry",
@@ -25256,7 +25559,7 @@
25256
25559
  "__schema": "TypeRefSchema",
25257
25560
  "location": {
25258
25561
  "filePath": "component.main.runtime.ts",
25259
- "line": 26,
25562
+ "line": 27,
25260
25563
  "character": 46
25261
25564
  },
25262
25565
  "name": "ComponentFactory"
@@ -25268,7 +25571,7 @@
25268
25571
  "__schema": "TypeSchema",
25269
25572
  "location": {
25270
25573
  "filePath": "component.main.runtime.ts",
25271
- "line": 28,
25574
+ "line": 29,
25272
25575
  "character": 1
25273
25576
  },
25274
25577
  "signature": "type ShowFragmentSlot = SlotRegistry<ShowFragment[]>",
@@ -25277,7 +25580,7 @@
25277
25580
  "__schema": "TypeRefSchema",
25278
25581
  "location": {
25279
25582
  "filePath": "component.main.runtime.ts",
25280
- "line": 28,
25583
+ "line": 29,
25281
25584
  "character": 32
25282
25585
  },
25283
25586
  "name": "SlotRegistry",
@@ -25291,14 +25594,14 @@
25291
25594
  "__schema": "TypeArraySchema",
25292
25595
  "location": {
25293
25596
  "filePath": "component.main.runtime.ts",
25294
- "line": 28,
25597
+ "line": 29,
25295
25598
  "character": 45
25296
25599
  },
25297
25600
  "type": {
25298
25601
  "__schema": "TypeRefSchema",
25299
25602
  "location": {
25300
25603
  "filePath": "component.main.runtime.ts",
25301
- "line": 28,
25604
+ "line": 29,
25302
25605
  "character": 45
25303
25606
  },
25304
25607
  "name": "ShowFragment"
@@ -25311,7 +25614,7 @@
25311
25614
  "__schema": "ClassSchema",
25312
25615
  "location": {
25313
25616
  "filePath": "component.main.runtime.ts",
25314
- "line": 30,
25617
+ "line": 31,
25315
25618
  "character": 1
25316
25619
  },
25317
25620
  "signature": "class ComponentMain",
@@ -25321,7 +25624,7 @@
25321
25624
  "__schema": "ConstructorSchema",
25322
25625
  "location": {
25323
25626
  "filePath": "component.main.runtime.ts",
25324
- "line": 31,
25627
+ "line": 32,
25325
25628
  "character": 3
25326
25629
  },
25327
25630
  "signature": "constructor ComponentMain(hostSlot: ComponentHostSlot, express: ExpressMain, showFragmentSlot: ShowFragmentSlot): ComponentMain",
@@ -25331,7 +25634,7 @@
25331
25634
  "__schema": "ParameterSchema",
25332
25635
  "location": {
25333
25636
  "filePath": "component.main.runtime.ts",
25334
- "line": 35,
25637
+ "line": 36,
25335
25638
  "character": 5
25336
25639
  },
25337
25640
  "name": "hostSlot",
@@ -25339,7 +25642,7 @@
25339
25642
  "__schema": "TypeRefSchema",
25340
25643
  "location": {
25341
25644
  "filePath": "component.main.runtime.ts",
25342
- "line": 35,
25645
+ "line": 36,
25343
25646
  "character": 23
25344
25647
  },
25345
25648
  "name": "ComponentHostSlot",
@@ -25352,7 +25655,7 @@
25352
25655
  "__schema": "ParameterSchema",
25353
25656
  "location": {
25354
25657
  "filePath": "component.main.runtime.ts",
25355
- "line": 40,
25658
+ "line": 41,
25356
25659
  "character": 5
25357
25660
  },
25358
25661
  "name": "express",
@@ -25360,7 +25663,7 @@
25360
25663
  "__schema": "TypeRefSchema",
25361
25664
  "location": {
25362
25665
  "filePath": "component.main.runtime.ts",
25363
- "line": 40,
25666
+ "line": 41,
25364
25667
  "character": 22
25365
25668
  },
25366
25669
  "name": "ExpressMain",
@@ -25376,7 +25679,7 @@
25376
25679
  "__schema": "ParameterSchema",
25377
25680
  "location": {
25378
25681
  "filePath": "component.main.runtime.ts",
25379
- "line": 42,
25682
+ "line": 43,
25380
25683
  "character": 5
25381
25684
  },
25382
25685
  "name": "showFragmentSlot",
@@ -25384,7 +25687,7 @@
25384
25687
  "__schema": "TypeRefSchema",
25385
25688
  "location": {
25386
25689
  "filePath": "component.main.runtime.ts",
25387
- "line": 42,
25690
+ "line": 43,
25388
25691
  "character": 31
25389
25692
  },
25390
25693
  "name": "ShowFragmentSlot",
@@ -25398,7 +25701,7 @@
25398
25701
  "__schema": "ThisTypeSchema",
25399
25702
  "location": {
25400
25703
  "filePath": "component.main.runtime.ts",
25401
- "line": 30,
25704
+ "line": 31,
25402
25705
  "character": 1
25403
25706
  },
25404
25707
  "name": "ComponentMain"
@@ -25409,14 +25712,14 @@
25409
25712
  "__schema": "FunctionLikeSchema",
25410
25713
  "location": {
25411
25714
  "filePath": "component.main.runtime.ts",
25412
- "line": 48,
25715
+ "line": 49,
25413
25716
  "character": 3
25414
25717
  },
25415
25718
  "doc": {
25416
25719
  "__schema": "DocSchema",
25417
25720
  "location": {
25418
25721
  "filePath": "component.main.runtime.ts",
25419
- "line": 45,
25722
+ "line": 46,
25420
25723
  "character": 3
25421
25724
  },
25422
25725
  "raw": "/**\n * register a new component host.\n */",
@@ -25429,7 +25732,7 @@
25429
25732
  "__schema": "ParameterSchema",
25430
25733
  "location": {
25431
25734
  "filePath": "component.main.runtime.ts",
25432
- "line": 48,
25735
+ "line": 49,
25433
25736
  "character": 16
25434
25737
  },
25435
25738
  "name": "host",
@@ -25437,7 +25740,7 @@
25437
25740
  "__schema": "TypeRefSchema",
25438
25741
  "location": {
25439
25742
  "filePath": "component.main.runtime.ts",
25440
- "line": 48,
25743
+ "line": 49,
25441
25744
  "character": 22
25442
25745
  },
25443
25746
  "name": "ComponentFactory"
@@ -25450,7 +25753,7 @@
25450
25753
  "__schema": "TypeRefSchema",
25451
25754
  "location": {
25452
25755
  "filePath": "component.main.runtime.ts",
25453
- "line": 48,
25756
+ "line": 49,
25454
25757
  "character": 3
25455
25758
  },
25456
25759
  "name": "ComponentMain"
@@ -25461,14 +25764,14 @@
25461
25764
  "__schema": "FunctionLikeSchema",
25462
25765
  "location": {
25463
25766
  "filePath": "component.main.runtime.ts",
25464
- "line": 63,
25767
+ "line": 64,
25465
25768
  "character": 3
25466
25769
  },
25467
25770
  "doc": {
25468
25771
  "__schema": "DocSchema",
25469
25772
  "location": {
25470
25773
  "filePath": "component.main.runtime.ts",
25471
- "line": 53,
25774
+ "line": 54,
25472
25775
  "character": 3
25473
25776
  },
25474
25777
  "raw": "/**\n * important! avoid using this method.\n * seems like this method was written to work around a very specific case when the ComponentID of the aspects are\n * not available. in case of new components, to get the ComponentID, the workspace-aspect is needed to get the\n * default-scope. when this method is called from the scope, there is no way to get the real component-id.\n * instead, this method asks for the \"scope\", which when called by the scope-aspect is the current scope-name.\n * it may or may not be the real scope-name of the aspect.\n * to fix this possibly incorrect scope-name, the `workspace.resolveScopeAspectListIds()` checks whether the\n * scope-name is the same as scope.name, and if so, resolve it to the correct scope-name.\n */",
@@ -25481,7 +25784,7 @@
25481
25784
  "__schema": "ParameterSchema",
25482
25785
  "location": {
25483
25786
  "filePath": "component.main.runtime.ts",
25484
- "line": 63,
25787
+ "line": 64,
25485
25788
  "character": 30
25486
25789
  },
25487
25790
  "name": "legacyExtensionDataList",
@@ -25489,7 +25792,7 @@
25489
25792
  "__schema": "TypeRefSchema",
25490
25793
  "location": {
25491
25794
  "filePath": "component.main.runtime.ts",
25492
- "line": 63,
25795
+ "line": 64,
25493
25796
  "character": 55
25494
25797
  },
25495
25798
  "name": "ExtensionDataList",
@@ -25503,7 +25806,7 @@
25503
25806
  "__schema": "TypeRefSchema",
25504
25807
  "location": {
25505
25808
  "filePath": "component.main.runtime.ts",
25506
- "line": 63,
25809
+ "line": 64,
25507
25810
  "character": 3
25508
25811
  },
25509
25812
  "name": "AspectList"
@@ -25514,7 +25817,7 @@
25514
25817
  "__schema": "FunctionLikeSchema",
25515
25818
  "location": {
25516
25819
  "filePath": "component.main.runtime.ts",
25517
- "line": 67,
25820
+ "line": 68,
25518
25821
  "character": 3
25519
25822
  },
25520
25823
  "signature": "(method) ComponentMain.createAspectListFromEntries(entries: AspectEntry[]): AspectList",
@@ -25524,7 +25827,7 @@
25524
25827
  "__schema": "ParameterSchema",
25525
25828
  "location": {
25526
25829
  "filePath": "component.main.runtime.ts",
25527
- "line": 67,
25830
+ "line": 68,
25528
25831
  "character": 31
25529
25832
  },
25530
25833
  "name": "entries",
@@ -25532,14 +25835,14 @@
25532
25835
  "__schema": "TypeArraySchema",
25533
25836
  "location": {
25534
25837
  "filePath": "component.main.runtime.ts",
25535
- "line": 67,
25838
+ "line": 68,
25536
25839
  "character": 40
25537
25840
  },
25538
25841
  "type": {
25539
25842
  "__schema": "TypeRefSchema",
25540
25843
  "location": {
25541
25844
  "filePath": "component.main.runtime.ts",
25542
- "line": 67,
25845
+ "line": 68,
25543
25846
  "character": 40
25544
25847
  },
25545
25848
  "name": "AspectEntry"
@@ -25553,7 +25856,7 @@
25553
25856
  "__schema": "TypeRefSchema",
25554
25857
  "location": {
25555
25858
  "filePath": "component.main.runtime.ts",
25556
- "line": 67,
25859
+ "line": 68,
25557
25860
  "character": 3
25558
25861
  },
25559
25862
  "name": "AspectList"
@@ -25564,7 +25867,7 @@
25564
25867
  "__schema": "FunctionLikeSchema",
25565
25868
  "location": {
25566
25869
  "filePath": "component.main.runtime.ts",
25567
- "line": 71,
25870
+ "line": 72,
25568
25871
  "character": 3
25569
25872
  },
25570
25873
  "signature": "(method) ComponentMain.registerRoute(routes: RegisteredComponentRoute[]): this",
@@ -25574,7 +25877,7 @@
25574
25877
  "__schema": "ParameterSchema",
25575
25878
  "location": {
25576
25879
  "filePath": "component.main.runtime.ts",
25577
- "line": 71,
25880
+ "line": 72,
25578
25881
  "character": 17
25579
25882
  },
25580
25883
  "name": "routes",
@@ -25582,14 +25885,14 @@
25582
25885
  "__schema": "TypeArraySchema",
25583
25886
  "location": {
25584
25887
  "filePath": "component.main.runtime.ts",
25585
- "line": 71,
25888
+ "line": 72,
25586
25889
  "character": 25
25587
25890
  },
25588
25891
  "type": {
25589
25892
  "__schema": "TypeRefSchema",
25590
25893
  "location": {
25591
25894
  "filePath": "component.main.runtime.ts",
25592
- "line": 71,
25895
+ "line": 72,
25593
25896
  "character": 25
25594
25897
  },
25595
25898
  "name": "RegisteredComponentRoute"
@@ -25603,7 +25906,7 @@
25603
25906
  "__schema": "TypeRefSchema",
25604
25907
  "location": {
25605
25908
  "filePath": "component.main.runtime.ts",
25606
- "line": 71,
25909
+ "line": 72,
25607
25910
  "character": 3
25608
25911
  },
25609
25912
  "name": "ComponentMain"
@@ -25614,14 +25917,14 @@
25614
25917
  "__schema": "FunctionLikeSchema",
25615
25918
  "location": {
25616
25919
  "filePath": "component.main.runtime.ts",
25617
- "line": 85,
25920
+ "line": 86,
25618
25921
  "character": 3
25619
25922
  },
25620
25923
  "doc": {
25621
25924
  "__schema": "DocSchema",
25622
25925
  "location": {
25623
25926
  "filePath": "component.main.runtime.ts",
25624
- "line": 82,
25927
+ "line": 83,
25625
25928
  "character": 3
25626
25929
  },
25627
25930
  "raw": "/**\n * set the prior host.\n */",
@@ -25634,7 +25937,7 @@
25634
25937
  "__schema": "ParameterSchema",
25635
25938
  "location": {
25636
25939
  "filePath": "component.main.runtime.ts",
25637
- "line": 85,
25940
+ "line": 86,
25638
25941
  "character": 19
25639
25942
  },
25640
25943
  "name": "id",
@@ -25642,7 +25945,7 @@
25642
25945
  "__schema": "KeywordTypeSchema",
25643
25946
  "location": {
25644
25947
  "filePath": "component.main.runtime.ts",
25645
- "line": 85,
25948
+ "line": 86,
25646
25949
  "character": 23
25647
25950
  },
25648
25951
  "name": "string"
@@ -25655,7 +25958,7 @@
25655
25958
  "__schema": "TypeRefSchema",
25656
25959
  "location": {
25657
25960
  "filePath": "component.main.runtime.ts",
25658
- "line": 85,
25961
+ "line": 86,
25659
25962
  "character": 3
25660
25963
  },
25661
25964
  "name": "ComponentMain"
@@ -25666,14 +25969,14 @@
25666
25969
  "__schema": "FunctionLikeSchema",
25667
25970
  "location": {
25668
25971
  "filePath": "component.main.runtime.ts",
25669
- "line": 98,
25972
+ "line": 99,
25670
25973
  "character": 3
25671
25974
  },
25672
25975
  "doc": {
25673
25976
  "__schema": "DocSchema",
25674
25977
  "location": {
25675
25978
  "filePath": "component.main.runtime.ts",
25676
- "line": 95,
25979
+ "line": 96,
25677
25980
  "character": 3
25678
25981
  },
25679
25982
  "raw": "/**\n * get component host by extension ID.\n */",
@@ -25686,7 +25989,7 @@
25686
25989
  "__schema": "ParameterSchema",
25687
25990
  "location": {
25688
25991
  "filePath": "component.main.runtime.ts",
25689
- "line": 98,
25992
+ "line": 99,
25690
25993
  "character": 11
25691
25994
  },
25692
25995
  "name": "id",
@@ -25694,7 +25997,7 @@
25694
25997
  "__schema": "KeywordTypeSchema",
25695
25998
  "location": {
25696
25999
  "filePath": "component.main.runtime.ts",
25697
- "line": 98,
26000
+ "line": 99,
25698
26001
  "character": 16
25699
26002
  },
25700
26003
  "name": "string"
@@ -25707,7 +26010,7 @@
25707
26010
  "__schema": "TypeRefSchema",
25708
26011
  "location": {
25709
26012
  "filePath": "component.main.runtime.ts",
25710
- "line": 98,
26013
+ "line": 99,
25711
26014
  "character": 3
25712
26015
  },
25713
26016
  "name": "ComponentFactory"
@@ -25718,7 +26021,7 @@
25718
26021
  "__schema": "FunctionLikeSchema",
25719
26022
  "location": {
25720
26023
  "filePath": "component.main.runtime.ts",
25721
- "line": 108,
26024
+ "line": 109,
25722
26025
  "character": 3
25723
26026
  },
25724
26027
  "signature": "(method) ComponentMain.getHostIfExist(id?: string): ComponentFactory | undefined",
@@ -25728,7 +26031,7 @@
25728
26031
  "__schema": "ParameterSchema",
25729
26032
  "location": {
25730
26033
  "filePath": "component.main.runtime.ts",
25731
- "line": 108,
26034
+ "line": 109,
25732
26035
  "character": 18
25733
26036
  },
25734
26037
  "name": "id",
@@ -25736,7 +26039,7 @@
25736
26039
  "__schema": "KeywordTypeSchema",
25737
26040
  "location": {
25738
26041
  "filePath": "component.main.runtime.ts",
25739
- "line": 108,
26042
+ "line": 109,
25740
26043
  "character": 23
25741
26044
  },
25742
26045
  "name": "string"
@@ -25749,7 +26052,7 @@
25749
26052
  "__schema": "TypeUnionSchema",
25750
26053
  "location": {
25751
26054
  "filePath": "component.main.runtime.ts",
25752
- "line": 108,
26055
+ "line": 109,
25753
26056
  "character": 32
25754
26057
  },
25755
26058
  "types": [
@@ -25757,7 +26060,7 @@
25757
26060
  "__schema": "TypeRefSchema",
25758
26061
  "location": {
25759
26062
  "filePath": "component.main.runtime.ts",
25760
- "line": 108,
26063
+ "line": 109,
25761
26064
  "character": 32
25762
26065
  },
25763
26066
  "name": "ComponentFactory"
@@ -25766,7 +26069,7 @@
25766
26069
  "__schema": "KeywordTypeSchema",
25767
26070
  "location": {
25768
26071
  "filePath": "component.main.runtime.ts",
25769
- "line": 108,
26072
+ "line": 109,
25770
26073
  "character": 51
25771
26074
  },
25772
26075
  "name": "undefined"
@@ -25779,7 +26082,7 @@
25779
26082
  "__schema": "FunctionLikeSchema",
25780
26083
  "location": {
25781
26084
  "filePath": "component.main.runtime.ts",
25782
- "line": 117,
26085
+ "line": 118,
25783
26086
  "character": 3
25784
26087
  },
25785
26088
  "signature": "(method) ComponentMain.getRoute(id: ComponentID, routeName: string): string",
@@ -25789,7 +26092,7 @@
25789
26092
  "__schema": "ParameterSchema",
25790
26093
  "location": {
25791
26094
  "filePath": "component.main.runtime.ts",
25792
- "line": 117,
26095
+ "line": 118,
25793
26096
  "character": 12
25794
26097
  },
25795
26098
  "name": "id",
@@ -25797,7 +26100,7 @@
25797
26100
  "__schema": "TypeRefSchema",
25798
26101
  "location": {
25799
26102
  "filePath": "component.main.runtime.ts",
25800
- "line": 117,
26103
+ "line": 118,
25801
26104
  "character": 16
25802
26105
  },
25803
26106
  "name": "ComponentID",
@@ -25814,7 +26117,7 @@
25814
26117
  "__schema": "ParameterSchema",
25815
26118
  "location": {
25816
26119
  "filePath": "component.main.runtime.ts",
25817
- "line": 117,
26120
+ "line": 118,
25818
26121
  "character": 29
25819
26122
  },
25820
26123
  "name": "routeName",
@@ -25822,7 +26125,7 @@
25822
26125
  "__schema": "KeywordTypeSchema",
25823
26126
  "location": {
25824
26127
  "filePath": "component.main.runtime.ts",
25825
- "line": 117,
26128
+ "line": 118,
25826
26129
  "character": 40
25827
26130
  },
25828
26131
  "name": "string"
@@ -25835,7 +26138,7 @@
25835
26138
  "__schema": "InferenceTypeSchema",
25836
26139
  "location": {
25837
26140
  "filePath": "component.main.runtime.ts",
25838
- "line": 117,
26141
+ "line": 118,
25839
26142
  "character": 3
25840
26143
  },
25841
26144
  "type": "string"
@@ -25846,7 +26149,7 @@
25846
26149
  "__schema": "FunctionLikeSchema",
25847
26150
  "location": {
25848
26151
  "filePath": "component.main.runtime.ts",
25849
- "line": 132,
26152
+ "line": 133,
25850
26153
  "character": 3
25851
26154
  },
25852
26155
  "signature": "(method) ComponentMain.getShowFragments(): ShowFragment[]",
@@ -25856,7 +26159,7 @@
25856
26159
  "__schema": "TypeRefSchema",
25857
26160
  "location": {
25858
26161
  "filePath": "component.main.runtime.ts",
25859
- "line": 132,
26162
+ "line": 133,
25860
26163
  "character": 3
25861
26164
  },
25862
26165
  "name": "ShowFragment"
@@ -25867,7 +26170,7 @@
25867
26170
  "__schema": "FunctionLikeSchema",
25868
26171
  "location": {
25869
26172
  "filePath": "component.main.runtime.ts",
25870
- "line": 137,
26173
+ "line": 138,
25871
26174
  "character": 3
25872
26175
  },
25873
26176
  "signature": "(method) ComponentMain.isHost(name: string): boolean",
@@ -25877,7 +26180,7 @@
25877
26180
  "__schema": "ParameterSchema",
25878
26181
  "location": {
25879
26182
  "filePath": "component.main.runtime.ts",
25880
- "line": 137,
26183
+ "line": 138,
25881
26184
  "character": 10
25882
26185
  },
25883
26186
  "name": "name",
@@ -25885,7 +26188,7 @@
25885
26188
  "__schema": "KeywordTypeSchema",
25886
26189
  "location": {
25887
26190
  "filePath": "component.main.runtime.ts",
25888
- "line": 137,
26191
+ "line": 138,
25889
26192
  "character": 16
25890
26193
  },
25891
26194
  "name": "string"
@@ -25898,7 +26201,7 @@
25898
26201
  "__schema": "InferenceTypeSchema",
25899
26202
  "location": {
25900
26203
  "filePath": "component.main.runtime.ts",
25901
- "line": 137,
26204
+ "line": 138,
25902
26205
  "character": 3
25903
26206
  },
25904
26207
  "type": "boolean"
@@ -25909,14 +26212,14 @@
25909
26212
  "__schema": "FunctionLikeSchema",
25910
26213
  "location": {
25911
26214
  "filePath": "component.main.runtime.ts",
25912
- "line": 144,
26215
+ "line": 145,
25913
26216
  "character": 3
25914
26217
  },
25915
26218
  "doc": {
25916
26219
  "__schema": "DocSchema",
25917
26220
  "location": {
25918
26221
  "filePath": "component.main.runtime.ts",
25919
- "line": 141,
26222
+ "line": 142,
25920
26223
  "character": 3
25921
26224
  },
25922
26225
  "raw": "/**\n * register a show fragment to display further information in the `bit show` command.\n */",
@@ -25929,7 +26232,7 @@
25929
26232
  "__schema": "ParameterSchema",
25930
26233
  "location": {
25931
26234
  "filePath": "component.main.runtime.ts",
25932
- "line": 144,
26235
+ "line": 145,
25933
26236
  "character": 25
25934
26237
  },
25935
26238
  "name": "showFragments",
@@ -25937,14 +26240,14 @@
25937
26240
  "__schema": "TypeArraySchema",
25938
26241
  "location": {
25939
26242
  "filePath": "component.main.runtime.ts",
25940
- "line": 144,
26243
+ "line": 145,
25941
26244
  "character": 40
25942
26245
  },
25943
26246
  "type": {
25944
26247
  "__schema": "TypeRefSchema",
25945
26248
  "location": {
25946
26249
  "filePath": "component.main.runtime.ts",
25947
- "line": 144,
26250
+ "line": 145,
25948
26251
  "character": 40
25949
26252
  },
25950
26253
  "name": "ShowFragment"
@@ -25958,7 +26261,7 @@
25958
26261
  "__schema": "TypeRefSchema",
25959
26262
  "location": {
25960
26263
  "filePath": "component.main.runtime.ts",
25961
- "line": 144,
26264
+ "line": 145,
25962
26265
  "character": 3
25963
26266
  },
25964
26267
  "name": "ComponentMain"
@@ -25969,7 +26272,7 @@
25969
26272
  "__schema": "VariableLikeSchema",
25970
26273
  "location": {
25971
26274
  "filePath": "component.main.runtime.ts",
25972
- "line": 151,
26275
+ "line": 152,
25973
26276
  "character": 3
25974
26277
  },
25975
26278
  "signature": "(property) ComponentMain.slots: (((registerFn: () => string) => SlotRegistry<ComponentFactory>) | ((registerFn: () => string) => SlotRegistry<Route[]>) | ((registerFn: () => string) => SlotRegistry<...>))[]",
@@ -25978,7 +26281,7 @@
25978
26281
  "__schema": "InferenceTypeSchema",
25979
26282
  "location": {
25980
26283
  "filePath": "component.main.runtime.ts",
25981
- "line": 151,
26284
+ "line": 152,
25982
26285
  "character": 3
25983
26286
  },
25984
26287
  "type": "(((registerFn: () => string) => SlotRegistry<ComponentFactory>) | ((registerFn: () => string) => SlotRegistry<Route[]>) | ((registerFn: () => string) => SlotRegistry<...>))[]"
@@ -25990,7 +26293,7 @@
25990
26293
  "__schema": "VariableLikeSchema",
25991
26294
  "location": {
25992
26295
  "filePath": "component.main.runtime.ts",
25993
- "line": 153,
26296
+ "line": 154,
25994
26297
  "character": 3
25995
26298
  },
25996
26299
  "signature": "(property) ComponentMain.runtime: RuntimeDefinition",
@@ -25999,7 +26302,7 @@
25999
26302
  "__schema": "InferenceTypeSchema",
26000
26303
  "location": {
26001
26304
  "filePath": "component.main.runtime.ts",
26002
- "line": 153,
26305
+ "line": 154,
26003
26306
  "character": 3
26004
26307
  },
26005
26308
  "type": "RuntimeDefinition"
@@ -26011,7 +26314,7 @@
26011
26314
  "__schema": "VariableLikeSchema",
26012
26315
  "location": {
26013
26316
  "filePath": "component.main.runtime.ts",
26014
- "line": 154,
26317
+ "line": 155,
26015
26318
  "character": 3
26016
26319
  },
26017
26320
  "signature": "(property) ComponentMain.dependencies: Aspect[]",
@@ -26020,46 +26323,46 @@
26020
26323
  "__schema": "InferenceTypeSchema",
26021
26324
  "location": {
26022
26325
  "filePath": "component.main.runtime.ts",
26023
- "line": 154,
26326
+ "line": 155,
26024
26327
  "character": 3
26025
26328
  },
26026
26329
  "type": "Aspect[]"
26027
26330
  },
26028
26331
  "isOptional": true,
26029
- "defaultValue": "[GraphqlAspect, ExpressAspect, CLIAspect]"
26332
+ "defaultValue": "[GraphqlAspect, ExpressAspect, CLIAspect, LoggerAspect]"
26030
26333
  },
26031
26334
  {
26032
26335
  "__schema": "FunctionLikeSchema",
26033
26336
  "location": {
26034
26337
  "filePath": "component.main.runtime.ts",
26035
- "line": 156,
26338
+ "line": 157,
26036
26339
  "character": 3
26037
26340
  },
26038
- "signature": "(method) ComponentMain.provider([graphql, express, cli]: [GraphqlMain, ExpressMain, CLIMain], config: any, [hostSlot, showFragmentSlot]: [ComponentHostSlot, ShowFragmentSlot]): Promise<ComponentMain>",
26341
+ "signature": "(method) ComponentMain.provider([graphql, express, cli, loggerMain]: [GraphqlMain, ExpressMain, CLIMain, LoggerMain], config: any, [hostSlot, showFragmentSlot]: [ComponentHostSlot, ShowFragmentSlot]): Promise<ComponentMain>",
26039
26342
  "name": "provider",
26040
26343
  "params": [
26041
26344
  {
26042
26345
  "__schema": "ParameterSchema",
26043
26346
  "location": {
26044
26347
  "filePath": "component.main.runtime.ts",
26045
- "line": 157,
26348
+ "line": 158,
26046
26349
  "character": 5
26047
26350
  },
26048
- "name": "[ graphql, express, cli ]",
26351
+ "name": "[ graphql, express, cli, loggerMain ]",
26049
26352
  "type": {
26050
26353
  "__schema": "TupleTypeSchema",
26051
26354
  "location": {
26052
26355
  "filePath": "component.main.runtime.ts",
26053
- "line": 157,
26054
- "character": 30
26356
+ "line": 158,
26357
+ "character": 42
26055
26358
  },
26056
26359
  "elements": [
26057
26360
  {
26058
26361
  "__schema": "TypeRefSchema",
26059
26362
  "location": {
26060
26363
  "filePath": "component.main.runtime.ts",
26061
- "line": 157,
26062
- "character": 31
26364
+ "line": 158,
26365
+ "character": 43
26063
26366
  },
26064
26367
  "name": "GraphqlMain",
26065
26368
  "componentId": {
@@ -26071,8 +26374,8 @@
26071
26374
  "__schema": "TypeRefSchema",
26072
26375
  "location": {
26073
26376
  "filePath": "component.main.runtime.ts",
26074
- "line": 157,
26075
- "character": 44
26377
+ "line": 158,
26378
+ "character": 56
26076
26379
  },
26077
26380
  "name": "ExpressMain",
26078
26381
  "componentId": {
@@ -26084,14 +26387,27 @@
26084
26387
  "__schema": "TypeRefSchema",
26085
26388
  "location": {
26086
26389
  "filePath": "component.main.runtime.ts",
26087
- "line": 157,
26088
- "character": 57
26390
+ "line": 158,
26391
+ "character": 69
26089
26392
  },
26090
26393
  "name": "CLIMain",
26091
26394
  "componentId": {
26092
26395
  "scope": "teambit.harmony",
26093
26396
  "name": "cli"
26094
26397
  }
26398
+ },
26399
+ {
26400
+ "__schema": "TypeRefSchema",
26401
+ "location": {
26402
+ "filePath": "component.main.runtime.ts",
26403
+ "line": 158,
26404
+ "character": 78
26405
+ },
26406
+ "name": "LoggerMain",
26407
+ "componentId": {
26408
+ "scope": "teambit.harmony",
26409
+ "name": "logger"
26410
+ }
26095
26411
  }
26096
26412
  ]
26097
26413
  },
@@ -26102,7 +26418,7 @@
26102
26418
  "__schema": "ParameterSchema",
26103
26419
  "location": {
26104
26420
  "filePath": "component.main.runtime.ts",
26105
- "line": 158,
26421
+ "line": 159,
26106
26422
  "character": 5
26107
26423
  },
26108
26424
  "name": "config",
@@ -26110,7 +26426,7 @@
26110
26426
  "__schema": "InferenceTypeSchema",
26111
26427
  "location": {
26112
26428
  "filePath": "component.main.runtime.ts",
26113
- "line": 158,
26429
+ "line": 159,
26114
26430
  "character": 5
26115
26431
  },
26116
26432
  "type": "any"
@@ -26122,7 +26438,7 @@
26122
26438
  "__schema": "ParameterSchema",
26123
26439
  "location": {
26124
26440
  "filePath": "component.main.runtime.ts",
26125
- "line": 159,
26441
+ "line": 160,
26126
26442
  "character": 5
26127
26443
  },
26128
26444
  "name": "[ hostSlot, showFragmentSlot ]",
@@ -26130,7 +26446,7 @@
26130
26446
  "__schema": "TupleTypeSchema",
26131
26447
  "location": {
26132
26448
  "filePath": "component.main.runtime.ts",
26133
- "line": 159,
26449
+ "line": 160,
26134
26450
  "character": 35
26135
26451
  },
26136
26452
  "elements": [
@@ -26138,7 +26454,7 @@
26138
26454
  "__schema": "TypeRefSchema",
26139
26455
  "location": {
26140
26456
  "filePath": "component.main.runtime.ts",
26141
- "line": 159,
26457
+ "line": 160,
26142
26458
  "character": 36
26143
26459
  },
26144
26460
  "name": "ComponentHostSlot",
@@ -26148,7 +26464,7 @@
26148
26464
  "__schema": "TypeRefSchema",
26149
26465
  "location": {
26150
26466
  "filePath": "component.main.runtime.ts",
26151
- "line": 159,
26467
+ "line": 160,
26152
26468
  "character": 55
26153
26469
  },
26154
26470
  "name": "ShowFragmentSlot",
@@ -26164,7 +26480,7 @@
26164
26480
  "__schema": "InferenceTypeSchema",
26165
26481
  "location": {
26166
26482
  "filePath": "component.main.runtime.ts",
26167
- "line": 156,
26483
+ "line": 157,
26168
26484
  "character": 3
26169
26485
  },
26170
26486
  "type": "Promise<ComponentMain>"
@@ -26184,7 +26500,7 @@
26184
26500
  "__schema": "UnImplementedSchema",
26185
26501
  "location": {
26186
26502
  "filePath": "component.main.runtime.ts",
26187
- "line": 178,
26503
+ "line": 180,
26188
26504
  "character": 1
26189
26505
  },
26190
26506
  "name": "ComponentAspect.addRuntime(ComponentMain);",
@@ -31695,7 +32011,7 @@
31695
32011
  "_legacy": {
31696
32012
  "scope": "teambit.component",
31697
32013
  "name": "component",
31698
- "version": "1.0.281"
32014
+ "version": "1.0.282"
31699
32015
  },
31700
32016
  "_scope": "teambit.component"
31701
32017
  }
@@ -34184,7 +34500,7 @@
34184
34500
  "componentId": {
34185
34501
  "scope": "teambit.component",
34186
34502
  "name": "component",
34187
- "version": "1.0.281"
34503
+ "version": "1.0.282"
34188
34504
  },
34189
34505
  "taggedModuleExports": []
34190
34506
  }