@teambit/application 1.0.185 → 1.0.187

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.
@@ -1658,23 +1658,23 @@
1658
1658
  "line": 308,
1659
1659
  "character": 3
1660
1660
  },
1661
- "signature": "(method) ApplicationMain.runApp(appName: string, options?: ServeAppOptions): Promise<{\n app: Application;\n port: number | undefined;\n errors: undefined;\n isOldApi: boolean;\n}>",
1661
+ "signature": "(method) ApplicationMain.runApp(appName: string, options?: ServeAppOptions): Promise<{\n app: Application;\n port: number | undefined;\n errors?: Error[] | undefined;\n isOldApi: boolean;\n}>",
1662
1662
  "name": "runApp",
1663
1663
  "params": [
1664
1664
  {
1665
1665
  "__schema": "ParameterSchema",
1666
1666
  "location": {
1667
1667
  "filePath": "application.main.runtime.ts",
1668
- "line": 308,
1669
- "character": 16
1668
+ "line": 309,
1669
+ "character": 5
1670
1670
  },
1671
1671
  "name": "appName",
1672
1672
  "type": {
1673
1673
  "__schema": "KeywordTypeSchema",
1674
1674
  "location": {
1675
1675
  "filePath": "application.main.runtime.ts",
1676
- "line": 308,
1677
- "character": 25
1676
+ "line": 309,
1677
+ "character": 14
1678
1678
  },
1679
1679
  "name": "string"
1680
1680
  },
@@ -1685,16 +1685,16 @@
1685
1685
  "__schema": "ParameterSchema",
1686
1686
  "location": {
1687
1687
  "filePath": "application.main.runtime.ts",
1688
- "line": 308,
1689
- "character": 33
1688
+ "line": 310,
1689
+ "character": 5
1690
1690
  },
1691
1691
  "name": "options",
1692
1692
  "type": {
1693
1693
  "__schema": "TypeRefSchema",
1694
1694
  "location": {
1695
1695
  "filePath": "application.main.runtime.ts",
1696
- "line": 308,
1697
- "character": 43
1696
+ "line": 310,
1697
+ "character": 15
1698
1698
  },
1699
1699
  "name": "ServeAppOptions"
1700
1700
  },
@@ -1703,13 +1703,132 @@
1703
1703
  }
1704
1704
  ],
1705
1705
  "returnType": {
1706
- "__schema": "InferenceTypeSchema",
1706
+ "__schema": "TypeRefSchema",
1707
1707
  "location": {
1708
1708
  "filePath": "application.main.runtime.ts",
1709
- "line": 308,
1710
- "character": 3
1709
+ "line": 311,
1710
+ "character": 6
1711
1711
  },
1712
- "type": "Promise<{\n app: Application;\n port: number | undefined;\n errors: undefined;\n isOldApi: boolean;\n}>"
1712
+ "name": "Promise",
1713
+ "typeArgs": [
1714
+ {
1715
+ "__schema": "TypeLiteralSchema",
1716
+ "location": {
1717
+ "filePath": "application.main.runtime.ts",
1718
+ "line": 311,
1719
+ "character": 14
1720
+ },
1721
+ "members": [
1722
+ {
1723
+ "__schema": "VariableLikeSchema",
1724
+ "location": {
1725
+ "filePath": "application.main.runtime.ts",
1726
+ "line": 312,
1727
+ "character": 5
1728
+ },
1729
+ "signature": "(property) app: Application",
1730
+ "name": "app",
1731
+ "type": {
1732
+ "__schema": "TypeRefSchema",
1733
+ "location": {
1734
+ "filePath": "application.main.runtime.ts",
1735
+ "line": 312,
1736
+ "character": 5
1737
+ },
1738
+ "name": "Application"
1739
+ },
1740
+ "isOptional": false
1741
+ },
1742
+ {
1743
+ "__schema": "VariableLikeSchema",
1744
+ "location": {
1745
+ "filePath": "application.main.runtime.ts",
1746
+ "line": 313,
1747
+ "character": 5
1748
+ },
1749
+ "signature": "(property) port: number | undefined",
1750
+ "name": "port",
1751
+ "type": {
1752
+ "__schema": "TypeUnionSchema",
1753
+ "location": {
1754
+ "filePath": "application.main.runtime.ts",
1755
+ "line": 313,
1756
+ "character": 11
1757
+ },
1758
+ "types": [
1759
+ {
1760
+ "__schema": "KeywordTypeSchema",
1761
+ "location": {
1762
+ "filePath": "application.main.runtime.ts",
1763
+ "line": 313,
1764
+ "character": 11
1765
+ },
1766
+ "name": "number"
1767
+ },
1768
+ {
1769
+ "__schema": "KeywordTypeSchema",
1770
+ "location": {
1771
+ "filePath": "application.main.runtime.ts",
1772
+ "line": 313,
1773
+ "character": 20
1774
+ },
1775
+ "name": "undefined"
1776
+ }
1777
+ ]
1778
+ },
1779
+ "isOptional": false
1780
+ },
1781
+ {
1782
+ "__schema": "VariableLikeSchema",
1783
+ "location": {
1784
+ "filePath": "application.main.runtime.ts",
1785
+ "line": 314,
1786
+ "character": 5
1787
+ },
1788
+ "signature": "(property) errors?: Error[] | undefined",
1789
+ "name": "errors",
1790
+ "type": {
1791
+ "__schema": "TypeArraySchema",
1792
+ "location": {
1793
+ "filePath": "application.main.runtime.ts",
1794
+ "line": 314,
1795
+ "character": 14
1796
+ },
1797
+ "type": {
1798
+ "__schema": "TypeRefSchema",
1799
+ "location": {
1800
+ "filePath": "application.main.runtime.ts",
1801
+ "line": 314,
1802
+ "character": 14
1803
+ },
1804
+ "name": "Error"
1805
+ }
1806
+ },
1807
+ "isOptional": true
1808
+ },
1809
+ {
1810
+ "__schema": "VariableLikeSchema",
1811
+ "location": {
1812
+ "filePath": "application.main.runtime.ts",
1813
+ "line": 315,
1814
+ "character": 5
1815
+ },
1816
+ "signature": "(property) isOldApi: boolean",
1817
+ "name": "isOldApi",
1818
+ "type": {
1819
+ "__schema": "KeywordTypeSchema",
1820
+ "location": {
1821
+ "filePath": "application.main.runtime.ts",
1822
+ "line": 315,
1823
+ "character": 15
1824
+ },
1825
+ "name": "boolean"
1826
+ },
1827
+ "isOptional": false
1828
+ }
1829
+ ]
1830
+ }
1831
+ ]
1713
1832
  },
1714
1833
  "modifiers": [
1715
1834
  "async"
@@ -1719,14 +1838,14 @@
1719
1838
  "__schema": "FunctionLikeSchema",
1720
1839
  "location": {
1721
1840
  "filePath": "application.main.runtime.ts",
1722
- "line": 336,
1841
+ "line": 344,
1723
1842
  "character": 3
1724
1843
  },
1725
1844
  "doc": {
1726
1845
  "__schema": "DocSchema",
1727
1846
  "location": {
1728
1847
  "filePath": "application.main.runtime.ts",
1729
- "line": 333,
1848
+ "line": 341,
1730
1849
  "character": 3
1731
1850
  },
1732
1851
  "raw": "/**\n * get the component ID of a certain app.\n */",
@@ -1739,7 +1858,7 @@
1739
1858
  "__schema": "ParameterSchema",
1740
1859
  "location": {
1741
1860
  "filePath": "application.main.runtime.ts",
1742
- "line": 336,
1861
+ "line": 344,
1743
1862
  "character": 25
1744
1863
  },
1745
1864
  "name": "appName",
@@ -1747,7 +1866,7 @@
1747
1866
  "__schema": "KeywordTypeSchema",
1748
1867
  "location": {
1749
1868
  "filePath": "application.main.runtime.ts",
1750
- "line": 336,
1869
+ "line": 344,
1751
1870
  "character": 34
1752
1871
  },
1753
1872
  "name": "string"
@@ -1760,7 +1879,7 @@
1760
1879
  "__schema": "InferenceTypeSchema",
1761
1880
  "location": {
1762
1881
  "filePath": "application.main.runtime.ts",
1763
- "line": 336,
1882
+ "line": 344,
1764
1883
  "character": 3
1765
1884
  },
1766
1885
  "type": "Promise<ComponentID>"
@@ -1773,7 +1892,7 @@
1773
1892
  "__schema": "FunctionLikeSchema",
1774
1893
  "location": {
1775
1894
  "filePath": "application.main.runtime.ts",
1776
- "line": 376,
1895
+ "line": 384,
1777
1896
  "character": 3
1778
1897
  },
1779
1898
  "signature": "(method) ApplicationMain.createAppBuildContext(id: ComponentID, appName: string, capsuleRootDir: string, rootDir?: string): Promise<AppContext>",
@@ -1783,7 +1902,7 @@
1783
1902
  "__schema": "ParameterSchema",
1784
1903
  "location": {
1785
1904
  "filePath": "application.main.runtime.ts",
1786
- "line": 376,
1905
+ "line": 384,
1787
1906
  "character": 31
1788
1907
  },
1789
1908
  "name": "id",
@@ -1791,7 +1910,7 @@
1791
1910
  "__schema": "TypeRefSchema",
1792
1911
  "location": {
1793
1912
  "filePath": "application.main.runtime.ts",
1794
- "line": 376,
1913
+ "line": 384,
1795
1914
  "character": 35
1796
1915
  },
1797
1916
  "name": "ComponentID"
@@ -1803,7 +1922,7 @@
1803
1922
  "__schema": "ParameterSchema",
1804
1923
  "location": {
1805
1924
  "filePath": "application.main.runtime.ts",
1806
- "line": 376,
1925
+ "line": 384,
1807
1926
  "character": 48
1808
1927
  },
1809
1928
  "name": "appName",
@@ -1811,7 +1930,7 @@
1811
1930
  "__schema": "KeywordTypeSchema",
1812
1931
  "location": {
1813
1932
  "filePath": "application.main.runtime.ts",
1814
- "line": 376,
1933
+ "line": 384,
1815
1934
  "character": 57
1816
1935
  },
1817
1936
  "name": "string"
@@ -1823,7 +1942,7 @@
1823
1942
  "__schema": "ParameterSchema",
1824
1943
  "location": {
1825
1944
  "filePath": "application.main.runtime.ts",
1826
- "line": 376,
1945
+ "line": 384,
1827
1946
  "character": 65
1828
1947
  },
1829
1948
  "name": "capsuleRootDir",
@@ -1831,7 +1950,7 @@
1831
1950
  "__schema": "KeywordTypeSchema",
1832
1951
  "location": {
1833
1952
  "filePath": "application.main.runtime.ts",
1834
- "line": 376,
1953
+ "line": 384,
1835
1954
  "character": 81
1836
1955
  },
1837
1956
  "name": "string"
@@ -1843,7 +1962,7 @@
1843
1962
  "__schema": "ParameterSchema",
1844
1963
  "location": {
1845
1964
  "filePath": "application.main.runtime.ts",
1846
- "line": 376,
1965
+ "line": 384,
1847
1966
  "character": 89
1848
1967
  },
1849
1968
  "name": "rootDir",
@@ -1851,7 +1970,7 @@
1851
1970
  "__schema": "KeywordTypeSchema",
1852
1971
  "location": {
1853
1972
  "filePath": "application.main.runtime.ts",
1854
- "line": 376,
1973
+ "line": 384,
1855
1974
  "character": 99
1856
1975
  },
1857
1976
  "name": "string"
@@ -1864,7 +1983,7 @@
1864
1983
  "__schema": "InferenceTypeSchema",
1865
1984
  "location": {
1866
1985
  "filePath": "application.main.runtime.ts",
1867
- "line": 376,
1986
+ "line": 384,
1868
1987
  "character": 3
1869
1988
  },
1870
1989
  "type": "Promise<AppContext>"
@@ -1877,7 +1996,7 @@
1877
1996
  "__schema": "VariableLikeSchema",
1878
1997
  "location": {
1879
1998
  "filePath": "application.main.runtime.ts",
1880
- "line": 402,
1999
+ "line": 410,
1881
2000
  "character": 3
1882
2001
  },
1883
2002
  "signature": "(property) ApplicationMain.runtime: RuntimeDefinition",
@@ -1886,7 +2005,7 @@
1886
2005
  "__schema": "InferenceTypeSchema",
1887
2006
  "location": {
1888
2007
  "filePath": "application.main.runtime.ts",
1889
- "line": 402,
2008
+ "line": 410,
1890
2009
  "character": 3
1891
2010
  },
1892
2011
  "type": "RuntimeDefinition"
@@ -1898,7 +2017,7 @@
1898
2017
  "__schema": "VariableLikeSchema",
1899
2018
  "location": {
1900
2019
  "filePath": "application.main.runtime.ts",
1901
- "line": 403,
2020
+ "line": 411,
1902
2021
  "character": 3
1903
2022
  },
1904
2023
  "signature": "(property) ApplicationMain.dependencies: Aspect[]",
@@ -1907,7 +2026,7 @@
1907
2026
  "__schema": "InferenceTypeSchema",
1908
2027
  "location": {
1909
2028
  "filePath": "application.main.runtime.ts",
1910
- "line": 403,
2029
+ "line": 411,
1911
2030
  "character": 3
1912
2031
  },
1913
2032
  "type": "Aspect[]"
@@ -1919,7 +2038,7 @@
1919
2038
  "__schema": "VariableLikeSchema",
1920
2039
  "location": {
1921
2040
  "filePath": "application.main.runtime.ts",
1922
- "line": 415,
2041
+ "line": 423,
1923
2042
  "character": 3
1924
2043
  },
1925
2044
  "signature": "(property) ApplicationMain.slots: (((registerFn: () => string) => SlotRegistry<ApplicationType<unknown>[]>) | ((registerFn: () => string) => SlotRegistry<Application[]>) | ((registerFn: () => string) => SlotRegistry<...>))[]",
@@ -1928,7 +2047,7 @@
1928
2047
  "__schema": "InferenceTypeSchema",
1929
2048
  "location": {
1930
2049
  "filePath": "application.main.runtime.ts",
1931
- "line": 415,
2050
+ "line": 423,
1932
2051
  "character": 3
1933
2052
  },
1934
2053
  "type": "(((registerFn: () => string) => SlotRegistry<ApplicationType<unknown>[]>) | ((registerFn: () => string) => SlotRegistry<Application[]>) | ((registerFn: () => string) => SlotRegistry<...>))[]"
@@ -1940,7 +2059,7 @@
1940
2059
  "__schema": "FunctionLikeSchema",
1941
2060
  "location": {
1942
2061
  "filePath": "application.main.runtime.ts",
1943
- "line": 421,
2062
+ "line": 429,
1944
2063
  "character": 3
1945
2064
  },
1946
2065
  "signature": "(method) ApplicationMain.provider([cli, loggerAspect, builder, envs, component, aspectLoader, workspace, watcher, scope]: [\n CLIMain,\n LoggerMain,\n BuilderMain,\n EnvsMain,\n ComponentMain,\n AspectLoaderMain,\n Workspace,\n WatcherMain,\n ScopeMain\n], config: ApplicationAspectConfig, [appTypeSlot, appSlot, deploymentProviderSlot]: [ApplicationTypeSlot, ApplicationSlot, DeploymentProviderSlot], harmony: Harmony): Promise<ApplicationMain>",
@@ -1950,7 +2069,7 @@
1950
2069
  "__schema": "ParameterSchema",
1951
2070
  "location": {
1952
2071
  "filePath": "application.main.runtime.ts",
1953
- "line": 422,
2072
+ "line": 430,
1954
2073
  "character": 5
1955
2074
  },
1956
2075
  "name": "[ cli, loggerAspect, builder, envs, component, aspectLoader, workspace, watcher, scope ]",
@@ -1958,7 +2077,7 @@
1958
2077
  "__schema": "TupleTypeSchema",
1959
2078
  "location": {
1960
2079
  "filePath": "application.main.runtime.ts",
1961
- "line": 422,
2080
+ "line": 430,
1962
2081
  "character": 93
1963
2082
  },
1964
2083
  "elements": [
@@ -1966,7 +2085,7 @@
1966
2085
  "__schema": "TypeRefSchema",
1967
2086
  "location": {
1968
2087
  "filePath": "application.main.runtime.ts",
1969
- "line": 423,
2088
+ "line": 431,
1970
2089
  "character": 7
1971
2090
  },
1972
2091
  "name": "CLIMain"
@@ -1975,7 +2094,7 @@
1975
2094
  "__schema": "TypeRefSchema",
1976
2095
  "location": {
1977
2096
  "filePath": "application.main.runtime.ts",
1978
- "line": 424,
2097
+ "line": 432,
1979
2098
  "character": 7
1980
2099
  },
1981
2100
  "name": "LoggerMain"
@@ -1984,7 +2103,7 @@
1984
2103
  "__schema": "TypeRefSchema",
1985
2104
  "location": {
1986
2105
  "filePath": "application.main.runtime.ts",
1987
- "line": 425,
2106
+ "line": 433,
1988
2107
  "character": 7
1989
2108
  },
1990
2109
  "name": "BuilderMain"
@@ -1993,7 +2112,7 @@
1993
2112
  "__schema": "TypeRefSchema",
1994
2113
  "location": {
1995
2114
  "filePath": "application.main.runtime.ts",
1996
- "line": 426,
2115
+ "line": 434,
1997
2116
  "character": 7
1998
2117
  },
1999
2118
  "name": "EnvsMain"
@@ -2002,7 +2121,7 @@
2002
2121
  "__schema": "TypeRefSchema",
2003
2122
  "location": {
2004
2123
  "filePath": "application.main.runtime.ts",
2005
- "line": 427,
2124
+ "line": 435,
2006
2125
  "character": 7
2007
2126
  },
2008
2127
  "name": "ComponentMain"
@@ -2011,7 +2130,7 @@
2011
2130
  "__schema": "TypeRefSchema",
2012
2131
  "location": {
2013
2132
  "filePath": "application.main.runtime.ts",
2014
- "line": 428,
2133
+ "line": 436,
2015
2134
  "character": 7
2016
2135
  },
2017
2136
  "name": "AspectLoaderMain"
@@ -2020,7 +2139,7 @@
2020
2139
  "__schema": "TypeRefSchema",
2021
2140
  "location": {
2022
2141
  "filePath": "application.main.runtime.ts",
2023
- "line": 429,
2142
+ "line": 437,
2024
2143
  "character": 7
2025
2144
  },
2026
2145
  "name": "Workspace"
@@ -2029,7 +2148,7 @@
2029
2148
  "__schema": "TypeRefSchema",
2030
2149
  "location": {
2031
2150
  "filePath": "application.main.runtime.ts",
2032
- "line": 430,
2151
+ "line": 438,
2033
2152
  "character": 7
2034
2153
  },
2035
2154
  "name": "WatcherMain"
@@ -2038,7 +2157,7 @@
2038
2157
  "__schema": "TypeRefSchema",
2039
2158
  "location": {
2040
2159
  "filePath": "application.main.runtime.ts",
2041
- "line": 431,
2160
+ "line": 439,
2042
2161
  "character": 7
2043
2162
  },
2044
2163
  "name": "ScopeMain"
@@ -2052,7 +2171,7 @@
2052
2171
  "__schema": "ParameterSchema",
2053
2172
  "location": {
2054
2173
  "filePath": "application.main.runtime.ts",
2055
- "line": 433,
2174
+ "line": 441,
2056
2175
  "character": 5
2057
2176
  },
2058
2177
  "name": "config",
@@ -2060,7 +2179,7 @@
2060
2179
  "__schema": "TypeRefSchema",
2061
2180
  "location": {
2062
2181
  "filePath": "application.main.runtime.ts",
2063
- "line": 433,
2182
+ "line": 441,
2064
2183
  "character": 13
2065
2184
  },
2066
2185
  "name": "ApplicationAspectConfig"
@@ -2072,7 +2191,7 @@
2072
2191
  "__schema": "ParameterSchema",
2073
2192
  "location": {
2074
2193
  "filePath": "application.main.runtime.ts",
2075
- "line": 434,
2194
+ "line": 442,
2076
2195
  "character": 5
2077
2196
  },
2078
2197
  "name": "[ appTypeSlot, appSlot, deploymentProviderSlot ]",
@@ -2080,7 +2199,7 @@
2080
2199
  "__schema": "TupleTypeSchema",
2081
2200
  "location": {
2082
2201
  "filePath": "application.main.runtime.ts",
2083
- "line": 434,
2202
+ "line": 442,
2084
2203
  "character": 53
2085
2204
  },
2086
2205
  "elements": [
@@ -2088,7 +2207,7 @@
2088
2207
  "__schema": "TypeRefSchema",
2089
2208
  "location": {
2090
2209
  "filePath": "application.main.runtime.ts",
2091
- "line": 434,
2210
+ "line": 442,
2092
2211
  "character": 54
2093
2212
  },
2094
2213
  "name": "ApplicationTypeSlot"
@@ -2097,7 +2216,7 @@
2097
2216
  "__schema": "TypeRefSchema",
2098
2217
  "location": {
2099
2218
  "filePath": "application.main.runtime.ts",
2100
- "line": 434,
2219
+ "line": 442,
2101
2220
  "character": 75
2102
2221
  },
2103
2222
  "name": "ApplicationSlot"
@@ -2106,7 +2225,7 @@
2106
2225
  "__schema": "TypeRefSchema",
2107
2226
  "location": {
2108
2227
  "filePath": "application.main.runtime.ts",
2109
- "line": 434,
2228
+ "line": 442,
2110
2229
  "character": 92
2111
2230
  },
2112
2231
  "name": "DeploymentProviderSlot"
@@ -2120,7 +2239,7 @@
2120
2239
  "__schema": "ParameterSchema",
2121
2240
  "location": {
2122
2241
  "filePath": "application.main.runtime.ts",
2123
- "line": 435,
2242
+ "line": 443,
2124
2243
  "character": 5
2125
2244
  },
2126
2245
  "name": "harmony",
@@ -2128,7 +2247,7 @@
2128
2247
  "__schema": "TypeRefSchema",
2129
2248
  "location": {
2130
2249
  "filePath": "application.main.runtime.ts",
2131
- "line": 435,
2250
+ "line": 443,
2132
2251
  "character": 14
2133
2252
  },
2134
2253
  "name": "Harmony"
@@ -2141,7 +2260,7 @@
2141
2260
  "__schema": "InferenceTypeSchema",
2142
2261
  "location": {
2143
2262
  "filePath": "application.main.runtime.ts",
2144
- "line": 421,
2263
+ "line": 429,
2145
2264
  "character": 3
2146
2265
  },
2147
2266
  "type": "Promise<ApplicationMain>"
@@ -3143,7 +3262,7 @@
3143
3262
  "_legacy": {
3144
3263
  "scope": "teambit.harmony",
3145
3264
  "name": "application",
3146
- "version": "1.0.185"
3265
+ "version": "1.0.187"
3147
3266
  },
3148
3267
  "_scope": "teambit.harmony"
3149
3268
  }
@@ -3497,7 +3616,7 @@
3497
3616
  "_legacy": {
3498
3617
  "scope": "teambit.harmony",
3499
3618
  "name": "application",
3500
- "version": "1.0.185"
3619
+ "version": "1.0.187"
3501
3620
  },
3502
3621
  "_scope": "teambit.harmony"
3503
3622
  }
@@ -3983,7 +4102,7 @@
3983
4102
  "_legacy": {
3984
4103
  "scope": "teambit.harmony",
3985
4104
  "name": "application",
3986
- "version": "1.0.185"
4105
+ "version": "1.0.187"
3987
4106
  },
3988
4107
  "_scope": "teambit.harmony"
3989
4108
  }
@@ -4731,7 +4850,7 @@
4731
4850
  "_legacy": {
4732
4851
  "scope": "teambit.harmony",
4733
4852
  "name": "application",
4734
- "version": "1.0.185"
4853
+ "version": "1.0.187"
4735
4854
  },
4736
4855
  "_scope": "teambit.harmony"
4737
4856
  }
@@ -5217,7 +5336,7 @@
5217
5336
  "_legacy": {
5218
5337
  "scope": "teambit.harmony",
5219
5338
  "name": "application",
5220
- "version": "1.0.185"
5339
+ "version": "1.0.187"
5221
5340
  },
5222
5341
  "_scope": "teambit.harmony"
5223
5342
  }
@@ -7609,23 +7728,23 @@
7609
7728
  "line": 308,
7610
7729
  "character": 3
7611
7730
  },
7612
- "signature": "(method) ApplicationMain.runApp(appName: string, options?: ServeAppOptions): Promise<{\n app: Application;\n port: number | undefined;\n errors: undefined;\n isOldApi: boolean;\n}>",
7731
+ "signature": "(method) ApplicationMain.runApp(appName: string, options?: ServeAppOptions): Promise<{\n app: Application;\n port: number | undefined;\n errors?: Error[] | undefined;\n isOldApi: boolean;\n}>",
7613
7732
  "name": "runApp",
7614
7733
  "params": [
7615
7734
  {
7616
7735
  "__schema": "ParameterSchema",
7617
7736
  "location": {
7618
7737
  "filePath": "application.main.runtime.ts",
7619
- "line": 308,
7620
- "character": 16
7738
+ "line": 309,
7739
+ "character": 5
7621
7740
  },
7622
7741
  "name": "appName",
7623
7742
  "type": {
7624
7743
  "__schema": "KeywordTypeSchema",
7625
7744
  "location": {
7626
7745
  "filePath": "application.main.runtime.ts",
7627
- "line": 308,
7628
- "character": 25
7746
+ "line": 309,
7747
+ "character": 14
7629
7748
  },
7630
7749
  "name": "string"
7631
7750
  },
@@ -7636,16 +7755,16 @@
7636
7755
  "__schema": "ParameterSchema",
7637
7756
  "location": {
7638
7757
  "filePath": "application.main.runtime.ts",
7639
- "line": 308,
7640
- "character": 33
7758
+ "line": 310,
7759
+ "character": 5
7641
7760
  },
7642
7761
  "name": "options",
7643
7762
  "type": {
7644
7763
  "__schema": "TypeRefSchema",
7645
7764
  "location": {
7646
7765
  "filePath": "application.main.runtime.ts",
7647
- "line": 308,
7648
- "character": 43
7766
+ "line": 310,
7767
+ "character": 15
7649
7768
  },
7650
7769
  "name": "ServeAppOptions"
7651
7770
  },
@@ -7654,13 +7773,132 @@
7654
7773
  }
7655
7774
  ],
7656
7775
  "returnType": {
7657
- "__schema": "InferenceTypeSchema",
7776
+ "__schema": "TypeRefSchema",
7658
7777
  "location": {
7659
7778
  "filePath": "application.main.runtime.ts",
7660
- "line": 308,
7661
- "character": 3
7779
+ "line": 311,
7780
+ "character": 6
7662
7781
  },
7663
- "type": "Promise<{\n app: Application;\n port: number | undefined;\n errors: undefined;\n isOldApi: boolean;\n}>"
7782
+ "name": "Promise",
7783
+ "typeArgs": [
7784
+ {
7785
+ "__schema": "TypeLiteralSchema",
7786
+ "location": {
7787
+ "filePath": "application.main.runtime.ts",
7788
+ "line": 311,
7789
+ "character": 14
7790
+ },
7791
+ "members": [
7792
+ {
7793
+ "__schema": "VariableLikeSchema",
7794
+ "location": {
7795
+ "filePath": "application.main.runtime.ts",
7796
+ "line": 312,
7797
+ "character": 5
7798
+ },
7799
+ "signature": "(property) app: Application",
7800
+ "name": "app",
7801
+ "type": {
7802
+ "__schema": "TypeRefSchema",
7803
+ "location": {
7804
+ "filePath": "application.main.runtime.ts",
7805
+ "line": 312,
7806
+ "character": 5
7807
+ },
7808
+ "name": "Application"
7809
+ },
7810
+ "isOptional": false
7811
+ },
7812
+ {
7813
+ "__schema": "VariableLikeSchema",
7814
+ "location": {
7815
+ "filePath": "application.main.runtime.ts",
7816
+ "line": 313,
7817
+ "character": 5
7818
+ },
7819
+ "signature": "(property) port: number | undefined",
7820
+ "name": "port",
7821
+ "type": {
7822
+ "__schema": "TypeUnionSchema",
7823
+ "location": {
7824
+ "filePath": "application.main.runtime.ts",
7825
+ "line": 313,
7826
+ "character": 11
7827
+ },
7828
+ "types": [
7829
+ {
7830
+ "__schema": "KeywordTypeSchema",
7831
+ "location": {
7832
+ "filePath": "application.main.runtime.ts",
7833
+ "line": 313,
7834
+ "character": 11
7835
+ },
7836
+ "name": "number"
7837
+ },
7838
+ {
7839
+ "__schema": "KeywordTypeSchema",
7840
+ "location": {
7841
+ "filePath": "application.main.runtime.ts",
7842
+ "line": 313,
7843
+ "character": 20
7844
+ },
7845
+ "name": "undefined"
7846
+ }
7847
+ ]
7848
+ },
7849
+ "isOptional": false
7850
+ },
7851
+ {
7852
+ "__schema": "VariableLikeSchema",
7853
+ "location": {
7854
+ "filePath": "application.main.runtime.ts",
7855
+ "line": 314,
7856
+ "character": 5
7857
+ },
7858
+ "signature": "(property) errors?: Error[] | undefined",
7859
+ "name": "errors",
7860
+ "type": {
7861
+ "__schema": "TypeArraySchema",
7862
+ "location": {
7863
+ "filePath": "application.main.runtime.ts",
7864
+ "line": 314,
7865
+ "character": 14
7866
+ },
7867
+ "type": {
7868
+ "__schema": "TypeRefSchema",
7869
+ "location": {
7870
+ "filePath": "application.main.runtime.ts",
7871
+ "line": 314,
7872
+ "character": 14
7873
+ },
7874
+ "name": "Error"
7875
+ }
7876
+ },
7877
+ "isOptional": true
7878
+ },
7879
+ {
7880
+ "__schema": "VariableLikeSchema",
7881
+ "location": {
7882
+ "filePath": "application.main.runtime.ts",
7883
+ "line": 315,
7884
+ "character": 5
7885
+ },
7886
+ "signature": "(property) isOldApi: boolean",
7887
+ "name": "isOldApi",
7888
+ "type": {
7889
+ "__schema": "KeywordTypeSchema",
7890
+ "location": {
7891
+ "filePath": "application.main.runtime.ts",
7892
+ "line": 315,
7893
+ "character": 15
7894
+ },
7895
+ "name": "boolean"
7896
+ },
7897
+ "isOptional": false
7898
+ }
7899
+ ]
7900
+ }
7901
+ ]
7664
7902
  },
7665
7903
  "modifiers": [
7666
7904
  "async"
@@ -7670,14 +7908,14 @@
7670
7908
  "__schema": "FunctionLikeSchema",
7671
7909
  "location": {
7672
7910
  "filePath": "application.main.runtime.ts",
7673
- "line": 336,
7911
+ "line": 344,
7674
7912
  "character": 3
7675
7913
  },
7676
7914
  "doc": {
7677
7915
  "__schema": "DocSchema",
7678
7916
  "location": {
7679
7917
  "filePath": "application.main.runtime.ts",
7680
- "line": 333,
7918
+ "line": 341,
7681
7919
  "character": 3
7682
7920
  },
7683
7921
  "raw": "/**\n * get the component ID of a certain app.\n */",
@@ -7690,7 +7928,7 @@
7690
7928
  "__schema": "ParameterSchema",
7691
7929
  "location": {
7692
7930
  "filePath": "application.main.runtime.ts",
7693
- "line": 336,
7931
+ "line": 344,
7694
7932
  "character": 25
7695
7933
  },
7696
7934
  "name": "appName",
@@ -7698,7 +7936,7 @@
7698
7936
  "__schema": "KeywordTypeSchema",
7699
7937
  "location": {
7700
7938
  "filePath": "application.main.runtime.ts",
7701
- "line": 336,
7939
+ "line": 344,
7702
7940
  "character": 34
7703
7941
  },
7704
7942
  "name": "string"
@@ -7711,7 +7949,7 @@
7711
7949
  "__schema": "InferenceTypeSchema",
7712
7950
  "location": {
7713
7951
  "filePath": "application.main.runtime.ts",
7714
- "line": 336,
7952
+ "line": 344,
7715
7953
  "character": 3
7716
7954
  },
7717
7955
  "type": "Promise<ComponentID>"
@@ -7724,7 +7962,7 @@
7724
7962
  "__schema": "FunctionLikeSchema",
7725
7963
  "location": {
7726
7964
  "filePath": "application.main.runtime.ts",
7727
- "line": 376,
7965
+ "line": 384,
7728
7966
  "character": 3
7729
7967
  },
7730
7968
  "signature": "(method) ApplicationMain.createAppBuildContext(id: ComponentID, appName: string, capsuleRootDir: string, rootDir?: string): Promise<AppContext>",
@@ -7734,7 +7972,7 @@
7734
7972
  "__schema": "ParameterSchema",
7735
7973
  "location": {
7736
7974
  "filePath": "application.main.runtime.ts",
7737
- "line": 376,
7975
+ "line": 384,
7738
7976
  "character": 31
7739
7977
  },
7740
7978
  "name": "id",
@@ -7742,7 +7980,7 @@
7742
7980
  "__schema": "TypeRefSchema",
7743
7981
  "location": {
7744
7982
  "filePath": "application.main.runtime.ts",
7745
- "line": 376,
7983
+ "line": 384,
7746
7984
  "character": 35
7747
7985
  },
7748
7986
  "name": "ComponentID"
@@ -7754,7 +7992,7 @@
7754
7992
  "__schema": "ParameterSchema",
7755
7993
  "location": {
7756
7994
  "filePath": "application.main.runtime.ts",
7757
- "line": 376,
7995
+ "line": 384,
7758
7996
  "character": 48
7759
7997
  },
7760
7998
  "name": "appName",
@@ -7762,7 +8000,7 @@
7762
8000
  "__schema": "KeywordTypeSchema",
7763
8001
  "location": {
7764
8002
  "filePath": "application.main.runtime.ts",
7765
- "line": 376,
8003
+ "line": 384,
7766
8004
  "character": 57
7767
8005
  },
7768
8006
  "name": "string"
@@ -7774,7 +8012,7 @@
7774
8012
  "__schema": "ParameterSchema",
7775
8013
  "location": {
7776
8014
  "filePath": "application.main.runtime.ts",
7777
- "line": 376,
8015
+ "line": 384,
7778
8016
  "character": 65
7779
8017
  },
7780
8018
  "name": "capsuleRootDir",
@@ -7782,7 +8020,7 @@
7782
8020
  "__schema": "KeywordTypeSchema",
7783
8021
  "location": {
7784
8022
  "filePath": "application.main.runtime.ts",
7785
- "line": 376,
8023
+ "line": 384,
7786
8024
  "character": 81
7787
8025
  },
7788
8026
  "name": "string"
@@ -7794,7 +8032,7 @@
7794
8032
  "__schema": "ParameterSchema",
7795
8033
  "location": {
7796
8034
  "filePath": "application.main.runtime.ts",
7797
- "line": 376,
8035
+ "line": 384,
7798
8036
  "character": 89
7799
8037
  },
7800
8038
  "name": "rootDir",
@@ -7802,7 +8040,7 @@
7802
8040
  "__schema": "KeywordTypeSchema",
7803
8041
  "location": {
7804
8042
  "filePath": "application.main.runtime.ts",
7805
- "line": 376,
8043
+ "line": 384,
7806
8044
  "character": 99
7807
8045
  },
7808
8046
  "name": "string"
@@ -7815,7 +8053,7 @@
7815
8053
  "__schema": "InferenceTypeSchema",
7816
8054
  "location": {
7817
8055
  "filePath": "application.main.runtime.ts",
7818
- "line": 376,
8056
+ "line": 384,
7819
8057
  "character": 3
7820
8058
  },
7821
8059
  "type": "Promise<AppContext>"
@@ -7828,7 +8066,7 @@
7828
8066
  "__schema": "VariableLikeSchema",
7829
8067
  "location": {
7830
8068
  "filePath": "application.main.runtime.ts",
7831
- "line": 402,
8069
+ "line": 410,
7832
8070
  "character": 3
7833
8071
  },
7834
8072
  "signature": "(property) ApplicationMain.runtime: RuntimeDefinition",
@@ -7837,7 +8075,7 @@
7837
8075
  "__schema": "InferenceTypeSchema",
7838
8076
  "location": {
7839
8077
  "filePath": "application.main.runtime.ts",
7840
- "line": 402,
8078
+ "line": 410,
7841
8079
  "character": 3
7842
8080
  },
7843
8081
  "type": "RuntimeDefinition"
@@ -7849,7 +8087,7 @@
7849
8087
  "__schema": "VariableLikeSchema",
7850
8088
  "location": {
7851
8089
  "filePath": "application.main.runtime.ts",
7852
- "line": 403,
8090
+ "line": 411,
7853
8091
  "character": 3
7854
8092
  },
7855
8093
  "signature": "(property) ApplicationMain.dependencies: Aspect[]",
@@ -7858,7 +8096,7 @@
7858
8096
  "__schema": "InferenceTypeSchema",
7859
8097
  "location": {
7860
8098
  "filePath": "application.main.runtime.ts",
7861
- "line": 403,
8099
+ "line": 411,
7862
8100
  "character": 3
7863
8101
  },
7864
8102
  "type": "Aspect[]"
@@ -7870,7 +8108,7 @@
7870
8108
  "__schema": "VariableLikeSchema",
7871
8109
  "location": {
7872
8110
  "filePath": "application.main.runtime.ts",
7873
- "line": 415,
8111
+ "line": 423,
7874
8112
  "character": 3
7875
8113
  },
7876
8114
  "signature": "(property) ApplicationMain.slots: (((registerFn: () => string) => SlotRegistry<ApplicationType<unknown>[]>) | ((registerFn: () => string) => SlotRegistry<Application[]>) | ((registerFn: () => string) => SlotRegistry<...>))[]",
@@ -7879,7 +8117,7 @@
7879
8117
  "__schema": "InferenceTypeSchema",
7880
8118
  "location": {
7881
8119
  "filePath": "application.main.runtime.ts",
7882
- "line": 415,
8120
+ "line": 423,
7883
8121
  "character": 3
7884
8122
  },
7885
8123
  "type": "(((registerFn: () => string) => SlotRegistry<ApplicationType<unknown>[]>) | ((registerFn: () => string) => SlotRegistry<Application[]>) | ((registerFn: () => string) => SlotRegistry<...>))[]"
@@ -7891,7 +8129,7 @@
7891
8129
  "__schema": "FunctionLikeSchema",
7892
8130
  "location": {
7893
8131
  "filePath": "application.main.runtime.ts",
7894
- "line": 421,
8132
+ "line": 429,
7895
8133
  "character": 3
7896
8134
  },
7897
8135
  "signature": "(method) ApplicationMain.provider([cli, loggerAspect, builder, envs, component, aspectLoader, workspace, watcher, scope]: [\n CLIMain,\n LoggerMain,\n BuilderMain,\n EnvsMain,\n ComponentMain,\n AspectLoaderMain,\n Workspace,\n WatcherMain,\n ScopeMain\n], config: ApplicationAspectConfig, [appTypeSlot, appSlot, deploymentProviderSlot]: [ApplicationTypeSlot, ApplicationSlot, DeploymentProviderSlot], harmony: Harmony): Promise<ApplicationMain>",
@@ -7901,7 +8139,7 @@
7901
8139
  "__schema": "ParameterSchema",
7902
8140
  "location": {
7903
8141
  "filePath": "application.main.runtime.ts",
7904
- "line": 422,
8142
+ "line": 430,
7905
8143
  "character": 5
7906
8144
  },
7907
8145
  "name": "[ cli, loggerAspect, builder, envs, component, aspectLoader, workspace, watcher, scope ]",
@@ -7909,7 +8147,7 @@
7909
8147
  "__schema": "TupleTypeSchema",
7910
8148
  "location": {
7911
8149
  "filePath": "application.main.runtime.ts",
7912
- "line": 422,
8150
+ "line": 430,
7913
8151
  "character": 93
7914
8152
  },
7915
8153
  "elements": [
@@ -7917,7 +8155,7 @@
7917
8155
  "__schema": "TypeRefSchema",
7918
8156
  "location": {
7919
8157
  "filePath": "application.main.runtime.ts",
7920
- "line": 423,
8158
+ "line": 431,
7921
8159
  "character": 7
7922
8160
  },
7923
8161
  "name": "CLIMain"
@@ -7926,7 +8164,7 @@
7926
8164
  "__schema": "TypeRefSchema",
7927
8165
  "location": {
7928
8166
  "filePath": "application.main.runtime.ts",
7929
- "line": 424,
8167
+ "line": 432,
7930
8168
  "character": 7
7931
8169
  },
7932
8170
  "name": "LoggerMain"
@@ -7935,7 +8173,7 @@
7935
8173
  "__schema": "TypeRefSchema",
7936
8174
  "location": {
7937
8175
  "filePath": "application.main.runtime.ts",
7938
- "line": 425,
8176
+ "line": 433,
7939
8177
  "character": 7
7940
8178
  },
7941
8179
  "name": "BuilderMain"
@@ -7944,7 +8182,7 @@
7944
8182
  "__schema": "TypeRefSchema",
7945
8183
  "location": {
7946
8184
  "filePath": "application.main.runtime.ts",
7947
- "line": 426,
8185
+ "line": 434,
7948
8186
  "character": 7
7949
8187
  },
7950
8188
  "name": "EnvsMain"
@@ -7953,7 +8191,7 @@
7953
8191
  "__schema": "TypeRefSchema",
7954
8192
  "location": {
7955
8193
  "filePath": "application.main.runtime.ts",
7956
- "line": 427,
8194
+ "line": 435,
7957
8195
  "character": 7
7958
8196
  },
7959
8197
  "name": "ComponentMain"
@@ -7962,7 +8200,7 @@
7962
8200
  "__schema": "TypeRefSchema",
7963
8201
  "location": {
7964
8202
  "filePath": "application.main.runtime.ts",
7965
- "line": 428,
8203
+ "line": 436,
7966
8204
  "character": 7
7967
8205
  },
7968
8206
  "name": "AspectLoaderMain"
@@ -7971,7 +8209,7 @@
7971
8209
  "__schema": "TypeRefSchema",
7972
8210
  "location": {
7973
8211
  "filePath": "application.main.runtime.ts",
7974
- "line": 429,
8212
+ "line": 437,
7975
8213
  "character": 7
7976
8214
  },
7977
8215
  "name": "Workspace"
@@ -7980,7 +8218,7 @@
7980
8218
  "__schema": "TypeRefSchema",
7981
8219
  "location": {
7982
8220
  "filePath": "application.main.runtime.ts",
7983
- "line": 430,
8221
+ "line": 438,
7984
8222
  "character": 7
7985
8223
  },
7986
8224
  "name": "WatcherMain"
@@ -7989,7 +8227,7 @@
7989
8227
  "__schema": "TypeRefSchema",
7990
8228
  "location": {
7991
8229
  "filePath": "application.main.runtime.ts",
7992
- "line": 431,
8230
+ "line": 439,
7993
8231
  "character": 7
7994
8232
  },
7995
8233
  "name": "ScopeMain"
@@ -8003,7 +8241,7 @@
8003
8241
  "__schema": "ParameterSchema",
8004
8242
  "location": {
8005
8243
  "filePath": "application.main.runtime.ts",
8006
- "line": 433,
8244
+ "line": 441,
8007
8245
  "character": 5
8008
8246
  },
8009
8247
  "name": "config",
@@ -8011,7 +8249,7 @@
8011
8249
  "__schema": "TypeRefSchema",
8012
8250
  "location": {
8013
8251
  "filePath": "application.main.runtime.ts",
8014
- "line": 433,
8252
+ "line": 441,
8015
8253
  "character": 13
8016
8254
  },
8017
8255
  "name": "ApplicationAspectConfig"
@@ -8023,7 +8261,7 @@
8023
8261
  "__schema": "ParameterSchema",
8024
8262
  "location": {
8025
8263
  "filePath": "application.main.runtime.ts",
8026
- "line": 434,
8264
+ "line": 442,
8027
8265
  "character": 5
8028
8266
  },
8029
8267
  "name": "[ appTypeSlot, appSlot, deploymentProviderSlot ]",
@@ -8031,7 +8269,7 @@
8031
8269
  "__schema": "TupleTypeSchema",
8032
8270
  "location": {
8033
8271
  "filePath": "application.main.runtime.ts",
8034
- "line": 434,
8272
+ "line": 442,
8035
8273
  "character": 53
8036
8274
  },
8037
8275
  "elements": [
@@ -8039,7 +8277,7 @@
8039
8277
  "__schema": "TypeRefSchema",
8040
8278
  "location": {
8041
8279
  "filePath": "application.main.runtime.ts",
8042
- "line": 434,
8280
+ "line": 442,
8043
8281
  "character": 54
8044
8282
  },
8045
8283
  "name": "ApplicationTypeSlot"
@@ -8048,7 +8286,7 @@
8048
8286
  "__schema": "TypeRefSchema",
8049
8287
  "location": {
8050
8288
  "filePath": "application.main.runtime.ts",
8051
- "line": 434,
8289
+ "line": 442,
8052
8290
  "character": 75
8053
8291
  },
8054
8292
  "name": "ApplicationSlot"
@@ -8057,7 +8295,7 @@
8057
8295
  "__schema": "TypeRefSchema",
8058
8296
  "location": {
8059
8297
  "filePath": "application.main.runtime.ts",
8060
- "line": 434,
8298
+ "line": 442,
8061
8299
  "character": 92
8062
8300
  },
8063
8301
  "name": "DeploymentProviderSlot"
@@ -8071,7 +8309,7 @@
8071
8309
  "__schema": "ParameterSchema",
8072
8310
  "location": {
8073
8311
  "filePath": "application.main.runtime.ts",
8074
- "line": 435,
8312
+ "line": 443,
8075
8313
  "character": 5
8076
8314
  },
8077
8315
  "name": "harmony",
@@ -8079,7 +8317,7 @@
8079
8317
  "__schema": "TypeRefSchema",
8080
8318
  "location": {
8081
8319
  "filePath": "application.main.runtime.ts",
8082
- "line": 435,
8320
+ "line": 443,
8083
8321
  "character": 14
8084
8322
  },
8085
8323
  "name": "Harmony"
@@ -8092,7 +8330,7 @@
8092
8330
  "__schema": "InferenceTypeSchema",
8093
8331
  "location": {
8094
8332
  "filePath": "application.main.runtime.ts",
8095
- "line": 421,
8333
+ "line": 429,
8096
8334
  "character": 3
8097
8335
  },
8098
8336
  "type": "Promise<ApplicationMain>"
@@ -8112,7 +8350,7 @@
8112
8350
  "__schema": "UnImplementedSchema",
8113
8351
  "location": {
8114
8352
  "filePath": "application.main.runtime.ts",
8115
- "line": 485,
8353
+ "line": 493,
8116
8354
  "character": 1
8117
8355
  },
8118
8356
  "name": "ApplicationAspect.addRuntime(ApplicationMain);",
@@ -8609,7 +8847,7 @@
8609
8847
  "_legacy": {
8610
8848
  "scope": "teambit.harmony",
8611
8849
  "name": "application",
8612
- "version": "1.0.185"
8850
+ "version": "1.0.187"
8613
8851
  },
8614
8852
  "_scope": "teambit.harmony"
8615
8853
  }
@@ -9174,7 +9412,7 @@
9174
9412
  "_legacy": {
9175
9413
  "scope": "teambit.harmony",
9176
9414
  "name": "application",
9177
- "version": "1.0.185"
9415
+ "version": "1.0.187"
9178
9416
  },
9179
9417
  "_scope": "teambit.harmony"
9180
9418
  }
@@ -9660,7 +9898,7 @@
9660
9898
  "_legacy": {
9661
9899
  "scope": "teambit.harmony",
9662
9900
  "name": "application",
9663
- "version": "1.0.185"
9901
+ "version": "1.0.187"
9664
9902
  },
9665
9903
  "_scope": "teambit.harmony"
9666
9904
  }
@@ -9863,7 +10101,7 @@
9863
10101
  "_legacy": {
9864
10102
  "scope": "teambit.harmony",
9865
10103
  "name": "application",
9866
- "version": "1.0.185"
10104
+ "version": "1.0.187"
9867
10105
  },
9868
10106
  "_scope": "teambit.harmony"
9869
10107
  }
@@ -10349,7 +10587,7 @@
10349
10587
  "_legacy": {
10350
10588
  "scope": "teambit.harmony",
10351
10589
  "name": "application",
10352
- "version": "1.0.185"
10590
+ "version": "1.0.187"
10353
10591
  },
10354
10592
  "_scope": "teambit.harmony"
10355
10593
  }
@@ -11278,7 +11516,7 @@
11278
11516
  "componentId": {
11279
11517
  "scope": "teambit.harmony",
11280
11518
  "name": "application",
11281
- "version": "1.0.185"
11519
+ "version": "1.0.187"
11282
11520
  },
11283
11521
  "taggedModuleExports": []
11284
11522
  }