@teambit/component 1.0.164 → 1.0.166

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.
@@ -460,7 +460,7 @@
460
460
  "__schema": "ParameterSchema",
461
461
  "location": {
462
462
  "filePath": "component.ts",
463
- "line": 43,
463
+ "line": 45,
464
464
  "character": 5
465
465
  },
466
466
  "name": "head",
@@ -468,7 +468,7 @@
468
468
  "__schema": "TypeUnionSchema",
469
469
  "location": {
470
470
  "filePath": "component.ts",
471
- "line": 43,
471
+ "line": 45,
472
472
  "character": 20
473
473
  },
474
474
  "types": [
@@ -476,7 +476,7 @@
476
476
  "__schema": "TypeRefSchema",
477
477
  "location": {
478
478
  "filePath": "component.ts",
479
- "line": 43,
479
+ "line": 45,
480
480
  "character": 20
481
481
  },
482
482
  "name": "Snap"
@@ -485,7 +485,7 @@
485
485
  "__schema": "LiteralTypeSchema",
486
486
  "location": {
487
487
  "filePath": "component.ts",
488
- "line": 43,
488
+ "line": 45,
489
489
  "character": 27
490
490
  },
491
491
  "name": "null"
@@ -500,7 +500,7 @@
500
500
  "__schema": "ParameterSchema",
501
501
  "location": {
502
502
  "filePath": "component.ts",
503
- "line": 48,
503
+ "line": 50,
504
504
  "character": 5
505
505
  },
506
506
  "name": "_state",
@@ -508,7 +508,7 @@
508
508
  "__schema": "TypeRefSchema",
509
509
  "location": {
510
510
  "filePath": "component.ts",
511
- "line": 48,
511
+ "line": 50,
512
512
  "character": 21
513
513
  },
514
514
  "name": "State"
@@ -520,7 +520,7 @@
520
520
  "__schema": "ParameterSchema",
521
521
  "location": {
522
522
  "filePath": "component.ts",
523
- "line": 53,
523
+ "line": 55,
524
524
  "character": 5
525
525
  },
526
526
  "name": "tags",
@@ -528,7 +528,7 @@
528
528
  "__schema": "TypeRefSchema",
529
529
  "location": {
530
530
  "filePath": "component.ts",
531
- "line": 53,
531
+ "line": 55,
532
532
  "character": 20
533
533
  },
534
534
  "name": "TagMap"
@@ -541,7 +541,7 @@
541
541
  "__schema": "ParameterSchema",
542
542
  "location": {
543
543
  "filePath": "component.ts",
544
- "line": 58,
544
+ "line": 60,
545
545
  "character": 5
546
546
  },
547
547
  "name": "factory",
@@ -549,7 +549,7 @@
549
549
  "__schema": "TypeRefSchema",
550
550
  "location": {
551
551
  "filePath": "component.ts",
552
- "line": 58,
552
+ "line": 60,
553
553
  "character": 22
554
554
  },
555
555
  "name": "ComponentFactory"
@@ -573,7 +573,7 @@
573
573
  "__schema": "GetAccessorSchema",
574
574
  "location": {
575
575
  "filePath": "component.ts",
576
- "line": 61,
576
+ "line": 63,
577
577
  "character": 3
578
578
  },
579
579
  "signature": "(getter) Component.mainFile: AbstractVinyl",
@@ -582,7 +582,7 @@
582
582
  "__schema": "InferenceTypeSchema",
583
583
  "location": {
584
584
  "filePath": "component.ts",
585
- "line": 61,
585
+ "line": 63,
586
586
  "character": 3
587
587
  },
588
588
  "type": "AbstractVinyl"
@@ -592,7 +592,7 @@
592
592
  "__schema": "GetAccessorSchema",
593
593
  "location": {
594
594
  "filePath": "component.ts",
595
- "line": 65,
595
+ "line": 67,
596
596
  "character": 3
597
597
  },
598
598
  "signature": "(getter) Component.state: State",
@@ -601,7 +601,7 @@
601
601
  "__schema": "TypeRefSchema",
602
602
  "location": {
603
603
  "filePath": "component.ts",
604
- "line": 65,
604
+ "line": 67,
605
605
  "character": 3
606
606
  },
607
607
  "name": "State"
@@ -611,7 +611,7 @@
611
611
  "__schema": "SetAccessorSchema",
612
612
  "location": {
613
613
  "filePath": "component.ts",
614
- "line": 69,
614
+ "line": 71,
615
615
  "character": 3
616
616
  },
617
617
  "signature": "(setter) Component.state: State",
@@ -620,7 +620,7 @@
620
620
  "__schema": "ParameterSchema",
621
621
  "location": {
622
622
  "filePath": "component.ts",
623
- "line": 69,
623
+ "line": 71,
624
624
  "character": 13
625
625
  },
626
626
  "name": "state",
@@ -628,7 +628,7 @@
628
628
  "__schema": "TypeRefSchema",
629
629
  "location": {
630
630
  "filePath": "component.ts",
631
- "line": 69,
631
+ "line": 71,
632
632
  "character": 20
633
633
  },
634
634
  "name": "State"
@@ -641,7 +641,7 @@
641
641
  "__schema": "GetAccessorSchema",
642
642
  "location": {
643
643
  "filePath": "component.ts",
644
- "line": 76,
644
+ "line": 78,
645
645
  "character": 3
646
646
  },
647
647
  "signature": "(getter) Component.config: ComponentConfig",
@@ -650,7 +650,7 @@
650
650
  "__schema": "TypeRefSchema",
651
651
  "location": {
652
652
  "filePath": "component.ts",
653
- "line": 76,
653
+ "line": 78,
654
654
  "character": 17
655
655
  },
656
656
  "name": "ComponentConfig"
@@ -660,7 +660,7 @@
660
660
  "__schema": "GetAccessorSchema",
661
661
  "location": {
662
662
  "filePath": "component.ts",
663
- "line": 83,
663
+ "line": 85,
664
664
  "character": 3
665
665
  },
666
666
  "signature": "(getter) Component.filesystem: ComponentFS",
@@ -669,7 +669,7 @@
669
669
  "__schema": "TypeRefSchema",
670
670
  "location": {
671
671
  "filePath": "component.ts",
672
- "line": 83,
672
+ "line": 85,
673
673
  "character": 3
674
674
  },
675
675
  "name": "ComponentFS",
@@ -680,7 +680,7 @@
680
680
  "__schema": "GetAccessorSchema",
681
681
  "location": {
682
682
  "filePath": "component.ts",
683
- "line": 90,
683
+ "line": 92,
684
684
  "character": 3
685
685
  },
686
686
  "signature": "(getter) Component.buildStatus: BuildStatus",
@@ -689,7 +689,7 @@
689
689
  "__schema": "TypeRefSchema",
690
690
  "location": {
691
691
  "filePath": "component.ts",
692
- "line": 90,
692
+ "line": 92,
693
693
  "character": 3
694
694
  },
695
695
  "name": "BuildStatus",
@@ -700,7 +700,7 @@
700
700
  "__schema": "GetAccessorSchema",
701
701
  "location": {
702
702
  "filePath": "component.ts",
703
- "line": 94,
703
+ "line": 96,
704
704
  "character": 3
705
705
  },
706
706
  "signature": "(getter) Component.headTag: Tag | undefined",
@@ -709,7 +709,7 @@
709
709
  "__schema": "InferenceTypeSchema",
710
710
  "location": {
711
711
  "filePath": "component.ts",
712
- "line": 94,
712
+ "line": 96,
713
713
  "character": 3
714
714
  },
715
715
  "type": "Tag | undefined"
@@ -719,7 +719,7 @@
719
719
  "__schema": "GetAccessorSchema",
720
720
  "location": {
721
721
  "filePath": "component.ts",
722
- "line": 99,
722
+ "line": 101,
723
723
  "character": 3
724
724
  },
725
725
  "signature": "(getter) Component.latest: string | undefined",
@@ -728,7 +728,7 @@
728
728
  "__schema": "TypeUnionSchema",
729
729
  "location": {
730
730
  "filePath": "component.ts",
731
- "line": 99,
731
+ "line": 101,
732
732
  "character": 17
733
733
  },
734
734
  "types": [
@@ -736,7 +736,7 @@
736
736
  "__schema": "KeywordTypeSchema",
737
737
  "location": {
738
738
  "filePath": "component.ts",
739
- "line": 99,
739
+ "line": 101,
740
740
  "character": 17
741
741
  },
742
742
  "name": "string"
@@ -745,7 +745,7 @@
745
745
  "__schema": "KeywordTypeSchema",
746
746
  "location": {
747
747
  "filePath": "component.ts",
748
- "line": 99,
748
+ "line": 101,
749
749
  "character": 26
750
750
  },
751
751
  "name": "undefined"
@@ -757,14 +757,14 @@
757
757
  "__schema": "FunctionLikeSchema",
758
758
  "location": {
759
759
  "filePath": "component.ts",
760
- "line": 114,
760
+ "line": 116,
761
761
  "character": 3
762
762
  },
763
763
  "doc": {
764
764
  "__schema": "DocSchema",
765
765
  "location": {
766
766
  "filePath": "component.ts",
767
- "line": 111,
767
+ "line": 113,
768
768
  "character": 3
769
769
  },
770
770
  "raw": "/**\n * get aspect data from current state.\n */",
@@ -777,7 +777,7 @@
777
777
  "__schema": "ParameterSchema",
778
778
  "location": {
779
779
  "filePath": "component.ts",
780
- "line": 114,
780
+ "line": 116,
781
781
  "character": 7
782
782
  },
783
783
  "name": "id",
@@ -785,7 +785,7 @@
785
785
  "__schema": "KeywordTypeSchema",
786
786
  "location": {
787
787
  "filePath": "component.ts",
788
- "line": 114,
788
+ "line": 116,
789
789
  "character": 11
790
790
  },
791
791
  "name": "string"
@@ -798,7 +798,7 @@
798
798
  "__schema": "TypeUnionSchema",
799
799
  "location": {
800
800
  "filePath": "component.ts",
801
- "line": 114,
801
+ "line": 116,
802
802
  "character": 20
803
803
  },
804
804
  "types": [
@@ -806,7 +806,7 @@
806
806
  "__schema": "TypeRefSchema",
807
807
  "location": {
808
808
  "filePath": "component.ts",
809
- "line": 114,
809
+ "line": 116,
810
810
  "character": 20
811
811
  },
812
812
  "name": "RawComponentMetadata"
@@ -815,7 +815,7 @@
815
815
  "__schema": "KeywordTypeSchema",
816
816
  "location": {
817
817
  "filePath": "component.ts",
818
- "line": 114,
818
+ "line": 116,
819
819
  "character": 43
820
820
  },
821
821
  "name": "undefined"
@@ -828,7 +828,7 @@
828
828
  "__schema": "FunctionLikeSchema",
829
829
  "location": {
830
830
  "filePath": "component.ts",
831
- "line": 118,
831
+ "line": 120,
832
832
  "character": 3
833
833
  },
834
834
  "signature": "(method) Component.getLogs(filter?: {\n type?: string;\n offset?: number;\n limit?: number;\n head?: string;\n sort?: string;\n}): Promise<ComponentLog[]>",
@@ -838,24 +838,24 @@
838
838
  "__schema": "ParameterSchema",
839
839
  "location": {
840
840
  "filePath": "component.ts",
841
- "line": 119,
842
- "character": 5
841
+ "line": 120,
842
+ "character": 17
843
843
  },
844
844
  "name": "filter",
845
845
  "type": {
846
846
  "__schema": "TypeLiteralSchema",
847
847
  "location": {
848
848
  "filePath": "component.ts",
849
- "line": 119,
850
- "character": 14
849
+ "line": 120,
850
+ "character": 26
851
851
  },
852
852
  "members": [
853
853
  {
854
854
  "__schema": "VariableLikeSchema",
855
855
  "location": {
856
856
  "filePath": "component.ts",
857
- "line": 119,
858
- "character": 16
857
+ "line": 121,
858
+ "character": 5
859
859
  },
860
860
  "signature": "(property) type?: string | undefined",
861
861
  "name": "type",
@@ -863,8 +863,8 @@
863
863
  "__schema": "KeywordTypeSchema",
864
864
  "location": {
865
865
  "filePath": "component.ts",
866
- "line": 119,
867
- "character": 23
866
+ "line": 121,
867
+ "character": 12
868
868
  },
869
869
  "name": "string"
870
870
  },
@@ -874,8 +874,8 @@
874
874
  "__schema": "VariableLikeSchema",
875
875
  "location": {
876
876
  "filePath": "component.ts",
877
- "line": 119,
878
- "character": 31
877
+ "line": 122,
878
+ "character": 5
879
879
  },
880
880
  "signature": "(property) offset?: number | undefined",
881
881
  "name": "offset",
@@ -883,8 +883,8 @@
883
883
  "__schema": "KeywordTypeSchema",
884
884
  "location": {
885
885
  "filePath": "component.ts",
886
- "line": 119,
887
- "character": 40
886
+ "line": 122,
887
+ "character": 14
888
888
  },
889
889
  "name": "number"
890
890
  },
@@ -894,8 +894,8 @@
894
894
  "__schema": "VariableLikeSchema",
895
895
  "location": {
896
896
  "filePath": "component.ts",
897
- "line": 119,
898
- "character": 48
897
+ "line": 123,
898
+ "character": 5
899
899
  },
900
900
  "signature": "(property) limit?: number | undefined",
901
901
  "name": "limit",
@@ -903,8 +903,8 @@
903
903
  "__schema": "KeywordTypeSchema",
904
904
  "location": {
905
905
  "filePath": "component.ts",
906
- "line": 119,
907
- "character": 56
906
+ "line": 123,
907
+ "character": 13
908
908
  },
909
909
  "name": "number"
910
910
  },
@@ -914,8 +914,8 @@
914
914
  "__schema": "VariableLikeSchema",
915
915
  "location": {
916
916
  "filePath": "component.ts",
917
- "line": 119,
918
- "character": 64
917
+ "line": 124,
918
+ "character": 5
919
919
  },
920
920
  "signature": "(property) head?: string | undefined",
921
921
  "name": "head",
@@ -923,8 +923,8 @@
923
923
  "__schema": "KeywordTypeSchema",
924
924
  "location": {
925
925
  "filePath": "component.ts",
926
- "line": 119,
927
- "character": 71
926
+ "line": 124,
927
+ "character": 12
928
928
  },
929
929
  "name": "string"
930
930
  },
@@ -934,8 +934,8 @@
934
934
  "__schema": "VariableLikeSchema",
935
935
  "location": {
936
936
  "filePath": "component.ts",
937
- "line": 119,
938
- "character": 79
937
+ "line": 125,
938
+ "character": 5
939
939
  },
940
940
  "signature": "(property) sort?: string | undefined",
941
941
  "name": "sort",
@@ -943,8 +943,8 @@
943
943
  "__schema": "KeywordTypeSchema",
944
944
  "location": {
945
945
  "filePath": "component.ts",
946
- "line": 119,
947
- "character": 86
946
+ "line": 125,
947
+ "character": 12
948
948
  },
949
949
  "name": "string"
950
950
  },
@@ -960,8 +960,8 @@
960
960
  "__schema": "TypeRefSchema",
961
961
  "location": {
962
962
  "filePath": "component.ts",
963
- "line": 120,
964
- "character": 6
963
+ "line": 126,
964
+ "character": 7
965
965
  },
966
966
  "name": "Promise",
967
967
  "typeArgs": [
@@ -969,15 +969,15 @@
969
969
  "__schema": "TypeArraySchema",
970
970
  "location": {
971
971
  "filePath": "component.ts",
972
- "line": 120,
973
- "character": 14
972
+ "line": 126,
973
+ "character": 15
974
974
  },
975
975
  "type": {
976
976
  "__schema": "TypeRefSchema",
977
977
  "location": {
978
978
  "filePath": "component.ts",
979
- "line": 120,
980
- "character": 14
979
+ "line": 126,
980
+ "character": 15
981
981
  },
982
982
  "name": "ComponentLog"
983
983
  }
@@ -992,7 +992,7 @@
992
992
  "__schema": "FunctionLikeSchema",
993
993
  "location": {
994
994
  "filePath": "component.ts",
995
- "line": 143,
995
+ "line": 149,
996
996
  "character": 3
997
997
  },
998
998
  "signature": "(method) Component.stringify(): string",
@@ -1002,7 +1002,7 @@
1002
1002
  "__schema": "KeywordTypeSchema",
1003
1003
  "location": {
1004
1004
  "filePath": "component.ts",
1005
- "line": 143,
1005
+ "line": 149,
1006
1006
  "character": 16
1007
1007
  },
1008
1008
  "name": "string"
@@ -1013,7 +1013,7 @@
1013
1013
  "__schema": "GetAccessorSchema",
1014
1014
  "location": {
1015
1015
  "filePath": "component.ts",
1016
- "line": 163,
1016
+ "line": 169,
1017
1017
  "character": 3
1018
1018
  },
1019
1019
  "signature": "(getter) Component.displayName: string",
@@ -1022,7 +1022,7 @@
1022
1022
  "__schema": "InferenceTypeSchema",
1023
1023
  "location": {
1024
1024
  "filePath": "component.ts",
1025
- "line": 163,
1025
+ "line": 169,
1026
1026
  "character": 3
1027
1027
  },
1028
1028
  "type": "string"
@@ -1032,14 +1032,14 @@
1032
1032
  "__schema": "FunctionLikeSchema",
1033
1033
  "location": {
1034
1034
  "filePath": "component.ts",
1035
- "line": 172,
1035
+ "line": 178,
1036
1036
  "character": 3
1037
1037
  },
1038
1038
  "doc": {
1039
1039
  "__schema": "DocSchema",
1040
1040
  "location": {
1041
1041
  "filePath": "component.ts",
1042
- "line": 168,
1042
+ "line": 174,
1043
1043
  "character": 3
1044
1044
  },
1045
1045
  "raw": "/**\n * tag a component `Snap` with a semantic version. we follow SemVer specs as defined [here](https://semver.org/)).\n */",
@@ -1052,7 +1052,7 @@
1052
1052
  "__schema": "ParameterSchema",
1053
1053
  "location": {
1054
1054
  "filePath": "component.ts",
1055
- "line": 172,
1055
+ "line": 178,
1056
1056
  "character": 7
1057
1057
  },
1058
1058
  "name": "version",
@@ -1060,7 +1060,7 @@
1060
1060
  "__schema": "TypeRefSchema",
1061
1061
  "location": {
1062
1062
  "filePath": "component.ts",
1063
- "line": 172,
1063
+ "line": 178,
1064
1064
  "character": 16
1065
1065
  },
1066
1066
  "name": "SemVer"
@@ -1073,7 +1073,7 @@
1073
1073
  "__schema": "InferenceTypeSchema",
1074
1074
  "location": {
1075
1075
  "filePath": "component.ts",
1076
- "line": 172,
1076
+ "line": 178,
1077
1077
  "character": 3
1078
1078
  },
1079
1079
  "type": "void"
@@ -1084,14 +1084,14 @@
1084
1084
  "__schema": "FunctionLikeSchema",
1085
1085
  "location": {
1086
1086
  "filePath": "component.ts",
1087
- "line": 181,
1087
+ "line": 187,
1088
1088
  "character": 3
1089
1089
  },
1090
1090
  "doc": {
1091
1091
  "__schema": "DocSchema",
1092
1092
  "location": {
1093
1093
  "filePath": "component.ts",
1094
- "line": 178,
1094
+ "line": 184,
1095
1095
  "character": 3
1096
1096
  },
1097
1097
  "raw": "/**\n * determines whether this component is modified in the workspace.\n */",
@@ -1104,7 +1104,7 @@
1104
1104
  "__schema": "TypeRefSchema",
1105
1105
  "location": {
1106
1106
  "filePath": "component.ts",
1107
- "line": 181,
1107
+ "line": 187,
1108
1108
  "character": 17
1109
1109
  },
1110
1110
  "name": "Promise",
@@ -1113,7 +1113,7 @@
1113
1113
  "__schema": "KeywordTypeSchema",
1114
1114
  "location": {
1115
1115
  "filePath": "component.ts",
1116
- "line": 181,
1116
+ "line": 187,
1117
1117
  "character": 25
1118
1118
  },
1119
1119
  "name": "boolean"
@@ -1126,14 +1126,14 @@
1126
1126
  "__schema": "FunctionLikeSchema",
1127
1127
  "location": {
1128
1128
  "filePath": "component.ts",
1129
- "line": 188,
1129
+ "line": 194,
1130
1130
  "character": 3
1131
1131
  },
1132
1132
  "doc": {
1133
1133
  "__schema": "DocSchema",
1134
1134
  "location": {
1135
1135
  "filePath": "component.ts",
1136
- "line": 185,
1136
+ "line": 191,
1137
1137
  "character": 3
1138
1138
  },
1139
1139
  "raw": "/**\n * whether a component is marked as deleted.\n */",
@@ -1146,7 +1146,7 @@
1146
1146
  "__schema": "KeywordTypeSchema",
1147
1147
  "location": {
1148
1148
  "filePath": "component.ts",
1149
- "line": 188,
1149
+ "line": 194,
1150
1150
  "character": 16
1151
1151
  },
1152
1152
  "name": "boolean"
@@ -1157,14 +1157,14 @@
1157
1157
  "__schema": "FunctionLikeSchema",
1158
1158
  "location": {
1159
1159
  "filePath": "component.ts",
1160
- "line": 195,
1160
+ "line": 201,
1161
1161
  "character": 3
1162
1162
  },
1163
1163
  "doc": {
1164
1164
  "__schema": "DocSchema",
1165
1165
  "location": {
1166
1166
  "filePath": "component.ts",
1167
- "line": 192,
1167
+ "line": 198,
1168
1168
  "character": 3
1169
1169
  },
1170
1170
  "raw": "/**\n * is component isOutdated\n */",
@@ -1177,7 +1177,7 @@
1177
1177
  "__schema": "KeywordTypeSchema",
1178
1178
  "location": {
1179
1179
  "filePath": "component.ts",
1180
- "line": 195,
1180
+ "line": 201,
1181
1181
  "character": 17
1182
1182
  },
1183
1183
  "name": "boolean"
@@ -1188,14 +1188,14 @@
1188
1188
  "__schema": "FunctionLikeSchema",
1189
1189
  "location": {
1190
1190
  "filePath": "component.ts",
1191
- "line": 206,
1191
+ "line": 212,
1192
1192
  "character": 3
1193
1193
  },
1194
1194
  "doc": {
1195
1195
  "__schema": "DocSchema",
1196
1196
  "location": {
1197
1197
  "filePath": "component.ts",
1198
- "line": 203,
1198
+ "line": 209,
1199
1199
  "character": 3
1200
1200
  },
1201
1201
  "raw": "/**\n * determines whether this component is new.\n */",
@@ -1208,7 +1208,7 @@
1208
1208
  "__schema": "TypeRefSchema",
1209
1209
  "location": {
1210
1210
  "filePath": "component.ts",
1211
- "line": 206,
1211
+ "line": 212,
1212
1212
  "character": 12
1213
1213
  },
1214
1214
  "name": "Promise",
@@ -1217,7 +1217,7 @@
1217
1217
  "__schema": "KeywordTypeSchema",
1218
1218
  "location": {
1219
1219
  "filePath": "component.ts",
1220
- "line": 206,
1220
+ "line": 212,
1221
1221
  "character": 20
1222
1222
  },
1223
1223
  "name": "boolean"
@@ -1230,7 +1230,7 @@
1230
1230
  "__schema": "FunctionLikeSchema",
1231
1231
  "location": {
1232
1232
  "filePath": "component.ts",
1233
- "line": 211,
1233
+ "line": 217,
1234
1234
  "character": 3
1235
1235
  },
1236
1236
  "signature": "(method) Component.loadState(snapId: string): Promise<State>",
@@ -1240,7 +1240,7 @@
1240
1240
  "__schema": "ParameterSchema",
1241
1241
  "location": {
1242
1242
  "filePath": "component.ts",
1243
- "line": 211,
1243
+ "line": 217,
1244
1244
  "character": 13
1245
1245
  },
1246
1246
  "name": "snapId",
@@ -1248,7 +1248,7 @@
1248
1248
  "__schema": "KeywordTypeSchema",
1249
1249
  "location": {
1250
1250
  "filePath": "component.ts",
1251
- "line": 211,
1251
+ "line": 217,
1252
1252
  "character": 21
1253
1253
  },
1254
1254
  "name": "string"
@@ -1261,7 +1261,7 @@
1261
1261
  "__schema": "TypeRefSchema",
1262
1262
  "location": {
1263
1263
  "filePath": "component.ts",
1264
- "line": 211,
1264
+ "line": 217,
1265
1265
  "character": 30
1266
1266
  },
1267
1267
  "name": "Promise",
@@ -1270,7 +1270,7 @@
1270
1270
  "__schema": "TypeRefSchema",
1271
1271
  "location": {
1272
1272
  "filePath": "component.ts",
1273
- "line": 211,
1273
+ "line": 217,
1274
1274
  "character": 38
1275
1275
  },
1276
1276
  "name": "State"
@@ -1283,7 +1283,7 @@
1283
1283
  "__schema": "FunctionLikeSchema",
1284
1284
  "location": {
1285
1285
  "filePath": "component.ts",
1286
- "line": 215,
1286
+ "line": 221,
1287
1287
  "character": 3
1288
1288
  },
1289
1289
  "signature": "(method) Component.loadSnap(snapId?: string): Promise<Snap>",
@@ -1293,7 +1293,7 @@
1293
1293
  "__schema": "ParameterSchema",
1294
1294
  "location": {
1295
1295
  "filePath": "component.ts",
1296
- "line": 215,
1296
+ "line": 221,
1297
1297
  "character": 12
1298
1298
  },
1299
1299
  "name": "snapId",
@@ -1301,7 +1301,7 @@
1301
1301
  "__schema": "KeywordTypeSchema",
1302
1302
  "location": {
1303
1303
  "filePath": "component.ts",
1304
- "line": 215,
1304
+ "line": 221,
1305
1305
  "character": 21
1306
1306
  },
1307
1307
  "name": "string"
@@ -1314,7 +1314,7 @@
1314
1314
  "__schema": "TypeRefSchema",
1315
1315
  "location": {
1316
1316
  "filePath": "component.ts",
1317
- "line": 215,
1317
+ "line": 221,
1318
1318
  "character": 30
1319
1319
  },
1320
1320
  "name": "Promise",
@@ -1323,7 +1323,7 @@
1323
1323
  "__schema": "TypeRefSchema",
1324
1324
  "location": {
1325
1325
  "filePath": "component.ts",
1326
- "line": 215,
1326
+ "line": 221,
1327
1327
  "character": 38
1328
1328
  },
1329
1329
  "name": "Snap"
@@ -1336,14 +1336,14 @@
1336
1336
  "__schema": "FunctionLikeSchema",
1337
1337
  "location": {
1338
1338
  "filePath": "component.ts",
1339
- "line": 228,
1339
+ "line": 234,
1340
1340
  "character": 3
1341
1341
  },
1342
1342
  "doc": {
1343
1343
  "__schema": "DocSchema",
1344
1344
  "location": {
1345
1345
  "filePath": "component.ts",
1346
- "line": 223,
1346
+ "line": 229,
1347
1347
  "character": 3
1348
1348
  },
1349
1349
  "raw": "/**\n * Get iterable which iterate over snap parents lazily\n * @param snapId\n * @param options\n */",
@@ -1353,7 +1353,7 @@
1353
1353
  "__schema": "PropertyLikeTagSchema",
1354
1354
  "location": {
1355
1355
  "filePath": "component.ts",
1356
- "line": 225,
1356
+ "line": 231,
1357
1357
  "character": 6
1358
1358
  },
1359
1359
  "name": "snapId",
@@ -1363,7 +1363,7 @@
1363
1363
  "__schema": "PropertyLikeTagSchema",
1364
1364
  "location": {
1365
1365
  "filePath": "component.ts",
1366
- "line": 226,
1366
+ "line": 232,
1367
1367
  "character": 6
1368
1368
  },
1369
1369
  "name": "options",
@@ -1378,7 +1378,7 @@
1378
1378
  "__schema": "ParameterSchema",
1379
1379
  "location": {
1380
1380
  "filePath": "component.ts",
1381
- "line": 228,
1381
+ "line": 234,
1382
1382
  "character": 17
1383
1383
  },
1384
1384
  "name": "snapId",
@@ -1386,7 +1386,7 @@
1386
1386
  "__schema": "KeywordTypeSchema",
1387
1387
  "location": {
1388
1388
  "filePath": "component.ts",
1389
- "line": 228,
1389
+ "line": 234,
1390
1390
  "character": 26
1391
1391
  },
1392
1392
  "name": "string"
@@ -1398,7 +1398,7 @@
1398
1398
  "__schema": "ParameterSchema",
1399
1399
  "location": {
1400
1400
  "filePath": "component.ts",
1401
- "line": 228,
1401
+ "line": 234,
1402
1402
  "character": 34
1403
1403
  },
1404
1404
  "name": "options",
@@ -1406,7 +1406,7 @@
1406
1406
  "__schema": "TypeRefSchema",
1407
1407
  "location": {
1408
1408
  "filePath": "component.ts",
1409
- "line": 228,
1409
+ "line": 234,
1410
1410
  "character": 43
1411
1411
  },
1412
1412
  "name": "SnapsIterableOpts"
@@ -1420,7 +1420,7 @@
1420
1420
  "__schema": "TypeRefSchema",
1421
1421
  "location": {
1422
1422
  "filePath": "component.ts",
1423
- "line": 228,
1423
+ "line": 234,
1424
1424
  "character": 68
1425
1425
  },
1426
1426
  "name": "AsyncIterable",
@@ -1429,7 +1429,7 @@
1429
1429
  "__schema": "TypeRefSchema",
1430
1430
  "location": {
1431
1431
  "filePath": "component.ts",
1432
- "line": 228,
1432
+ "line": 234,
1433
1433
  "character": 82
1434
1434
  },
1435
1435
  "name": "Snap"
@@ -1442,14 +1442,14 @@
1442
1442
  "__schema": "FunctionLikeSchema",
1443
1443
  "location": {
1444
1444
  "filePath": "component.ts",
1445
- "line": 267,
1445
+ "line": 273,
1446
1446
  "character": 3
1447
1447
  },
1448
1448
  "doc": {
1449
1449
  "__schema": "DocSchema",
1450
1450
  "location": {
1451
1451
  "filePath": "component.ts",
1452
- "line": 263,
1452
+ "line": 269,
1453
1453
  "character": 3
1454
1454
  },
1455
1455
  "raw": "/**\n * traverse recursively from the provided snap (or head) upwards until it finds a tag\n * @param snapToStartFrom\n */",
@@ -1459,7 +1459,7 @@
1459
1459
  "__schema": "PropertyLikeTagSchema",
1460
1460
  "location": {
1461
1461
  "filePath": "component.ts",
1462
- "line": 265,
1462
+ "line": 271,
1463
1463
  "character": 6
1464
1464
  },
1465
1465
  "name": "snapToStartFrom",
@@ -1474,7 +1474,7 @@
1474
1474
  "__schema": "ParameterSchema",
1475
1475
  "location": {
1476
1476
  "filePath": "component.ts",
1477
- "line": 267,
1477
+ "line": 273,
1478
1478
  "character": 23
1479
1479
  },
1480
1480
  "name": "snapToStartFrom",
@@ -1482,7 +1482,7 @@
1482
1482
  "__schema": "KeywordTypeSchema",
1483
1483
  "location": {
1484
1484
  "filePath": "component.ts",
1485
- "line": 267,
1485
+ "line": 273,
1486
1486
  "character": 41
1487
1487
  },
1488
1488
  "name": "string"
@@ -1495,7 +1495,7 @@
1495
1495
  "__schema": "TypeRefSchema",
1496
1496
  "location": {
1497
1497
  "filePath": "component.ts",
1498
- "line": 267,
1498
+ "line": 273,
1499
1499
  "character": 50
1500
1500
  },
1501
1501
  "name": "Promise",
@@ -1504,7 +1504,7 @@
1504
1504
  "__schema": "TypeUnionSchema",
1505
1505
  "location": {
1506
1506
  "filePath": "component.ts",
1507
- "line": 267,
1507
+ "line": 273,
1508
1508
  "character": 58
1509
1509
  },
1510
1510
  "types": [
@@ -1512,7 +1512,7 @@
1512
1512
  "__schema": "TypeRefSchema",
1513
1513
  "location": {
1514
1514
  "filePath": "component.ts",
1515
- "line": 267,
1515
+ "line": 273,
1516
1516
  "character": 58
1517
1517
  },
1518
1518
  "name": "Tag"
@@ -1521,7 +1521,7 @@
1521
1521
  "__schema": "KeywordTypeSchema",
1522
1522
  "location": {
1523
1523
  "filePath": "component.ts",
1524
- "line": 267,
1524
+ "line": 273,
1525
1525
  "character": 64
1526
1526
  },
1527
1527
  "name": "undefined"
@@ -1538,14 +1538,64 @@
1538
1538
  "__schema": "FunctionLikeSchema",
1539
1539
  "location": {
1540
1540
  "filePath": "component.ts",
1541
- "line": 291,
1541
+ "line": 297,
1542
+ "character": 3
1543
+ },
1544
+ "doc": {
1545
+ "__schema": "DocSchema",
1546
+ "location": {
1547
+ "filePath": "component.ts",
1548
+ "line": 293,
1549
+ "character": 3
1550
+ },
1551
+ "raw": "/**\n * id.version can be either a version or a hash.\n * if it's a hash, it may have a tag point to it. if it does, return the tag.\n */",
1552
+ "comment": "id.version can be either a version or a hash.\nif it's a hash, it may have a tag point to it. if it does, return the tag."
1553
+ },
1554
+ "signature": "(method) Component.getTag(): Tag | undefined",
1555
+ "name": "getTag",
1556
+ "params": [],
1557
+ "returnType": {
1558
+ "__schema": "TypeUnionSchema",
1559
+ "location": {
1560
+ "filePath": "component.ts",
1561
+ "line": 297,
1562
+ "character": 13
1563
+ },
1564
+ "types": [
1565
+ {
1566
+ "__schema": "TypeRefSchema",
1567
+ "location": {
1568
+ "filePath": "component.ts",
1569
+ "line": 297,
1570
+ "character": 13
1571
+ },
1572
+ "name": "Tag"
1573
+ },
1574
+ {
1575
+ "__schema": "KeywordTypeSchema",
1576
+ "location": {
1577
+ "filePath": "component.ts",
1578
+ "line": 297,
1579
+ "character": 19
1580
+ },
1581
+ "name": "undefined"
1582
+ }
1583
+ ]
1584
+ },
1585
+ "modifiers": []
1586
+ },
1587
+ {
1588
+ "__schema": "FunctionLikeSchema",
1589
+ "location": {
1590
+ "filePath": "component.ts",
1591
+ "line": 307,
1542
1592
  "character": 3
1543
1593
  },
1544
1594
  "doc": {
1545
1595
  "__schema": "DocSchema",
1546
1596
  "location": {
1547
1597
  "filePath": "component.ts",
1548
- "line": 287,
1598
+ "line": 303,
1549
1599
  "character": 3
1550
1600
  },
1551
1601
  "raw": "/**\n * checkout the component to a different version in its working tree.\n */",
@@ -1558,7 +1608,7 @@
1558
1608
  "__schema": "ParameterSchema",
1559
1609
  "location": {
1560
1610
  "filePath": "component.ts",
1561
- "line": 291,
1611
+ "line": 307,
1562
1612
  "character": 12
1563
1613
  },
1564
1614
  "name": "version",
@@ -1566,7 +1616,7 @@
1566
1616
  "__schema": "TypeRefSchema",
1567
1617
  "location": {
1568
1618
  "filePath": "component.ts",
1569
- "line": 291,
1619
+ "line": 307,
1570
1620
  "character": 21
1571
1621
  },
1572
1622
  "name": "SemVer"
@@ -1579,7 +1629,7 @@
1579
1629
  "__schema": "InferenceTypeSchema",
1580
1630
  "location": {
1581
1631
  "filePath": "component.ts",
1582
- "line": 291,
1632
+ "line": 307,
1583
1633
  "character": 3
1584
1634
  },
1585
1635
  "type": "void"
@@ -1590,14 +1640,14 @@
1590
1640
  "__schema": "FunctionLikeSchema",
1591
1641
  "location": {
1592
1642
  "filePath": "component.ts",
1593
- "line": 309,
1643
+ "line": 325,
1594
1644
  "character": 3
1595
1645
  },
1596
1646
  "doc": {
1597
1647
  "__schema": "DocSchema",
1598
1648
  "location": {
1599
1649
  "filePath": "component.ts",
1600
- "line": 293,
1650
+ "line": 309,
1601
1651
  "character": 3
1602
1652
  },
1603
1653
  "raw": "/**\n * examine difference between two components.\n */",
@@ -1610,7 +1660,7 @@
1610
1660
  "__schema": "ParameterSchema",
1611
1661
  "location": {
1612
1662
  "filePath": "component.ts",
1613
- "line": 309,
1663
+ "line": 325,
1614
1664
  "character": 9
1615
1665
  },
1616
1666
  "name": "path",
@@ -1618,7 +1668,7 @@
1618
1668
  "__schema": "KeywordTypeSchema",
1619
1669
  "location": {
1620
1670
  "filePath": "component.ts",
1621
- "line": 309,
1671
+ "line": 325,
1622
1672
  "character": 15
1623
1673
  },
1624
1674
  "name": "string"
@@ -1630,7 +1680,7 @@
1630
1680
  "__schema": "ParameterSchema",
1631
1681
  "location": {
1632
1682
  "filePath": "component.ts",
1633
- "line": 309,
1683
+ "line": 325,
1634
1684
  "character": 23
1635
1685
  },
1636
1686
  "name": "fs",
@@ -1638,7 +1688,7 @@
1638
1688
  "__schema": "TypeRefSchema",
1639
1689
  "location": {
1640
1690
  "filePath": "component.ts",
1641
- "line": 309,
1691
+ "line": 325,
1642
1692
  "character": 28
1643
1693
  },
1644
1694
  "name": "AnyFS"
@@ -1651,7 +1701,7 @@
1651
1701
  "__schema": "InferenceTypeSchema",
1652
1702
  "location": {
1653
1703
  "filePath": "component.ts",
1654
- "line": 309,
1704
+ "line": 325,
1655
1705
  "character": 3
1656
1706
  },
1657
1707
  "type": "void"
@@ -1662,14 +1712,14 @@
1662
1712
  "__schema": "FunctionLikeSchema",
1663
1713
  "location": {
1664
1714
  "filePath": "component.ts",
1665
- "line": 319,
1715
+ "line": 335,
1666
1716
  "character": 3
1667
1717
  },
1668
1718
  "doc": {
1669
1719
  "__schema": "DocSchema",
1670
1720
  "location": {
1671
1721
  "filePath": "component.ts",
1672
- "line": 311,
1722
+ "line": 327,
1673
1723
  "character": 3
1674
1724
  },
1675
1725
  "raw": "/**\n *\n * Check if 2 components are equal\n * @param {Component} component\n * @returns {boolean}\n * @memberof Component\n */",
@@ -1679,7 +1729,7 @@
1679
1729
  "__schema": "PropertyLikeTagSchema",
1680
1730
  "location": {
1681
1731
  "filePath": "component.ts",
1682
- "line": 314,
1732
+ "line": 330,
1683
1733
  "character": 6
1684
1734
  },
1685
1735
  "name": "component",
@@ -1688,7 +1738,7 @@
1688
1738
  "__schema": "TypeRefSchema",
1689
1739
  "location": {
1690
1740
  "filePath": "component.ts",
1691
- "line": 314,
1741
+ "line": 330,
1692
1742
  "character": 14
1693
1743
  },
1694
1744
  "name": "Component"
@@ -1698,7 +1748,7 @@
1698
1748
  "__schema": "ReturnTagSchema",
1699
1749
  "location": {
1700
1750
  "filePath": "component.ts",
1701
- "line": 315,
1751
+ "line": 331,
1702
1752
  "character": 6
1703
1753
  },
1704
1754
  "tagName": "return",
@@ -1706,7 +1756,7 @@
1706
1756
  "__schema": "KeywordTypeSchema",
1707
1757
  "location": {
1708
1758
  "filePath": "component.ts",
1709
- "line": 315,
1759
+ "line": 331,
1710
1760
  "character": 16
1711
1761
  },
1712
1762
  "name": "boolean"
@@ -1716,7 +1766,7 @@
1716
1766
  "__schema": "TagSchema",
1717
1767
  "location": {
1718
1768
  "filePath": "component.ts",
1719
- "line": 316,
1769
+ "line": 332,
1720
1770
  "character": 6
1721
1771
  },
1722
1772
  "tagName": "memberof",
@@ -1731,7 +1781,7 @@
1731
1781
  "__schema": "ParameterSchema",
1732
1782
  "location": {
1733
1783
  "filePath": "component.ts",
1734
- "line": 319,
1784
+ "line": 335,
1735
1785
  "character": 10
1736
1786
  },
1737
1787
  "name": "component",
@@ -1739,7 +1789,7 @@
1739
1789
  "__schema": "TypeRefSchema",
1740
1790
  "location": {
1741
1791
  "filePath": "component.ts",
1742
- "line": 319,
1792
+ "line": 335,
1743
1793
  "character": 21
1744
1794
  },
1745
1795
  "name": "Component"
@@ -1752,7 +1802,7 @@
1752
1802
  "__schema": "KeywordTypeSchema",
1753
1803
  "location": {
1754
1804
  "filePath": "component.ts",
1755
- "line": 319,
1805
+ "line": 335,
1756
1806
  "character": 33
1757
1807
  },
1758
1808
  "name": "boolean"
@@ -2322,7 +2372,7 @@
2322
2372
  "_legacy": {
2323
2373
  "scope": "teambit.component",
2324
2374
  "name": "component",
2325
- "version": "1.0.164"
2375
+ "version": "1.0.166"
2326
2376
  },
2327
2377
  "_scope": "teambit.component"
2328
2378
  }
@@ -7851,7 +7901,7 @@
7851
7901
  "_legacy": {
7852
7902
  "scope": "teambit.component",
7853
7903
  "name": "component",
7854
- "version": "1.0.164"
7904
+ "version": "1.0.166"
7855
7905
  },
7856
7906
  "_scope": "teambit.component"
7857
7907
  }
@@ -16413,7 +16463,7 @@
16413
16463
  "__schema": "ParameterSchema",
16414
16464
  "location": {
16415
16465
  "filePath": "component.ts",
16416
- "line": 43,
16466
+ "line": 45,
16417
16467
  "character": 5
16418
16468
  },
16419
16469
  "name": "head",
@@ -16421,7 +16471,7 @@
16421
16471
  "__schema": "TypeUnionSchema",
16422
16472
  "location": {
16423
16473
  "filePath": "component.ts",
16424
- "line": 43,
16474
+ "line": 45,
16425
16475
  "character": 20
16426
16476
  },
16427
16477
  "types": [
@@ -16429,7 +16479,7 @@
16429
16479
  "__schema": "TypeRefSchema",
16430
16480
  "location": {
16431
16481
  "filePath": "component.ts",
16432
- "line": 43,
16482
+ "line": 45,
16433
16483
  "character": 20
16434
16484
  },
16435
16485
  "name": "Snap"
@@ -16438,7 +16488,7 @@
16438
16488
  "__schema": "LiteralTypeSchema",
16439
16489
  "location": {
16440
16490
  "filePath": "component.ts",
16441
- "line": 43,
16491
+ "line": 45,
16442
16492
  "character": 27
16443
16493
  },
16444
16494
  "name": "null"
@@ -16453,7 +16503,7 @@
16453
16503
  "__schema": "ParameterSchema",
16454
16504
  "location": {
16455
16505
  "filePath": "component.ts",
16456
- "line": 48,
16506
+ "line": 50,
16457
16507
  "character": 5
16458
16508
  },
16459
16509
  "name": "_state",
@@ -16461,7 +16511,7 @@
16461
16511
  "__schema": "TypeRefSchema",
16462
16512
  "location": {
16463
16513
  "filePath": "component.ts",
16464
- "line": 48,
16514
+ "line": 50,
16465
16515
  "character": 21
16466
16516
  },
16467
16517
  "name": "State"
@@ -16473,7 +16523,7 @@
16473
16523
  "__schema": "ParameterSchema",
16474
16524
  "location": {
16475
16525
  "filePath": "component.ts",
16476
- "line": 53,
16526
+ "line": 55,
16477
16527
  "character": 5
16478
16528
  },
16479
16529
  "name": "tags",
@@ -16481,7 +16531,7 @@
16481
16531
  "__schema": "TypeRefSchema",
16482
16532
  "location": {
16483
16533
  "filePath": "component.ts",
16484
- "line": 53,
16534
+ "line": 55,
16485
16535
  "character": 20
16486
16536
  },
16487
16537
  "name": "TagMap"
@@ -16494,7 +16544,7 @@
16494
16544
  "__schema": "ParameterSchema",
16495
16545
  "location": {
16496
16546
  "filePath": "component.ts",
16497
- "line": 58,
16547
+ "line": 60,
16498
16548
  "character": 5
16499
16549
  },
16500
16550
  "name": "factory",
@@ -16502,7 +16552,7 @@
16502
16552
  "__schema": "TypeRefSchema",
16503
16553
  "location": {
16504
16554
  "filePath": "component.ts",
16505
- "line": 58,
16555
+ "line": 60,
16506
16556
  "character": 22
16507
16557
  },
16508
16558
  "name": "ComponentFactory"
@@ -16526,7 +16576,7 @@
16526
16576
  "__schema": "GetAccessorSchema",
16527
16577
  "location": {
16528
16578
  "filePath": "component.ts",
16529
- "line": 61,
16579
+ "line": 63,
16530
16580
  "character": 3
16531
16581
  },
16532
16582
  "signature": "(getter) Component.mainFile: AbstractVinyl",
@@ -16535,7 +16585,7 @@
16535
16585
  "__schema": "InferenceTypeSchema",
16536
16586
  "location": {
16537
16587
  "filePath": "component.ts",
16538
- "line": 61,
16588
+ "line": 63,
16539
16589
  "character": 3
16540
16590
  },
16541
16591
  "type": "AbstractVinyl"
@@ -16545,7 +16595,7 @@
16545
16595
  "__schema": "GetAccessorSchema",
16546
16596
  "location": {
16547
16597
  "filePath": "component.ts",
16548
- "line": 65,
16598
+ "line": 67,
16549
16599
  "character": 3
16550
16600
  },
16551
16601
  "signature": "(getter) Component.state: State",
@@ -16554,7 +16604,7 @@
16554
16604
  "__schema": "TypeRefSchema",
16555
16605
  "location": {
16556
16606
  "filePath": "component.ts",
16557
- "line": 65,
16607
+ "line": 67,
16558
16608
  "character": 3
16559
16609
  },
16560
16610
  "name": "State"
@@ -16564,7 +16614,7 @@
16564
16614
  "__schema": "SetAccessorSchema",
16565
16615
  "location": {
16566
16616
  "filePath": "component.ts",
16567
- "line": 69,
16617
+ "line": 71,
16568
16618
  "character": 3
16569
16619
  },
16570
16620
  "signature": "(setter) Component.state: State",
@@ -16573,7 +16623,7 @@
16573
16623
  "__schema": "ParameterSchema",
16574
16624
  "location": {
16575
16625
  "filePath": "component.ts",
16576
- "line": 69,
16626
+ "line": 71,
16577
16627
  "character": 13
16578
16628
  },
16579
16629
  "name": "state",
@@ -16581,7 +16631,7 @@
16581
16631
  "__schema": "TypeRefSchema",
16582
16632
  "location": {
16583
16633
  "filePath": "component.ts",
16584
- "line": 69,
16634
+ "line": 71,
16585
16635
  "character": 20
16586
16636
  },
16587
16637
  "name": "State"
@@ -16594,7 +16644,7 @@
16594
16644
  "__schema": "GetAccessorSchema",
16595
16645
  "location": {
16596
16646
  "filePath": "component.ts",
16597
- "line": 76,
16647
+ "line": 78,
16598
16648
  "character": 3
16599
16649
  },
16600
16650
  "signature": "(getter) Component.config: ComponentConfig",
@@ -16603,7 +16653,7 @@
16603
16653
  "__schema": "TypeRefSchema",
16604
16654
  "location": {
16605
16655
  "filePath": "component.ts",
16606
- "line": 76,
16656
+ "line": 78,
16607
16657
  "character": 17
16608
16658
  },
16609
16659
  "name": "ComponentConfig"
@@ -16613,7 +16663,7 @@
16613
16663
  "__schema": "GetAccessorSchema",
16614
16664
  "location": {
16615
16665
  "filePath": "component.ts",
16616
- "line": 83,
16666
+ "line": 85,
16617
16667
  "character": 3
16618
16668
  },
16619
16669
  "signature": "(getter) Component.filesystem: ComponentFS",
@@ -16622,7 +16672,7 @@
16622
16672
  "__schema": "TypeRefSchema",
16623
16673
  "location": {
16624
16674
  "filePath": "component.ts",
16625
- "line": 83,
16675
+ "line": 85,
16626
16676
  "character": 3
16627
16677
  },
16628
16678
  "name": "ComponentFS",
@@ -16633,7 +16683,7 @@
16633
16683
  "__schema": "GetAccessorSchema",
16634
16684
  "location": {
16635
16685
  "filePath": "component.ts",
16636
- "line": 90,
16686
+ "line": 92,
16637
16687
  "character": 3
16638
16688
  },
16639
16689
  "signature": "(getter) Component.buildStatus: BuildStatus",
@@ -16642,7 +16692,7 @@
16642
16692
  "__schema": "TypeRefSchema",
16643
16693
  "location": {
16644
16694
  "filePath": "component.ts",
16645
- "line": 90,
16695
+ "line": 92,
16646
16696
  "character": 3
16647
16697
  },
16648
16698
  "name": "BuildStatus",
@@ -16653,7 +16703,7 @@
16653
16703
  "__schema": "GetAccessorSchema",
16654
16704
  "location": {
16655
16705
  "filePath": "component.ts",
16656
- "line": 94,
16706
+ "line": 96,
16657
16707
  "character": 3
16658
16708
  },
16659
16709
  "signature": "(getter) Component.headTag: Tag | undefined",
@@ -16662,7 +16712,7 @@
16662
16712
  "__schema": "InferenceTypeSchema",
16663
16713
  "location": {
16664
16714
  "filePath": "component.ts",
16665
- "line": 94,
16715
+ "line": 96,
16666
16716
  "character": 3
16667
16717
  },
16668
16718
  "type": "Tag | undefined"
@@ -16672,7 +16722,7 @@
16672
16722
  "__schema": "GetAccessorSchema",
16673
16723
  "location": {
16674
16724
  "filePath": "component.ts",
16675
- "line": 99,
16725
+ "line": 101,
16676
16726
  "character": 3
16677
16727
  },
16678
16728
  "signature": "(getter) Component.latest: string | undefined",
@@ -16681,7 +16731,7 @@
16681
16731
  "__schema": "TypeUnionSchema",
16682
16732
  "location": {
16683
16733
  "filePath": "component.ts",
16684
- "line": 99,
16734
+ "line": 101,
16685
16735
  "character": 17
16686
16736
  },
16687
16737
  "types": [
@@ -16689,7 +16739,7 @@
16689
16739
  "__schema": "KeywordTypeSchema",
16690
16740
  "location": {
16691
16741
  "filePath": "component.ts",
16692
- "line": 99,
16742
+ "line": 101,
16693
16743
  "character": 17
16694
16744
  },
16695
16745
  "name": "string"
@@ -16698,7 +16748,7 @@
16698
16748
  "__schema": "KeywordTypeSchema",
16699
16749
  "location": {
16700
16750
  "filePath": "component.ts",
16701
- "line": 99,
16751
+ "line": 101,
16702
16752
  "character": 26
16703
16753
  },
16704
16754
  "name": "undefined"
@@ -16710,14 +16760,14 @@
16710
16760
  "__schema": "FunctionLikeSchema",
16711
16761
  "location": {
16712
16762
  "filePath": "component.ts",
16713
- "line": 114,
16763
+ "line": 116,
16714
16764
  "character": 3
16715
16765
  },
16716
16766
  "doc": {
16717
16767
  "__schema": "DocSchema",
16718
16768
  "location": {
16719
16769
  "filePath": "component.ts",
16720
- "line": 111,
16770
+ "line": 113,
16721
16771
  "character": 3
16722
16772
  },
16723
16773
  "raw": "/**\n * get aspect data from current state.\n */",
@@ -16730,7 +16780,7 @@
16730
16780
  "__schema": "ParameterSchema",
16731
16781
  "location": {
16732
16782
  "filePath": "component.ts",
16733
- "line": 114,
16783
+ "line": 116,
16734
16784
  "character": 7
16735
16785
  },
16736
16786
  "name": "id",
@@ -16738,7 +16788,7 @@
16738
16788
  "__schema": "KeywordTypeSchema",
16739
16789
  "location": {
16740
16790
  "filePath": "component.ts",
16741
- "line": 114,
16791
+ "line": 116,
16742
16792
  "character": 11
16743
16793
  },
16744
16794
  "name": "string"
@@ -16751,7 +16801,7 @@
16751
16801
  "__schema": "TypeUnionSchema",
16752
16802
  "location": {
16753
16803
  "filePath": "component.ts",
16754
- "line": 114,
16804
+ "line": 116,
16755
16805
  "character": 20
16756
16806
  },
16757
16807
  "types": [
@@ -16759,7 +16809,7 @@
16759
16809
  "__schema": "TypeRefSchema",
16760
16810
  "location": {
16761
16811
  "filePath": "component.ts",
16762
- "line": 114,
16812
+ "line": 116,
16763
16813
  "character": 20
16764
16814
  },
16765
16815
  "name": "RawComponentMetadata"
@@ -16768,7 +16818,7 @@
16768
16818
  "__schema": "KeywordTypeSchema",
16769
16819
  "location": {
16770
16820
  "filePath": "component.ts",
16771
- "line": 114,
16821
+ "line": 116,
16772
16822
  "character": 43
16773
16823
  },
16774
16824
  "name": "undefined"
@@ -16781,7 +16831,7 @@
16781
16831
  "__schema": "FunctionLikeSchema",
16782
16832
  "location": {
16783
16833
  "filePath": "component.ts",
16784
- "line": 118,
16834
+ "line": 120,
16785
16835
  "character": 3
16786
16836
  },
16787
16837
  "signature": "(method) Component.getLogs(filter?: {\n type?: string;\n offset?: number;\n limit?: number;\n head?: string;\n sort?: string;\n}): Promise<ComponentLog[]>",
@@ -16791,24 +16841,24 @@
16791
16841
  "__schema": "ParameterSchema",
16792
16842
  "location": {
16793
16843
  "filePath": "component.ts",
16794
- "line": 119,
16795
- "character": 5
16844
+ "line": 120,
16845
+ "character": 17
16796
16846
  },
16797
16847
  "name": "filter",
16798
16848
  "type": {
16799
16849
  "__schema": "TypeLiteralSchema",
16800
16850
  "location": {
16801
16851
  "filePath": "component.ts",
16802
- "line": 119,
16803
- "character": 14
16852
+ "line": 120,
16853
+ "character": 26
16804
16854
  },
16805
16855
  "members": [
16806
16856
  {
16807
16857
  "__schema": "VariableLikeSchema",
16808
16858
  "location": {
16809
16859
  "filePath": "component.ts",
16810
- "line": 119,
16811
- "character": 16
16860
+ "line": 121,
16861
+ "character": 5
16812
16862
  },
16813
16863
  "signature": "(property) type?: string | undefined",
16814
16864
  "name": "type",
@@ -16816,8 +16866,8 @@
16816
16866
  "__schema": "KeywordTypeSchema",
16817
16867
  "location": {
16818
16868
  "filePath": "component.ts",
16819
- "line": 119,
16820
- "character": 23
16869
+ "line": 121,
16870
+ "character": 12
16821
16871
  },
16822
16872
  "name": "string"
16823
16873
  },
@@ -16827,8 +16877,8 @@
16827
16877
  "__schema": "VariableLikeSchema",
16828
16878
  "location": {
16829
16879
  "filePath": "component.ts",
16830
- "line": 119,
16831
- "character": 31
16880
+ "line": 122,
16881
+ "character": 5
16832
16882
  },
16833
16883
  "signature": "(property) offset?: number | undefined",
16834
16884
  "name": "offset",
@@ -16836,8 +16886,8 @@
16836
16886
  "__schema": "KeywordTypeSchema",
16837
16887
  "location": {
16838
16888
  "filePath": "component.ts",
16839
- "line": 119,
16840
- "character": 40
16889
+ "line": 122,
16890
+ "character": 14
16841
16891
  },
16842
16892
  "name": "number"
16843
16893
  },
@@ -16847,8 +16897,8 @@
16847
16897
  "__schema": "VariableLikeSchema",
16848
16898
  "location": {
16849
16899
  "filePath": "component.ts",
16850
- "line": 119,
16851
- "character": 48
16900
+ "line": 123,
16901
+ "character": 5
16852
16902
  },
16853
16903
  "signature": "(property) limit?: number | undefined",
16854
16904
  "name": "limit",
@@ -16856,8 +16906,8 @@
16856
16906
  "__schema": "KeywordTypeSchema",
16857
16907
  "location": {
16858
16908
  "filePath": "component.ts",
16859
- "line": 119,
16860
- "character": 56
16909
+ "line": 123,
16910
+ "character": 13
16861
16911
  },
16862
16912
  "name": "number"
16863
16913
  },
@@ -16867,8 +16917,8 @@
16867
16917
  "__schema": "VariableLikeSchema",
16868
16918
  "location": {
16869
16919
  "filePath": "component.ts",
16870
- "line": 119,
16871
- "character": 64
16920
+ "line": 124,
16921
+ "character": 5
16872
16922
  },
16873
16923
  "signature": "(property) head?: string | undefined",
16874
16924
  "name": "head",
@@ -16876,8 +16926,8 @@
16876
16926
  "__schema": "KeywordTypeSchema",
16877
16927
  "location": {
16878
16928
  "filePath": "component.ts",
16879
- "line": 119,
16880
- "character": 71
16929
+ "line": 124,
16930
+ "character": 12
16881
16931
  },
16882
16932
  "name": "string"
16883
16933
  },
@@ -16887,8 +16937,8 @@
16887
16937
  "__schema": "VariableLikeSchema",
16888
16938
  "location": {
16889
16939
  "filePath": "component.ts",
16890
- "line": 119,
16891
- "character": 79
16940
+ "line": 125,
16941
+ "character": 5
16892
16942
  },
16893
16943
  "signature": "(property) sort?: string | undefined",
16894
16944
  "name": "sort",
@@ -16896,8 +16946,8 @@
16896
16946
  "__schema": "KeywordTypeSchema",
16897
16947
  "location": {
16898
16948
  "filePath": "component.ts",
16899
- "line": 119,
16900
- "character": 86
16949
+ "line": 125,
16950
+ "character": 12
16901
16951
  },
16902
16952
  "name": "string"
16903
16953
  },
@@ -16913,8 +16963,8 @@
16913
16963
  "__schema": "TypeRefSchema",
16914
16964
  "location": {
16915
16965
  "filePath": "component.ts",
16916
- "line": 120,
16917
- "character": 6
16966
+ "line": 126,
16967
+ "character": 7
16918
16968
  },
16919
16969
  "name": "Promise",
16920
16970
  "typeArgs": [
@@ -16922,15 +16972,15 @@
16922
16972
  "__schema": "TypeArraySchema",
16923
16973
  "location": {
16924
16974
  "filePath": "component.ts",
16925
- "line": 120,
16926
- "character": 14
16975
+ "line": 126,
16976
+ "character": 15
16927
16977
  },
16928
16978
  "type": {
16929
16979
  "__schema": "TypeRefSchema",
16930
16980
  "location": {
16931
16981
  "filePath": "component.ts",
16932
- "line": 120,
16933
- "character": 14
16982
+ "line": 126,
16983
+ "character": 15
16934
16984
  },
16935
16985
  "name": "ComponentLog"
16936
16986
  }
@@ -16945,7 +16995,7 @@
16945
16995
  "__schema": "FunctionLikeSchema",
16946
16996
  "location": {
16947
16997
  "filePath": "component.ts",
16948
- "line": 143,
16998
+ "line": 149,
16949
16999
  "character": 3
16950
17000
  },
16951
17001
  "signature": "(method) Component.stringify(): string",
@@ -16955,7 +17005,7 @@
16955
17005
  "__schema": "KeywordTypeSchema",
16956
17006
  "location": {
16957
17007
  "filePath": "component.ts",
16958
- "line": 143,
17008
+ "line": 149,
16959
17009
  "character": 16
16960
17010
  },
16961
17011
  "name": "string"
@@ -16966,7 +17016,7 @@
16966
17016
  "__schema": "GetAccessorSchema",
16967
17017
  "location": {
16968
17018
  "filePath": "component.ts",
16969
- "line": 163,
17019
+ "line": 169,
16970
17020
  "character": 3
16971
17021
  },
16972
17022
  "signature": "(getter) Component.displayName: string",
@@ -16975,7 +17025,7 @@
16975
17025
  "__schema": "InferenceTypeSchema",
16976
17026
  "location": {
16977
17027
  "filePath": "component.ts",
16978
- "line": 163,
17028
+ "line": 169,
16979
17029
  "character": 3
16980
17030
  },
16981
17031
  "type": "string"
@@ -16985,14 +17035,14 @@
16985
17035
  "__schema": "FunctionLikeSchema",
16986
17036
  "location": {
16987
17037
  "filePath": "component.ts",
16988
- "line": 172,
17038
+ "line": 178,
16989
17039
  "character": 3
16990
17040
  },
16991
17041
  "doc": {
16992
17042
  "__schema": "DocSchema",
16993
17043
  "location": {
16994
17044
  "filePath": "component.ts",
16995
- "line": 168,
17045
+ "line": 174,
16996
17046
  "character": 3
16997
17047
  },
16998
17048
  "raw": "/**\n * tag a component `Snap` with a semantic version. we follow SemVer specs as defined [here](https://semver.org/)).\n */",
@@ -17005,7 +17055,7 @@
17005
17055
  "__schema": "ParameterSchema",
17006
17056
  "location": {
17007
17057
  "filePath": "component.ts",
17008
- "line": 172,
17058
+ "line": 178,
17009
17059
  "character": 7
17010
17060
  },
17011
17061
  "name": "version",
@@ -17013,7 +17063,7 @@
17013
17063
  "__schema": "TypeRefSchema",
17014
17064
  "location": {
17015
17065
  "filePath": "component.ts",
17016
- "line": 172,
17066
+ "line": 178,
17017
17067
  "character": 16
17018
17068
  },
17019
17069
  "name": "SemVer"
@@ -17026,7 +17076,7 @@
17026
17076
  "__schema": "InferenceTypeSchema",
17027
17077
  "location": {
17028
17078
  "filePath": "component.ts",
17029
- "line": 172,
17079
+ "line": 178,
17030
17080
  "character": 3
17031
17081
  },
17032
17082
  "type": "void"
@@ -17037,14 +17087,14 @@
17037
17087
  "__schema": "FunctionLikeSchema",
17038
17088
  "location": {
17039
17089
  "filePath": "component.ts",
17040
- "line": 181,
17090
+ "line": 187,
17041
17091
  "character": 3
17042
17092
  },
17043
17093
  "doc": {
17044
17094
  "__schema": "DocSchema",
17045
17095
  "location": {
17046
17096
  "filePath": "component.ts",
17047
- "line": 178,
17097
+ "line": 184,
17048
17098
  "character": 3
17049
17099
  },
17050
17100
  "raw": "/**\n * determines whether this component is modified in the workspace.\n */",
@@ -17057,7 +17107,7 @@
17057
17107
  "__schema": "TypeRefSchema",
17058
17108
  "location": {
17059
17109
  "filePath": "component.ts",
17060
- "line": 181,
17110
+ "line": 187,
17061
17111
  "character": 17
17062
17112
  },
17063
17113
  "name": "Promise",
@@ -17066,7 +17116,7 @@
17066
17116
  "__schema": "KeywordTypeSchema",
17067
17117
  "location": {
17068
17118
  "filePath": "component.ts",
17069
- "line": 181,
17119
+ "line": 187,
17070
17120
  "character": 25
17071
17121
  },
17072
17122
  "name": "boolean"
@@ -17079,14 +17129,14 @@
17079
17129
  "__schema": "FunctionLikeSchema",
17080
17130
  "location": {
17081
17131
  "filePath": "component.ts",
17082
- "line": 188,
17132
+ "line": 194,
17083
17133
  "character": 3
17084
17134
  },
17085
17135
  "doc": {
17086
17136
  "__schema": "DocSchema",
17087
17137
  "location": {
17088
17138
  "filePath": "component.ts",
17089
- "line": 185,
17139
+ "line": 191,
17090
17140
  "character": 3
17091
17141
  },
17092
17142
  "raw": "/**\n * whether a component is marked as deleted.\n */",
@@ -17099,7 +17149,7 @@
17099
17149
  "__schema": "KeywordTypeSchema",
17100
17150
  "location": {
17101
17151
  "filePath": "component.ts",
17102
- "line": 188,
17152
+ "line": 194,
17103
17153
  "character": 16
17104
17154
  },
17105
17155
  "name": "boolean"
@@ -17110,14 +17160,14 @@
17110
17160
  "__schema": "FunctionLikeSchema",
17111
17161
  "location": {
17112
17162
  "filePath": "component.ts",
17113
- "line": 195,
17163
+ "line": 201,
17114
17164
  "character": 3
17115
17165
  },
17116
17166
  "doc": {
17117
17167
  "__schema": "DocSchema",
17118
17168
  "location": {
17119
17169
  "filePath": "component.ts",
17120
- "line": 192,
17170
+ "line": 198,
17121
17171
  "character": 3
17122
17172
  },
17123
17173
  "raw": "/**\n * is component isOutdated\n */",
@@ -17130,7 +17180,7 @@
17130
17180
  "__schema": "KeywordTypeSchema",
17131
17181
  "location": {
17132
17182
  "filePath": "component.ts",
17133
- "line": 195,
17183
+ "line": 201,
17134
17184
  "character": 17
17135
17185
  },
17136
17186
  "name": "boolean"
@@ -17141,14 +17191,14 @@
17141
17191
  "__schema": "FunctionLikeSchema",
17142
17192
  "location": {
17143
17193
  "filePath": "component.ts",
17144
- "line": 206,
17194
+ "line": 212,
17145
17195
  "character": 3
17146
17196
  },
17147
17197
  "doc": {
17148
17198
  "__schema": "DocSchema",
17149
17199
  "location": {
17150
17200
  "filePath": "component.ts",
17151
- "line": 203,
17201
+ "line": 209,
17152
17202
  "character": 3
17153
17203
  },
17154
17204
  "raw": "/**\n * determines whether this component is new.\n */",
@@ -17161,7 +17211,7 @@
17161
17211
  "__schema": "TypeRefSchema",
17162
17212
  "location": {
17163
17213
  "filePath": "component.ts",
17164
- "line": 206,
17214
+ "line": 212,
17165
17215
  "character": 12
17166
17216
  },
17167
17217
  "name": "Promise",
@@ -17170,7 +17220,7 @@
17170
17220
  "__schema": "KeywordTypeSchema",
17171
17221
  "location": {
17172
17222
  "filePath": "component.ts",
17173
- "line": 206,
17223
+ "line": 212,
17174
17224
  "character": 20
17175
17225
  },
17176
17226
  "name": "boolean"
@@ -17183,7 +17233,7 @@
17183
17233
  "__schema": "FunctionLikeSchema",
17184
17234
  "location": {
17185
17235
  "filePath": "component.ts",
17186
- "line": 211,
17236
+ "line": 217,
17187
17237
  "character": 3
17188
17238
  },
17189
17239
  "signature": "(method) Component.loadState(snapId: string): Promise<State>",
@@ -17193,7 +17243,7 @@
17193
17243
  "__schema": "ParameterSchema",
17194
17244
  "location": {
17195
17245
  "filePath": "component.ts",
17196
- "line": 211,
17246
+ "line": 217,
17197
17247
  "character": 13
17198
17248
  },
17199
17249
  "name": "snapId",
@@ -17201,7 +17251,7 @@
17201
17251
  "__schema": "KeywordTypeSchema",
17202
17252
  "location": {
17203
17253
  "filePath": "component.ts",
17204
- "line": 211,
17254
+ "line": 217,
17205
17255
  "character": 21
17206
17256
  },
17207
17257
  "name": "string"
@@ -17214,7 +17264,7 @@
17214
17264
  "__schema": "TypeRefSchema",
17215
17265
  "location": {
17216
17266
  "filePath": "component.ts",
17217
- "line": 211,
17267
+ "line": 217,
17218
17268
  "character": 30
17219
17269
  },
17220
17270
  "name": "Promise",
@@ -17223,7 +17273,7 @@
17223
17273
  "__schema": "TypeRefSchema",
17224
17274
  "location": {
17225
17275
  "filePath": "component.ts",
17226
- "line": 211,
17276
+ "line": 217,
17227
17277
  "character": 38
17228
17278
  },
17229
17279
  "name": "State"
@@ -17236,7 +17286,7 @@
17236
17286
  "__schema": "FunctionLikeSchema",
17237
17287
  "location": {
17238
17288
  "filePath": "component.ts",
17239
- "line": 215,
17289
+ "line": 221,
17240
17290
  "character": 3
17241
17291
  },
17242
17292
  "signature": "(method) Component.loadSnap(snapId?: string): Promise<Snap>",
@@ -17246,7 +17296,7 @@
17246
17296
  "__schema": "ParameterSchema",
17247
17297
  "location": {
17248
17298
  "filePath": "component.ts",
17249
- "line": 215,
17299
+ "line": 221,
17250
17300
  "character": 12
17251
17301
  },
17252
17302
  "name": "snapId",
@@ -17254,7 +17304,7 @@
17254
17304
  "__schema": "KeywordTypeSchema",
17255
17305
  "location": {
17256
17306
  "filePath": "component.ts",
17257
- "line": 215,
17307
+ "line": 221,
17258
17308
  "character": 21
17259
17309
  },
17260
17310
  "name": "string"
@@ -17267,7 +17317,7 @@
17267
17317
  "__schema": "TypeRefSchema",
17268
17318
  "location": {
17269
17319
  "filePath": "component.ts",
17270
- "line": 215,
17320
+ "line": 221,
17271
17321
  "character": 30
17272
17322
  },
17273
17323
  "name": "Promise",
@@ -17276,7 +17326,7 @@
17276
17326
  "__schema": "TypeRefSchema",
17277
17327
  "location": {
17278
17328
  "filePath": "component.ts",
17279
- "line": 215,
17329
+ "line": 221,
17280
17330
  "character": 38
17281
17331
  },
17282
17332
  "name": "Snap"
@@ -17289,14 +17339,14 @@
17289
17339
  "__schema": "FunctionLikeSchema",
17290
17340
  "location": {
17291
17341
  "filePath": "component.ts",
17292
- "line": 228,
17342
+ "line": 234,
17293
17343
  "character": 3
17294
17344
  },
17295
17345
  "doc": {
17296
17346
  "__schema": "DocSchema",
17297
17347
  "location": {
17298
17348
  "filePath": "component.ts",
17299
- "line": 223,
17349
+ "line": 229,
17300
17350
  "character": 3
17301
17351
  },
17302
17352
  "raw": "/**\n * Get iterable which iterate over snap parents lazily\n * @param snapId\n * @param options\n */",
@@ -17306,7 +17356,7 @@
17306
17356
  "__schema": "PropertyLikeTagSchema",
17307
17357
  "location": {
17308
17358
  "filePath": "component.ts",
17309
- "line": 225,
17359
+ "line": 231,
17310
17360
  "character": 6
17311
17361
  },
17312
17362
  "name": "snapId",
@@ -17316,7 +17366,7 @@
17316
17366
  "__schema": "PropertyLikeTagSchema",
17317
17367
  "location": {
17318
17368
  "filePath": "component.ts",
17319
- "line": 226,
17369
+ "line": 232,
17320
17370
  "character": 6
17321
17371
  },
17322
17372
  "name": "options",
@@ -17331,7 +17381,7 @@
17331
17381
  "__schema": "ParameterSchema",
17332
17382
  "location": {
17333
17383
  "filePath": "component.ts",
17334
- "line": 228,
17384
+ "line": 234,
17335
17385
  "character": 17
17336
17386
  },
17337
17387
  "name": "snapId",
@@ -17339,7 +17389,7 @@
17339
17389
  "__schema": "KeywordTypeSchema",
17340
17390
  "location": {
17341
17391
  "filePath": "component.ts",
17342
- "line": 228,
17392
+ "line": 234,
17343
17393
  "character": 26
17344
17394
  },
17345
17395
  "name": "string"
@@ -17351,7 +17401,7 @@
17351
17401
  "__schema": "ParameterSchema",
17352
17402
  "location": {
17353
17403
  "filePath": "component.ts",
17354
- "line": 228,
17404
+ "line": 234,
17355
17405
  "character": 34
17356
17406
  },
17357
17407
  "name": "options",
@@ -17359,7 +17409,7 @@
17359
17409
  "__schema": "TypeRefSchema",
17360
17410
  "location": {
17361
17411
  "filePath": "component.ts",
17362
- "line": 228,
17412
+ "line": 234,
17363
17413
  "character": 43
17364
17414
  },
17365
17415
  "name": "SnapsIterableOpts"
@@ -17373,7 +17423,7 @@
17373
17423
  "__schema": "TypeRefSchema",
17374
17424
  "location": {
17375
17425
  "filePath": "component.ts",
17376
- "line": 228,
17426
+ "line": 234,
17377
17427
  "character": 68
17378
17428
  },
17379
17429
  "name": "AsyncIterable",
@@ -17382,7 +17432,7 @@
17382
17432
  "__schema": "TypeRefSchema",
17383
17433
  "location": {
17384
17434
  "filePath": "component.ts",
17385
- "line": 228,
17435
+ "line": 234,
17386
17436
  "character": 82
17387
17437
  },
17388
17438
  "name": "Snap"
@@ -17395,14 +17445,14 @@
17395
17445
  "__schema": "FunctionLikeSchema",
17396
17446
  "location": {
17397
17447
  "filePath": "component.ts",
17398
- "line": 267,
17448
+ "line": 273,
17399
17449
  "character": 3
17400
17450
  },
17401
17451
  "doc": {
17402
17452
  "__schema": "DocSchema",
17403
17453
  "location": {
17404
17454
  "filePath": "component.ts",
17405
- "line": 263,
17455
+ "line": 269,
17406
17456
  "character": 3
17407
17457
  },
17408
17458
  "raw": "/**\n * traverse recursively from the provided snap (or head) upwards until it finds a tag\n * @param snapToStartFrom\n */",
@@ -17412,7 +17462,7 @@
17412
17462
  "__schema": "PropertyLikeTagSchema",
17413
17463
  "location": {
17414
17464
  "filePath": "component.ts",
17415
- "line": 265,
17465
+ "line": 271,
17416
17466
  "character": 6
17417
17467
  },
17418
17468
  "name": "snapToStartFrom",
@@ -17427,7 +17477,7 @@
17427
17477
  "__schema": "ParameterSchema",
17428
17478
  "location": {
17429
17479
  "filePath": "component.ts",
17430
- "line": 267,
17480
+ "line": 273,
17431
17481
  "character": 23
17432
17482
  },
17433
17483
  "name": "snapToStartFrom",
@@ -17435,7 +17485,7 @@
17435
17485
  "__schema": "KeywordTypeSchema",
17436
17486
  "location": {
17437
17487
  "filePath": "component.ts",
17438
- "line": 267,
17488
+ "line": 273,
17439
17489
  "character": 41
17440
17490
  },
17441
17491
  "name": "string"
@@ -17448,7 +17498,7 @@
17448
17498
  "__schema": "TypeRefSchema",
17449
17499
  "location": {
17450
17500
  "filePath": "component.ts",
17451
- "line": 267,
17501
+ "line": 273,
17452
17502
  "character": 50
17453
17503
  },
17454
17504
  "name": "Promise",
@@ -17457,7 +17507,7 @@
17457
17507
  "__schema": "TypeUnionSchema",
17458
17508
  "location": {
17459
17509
  "filePath": "component.ts",
17460
- "line": 267,
17510
+ "line": 273,
17461
17511
  "character": 58
17462
17512
  },
17463
17513
  "types": [
@@ -17465,7 +17515,7 @@
17465
17515
  "__schema": "TypeRefSchema",
17466
17516
  "location": {
17467
17517
  "filePath": "component.ts",
17468
- "line": 267,
17518
+ "line": 273,
17469
17519
  "character": 58
17470
17520
  },
17471
17521
  "name": "Tag"
@@ -17474,7 +17524,7 @@
17474
17524
  "__schema": "KeywordTypeSchema",
17475
17525
  "location": {
17476
17526
  "filePath": "component.ts",
17477
- "line": 267,
17527
+ "line": 273,
17478
17528
  "character": 64
17479
17529
  },
17480
17530
  "name": "undefined"
@@ -17491,14 +17541,64 @@
17491
17541
  "__schema": "FunctionLikeSchema",
17492
17542
  "location": {
17493
17543
  "filePath": "component.ts",
17494
- "line": 291,
17544
+ "line": 297,
17545
+ "character": 3
17546
+ },
17547
+ "doc": {
17548
+ "__schema": "DocSchema",
17549
+ "location": {
17550
+ "filePath": "component.ts",
17551
+ "line": 293,
17552
+ "character": 3
17553
+ },
17554
+ "raw": "/**\n * id.version can be either a version or a hash.\n * if it's a hash, it may have a tag point to it. if it does, return the tag.\n */",
17555
+ "comment": "id.version can be either a version or a hash.\nif it's a hash, it may have a tag point to it. if it does, return the tag."
17556
+ },
17557
+ "signature": "(method) Component.getTag(): Tag | undefined",
17558
+ "name": "getTag",
17559
+ "params": [],
17560
+ "returnType": {
17561
+ "__schema": "TypeUnionSchema",
17562
+ "location": {
17563
+ "filePath": "component.ts",
17564
+ "line": 297,
17565
+ "character": 13
17566
+ },
17567
+ "types": [
17568
+ {
17569
+ "__schema": "TypeRefSchema",
17570
+ "location": {
17571
+ "filePath": "component.ts",
17572
+ "line": 297,
17573
+ "character": 13
17574
+ },
17575
+ "name": "Tag"
17576
+ },
17577
+ {
17578
+ "__schema": "KeywordTypeSchema",
17579
+ "location": {
17580
+ "filePath": "component.ts",
17581
+ "line": 297,
17582
+ "character": 19
17583
+ },
17584
+ "name": "undefined"
17585
+ }
17586
+ ]
17587
+ },
17588
+ "modifiers": []
17589
+ },
17590
+ {
17591
+ "__schema": "FunctionLikeSchema",
17592
+ "location": {
17593
+ "filePath": "component.ts",
17594
+ "line": 307,
17495
17595
  "character": 3
17496
17596
  },
17497
17597
  "doc": {
17498
17598
  "__schema": "DocSchema",
17499
17599
  "location": {
17500
17600
  "filePath": "component.ts",
17501
- "line": 287,
17601
+ "line": 303,
17502
17602
  "character": 3
17503
17603
  },
17504
17604
  "raw": "/**\n * checkout the component to a different version in its working tree.\n */",
@@ -17511,7 +17611,7 @@
17511
17611
  "__schema": "ParameterSchema",
17512
17612
  "location": {
17513
17613
  "filePath": "component.ts",
17514
- "line": 291,
17614
+ "line": 307,
17515
17615
  "character": 12
17516
17616
  },
17517
17617
  "name": "version",
@@ -17519,7 +17619,7 @@
17519
17619
  "__schema": "TypeRefSchema",
17520
17620
  "location": {
17521
17621
  "filePath": "component.ts",
17522
- "line": 291,
17622
+ "line": 307,
17523
17623
  "character": 21
17524
17624
  },
17525
17625
  "name": "SemVer"
@@ -17532,7 +17632,7 @@
17532
17632
  "__schema": "InferenceTypeSchema",
17533
17633
  "location": {
17534
17634
  "filePath": "component.ts",
17535
- "line": 291,
17635
+ "line": 307,
17536
17636
  "character": 3
17537
17637
  },
17538
17638
  "type": "void"
@@ -17543,14 +17643,14 @@
17543
17643
  "__schema": "FunctionLikeSchema",
17544
17644
  "location": {
17545
17645
  "filePath": "component.ts",
17546
- "line": 309,
17646
+ "line": 325,
17547
17647
  "character": 3
17548
17648
  },
17549
17649
  "doc": {
17550
17650
  "__schema": "DocSchema",
17551
17651
  "location": {
17552
17652
  "filePath": "component.ts",
17553
- "line": 293,
17653
+ "line": 309,
17554
17654
  "character": 3
17555
17655
  },
17556
17656
  "raw": "/**\n * examine difference between two components.\n */",
@@ -17563,7 +17663,7 @@
17563
17663
  "__schema": "ParameterSchema",
17564
17664
  "location": {
17565
17665
  "filePath": "component.ts",
17566
- "line": 309,
17666
+ "line": 325,
17567
17667
  "character": 9
17568
17668
  },
17569
17669
  "name": "path",
@@ -17571,7 +17671,7 @@
17571
17671
  "__schema": "KeywordTypeSchema",
17572
17672
  "location": {
17573
17673
  "filePath": "component.ts",
17574
- "line": 309,
17674
+ "line": 325,
17575
17675
  "character": 15
17576
17676
  },
17577
17677
  "name": "string"
@@ -17583,7 +17683,7 @@
17583
17683
  "__schema": "ParameterSchema",
17584
17684
  "location": {
17585
17685
  "filePath": "component.ts",
17586
- "line": 309,
17686
+ "line": 325,
17587
17687
  "character": 23
17588
17688
  },
17589
17689
  "name": "fs",
@@ -17591,7 +17691,7 @@
17591
17691
  "__schema": "TypeRefSchema",
17592
17692
  "location": {
17593
17693
  "filePath": "component.ts",
17594
- "line": 309,
17694
+ "line": 325,
17595
17695
  "character": 28
17596
17696
  },
17597
17697
  "name": "AnyFS"
@@ -17604,7 +17704,7 @@
17604
17704
  "__schema": "InferenceTypeSchema",
17605
17705
  "location": {
17606
17706
  "filePath": "component.ts",
17607
- "line": 309,
17707
+ "line": 325,
17608
17708
  "character": 3
17609
17709
  },
17610
17710
  "type": "void"
@@ -17615,14 +17715,14 @@
17615
17715
  "__schema": "FunctionLikeSchema",
17616
17716
  "location": {
17617
17717
  "filePath": "component.ts",
17618
- "line": 319,
17718
+ "line": 335,
17619
17719
  "character": 3
17620
17720
  },
17621
17721
  "doc": {
17622
17722
  "__schema": "DocSchema",
17623
17723
  "location": {
17624
17724
  "filePath": "component.ts",
17625
- "line": 311,
17725
+ "line": 327,
17626
17726
  "character": 3
17627
17727
  },
17628
17728
  "raw": "/**\n *\n * Check if 2 components are equal\n * @param {Component} component\n * @returns {boolean}\n * @memberof Component\n */",
@@ -17632,7 +17732,7 @@
17632
17732
  "__schema": "PropertyLikeTagSchema",
17633
17733
  "location": {
17634
17734
  "filePath": "component.ts",
17635
- "line": 314,
17735
+ "line": 330,
17636
17736
  "character": 6
17637
17737
  },
17638
17738
  "name": "component",
@@ -17641,7 +17741,7 @@
17641
17741
  "__schema": "TypeRefSchema",
17642
17742
  "location": {
17643
17743
  "filePath": "component.ts",
17644
- "line": 314,
17744
+ "line": 330,
17645
17745
  "character": 14
17646
17746
  },
17647
17747
  "name": "Component"
@@ -17651,7 +17751,7 @@
17651
17751
  "__schema": "ReturnTagSchema",
17652
17752
  "location": {
17653
17753
  "filePath": "component.ts",
17654
- "line": 315,
17754
+ "line": 331,
17655
17755
  "character": 6
17656
17756
  },
17657
17757
  "tagName": "return",
@@ -17659,7 +17759,7 @@
17659
17759
  "__schema": "KeywordTypeSchema",
17660
17760
  "location": {
17661
17761
  "filePath": "component.ts",
17662
- "line": 315,
17762
+ "line": 331,
17663
17763
  "character": 16
17664
17764
  },
17665
17765
  "name": "boolean"
@@ -17669,7 +17769,7 @@
17669
17769
  "__schema": "TagSchema",
17670
17770
  "location": {
17671
17771
  "filePath": "component.ts",
17672
- "line": 316,
17772
+ "line": 332,
17673
17773
  "character": 6
17674
17774
  },
17675
17775
  "tagName": "memberof",
@@ -17684,7 +17784,7 @@
17684
17784
  "__schema": "ParameterSchema",
17685
17785
  "location": {
17686
17786
  "filePath": "component.ts",
17687
- "line": 319,
17787
+ "line": 335,
17688
17788
  "character": 10
17689
17789
  },
17690
17790
  "name": "component",
@@ -17692,7 +17792,7 @@
17692
17792
  "__schema": "TypeRefSchema",
17693
17793
  "location": {
17694
17794
  "filePath": "component.ts",
17695
- "line": 319,
17795
+ "line": 335,
17696
17796
  "character": 21
17697
17797
  },
17698
17798
  "name": "Component"
@@ -17705,7 +17805,7 @@
17705
17805
  "__schema": "KeywordTypeSchema",
17706
17806
  "location": {
17707
17807
  "filePath": "component.ts",
17708
- "line": 319,
17808
+ "line": 335,
17709
17809
  "character": 33
17710
17810
  },
17711
17811
  "name": "boolean"
@@ -18312,7 +18412,7 @@
18312
18412
  "_legacy": {
18313
18413
  "scope": "teambit.component",
18314
18414
  "name": "component",
18315
- "version": "1.0.164"
18415
+ "version": "1.0.166"
18316
18416
  },
18317
18417
  "_scope": "teambit.component"
18318
18418
  }
@@ -23407,7 +23507,7 @@
23407
23507
  "_legacy": {
23408
23508
  "scope": "teambit.component",
23409
23509
  "name": "component",
23410
- "version": "1.0.164"
23510
+ "version": "1.0.166"
23411
23511
  },
23412
23512
  "_scope": "teambit.component"
23413
23513
  }
@@ -29607,7 +29707,7 @@
29607
29707
  "_legacy": {
29608
29708
  "scope": "teambit.component",
29609
29709
  "name": "component",
29610
- "version": "1.0.164"
29710
+ "version": "1.0.166"
29611
29711
  },
29612
29712
  "_scope": "teambit.component"
29613
29713
  }
@@ -31989,7 +32089,7 @@
31989
32089
  "componentId": {
31990
32090
  "scope": "teambit.component",
31991
32091
  "name": "component",
31992
- "version": "1.0.164"
32092
+ "version": "1.0.166"
31993
32093
  },
31994
32094
  "taggedModuleExports": []
31995
32095
  }