@teambit/graph 1.0.166 → 1.0.168

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.
@@ -450,7 +450,7 @@
450
450
  "_legacy": {
451
451
  "scope": "teambit.component",
452
452
  "name": "graph",
453
- "version": "1.0.166"
453
+ "version": "1.0.168"
454
454
  },
455
455
  "_scope": "teambit.component"
456
456
  }
@@ -1652,7 +1652,7 @@
1652
1652
  "__schema": "TypeSchema",
1653
1653
  "location": {
1654
1654
  "filePath": "component-id-graph.ts",
1655
- "line": 9,
1655
+ "line": 11,
1656
1656
  "character": 1
1657
1657
  },
1658
1658
  "signature": "type CompIdGraph = Graph<ComponentID, DepEdgeType>",
@@ -1661,7 +1661,7 @@
1661
1661
  "__schema": "TypeRefSchema",
1662
1662
  "location": {
1663
1663
  "filePath": "component-id-graph.ts",
1664
- "line": 9,
1664
+ "line": 11,
1665
1665
  "character": 27
1666
1666
  },
1667
1667
  "name": "Graph",
@@ -1670,7 +1670,7 @@
1670
1670
  "__schema": "TypeRefSchema",
1671
1671
  "location": {
1672
1672
  "filePath": "component-id-graph.ts",
1673
- "line": 9,
1673
+ "line": 11,
1674
1674
  "character": 33
1675
1675
  },
1676
1676
  "name": "ComponentID"
@@ -1679,7 +1679,7 @@
1679
1679
  "__schema": "TypeRefSchema",
1680
1680
  "location": {
1681
1681
  "filePath": "component-id-graph.ts",
1682
- "line": 9,
1682
+ "line": 11,
1683
1683
  "character": 46
1684
1684
  },
1685
1685
  "name": "DepEdgeType"
@@ -1691,7 +1691,7 @@
1691
1691
  "__schema": "TypeSchema",
1692
1692
  "location": {
1693
1693
  "filePath": "component-id-graph.ts",
1694
- "line": 5,
1694
+ "line": 7,
1695
1695
  "character": 1
1696
1696
  },
1697
1697
  "signature": "type DepEdgeType = \"dev\" | \"prod\" | \"ext\"",
@@ -1700,7 +1700,7 @@
1700
1700
  "__schema": "TypeUnionSchema",
1701
1701
  "location": {
1702
1702
  "filePath": "component-id-graph.ts",
1703
- "line": 5,
1703
+ "line": 7,
1704
1704
  "character": 27
1705
1705
  },
1706
1706
  "types": [
@@ -1708,7 +1708,7 @@
1708
1708
  "__schema": "LiteralTypeSchema",
1709
1709
  "location": {
1710
1710
  "filePath": "component-id-graph.ts",
1711
- "line": 5,
1711
+ "line": 7,
1712
1712
  "character": 27
1713
1713
  },
1714
1714
  "name": "'prod'"
@@ -1717,22 +1717,862 @@
1717
1717
  "__schema": "LiteralTypeSchema",
1718
1718
  "location": {
1719
1719
  "filePath": "component-id-graph.ts",
1720
- "line": 5,
1721
- "character": 36
1720
+ "line": 7,
1721
+ "character": 36
1722
+ },
1723
+ "name": "'dev'"
1724
+ },
1725
+ {
1726
+ "__schema": "LiteralTypeSchema",
1727
+ "location": {
1728
+ "filePath": "component-id-graph.ts",
1729
+ "line": 7,
1730
+ "character": 44
1731
+ },
1732
+ "name": "'ext'"
1733
+ }
1734
+ ]
1735
+ }
1736
+ },
1737
+ {
1738
+ "__schema": "ClassSchema",
1739
+ "location": {
1740
+ "filePath": "component-id-graph.ts",
1741
+ "line": 13,
1742
+ "character": 1
1743
+ },
1744
+ "signature": "class ComponentIdGraph",
1745
+ "name": "ComponentIdGraph",
1746
+ "members": [
1747
+ {
1748
+ "__schema": "VariableLikeSchema",
1749
+ "location": {
1750
+ "filePath": "component-id-graph.ts",
1751
+ "line": 15,
1752
+ "character": 3
1753
+ },
1754
+ "signature": "(property) ComponentIdGraph.seederIds: ComponentID[]",
1755
+ "name": "seederIds",
1756
+ "type": {
1757
+ "__schema": "TypeArraySchema",
1758
+ "location": {
1759
+ "filePath": "component-id-graph.ts",
1760
+ "line": 15,
1761
+ "character": 14
1762
+ },
1763
+ "type": {
1764
+ "__schema": "TypeRefSchema",
1765
+ "location": {
1766
+ "filePath": "component-id-graph.ts",
1767
+ "line": 15,
1768
+ "character": 14
1769
+ },
1770
+ "name": "ComponentID"
1771
+ }
1772
+ },
1773
+ "isOptional": true,
1774
+ "defaultValue": "[]"
1775
+ },
1776
+ {
1777
+ "__schema": "ConstructorSchema",
1778
+ "location": {
1779
+ "filePath": "component-id-graph.ts",
1780
+ "line": 16,
1781
+ "character": 3
1782
+ },
1783
+ "signature": "constructor ComponentIdGraph(nodes?: ComponentIdNode[], edges?: DependencyEdge[]): ComponentIdGraph",
1784
+ "name": "constructor",
1785
+ "params": [
1786
+ {
1787
+ "__schema": "ParameterSchema",
1788
+ "location": {
1789
+ "filePath": "component-id-graph.ts",
1790
+ "line": 16,
1791
+ "character": 15
1792
+ },
1793
+ "name": "nodes",
1794
+ "type": {
1795
+ "__schema": "TypeArraySchema",
1796
+ "location": {
1797
+ "filePath": "component-id-graph.ts",
1798
+ "line": 16,
1799
+ "character": 22
1800
+ },
1801
+ "type": {
1802
+ "__schema": "TypeRefSchema",
1803
+ "location": {
1804
+ "filePath": "component-id-graph.ts",
1805
+ "line": 16,
1806
+ "character": 22
1807
+ },
1808
+ "name": "ComponentIdNode"
1809
+ }
1810
+ },
1811
+ "isOptional": true,
1812
+ "defaultValue": "[]",
1813
+ "isSpread": false
1814
+ },
1815
+ {
1816
+ "__schema": "ParameterSchema",
1817
+ "location": {
1818
+ "filePath": "component-id-graph.ts",
1819
+ "line": 16,
1820
+ "character": 46
1821
+ },
1822
+ "name": "edges",
1823
+ "type": {
1824
+ "__schema": "TypeArraySchema",
1825
+ "location": {
1826
+ "filePath": "component-id-graph.ts",
1827
+ "line": 16,
1828
+ "character": 53
1829
+ },
1830
+ "type": {
1831
+ "__schema": "TypeRefSchema",
1832
+ "location": {
1833
+ "filePath": "component-id-graph.ts",
1834
+ "line": 16,
1835
+ "character": 53
1836
+ },
1837
+ "name": "DependencyEdge"
1838
+ }
1839
+ },
1840
+ "isOptional": true,
1841
+ "defaultValue": "[]",
1842
+ "isSpread": false
1843
+ }
1844
+ ],
1845
+ "returnType": {
1846
+ "__schema": "ThisTypeSchema",
1847
+ "location": {
1848
+ "filePath": "component-id-graph.ts",
1849
+ "line": 13,
1850
+ "character": 1
1851
+ },
1852
+ "name": "ComponentIdGraph"
1853
+ },
1854
+ "modifiers": []
1855
+ },
1856
+ {
1857
+ "__schema": "GetAccessorSchema",
1858
+ "location": {
1859
+ "filePath": "component-id-graph.ts",
1860
+ "line": 20,
1861
+ "character": 3
1862
+ },
1863
+ "signature": "(getter) ComponentIdGraph.graphLib: GraphLib.Graph",
1864
+ "name": "graphLib",
1865
+ "type": {
1866
+ "__schema": "InferenceTypeSchema",
1867
+ "location": {
1868
+ "filePath": "component-id-graph.ts",
1869
+ "line": 20,
1870
+ "character": 3
1871
+ },
1872
+ "type": "GraphLib.Graph"
1873
+ }
1874
+ },
1875
+ {
1876
+ "__schema": "FunctionLikeSchema",
1877
+ "location": {
1878
+ "filePath": "component-id-graph.ts",
1879
+ "line": 34,
1880
+ "character": 3
1881
+ },
1882
+ "signature": "(method) ComponentIdGraph.create(nodes?: ComponentIdNode[], edges?: DependencyEdge[]): this",
1883
+ "name": "create",
1884
+ "params": [
1885
+ {
1886
+ "__schema": "ParameterSchema",
1887
+ "location": {
1888
+ "filePath": "component-id-graph.ts",
1889
+ "line": 34,
1890
+ "character": 20
1891
+ },
1892
+ "name": "nodes",
1893
+ "type": {
1894
+ "__schema": "TypeArraySchema",
1895
+ "location": {
1896
+ "filePath": "component-id-graph.ts",
1897
+ "line": 34,
1898
+ "character": 27
1899
+ },
1900
+ "type": {
1901
+ "__schema": "TypeRefSchema",
1902
+ "location": {
1903
+ "filePath": "component-id-graph.ts",
1904
+ "line": 34,
1905
+ "character": 27
1906
+ },
1907
+ "name": "ComponentIdNode"
1908
+ }
1909
+ },
1910
+ "isOptional": true,
1911
+ "defaultValue": "[]",
1912
+ "isSpread": false
1913
+ },
1914
+ {
1915
+ "__schema": "ParameterSchema",
1916
+ "location": {
1917
+ "filePath": "component-id-graph.ts",
1918
+ "line": 34,
1919
+ "character": 51
1920
+ },
1921
+ "name": "edges",
1922
+ "type": {
1923
+ "__schema": "TypeArraySchema",
1924
+ "location": {
1925
+ "filePath": "component-id-graph.ts",
1926
+ "line": 34,
1927
+ "character": 58
1928
+ },
1929
+ "type": {
1930
+ "__schema": "TypeRefSchema",
1931
+ "location": {
1932
+ "filePath": "component-id-graph.ts",
1933
+ "line": 34,
1934
+ "character": 58
1935
+ },
1936
+ "name": "DependencyEdge"
1937
+ }
1938
+ },
1939
+ "isOptional": true,
1940
+ "defaultValue": "[]",
1941
+ "isSpread": false
1942
+ }
1943
+ ],
1944
+ "returnType": {
1945
+ "__schema": "ThisTypeSchema",
1946
+ "location": {
1947
+ "filePath": "component-id-graph.ts",
1948
+ "line": 34,
1949
+ "character": 82
1950
+ },
1951
+ "name": "this"
1952
+ },
1953
+ "modifiers": [
1954
+ "protected"
1955
+ ]
1956
+ },
1957
+ {
1958
+ "__schema": "FunctionLikeSchema",
1959
+ "location": {
1960
+ "filePath": "component-id-graph.ts",
1961
+ "line": 49,
1962
+ "character": 3
1963
+ },
1964
+ "doc": {
1965
+ "__schema": "DocSchema",
1966
+ "location": {
1967
+ "filePath": "component-id-graph.ts",
1968
+ "line": 38,
1969
+ "character": 3
1970
+ },
1971
+ "raw": "/**\n * check all the routes from the sources to targets and return the components found during this traversal.\n * e.g.\n * A -> B -> C -> N.\n * A -> E -> N.\n * B -> F -> G.\n * given source: A, targets: N. The results will be: [B, C, E].\n *\n * if through is provided, it will only return the components that are connected to the through components.\n * with the example above, if through is B, the results will be: [B, C].\n */",
1972
+ "comment": "check all the routes from the sources to targets and return the components found during this traversal.\ne.g.\nA -> B -> C -> N.\nA -> E -> N.\nB -> F -> G.\ngiven source: A, targets: N. The results will be: [B, C, E].\n\nif through is provided, it will only return the components that are connected to the through components.\nwith the example above, if through is B, the results will be: [B, C]."
1973
+ },
1974
+ "signature": "(method) ComponentIdGraph.findIdsFromSourcesToTargets(sources: ComponentID[], targets: ComponentID[], through?: ComponentID[]): ComponentID[]",
1975
+ "name": "findIdsFromSourcesToTargets",
1976
+ "params": [
1977
+ {
1978
+ "__schema": "ParameterSchema",
1979
+ "location": {
1980
+ "filePath": "component-id-graph.ts",
1981
+ "line": 49,
1982
+ "character": 31
1983
+ },
1984
+ "name": "sources",
1985
+ "type": {
1986
+ "__schema": "TypeArraySchema",
1987
+ "location": {
1988
+ "filePath": "component-id-graph.ts",
1989
+ "line": 49,
1990
+ "character": 40
1991
+ },
1992
+ "type": {
1993
+ "__schema": "TypeRefSchema",
1994
+ "location": {
1995
+ "filePath": "component-id-graph.ts",
1996
+ "line": 49,
1997
+ "character": 40
1998
+ },
1999
+ "name": "ComponentID"
2000
+ }
2001
+ },
2002
+ "isOptional": false,
2003
+ "isSpread": false
2004
+ },
2005
+ {
2006
+ "__schema": "ParameterSchema",
2007
+ "location": {
2008
+ "filePath": "component-id-graph.ts",
2009
+ "line": 49,
2010
+ "character": 55
2011
+ },
2012
+ "name": "targets",
2013
+ "type": {
2014
+ "__schema": "TypeArraySchema",
2015
+ "location": {
2016
+ "filePath": "component-id-graph.ts",
2017
+ "line": 49,
2018
+ "character": 64
2019
+ },
2020
+ "type": {
2021
+ "__schema": "TypeRefSchema",
2022
+ "location": {
2023
+ "filePath": "component-id-graph.ts",
2024
+ "line": 49,
2025
+ "character": 64
2026
+ },
2027
+ "name": "ComponentID"
2028
+ }
2029
+ },
2030
+ "isOptional": false,
2031
+ "isSpread": false
2032
+ },
2033
+ {
2034
+ "__schema": "ParameterSchema",
2035
+ "location": {
2036
+ "filePath": "component-id-graph.ts",
2037
+ "line": 49,
2038
+ "character": 79
2039
+ },
2040
+ "name": "through",
2041
+ "type": {
2042
+ "__schema": "TypeArraySchema",
2043
+ "location": {
2044
+ "filePath": "component-id-graph.ts",
2045
+ "line": 49,
2046
+ "character": 89
2047
+ },
2048
+ "type": {
2049
+ "__schema": "TypeRefSchema",
2050
+ "location": {
2051
+ "filePath": "component-id-graph.ts",
2052
+ "line": 49,
2053
+ "character": 89
2054
+ },
2055
+ "name": "ComponentID"
2056
+ }
2057
+ },
2058
+ "isOptional": true,
2059
+ "isSpread": false
2060
+ }
2061
+ ],
2062
+ "returnType": {
2063
+ "__schema": "TypeArraySchema",
2064
+ "location": {
2065
+ "filePath": "component-id-graph.ts",
2066
+ "line": 49,
2067
+ "character": 105
2068
+ },
2069
+ "type": {
2070
+ "__schema": "TypeRefSchema",
2071
+ "location": {
2072
+ "filePath": "component-id-graph.ts",
2073
+ "line": 49,
2074
+ "character": 105
2075
+ },
2076
+ "name": "ComponentID"
2077
+ }
2078
+ },
2079
+ "modifiers": []
2080
+ },
2081
+ {
2082
+ "__schema": "FunctionLikeSchema",
2083
+ "location": {
2084
+ "filePath": "component-id-graph.ts",
2085
+ "line": 91,
2086
+ "character": 3
2087
+ },
2088
+ "doc": {
2089
+ "__schema": "DocSchema",
2090
+ "location": {
2091
+ "filePath": "component-id-graph.ts",
2092
+ "line": 80,
2093
+ "character": 3
2094
+ },
2095
+ "raw": "/**\n * check all the routes from the sources to targets and return the components found during this traversal.\n * e.g.\n * A -> B -> C -> N.\n * A -> E -> N.\n * B -> F -> G.\n * given source: A, targets: N. The results will be: [B, C, E].\n *\n * if through is provided, it will only return the components that are connected to the through components.\n * with the example above, if through is B, the results will be: [B, C].\n */",
2096
+ "comment": "check all the routes from the sources to targets and return the components found during this traversal.\ne.g.\nA -> B -> C -> N.\nA -> E -> N.\nB -> F -> G.\ngiven source: A, targets: N. The results will be: [B, C, E].\n\nif through is provided, it will only return the components that are connected to the through components.\nwith the example above, if through is B, the results will be: [B, C]."
2097
+ },
2098
+ "signature": "(method) ComponentIdGraph.findAllPathsFromSourcesToTargets(sources: ComponentID[], targets: ComponentID[], through?: ComponentID[]): string[][]",
2099
+ "name": "findAllPathsFromSourcesToTargets",
2100
+ "params": [
2101
+ {
2102
+ "__schema": "ParameterSchema",
2103
+ "location": {
2104
+ "filePath": "component-id-graph.ts",
2105
+ "line": 92,
2106
+ "character": 5
2107
+ },
2108
+ "name": "sources",
2109
+ "type": {
2110
+ "__schema": "TypeArraySchema",
2111
+ "location": {
2112
+ "filePath": "component-id-graph.ts",
2113
+ "line": 92,
2114
+ "character": 14
2115
+ },
2116
+ "type": {
2117
+ "__schema": "TypeRefSchema",
2118
+ "location": {
2119
+ "filePath": "component-id-graph.ts",
2120
+ "line": 92,
2121
+ "character": 14
2122
+ },
2123
+ "name": "ComponentID"
2124
+ }
2125
+ },
2126
+ "isOptional": false,
2127
+ "isSpread": false
2128
+ },
2129
+ {
2130
+ "__schema": "ParameterSchema",
2131
+ "location": {
2132
+ "filePath": "component-id-graph.ts",
2133
+ "line": 93,
2134
+ "character": 5
2135
+ },
2136
+ "name": "targets",
2137
+ "type": {
2138
+ "__schema": "TypeArraySchema",
2139
+ "location": {
2140
+ "filePath": "component-id-graph.ts",
2141
+ "line": 93,
2142
+ "character": 14
2143
+ },
2144
+ "type": {
2145
+ "__schema": "TypeRefSchema",
2146
+ "location": {
2147
+ "filePath": "component-id-graph.ts",
2148
+ "line": 93,
2149
+ "character": 14
2150
+ },
2151
+ "name": "ComponentID"
2152
+ }
2153
+ },
2154
+ "isOptional": false,
2155
+ "isSpread": false
2156
+ },
2157
+ {
2158
+ "__schema": "ParameterSchema",
2159
+ "location": {
2160
+ "filePath": "component-id-graph.ts",
2161
+ "line": 94,
2162
+ "character": 5
2163
+ },
2164
+ "name": "through",
2165
+ "type": {
2166
+ "__schema": "TypeArraySchema",
2167
+ "location": {
2168
+ "filePath": "component-id-graph.ts",
2169
+ "line": 94,
2170
+ "character": 15
2171
+ },
2172
+ "type": {
2173
+ "__schema": "TypeRefSchema",
2174
+ "location": {
2175
+ "filePath": "component-id-graph.ts",
2176
+ "line": 94,
2177
+ "character": 15
2178
+ },
2179
+ "name": "ComponentID"
2180
+ }
2181
+ },
2182
+ "isOptional": true,
2183
+ "isSpread": false
2184
+ }
2185
+ ],
2186
+ "returnType": {
2187
+ "__schema": "TypeArraySchema",
2188
+ "location": {
2189
+ "filePath": "component-id-graph.ts",
2190
+ "line": 95,
2191
+ "character": 6
2192
+ },
2193
+ "type": {
2194
+ "__schema": "TypeArraySchema",
2195
+ "location": {
2196
+ "filePath": "component-id-graph.ts",
2197
+ "line": 95,
2198
+ "character": 6
2199
+ },
2200
+ "type": {
2201
+ "__schema": "KeywordTypeSchema",
2202
+ "location": {
2203
+ "filePath": "component-id-graph.ts",
2204
+ "line": 95,
2205
+ "character": 6
2206
+ },
2207
+ "name": "string"
2208
+ }
2209
+ }
2210
+ },
2211
+ "modifiers": []
2212
+ },
2213
+ {
2214
+ "__schema": "FunctionLikeSchema",
2215
+ "location": {
2216
+ "filePath": "component-id-graph.ts",
2217
+ "line": 153,
2218
+ "character": 3
2219
+ },
2220
+ "doc": {
2221
+ "__schema": "DocSchema",
2222
+ "location": {
2223
+ "filePath": "component-id-graph.ts",
2224
+ "line": 150,
2225
+ "character": 3
2226
+ },
2227
+ "raw": "/**\n * overrides the super class to eliminate non-seeders components\n */",
2228
+ "comment": "overrides the super class to eliminate non-seeders components"
2229
+ },
2230
+ "signature": "(method) ComponentIdGraph.findCycles(graph?: this, includeDeps?: boolean): string[][]",
2231
+ "name": "findCycles",
2232
+ "params": [
2233
+ {
2234
+ "__schema": "ParameterSchema",
2235
+ "location": {
2236
+ "filePath": "component-id-graph.ts",
2237
+ "line": 153,
2238
+ "character": 14
2239
+ },
2240
+ "name": "graph",
2241
+ "type": {
2242
+ "__schema": "ThisTypeSchema",
2243
+ "location": {
2244
+ "filePath": "component-id-graph.ts",
2245
+ "line": 153,
2246
+ "character": 22
2247
+ },
2248
+ "name": "this"
2249
+ },
2250
+ "isOptional": true,
2251
+ "isSpread": false
2252
+ },
2253
+ {
2254
+ "__schema": "ParameterSchema",
2255
+ "location": {
2256
+ "filePath": "component-id-graph.ts",
2257
+ "line": 153,
2258
+ "character": 28
2259
+ },
2260
+ "name": "includeDeps",
2261
+ "type": {
2262
+ "__schema": "InferenceTypeSchema",
2263
+ "location": {
2264
+ "filePath": "component-id-graph.ts",
2265
+ "line": 153,
2266
+ "character": 28
2267
+ },
2268
+ "type": "boolean"
2269
+ },
2270
+ "isOptional": true,
2271
+ "defaultValue": "false",
2272
+ "isSpread": false
2273
+ }
2274
+ ],
2275
+ "returnType": {
2276
+ "__schema": "TypeArraySchema",
2277
+ "location": {
2278
+ "filePath": "component-id-graph.ts",
2279
+ "line": 153,
2280
+ "character": 50
2281
+ },
2282
+ "type": {
2283
+ "__schema": "TypeArraySchema",
2284
+ "location": {
2285
+ "filePath": "component-id-graph.ts",
2286
+ "line": 153,
2287
+ "character": 50
2288
+ },
2289
+ "type": {
2290
+ "__schema": "KeywordTypeSchema",
2291
+ "location": {
2292
+ "filePath": "component-id-graph.ts",
2293
+ "line": 153,
2294
+ "character": 50
2295
+ },
2296
+ "name": "string"
2297
+ }
2298
+ }
2299
+ },
2300
+ "modifiers": []
2301
+ },
2302
+ {
2303
+ "__schema": "FunctionLikeSchema",
2304
+ "location": {
2305
+ "filePath": "component-id-graph.ts",
2306
+ "line": 165,
2307
+ "character": 3
2308
+ },
2309
+ "signature": "(method) ComponentIdGraph.buildFromCleargraph(graph: Graph<ComponentID, DepEdgeType>): ComponentIdGraph",
2310
+ "name": "buildFromCleargraph",
2311
+ "params": [
2312
+ {
2313
+ "__schema": "ParameterSchema",
2314
+ "location": {
2315
+ "filePath": "component-id-graph.ts",
2316
+ "line": 165,
2317
+ "character": 23
2318
+ },
2319
+ "name": "graph",
2320
+ "type": {
2321
+ "__schema": "TypeRefSchema",
2322
+ "location": {
2323
+ "filePath": "component-id-graph.ts",
2324
+ "line": 165,
2325
+ "character": 30
2326
+ },
2327
+ "name": "Graph",
2328
+ "typeArgs": [
2329
+ {
2330
+ "__schema": "TypeRefSchema",
2331
+ "location": {
2332
+ "filePath": "component-id-graph.ts",
2333
+ "line": 165,
2334
+ "character": 36
2335
+ },
2336
+ "name": "ComponentID"
2337
+ },
2338
+ {
2339
+ "__schema": "TypeRefSchema",
2340
+ "location": {
2341
+ "filePath": "component-id-graph.ts",
2342
+ "line": 165,
2343
+ "character": 49
2344
+ },
2345
+ "name": "DepEdgeType"
2346
+ }
2347
+ ]
2348
+ },
2349
+ "isOptional": false,
2350
+ "isSpread": false
2351
+ }
2352
+ ],
2353
+ "returnType": {
2354
+ "__schema": "TypeRefSchema",
2355
+ "location": {
2356
+ "filePath": "component-id-graph.ts",
2357
+ "line": 165,
2358
+ "character": 3
2359
+ },
2360
+ "name": "ComponentIdGraph"
2361
+ },
2362
+ "modifiers": []
2363
+ },
2364
+ {
2365
+ "__schema": "FunctionLikeSchema",
2366
+ "location": {
2367
+ "filePath": "component-id-graph.ts",
2368
+ "line": 169,
2369
+ "character": 3
2370
+ },
2371
+ "signature": "(method) ComponentIdGraph.runtimeOnly(componentIds: string[]): this",
2372
+ "name": "runtimeOnly",
2373
+ "params": [
2374
+ {
2375
+ "__schema": "ParameterSchema",
2376
+ "location": {
2377
+ "filePath": "component-id-graph.ts",
2378
+ "line": 169,
2379
+ "character": 15
2380
+ },
2381
+ "name": "componentIds",
2382
+ "type": {
2383
+ "__schema": "TypeArraySchema",
2384
+ "location": {
2385
+ "filePath": "component-id-graph.ts",
2386
+ "line": 169,
2387
+ "character": 29
2388
+ },
2389
+ "type": {
2390
+ "__schema": "KeywordTypeSchema",
2391
+ "location": {
2392
+ "filePath": "component-id-graph.ts",
2393
+ "line": 169,
2394
+ "character": 29
2395
+ },
2396
+ "name": "string"
2397
+ }
2398
+ },
2399
+ "isOptional": false,
2400
+ "isSpread": false
2401
+ }
2402
+ ],
2403
+ "returnType": {
2404
+ "__schema": "TypeRefSchema",
2405
+ "location": {
2406
+ "filePath": "component-id-graph.ts",
2407
+ "line": 169,
2408
+ "character": 3
2409
+ },
2410
+ "name": "ComponentIdGraph"
2411
+ },
2412
+ "modifiers": []
2413
+ },
2414
+ {
2415
+ "__schema": "FunctionLikeSchema",
2416
+ "location": {
2417
+ "filePath": "component-id-graph.ts",
2418
+ "line": 175,
2419
+ "character": 3
2420
+ },
2421
+ "signature": "(method) ComponentIdGraph.getDependenciesInfo(id: ComponentID): DependenciesInfo[]",
2422
+ "name": "getDependenciesInfo",
2423
+ "params": [
2424
+ {
2425
+ "__schema": "ParameterSchema",
2426
+ "location": {
2427
+ "filePath": "component-id-graph.ts",
2428
+ "line": 175,
2429
+ "character": 23
2430
+ },
2431
+ "name": "id",
2432
+ "type": {
2433
+ "__schema": "TypeRefSchema",
2434
+ "location": {
2435
+ "filePath": "component-id-graph.ts",
2436
+ "line": 175,
2437
+ "character": 27
2438
+ },
2439
+ "name": "ComponentID"
2440
+ },
2441
+ "isOptional": false,
2442
+ "isSpread": false
2443
+ }
2444
+ ],
2445
+ "returnType": {
2446
+ "__schema": "TypeArraySchema",
2447
+ "location": {
2448
+ "filePath": "component-id-graph.ts",
2449
+ "line": 175,
2450
+ "character": 41
2451
+ },
2452
+ "type": {
2453
+ "__schema": "TypeRefSchema",
2454
+ "location": {
2455
+ "filePath": "component-id-graph.ts",
2456
+ "line": 175,
2457
+ "character": 41
2458
+ },
2459
+ "name": "DependenciesInfo"
2460
+ }
2461
+ },
2462
+ "modifiers": []
2463
+ },
2464
+ {
2465
+ "__schema": "FunctionLikeSchema",
2466
+ "location": {
2467
+ "filePath": "component-id-graph.ts",
2468
+ "line": 199,
2469
+ "character": 3
2470
+ },
2471
+ "signature": "(method) ComponentIdGraph.getDependenciesAsObjectTree(idStr: string): Record<string, any>",
2472
+ "name": "getDependenciesAsObjectTree",
2473
+ "params": [
2474
+ {
2475
+ "__schema": "ParameterSchema",
2476
+ "location": {
2477
+ "filePath": "component-id-graph.ts",
2478
+ "line": 199,
2479
+ "character": 31
2480
+ },
2481
+ "name": "idStr",
2482
+ "type": {
2483
+ "__schema": "KeywordTypeSchema",
2484
+ "location": {
2485
+ "filePath": "component-id-graph.ts",
2486
+ "line": 199,
2487
+ "character": 38
2488
+ },
2489
+ "name": "string"
2490
+ },
2491
+ "isOptional": false,
2492
+ "isSpread": false
2493
+ }
2494
+ ],
2495
+ "returnType": {
2496
+ "__schema": "TypeRefSchema",
2497
+ "location": {
2498
+ "filePath": "component-id-graph.ts",
2499
+ "line": 199,
2500
+ "character": 47
1722
2501
  },
1723
- "name": "'dev'"
2502
+ "name": "Record",
2503
+ "typeArgs": [
2504
+ {
2505
+ "__schema": "KeywordTypeSchema",
2506
+ "location": {
2507
+ "filePath": "component-id-graph.ts",
2508
+ "line": 199,
2509
+ "character": 54
2510
+ },
2511
+ "name": "string"
2512
+ },
2513
+ {
2514
+ "__schema": "KeywordTypeSchema",
2515
+ "location": {
2516
+ "filePath": "component-id-graph.ts",
2517
+ "line": 199,
2518
+ "character": 62
2519
+ },
2520
+ "name": "any"
2521
+ }
2522
+ ]
1724
2523
  },
1725
- {
1726
- "__schema": "LiteralTypeSchema",
2524
+ "modifiers": []
2525
+ }
2526
+ ],
2527
+ "extendsNodes": [
2528
+ {
2529
+ "__schema": "ExpressionWithTypeArgumentsSchema",
2530
+ "location": {
2531
+ "filePath": "component-id-graph.ts",
2532
+ "line": 13,
2533
+ "character": 39
2534
+ },
2535
+ "name": "extends Graph<ComponentID, DepEdgeType>",
2536
+ "typeArgs": [
2537
+ {
2538
+ "__schema": "TypeRefSchema",
2539
+ "location": {
2540
+ "filePath": "component-id-graph.ts",
2541
+ "line": 13,
2542
+ "character": 45
2543
+ },
2544
+ "name": "ComponentID"
2545
+ },
2546
+ {
2547
+ "__schema": "TypeRefSchema",
2548
+ "location": {
2549
+ "filePath": "component-id-graph.ts",
2550
+ "line": 13,
2551
+ "character": 58
2552
+ },
2553
+ "name": "DepEdgeType"
2554
+ }
2555
+ ],
2556
+ "expression": {
2557
+ "__schema": "TypeRefSchema",
1727
2558
  "location": {
1728
2559
  "filePath": "component-id-graph.ts",
1729
- "line": 5,
1730
- "character": 44
2560
+ "line": 13,
2561
+ "character": 39
1731
2562
  },
1732
- "name": "'ext'"
2563
+ "name": "Graph<N,",
2564
+ "componentId": {
2565
+ "_legacy": {
2566
+ "scope": "teambit.component",
2567
+ "name": "graph",
2568
+ "version": "1.0.168"
2569
+ },
2570
+ "_scope": "teambit.component"
2571
+ }
1733
2572
  }
1734
- ]
1735
- }
2573
+ }
2574
+ ],
2575
+ "implementNodes": []
1736
2576
  },
1737
2577
  {
1738
2578
  "__schema": "ClassSchema",
@@ -2209,7 +3049,7 @@
2209
3049
  "_legacy": {
2210
3050
  "scope": "teambit.component",
2211
3051
  "name": "graph",
2212
- "version": "1.0.166"
3052
+ "version": "1.0.168"
2213
3053
  },
2214
3054
  "_scope": "teambit.component"
2215
3055
  }
@@ -2315,7 +3155,7 @@
2315
3155
  "_legacy": {
2316
3156
  "scope": "teambit.component",
2317
3157
  "name": "graph",
2318
- "version": "1.0.166"
3158
+ "version": "1.0.168"
2319
3159
  },
2320
3160
  "_scope": "teambit.component"
2321
3161
  }
@@ -3854,7 +4694,7 @@
3854
4694
  "_legacy": {
3855
4695
  "scope": "teambit.component",
3856
4696
  "name": "graph",
3857
- "version": "1.0.166"
4697
+ "version": "1.0.168"
3858
4698
  },
3859
4699
  "_scope": "teambit.component"
3860
4700
  }
@@ -5243,7 +6083,7 @@
5243
6083
  "__schema": "TypeSchema",
5244
6084
  "location": {
5245
6085
  "filePath": "component-id-graph.ts",
5246
- "line": 5,
6086
+ "line": 7,
5247
6087
  "character": 1
5248
6088
  },
5249
6089
  "signature": "type DepEdgeType = \"dev\" | \"prod\" | \"ext\"",
@@ -5252,7 +6092,7 @@
5252
6092
  "__schema": "TypeUnionSchema",
5253
6093
  "location": {
5254
6094
  "filePath": "component-id-graph.ts",
5255
- "line": 5,
6095
+ "line": 7,
5256
6096
  "character": 27
5257
6097
  },
5258
6098
  "types": [
@@ -5260,7 +6100,7 @@
5260
6100
  "__schema": "LiteralTypeSchema",
5261
6101
  "location": {
5262
6102
  "filePath": "component-id-graph.ts",
5263
- "line": 5,
6103
+ "line": 7,
5264
6104
  "character": 27
5265
6105
  },
5266
6106
  "name": "'prod'"
@@ -5269,7 +6109,7 @@
5269
6109
  "__schema": "LiteralTypeSchema",
5270
6110
  "location": {
5271
6111
  "filePath": "component-id-graph.ts",
5272
- "line": 5,
6112
+ "line": 7,
5273
6113
  "character": 36
5274
6114
  },
5275
6115
  "name": "'dev'"
@@ -5278,7 +6118,7 @@
5278
6118
  "__schema": "LiteralTypeSchema",
5279
6119
  "location": {
5280
6120
  "filePath": "component-id-graph.ts",
5281
- "line": 5,
6121
+ "line": 7,
5282
6122
  "character": 44
5283
6123
  },
5284
6124
  "name": "'ext'"
@@ -5290,7 +6130,7 @@
5290
6130
  "__schema": "TypeSchema",
5291
6131
  "location": {
5292
6132
  "filePath": "component-id-graph.ts",
5293
- "line": 9,
6133
+ "line": 11,
5294
6134
  "character": 1
5295
6135
  },
5296
6136
  "signature": "type CompIdGraph = Graph<ComponentID, DepEdgeType>",
@@ -5299,7 +6139,7 @@
5299
6139
  "__schema": "TypeRefSchema",
5300
6140
  "location": {
5301
6141
  "filePath": "component-id-graph.ts",
5302
- "line": 9,
6142
+ "line": 11,
5303
6143
  "character": 27
5304
6144
  },
5305
6145
  "name": "Graph",
@@ -5308,7 +6148,7 @@
5308
6148
  "__schema": "TypeRefSchema",
5309
6149
  "location": {
5310
6150
  "filePath": "component-id-graph.ts",
5311
- "line": 9,
6151
+ "line": 11,
5312
6152
  "character": 33
5313
6153
  },
5314
6154
  "name": "ComponentID"
@@ -5317,7 +6157,7 @@
5317
6157
  "__schema": "TypeRefSchema",
5318
6158
  "location": {
5319
6159
  "filePath": "component-id-graph.ts",
5320
- "line": 9,
6160
+ "line": 11,
5321
6161
  "character": 46
5322
6162
  },
5323
6163
  "name": "DepEdgeType"
@@ -5329,7 +6169,7 @@
5329
6169
  "__schema": "ClassSchema",
5330
6170
  "location": {
5331
6171
  "filePath": "component-id-graph.ts",
5332
- "line": 11,
6172
+ "line": 13,
5333
6173
  "character": 1
5334
6174
  },
5335
6175
  "signature": "class ComponentIdGraph",
@@ -5339,7 +6179,7 @@
5339
6179
  "__schema": "VariableLikeSchema",
5340
6180
  "location": {
5341
6181
  "filePath": "component-id-graph.ts",
5342
- "line": 12,
6182
+ "line": 15,
5343
6183
  "character": 3
5344
6184
  },
5345
6185
  "signature": "(property) ComponentIdGraph.seederIds: ComponentID[]",
@@ -5348,14 +6188,14 @@
5348
6188
  "__schema": "TypeArraySchema",
5349
6189
  "location": {
5350
6190
  "filePath": "component-id-graph.ts",
5351
- "line": 12,
6191
+ "line": 15,
5352
6192
  "character": 14
5353
6193
  },
5354
6194
  "type": {
5355
6195
  "__schema": "TypeRefSchema",
5356
6196
  "location": {
5357
6197
  "filePath": "component-id-graph.ts",
5358
- "line": 12,
6198
+ "line": 15,
5359
6199
  "character": 14
5360
6200
  },
5361
6201
  "name": "ComponentID"
@@ -5368,7 +6208,7 @@
5368
6208
  "__schema": "ConstructorSchema",
5369
6209
  "location": {
5370
6210
  "filePath": "component-id-graph.ts",
5371
- "line": 13,
6211
+ "line": 16,
5372
6212
  "character": 3
5373
6213
  },
5374
6214
  "signature": "constructor ComponentIdGraph(nodes?: ComponentIdNode[], edges?: DependencyEdge[]): ComponentIdGraph",
@@ -5378,7 +6218,7 @@
5378
6218
  "__schema": "ParameterSchema",
5379
6219
  "location": {
5380
6220
  "filePath": "component-id-graph.ts",
5381
- "line": 13,
6221
+ "line": 16,
5382
6222
  "character": 15
5383
6223
  },
5384
6224
  "name": "nodes",
@@ -5386,14 +6226,14 @@
5386
6226
  "__schema": "TypeArraySchema",
5387
6227
  "location": {
5388
6228
  "filePath": "component-id-graph.ts",
5389
- "line": 13,
6229
+ "line": 16,
5390
6230
  "character": 22
5391
6231
  },
5392
6232
  "type": {
5393
6233
  "__schema": "TypeRefSchema",
5394
6234
  "location": {
5395
6235
  "filePath": "component-id-graph.ts",
5396
- "line": 13,
6236
+ "line": 16,
5397
6237
  "character": 22
5398
6238
  },
5399
6239
  "name": "ComponentIdNode"
@@ -5407,7 +6247,7 @@
5407
6247
  "__schema": "ParameterSchema",
5408
6248
  "location": {
5409
6249
  "filePath": "component-id-graph.ts",
5410
- "line": 13,
6250
+ "line": 16,
5411
6251
  "character": 46
5412
6252
  },
5413
6253
  "name": "edges",
@@ -5415,14 +6255,14 @@
5415
6255
  "__schema": "TypeArraySchema",
5416
6256
  "location": {
5417
6257
  "filePath": "component-id-graph.ts",
5418
- "line": 13,
6258
+ "line": 16,
5419
6259
  "character": 53
5420
6260
  },
5421
6261
  "type": {
5422
6262
  "__schema": "TypeRefSchema",
5423
6263
  "location": {
5424
6264
  "filePath": "component-id-graph.ts",
5425
- "line": 13,
6265
+ "line": 16,
5426
6266
  "character": 53
5427
6267
  },
5428
6268
  "name": "DependencyEdge"
@@ -5437,18 +6277,37 @@
5437
6277
  "__schema": "ThisTypeSchema",
5438
6278
  "location": {
5439
6279
  "filePath": "component-id-graph.ts",
5440
- "line": 11,
6280
+ "line": 13,
5441
6281
  "character": 1
5442
6282
  },
5443
6283
  "name": "ComponentIdGraph"
5444
6284
  },
5445
6285
  "modifiers": []
5446
6286
  },
6287
+ {
6288
+ "__schema": "GetAccessorSchema",
6289
+ "location": {
6290
+ "filePath": "component-id-graph.ts",
6291
+ "line": 20,
6292
+ "character": 3
6293
+ },
6294
+ "signature": "(getter) ComponentIdGraph.graphLib: GraphLib.Graph",
6295
+ "name": "graphLib",
6296
+ "type": {
6297
+ "__schema": "InferenceTypeSchema",
6298
+ "location": {
6299
+ "filePath": "component-id-graph.ts",
6300
+ "line": 20,
6301
+ "character": 3
6302
+ },
6303
+ "type": "GraphLib.Graph"
6304
+ }
6305
+ },
5447
6306
  {
5448
6307
  "__schema": "FunctionLikeSchema",
5449
6308
  "location": {
5450
6309
  "filePath": "component-id-graph.ts",
5451
- "line": 17,
6310
+ "line": 34,
5452
6311
  "character": 3
5453
6312
  },
5454
6313
  "signature": "(method) ComponentIdGraph.create(nodes?: ComponentIdNode[], edges?: DependencyEdge[]): this",
@@ -5458,7 +6317,7 @@
5458
6317
  "__schema": "ParameterSchema",
5459
6318
  "location": {
5460
6319
  "filePath": "component-id-graph.ts",
5461
- "line": 17,
6320
+ "line": 34,
5462
6321
  "character": 20
5463
6322
  },
5464
6323
  "name": "nodes",
@@ -5466,14 +6325,14 @@
5466
6325
  "__schema": "TypeArraySchema",
5467
6326
  "location": {
5468
6327
  "filePath": "component-id-graph.ts",
5469
- "line": 17,
6328
+ "line": 34,
5470
6329
  "character": 27
5471
6330
  },
5472
6331
  "type": {
5473
6332
  "__schema": "TypeRefSchema",
5474
6333
  "location": {
5475
6334
  "filePath": "component-id-graph.ts",
5476
- "line": 17,
6335
+ "line": 34,
5477
6336
  "character": 27
5478
6337
  },
5479
6338
  "name": "ComponentIdNode"
@@ -5487,7 +6346,7 @@
5487
6346
  "__schema": "ParameterSchema",
5488
6347
  "location": {
5489
6348
  "filePath": "component-id-graph.ts",
5490
- "line": 17,
6349
+ "line": 34,
5491
6350
  "character": 51
5492
6351
  },
5493
6352
  "name": "edges",
@@ -5495,14 +6354,14 @@
5495
6354
  "__schema": "TypeArraySchema",
5496
6355
  "location": {
5497
6356
  "filePath": "component-id-graph.ts",
5498
- "line": 17,
6357
+ "line": 34,
5499
6358
  "character": 58
5500
6359
  },
5501
6360
  "type": {
5502
6361
  "__schema": "TypeRefSchema",
5503
6362
  "location": {
5504
6363
  "filePath": "component-id-graph.ts",
5505
- "line": 17,
6364
+ "line": 34,
5506
6365
  "character": 58
5507
6366
  },
5508
6367
  "name": "DependencyEdge"
@@ -5517,7 +6376,7 @@
5517
6376
  "__schema": "ThisTypeSchema",
5518
6377
  "location": {
5519
6378
  "filePath": "component-id-graph.ts",
5520
- "line": 17,
6379
+ "line": 34,
5521
6380
  "character": 82
5522
6381
  },
5523
6382
  "name": "this"
@@ -5530,14 +6389,14 @@
5530
6389
  "__schema": "FunctionLikeSchema",
5531
6390
  "location": {
5532
6391
  "filePath": "component-id-graph.ts",
5533
- "line": 32,
6392
+ "line": 49,
5534
6393
  "character": 3
5535
6394
  },
5536
6395
  "doc": {
5537
6396
  "__schema": "DocSchema",
5538
6397
  "location": {
5539
6398
  "filePath": "component-id-graph.ts",
5540
- "line": 21,
6399
+ "line": 38,
5541
6400
  "character": 3
5542
6401
  },
5543
6402
  "raw": "/**\n * check all the routes from the sources to targets and return the components found during this traversal.\n * e.g.\n * A -> B -> C -> N.\n * A -> E -> N.\n * B -> F -> G.\n * given source: A, targets: N. The results will be: [B, C, E].\n *\n * if through is provided, it will only return the components that are connected to the through components.\n * with the example above, if through is B, the results will be: [B, C].\n */",
@@ -5550,7 +6409,7 @@
5550
6409
  "__schema": "ParameterSchema",
5551
6410
  "location": {
5552
6411
  "filePath": "component-id-graph.ts",
5553
- "line": 32,
6412
+ "line": 49,
5554
6413
  "character": 31
5555
6414
  },
5556
6415
  "name": "sources",
@@ -5558,14 +6417,14 @@
5558
6417
  "__schema": "TypeArraySchema",
5559
6418
  "location": {
5560
6419
  "filePath": "component-id-graph.ts",
5561
- "line": 32,
6420
+ "line": 49,
5562
6421
  "character": 40
5563
6422
  },
5564
6423
  "type": {
5565
6424
  "__schema": "TypeRefSchema",
5566
6425
  "location": {
5567
6426
  "filePath": "component-id-graph.ts",
5568
- "line": 32,
6427
+ "line": 49,
5569
6428
  "character": 40
5570
6429
  },
5571
6430
  "name": "ComponentID"
@@ -5578,7 +6437,7 @@
5578
6437
  "__schema": "ParameterSchema",
5579
6438
  "location": {
5580
6439
  "filePath": "component-id-graph.ts",
5581
- "line": 32,
6440
+ "line": 49,
5582
6441
  "character": 55
5583
6442
  },
5584
6443
  "name": "targets",
@@ -5586,14 +6445,14 @@
5586
6445
  "__schema": "TypeArraySchema",
5587
6446
  "location": {
5588
6447
  "filePath": "component-id-graph.ts",
5589
- "line": 32,
6448
+ "line": 49,
5590
6449
  "character": 64
5591
6450
  },
5592
6451
  "type": {
5593
6452
  "__schema": "TypeRefSchema",
5594
6453
  "location": {
5595
6454
  "filePath": "component-id-graph.ts",
5596
- "line": 32,
6455
+ "line": 49,
5597
6456
  "character": 64
5598
6457
  },
5599
6458
  "name": "ComponentID"
@@ -5606,7 +6465,7 @@
5606
6465
  "__schema": "ParameterSchema",
5607
6466
  "location": {
5608
6467
  "filePath": "component-id-graph.ts",
5609
- "line": 32,
6468
+ "line": 49,
5610
6469
  "character": 79
5611
6470
  },
5612
6471
  "name": "through",
@@ -5614,14 +6473,14 @@
5614
6473
  "__schema": "TypeArraySchema",
5615
6474
  "location": {
5616
6475
  "filePath": "component-id-graph.ts",
5617
- "line": 32,
6476
+ "line": 49,
5618
6477
  "character": 89
5619
6478
  },
5620
6479
  "type": {
5621
6480
  "__schema": "TypeRefSchema",
5622
6481
  "location": {
5623
6482
  "filePath": "component-id-graph.ts",
5624
- "line": 32,
6483
+ "line": 49,
5625
6484
  "character": 89
5626
6485
  },
5627
6486
  "name": "ComponentID"
@@ -5635,14 +6494,14 @@
5635
6494
  "__schema": "TypeArraySchema",
5636
6495
  "location": {
5637
6496
  "filePath": "component-id-graph.ts",
5638
- "line": 32,
6497
+ "line": 49,
5639
6498
  "character": 105
5640
6499
  },
5641
6500
  "type": {
5642
6501
  "__schema": "TypeRefSchema",
5643
6502
  "location": {
5644
6503
  "filePath": "component-id-graph.ts",
5645
- "line": 32,
6504
+ "line": 49,
5646
6505
  "character": 105
5647
6506
  },
5648
6507
  "name": "ComponentID"
@@ -5654,14 +6513,14 @@
5654
6513
  "__schema": "FunctionLikeSchema",
5655
6514
  "location": {
5656
6515
  "filePath": "component-id-graph.ts",
5657
- "line": 74,
6516
+ "line": 91,
5658
6517
  "character": 3
5659
6518
  },
5660
6519
  "doc": {
5661
6520
  "__schema": "DocSchema",
5662
6521
  "location": {
5663
6522
  "filePath": "component-id-graph.ts",
5664
- "line": 63,
6523
+ "line": 80,
5665
6524
  "character": 3
5666
6525
  },
5667
6526
  "raw": "/**\n * check all the routes from the sources to targets and return the components found during this traversal.\n * e.g.\n * A -> B -> C -> N.\n * A -> E -> N.\n * B -> F -> G.\n * given source: A, targets: N. The results will be: [B, C, E].\n *\n * if through is provided, it will only return the components that are connected to the through components.\n * with the example above, if through is B, the results will be: [B, C].\n */",
@@ -5674,7 +6533,7 @@
5674
6533
  "__schema": "ParameterSchema",
5675
6534
  "location": {
5676
6535
  "filePath": "component-id-graph.ts",
5677
- "line": 75,
6536
+ "line": 92,
5678
6537
  "character": 5
5679
6538
  },
5680
6539
  "name": "sources",
@@ -5682,14 +6541,14 @@
5682
6541
  "__schema": "TypeArraySchema",
5683
6542
  "location": {
5684
6543
  "filePath": "component-id-graph.ts",
5685
- "line": 75,
6544
+ "line": 92,
5686
6545
  "character": 14
5687
6546
  },
5688
6547
  "type": {
5689
6548
  "__schema": "TypeRefSchema",
5690
6549
  "location": {
5691
6550
  "filePath": "component-id-graph.ts",
5692
- "line": 75,
6551
+ "line": 92,
5693
6552
  "character": 14
5694
6553
  },
5695
6554
  "name": "ComponentID"
@@ -5702,7 +6561,7 @@
5702
6561
  "__schema": "ParameterSchema",
5703
6562
  "location": {
5704
6563
  "filePath": "component-id-graph.ts",
5705
- "line": 76,
6564
+ "line": 93,
5706
6565
  "character": 5
5707
6566
  },
5708
6567
  "name": "targets",
@@ -5710,14 +6569,14 @@
5710
6569
  "__schema": "TypeArraySchema",
5711
6570
  "location": {
5712
6571
  "filePath": "component-id-graph.ts",
5713
- "line": 76,
6572
+ "line": 93,
5714
6573
  "character": 14
5715
6574
  },
5716
6575
  "type": {
5717
6576
  "__schema": "TypeRefSchema",
5718
6577
  "location": {
5719
6578
  "filePath": "component-id-graph.ts",
5720
- "line": 76,
6579
+ "line": 93,
5721
6580
  "character": 14
5722
6581
  },
5723
6582
  "name": "ComponentID"
@@ -5730,7 +6589,7 @@
5730
6589
  "__schema": "ParameterSchema",
5731
6590
  "location": {
5732
6591
  "filePath": "component-id-graph.ts",
5733
- "line": 77,
6592
+ "line": 94,
5734
6593
  "character": 5
5735
6594
  },
5736
6595
  "name": "through",
@@ -5738,14 +6597,14 @@
5738
6597
  "__schema": "TypeArraySchema",
5739
6598
  "location": {
5740
6599
  "filePath": "component-id-graph.ts",
5741
- "line": 77,
6600
+ "line": 94,
5742
6601
  "character": 15
5743
6602
  },
5744
6603
  "type": {
5745
6604
  "__schema": "TypeRefSchema",
5746
6605
  "location": {
5747
6606
  "filePath": "component-id-graph.ts",
5748
- "line": 77,
6607
+ "line": 94,
5749
6608
  "character": 15
5750
6609
  },
5751
6610
  "name": "ComponentID"
@@ -5759,21 +6618,21 @@
5759
6618
  "__schema": "TypeArraySchema",
5760
6619
  "location": {
5761
6620
  "filePath": "component-id-graph.ts",
5762
- "line": 78,
6621
+ "line": 95,
5763
6622
  "character": 6
5764
6623
  },
5765
6624
  "type": {
5766
6625
  "__schema": "TypeArraySchema",
5767
6626
  "location": {
5768
6627
  "filePath": "component-id-graph.ts",
5769
- "line": 78,
6628
+ "line": 95,
5770
6629
  "character": 6
5771
6630
  },
5772
6631
  "type": {
5773
6632
  "__schema": "KeywordTypeSchema",
5774
6633
  "location": {
5775
6634
  "filePath": "component-id-graph.ts",
5776
- "line": 78,
6635
+ "line": 95,
5777
6636
  "character": 6
5778
6637
  },
5779
6638
  "name": "string"
@@ -5786,14 +6645,14 @@
5786
6645
  "__schema": "FunctionLikeSchema",
5787
6646
  "location": {
5788
6647
  "filePath": "component-id-graph.ts",
5789
- "line": 136,
6648
+ "line": 153,
5790
6649
  "character": 3
5791
6650
  },
5792
6651
  "doc": {
5793
6652
  "__schema": "DocSchema",
5794
6653
  "location": {
5795
6654
  "filePath": "component-id-graph.ts",
5796
- "line": 133,
6655
+ "line": 150,
5797
6656
  "character": 3
5798
6657
  },
5799
6658
  "raw": "/**\n * overrides the super class to eliminate non-seeders components\n */",
@@ -5806,7 +6665,7 @@
5806
6665
  "__schema": "ParameterSchema",
5807
6666
  "location": {
5808
6667
  "filePath": "component-id-graph.ts",
5809
- "line": 136,
6668
+ "line": 153,
5810
6669
  "character": 14
5811
6670
  },
5812
6671
  "name": "graph",
@@ -5814,7 +6673,7 @@
5814
6673
  "__schema": "ThisTypeSchema",
5815
6674
  "location": {
5816
6675
  "filePath": "component-id-graph.ts",
5817
- "line": 136,
6676
+ "line": 153,
5818
6677
  "character": 22
5819
6678
  },
5820
6679
  "name": "this"
@@ -5826,7 +6685,7 @@
5826
6685
  "__schema": "ParameterSchema",
5827
6686
  "location": {
5828
6687
  "filePath": "component-id-graph.ts",
5829
- "line": 136,
6688
+ "line": 153,
5830
6689
  "character": 28
5831
6690
  },
5832
6691
  "name": "includeDeps",
@@ -5834,7 +6693,7 @@
5834
6693
  "__schema": "InferenceTypeSchema",
5835
6694
  "location": {
5836
6695
  "filePath": "component-id-graph.ts",
5837
- "line": 136,
6696
+ "line": 153,
5838
6697
  "character": 28
5839
6698
  },
5840
6699
  "type": "boolean"
@@ -5848,21 +6707,21 @@
5848
6707
  "__schema": "TypeArraySchema",
5849
6708
  "location": {
5850
6709
  "filePath": "component-id-graph.ts",
5851
- "line": 136,
6710
+ "line": 153,
5852
6711
  "character": 50
5853
6712
  },
5854
6713
  "type": {
5855
6714
  "__schema": "TypeArraySchema",
5856
6715
  "location": {
5857
6716
  "filePath": "component-id-graph.ts",
5858
- "line": 136,
6717
+ "line": 153,
5859
6718
  "character": 50
5860
6719
  },
5861
6720
  "type": {
5862
6721
  "__schema": "KeywordTypeSchema",
5863
6722
  "location": {
5864
6723
  "filePath": "component-id-graph.ts",
5865
- "line": 136,
6724
+ "line": 153,
5866
6725
  "character": 50
5867
6726
  },
5868
6727
  "name": "string"
@@ -5875,7 +6734,7 @@
5875
6734
  "__schema": "FunctionLikeSchema",
5876
6735
  "location": {
5877
6736
  "filePath": "component-id-graph.ts",
5878
- "line": 148,
6737
+ "line": 165,
5879
6738
  "character": 3
5880
6739
  },
5881
6740
  "signature": "(method) ComponentIdGraph.buildFromCleargraph(graph: Graph<ComponentID, DepEdgeType>): ComponentIdGraph",
@@ -5885,7 +6744,7 @@
5885
6744
  "__schema": "ParameterSchema",
5886
6745
  "location": {
5887
6746
  "filePath": "component-id-graph.ts",
5888
- "line": 148,
6747
+ "line": 165,
5889
6748
  "character": 23
5890
6749
  },
5891
6750
  "name": "graph",
@@ -5893,7 +6752,7 @@
5893
6752
  "__schema": "TypeRefSchema",
5894
6753
  "location": {
5895
6754
  "filePath": "component-id-graph.ts",
5896
- "line": 148,
6755
+ "line": 165,
5897
6756
  "character": 30
5898
6757
  },
5899
6758
  "name": "Graph",
@@ -5902,7 +6761,7 @@
5902
6761
  "__schema": "TypeRefSchema",
5903
6762
  "location": {
5904
6763
  "filePath": "component-id-graph.ts",
5905
- "line": 148,
6764
+ "line": 165,
5906
6765
  "character": 36
5907
6766
  },
5908
6767
  "name": "ComponentID"
@@ -5911,7 +6770,7 @@
5911
6770
  "__schema": "TypeRefSchema",
5912
6771
  "location": {
5913
6772
  "filePath": "component-id-graph.ts",
5914
- "line": 148,
6773
+ "line": 165,
5915
6774
  "character": 49
5916
6775
  },
5917
6776
  "name": "DepEdgeType"
@@ -5926,11 +6785,10 @@
5926
6785
  "__schema": "TypeRefSchema",
5927
6786
  "location": {
5928
6787
  "filePath": "component-id-graph.ts",
5929
- "line": 148,
6788
+ "line": 165,
5930
6789
  "character": 3
5931
6790
  },
5932
- "name": "ComponentIdGraph",
5933
- "internalFilePath": "component-id-graph.ts"
6791
+ "name": "ComponentIdGraph"
5934
6792
  },
5935
6793
  "modifiers": []
5936
6794
  },
@@ -5938,7 +6796,7 @@
5938
6796
  "__schema": "FunctionLikeSchema",
5939
6797
  "location": {
5940
6798
  "filePath": "component-id-graph.ts",
5941
- "line": 152,
6799
+ "line": 169,
5942
6800
  "character": 3
5943
6801
  },
5944
6802
  "signature": "(method) ComponentIdGraph.runtimeOnly(componentIds: string[]): this",
@@ -5948,7 +6806,7 @@
5948
6806
  "__schema": "ParameterSchema",
5949
6807
  "location": {
5950
6808
  "filePath": "component-id-graph.ts",
5951
- "line": 152,
6809
+ "line": 169,
5952
6810
  "character": 15
5953
6811
  },
5954
6812
  "name": "componentIds",
@@ -5956,14 +6814,14 @@
5956
6814
  "__schema": "TypeArraySchema",
5957
6815
  "location": {
5958
6816
  "filePath": "component-id-graph.ts",
5959
- "line": 152,
6817
+ "line": 169,
5960
6818
  "character": 29
5961
6819
  },
5962
6820
  "type": {
5963
6821
  "__schema": "KeywordTypeSchema",
5964
6822
  "location": {
5965
6823
  "filePath": "component-id-graph.ts",
5966
- "line": 152,
6824
+ "line": 169,
5967
6825
  "character": 29
5968
6826
  },
5969
6827
  "name": "string"
@@ -5977,11 +6835,122 @@
5977
6835
  "__schema": "TypeRefSchema",
5978
6836
  "location": {
5979
6837
  "filePath": "component-id-graph.ts",
5980
- "line": 152,
6838
+ "line": 169,
5981
6839
  "character": 3
5982
6840
  },
5983
- "name": "ComponentIdGraph",
5984
- "internalFilePath": "component-id-graph.ts"
6841
+ "name": "ComponentIdGraph"
6842
+ },
6843
+ "modifiers": []
6844
+ },
6845
+ {
6846
+ "__schema": "FunctionLikeSchema",
6847
+ "location": {
6848
+ "filePath": "component-id-graph.ts",
6849
+ "line": 175,
6850
+ "character": 3
6851
+ },
6852
+ "signature": "(method) ComponentIdGraph.getDependenciesInfo(id: ComponentID): DependenciesInfo[]",
6853
+ "name": "getDependenciesInfo",
6854
+ "params": [
6855
+ {
6856
+ "__schema": "ParameterSchema",
6857
+ "location": {
6858
+ "filePath": "component-id-graph.ts",
6859
+ "line": 175,
6860
+ "character": 23
6861
+ },
6862
+ "name": "id",
6863
+ "type": {
6864
+ "__schema": "TypeRefSchema",
6865
+ "location": {
6866
+ "filePath": "component-id-graph.ts",
6867
+ "line": 175,
6868
+ "character": 27
6869
+ },
6870
+ "name": "ComponentID"
6871
+ },
6872
+ "isOptional": false,
6873
+ "isSpread": false
6874
+ }
6875
+ ],
6876
+ "returnType": {
6877
+ "__schema": "TypeArraySchema",
6878
+ "location": {
6879
+ "filePath": "component-id-graph.ts",
6880
+ "line": 175,
6881
+ "character": 41
6882
+ },
6883
+ "type": {
6884
+ "__schema": "TypeRefSchema",
6885
+ "location": {
6886
+ "filePath": "component-id-graph.ts",
6887
+ "line": 175,
6888
+ "character": 41
6889
+ },
6890
+ "name": "DependenciesInfo"
6891
+ }
6892
+ },
6893
+ "modifiers": []
6894
+ },
6895
+ {
6896
+ "__schema": "FunctionLikeSchema",
6897
+ "location": {
6898
+ "filePath": "component-id-graph.ts",
6899
+ "line": 199,
6900
+ "character": 3
6901
+ },
6902
+ "signature": "(method) ComponentIdGraph.getDependenciesAsObjectTree(idStr: string): Record<string, any>",
6903
+ "name": "getDependenciesAsObjectTree",
6904
+ "params": [
6905
+ {
6906
+ "__schema": "ParameterSchema",
6907
+ "location": {
6908
+ "filePath": "component-id-graph.ts",
6909
+ "line": 199,
6910
+ "character": 31
6911
+ },
6912
+ "name": "idStr",
6913
+ "type": {
6914
+ "__schema": "KeywordTypeSchema",
6915
+ "location": {
6916
+ "filePath": "component-id-graph.ts",
6917
+ "line": 199,
6918
+ "character": 38
6919
+ },
6920
+ "name": "string"
6921
+ },
6922
+ "isOptional": false,
6923
+ "isSpread": false
6924
+ }
6925
+ ],
6926
+ "returnType": {
6927
+ "__schema": "TypeRefSchema",
6928
+ "location": {
6929
+ "filePath": "component-id-graph.ts",
6930
+ "line": 199,
6931
+ "character": 47
6932
+ },
6933
+ "name": "Record",
6934
+ "typeArgs": [
6935
+ {
6936
+ "__schema": "KeywordTypeSchema",
6937
+ "location": {
6938
+ "filePath": "component-id-graph.ts",
6939
+ "line": 199,
6940
+ "character": 54
6941
+ },
6942
+ "name": "string"
6943
+ },
6944
+ {
6945
+ "__schema": "KeywordTypeSchema",
6946
+ "location": {
6947
+ "filePath": "component-id-graph.ts",
6948
+ "line": 199,
6949
+ "character": 62
6950
+ },
6951
+ "name": "any"
6952
+ }
6953
+ ]
5985
6954
  },
5986
6955
  "modifiers": []
5987
6956
  }
@@ -5991,7 +6960,7 @@
5991
6960
  "__schema": "ExpressionWithTypeArgumentsSchema",
5992
6961
  "location": {
5993
6962
  "filePath": "component-id-graph.ts",
5994
- "line": 11,
6963
+ "line": 13,
5995
6964
  "character": 39
5996
6965
  },
5997
6966
  "name": "extends Graph<ComponentID, DepEdgeType>",
@@ -6000,7 +6969,7 @@
6000
6969
  "__schema": "TypeRefSchema",
6001
6970
  "location": {
6002
6971
  "filePath": "component-id-graph.ts",
6003
- "line": 11,
6972
+ "line": 13,
6004
6973
  "character": 45
6005
6974
  },
6006
6975
  "name": "ComponentID"
@@ -6009,7 +6978,7 @@
6009
6978
  "__schema": "TypeRefSchema",
6010
6979
  "location": {
6011
6980
  "filePath": "component-id-graph.ts",
6012
- "line": 11,
6981
+ "line": 13,
6013
6982
  "character": 58
6014
6983
  },
6015
6984
  "name": "DepEdgeType"
@@ -6019,7 +6988,7 @@
6019
6988
  "__schema": "TypeRefSchema",
6020
6989
  "location": {
6021
6990
  "filePath": "component-id-graph.ts",
6022
- "line": 11,
6991
+ "line": 13,
6023
6992
  "character": 39
6024
6993
  },
6025
6994
  "name": "Graph<N,",
@@ -6027,7 +6996,7 @@
6027
6996
  "_legacy": {
6028
6997
  "scope": "teambit.component",
6029
6998
  "name": "graph",
6030
- "version": "1.0.166"
6999
+ "version": "1.0.168"
6031
7000
  },
6032
7001
  "_scope": "teambit.component"
6033
7002
  }
@@ -6042,7 +7011,7 @@
6042
7011
  "__schema": "TypeSchema",
6043
7012
  "location": {
6044
7013
  "filePath": "component-id-graph.ts",
6045
- "line": 7,
7014
+ "line": 9,
6046
7015
  "character": 1
6047
7016
  },
6048
7017
  "signature": "type ComponentIdNode = Node<ComponentID>",
@@ -6051,7 +7020,7 @@
6051
7020
  "__schema": "TypeRefSchema",
6052
7021
  "location": {
6053
7022
  "filePath": "component-id-graph.ts",
6054
- "line": 7,
7023
+ "line": 9,
6055
7024
  "character": 24
6056
7025
  },
6057
7026
  "name": "Node",
@@ -6060,7 +7029,7 @@
6060
7029
  "__schema": "TypeRefSchema",
6061
7030
  "location": {
6062
7031
  "filePath": "component-id-graph.ts",
6063
- "line": 7,
7032
+ "line": 9,
6064
7033
  "character": 29
6065
7034
  },
6066
7035
  "name": "ComponentID"
@@ -6072,7 +7041,7 @@
6072
7041
  "__schema": "TypeSchema",
6073
7042
  "location": {
6074
7043
  "filePath": "component-id-graph.ts",
6075
- "line": 8,
7044
+ "line": 10,
6076
7045
  "character": 1
6077
7046
  },
6078
7047
  "signature": "type DependencyEdge = Edge<DepEdgeType>",
@@ -6081,7 +7050,7 @@
6081
7050
  "__schema": "TypeRefSchema",
6082
7051
  "location": {
6083
7052
  "filePath": "component-id-graph.ts",
6084
- "line": 8,
7053
+ "line": 10,
6085
7054
  "character": 23
6086
7055
  },
6087
7056
  "name": "Edge",
@@ -6090,7 +7059,7 @@
6090
7059
  "__schema": "TypeRefSchema",
6091
7060
  "location": {
6092
7061
  "filePath": "component-id-graph.ts",
6093
- "line": 8,
7062
+ "line": 10,
6094
7063
  "character": 28
6095
7064
  },
6096
7065
  "name": "DepEdgeType"
@@ -6604,7 +7573,7 @@
6604
7573
  "_legacy": {
6605
7574
  "scope": "teambit.component",
6606
7575
  "name": "graph",
6607
- "version": "1.0.166"
7576
+ "version": "1.0.168"
6608
7577
  },
6609
7578
  "_scope": "teambit.component"
6610
7579
  }
@@ -6752,7 +7721,7 @@
6752
7721
  "_legacy": {
6753
7722
  "scope": "teambit.component",
6754
7723
  "name": "graph",
6755
- "version": "1.0.166"
7724
+ "version": "1.0.168"
6756
7725
  },
6757
7726
  "_scope": "teambit.component"
6758
7727
  }
@@ -8338,7 +9307,7 @@
8338
9307
  "componentId": {
8339
9308
  "scope": "teambit.component",
8340
9309
  "name": "graph",
8341
- "version": "1.0.166"
9310
+ "version": "1.0.168"
8342
9311
  },
8343
9312
  "taggedModuleExports": []
8344
9313
  }