@teambit/dependencies 1.0.449 → 1.0.450
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/artifacts/__bit_junit.xml +35 -67
- package/artifacts/schema.json +217 -97
- package/dist/dependencies.main.runtime.js.map +1 -1
- package/dist/files-dependency-builder/detector-hook.d.ts +3 -2
- package/dist/files-dependency-builder/detector-hook.js +6 -4
- package/dist/files-dependency-builder/detector-hook.js.map +1 -1
- package/dist/files-dependency-builder/filing-cabinet/index.js +3 -2
- package/dist/files-dependency-builder/filing-cabinet/index.js.map +1 -1
- package/dist/files-dependency-builder/precinct/index.d.ts +0 -10
- package/dist/files-dependency-builder/precinct/index.js +10 -37
- package/dist/files-dependency-builder/precinct/index.js.map +1 -1
- package/dist/files-dependency-builder/precinct/index.spec.js +0 -210
- package/dist/files-dependency-builder/precinct/index.spec.js.map +1 -1
- package/files-dependency-builder/detector-hook.ts +6 -2
- package/files-dependency-builder/filing-cabinet/index.ts +2 -2
- package/files-dependency-builder/precinct/index.spec.ts +0 -244
- package/files-dependency-builder/precinct/index.ts +8 -39
- package/package.json +14 -14
- /package/dist/{preview-1730344956084.js → preview-1730431405757.js} +0 -0
package/artifacts/schema.json
CHANGED
@@ -1482,7 +1482,7 @@
|
|
1482
1482
|
"__schema": "ClassSchema",
|
1483
1483
|
"location": {
|
1484
1484
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
1485
|
-
"line":
|
1485
|
+
"line": 53,
|
1486
1486
|
"character": 1
|
1487
1487
|
},
|
1488
1488
|
"signature": "class DetectorHook",
|
@@ -1492,7 +1492,7 @@
|
|
1492
1492
|
"__schema": "VariableLikeSchema",
|
1493
1493
|
"location": {
|
1494
1494
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
1495
|
-
"line":
|
1495
|
+
"line": 54,
|
1496
1496
|
"character": 3
|
1497
1497
|
},
|
1498
1498
|
"signature": "(property) DetectorHook.hooks: DependencyDetector[]",
|
@@ -1501,14 +1501,14 @@
|
|
1501
1501
|
"__schema": "TypeArraySchema",
|
1502
1502
|
"location": {
|
1503
1503
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
1504
|
-
"line":
|
1504
|
+
"line": 54,
|
1505
1505
|
"character": 17
|
1506
1506
|
},
|
1507
1507
|
"type": {
|
1508
1508
|
"__schema": "TypeRefSchema",
|
1509
1509
|
"location": {
|
1510
1510
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
1511
|
-
"line":
|
1511
|
+
"line": 54,
|
1512
1512
|
"character": 17
|
1513
1513
|
},
|
1514
1514
|
"name": "DependencyDetector"
|
@@ -1521,17 +1521,17 @@
|
|
1521
1521
|
"__schema": "FunctionLikeSchema",
|
1522
1522
|
"location": {
|
1523
1523
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
1524
|
-
"line":
|
1524
|
+
"line": 56,
|
1525
1525
|
"character": 3
|
1526
1526
|
},
|
1527
|
-
"signature": "(method) DetectorHook.isSupported(ext: string): boolean",
|
1527
|
+
"signature": "(method) DetectorHook.isSupported(ext: string, filename: string): boolean",
|
1528
1528
|
"name": "isSupported",
|
1529
1529
|
"params": [
|
1530
1530
|
{
|
1531
1531
|
"__schema": "ParameterSchema",
|
1532
1532
|
"location": {
|
1533
1533
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
1534
|
-
"line":
|
1534
|
+
"line": 56,
|
1535
1535
|
"character": 15
|
1536
1536
|
},
|
1537
1537
|
"name": "ext",
|
@@ -1539,21 +1539,41 @@
|
|
1539
1539
|
"__schema": "KeywordTypeSchema",
|
1540
1540
|
"location": {
|
1541
1541
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
1542
|
-
"line":
|
1542
|
+
"line": 56,
|
1543
1543
|
"character": 20
|
1544
1544
|
},
|
1545
1545
|
"name": "string"
|
1546
1546
|
},
|
1547
1547
|
"isOptional": false,
|
1548
1548
|
"isSpread": false
|
1549
|
+
},
|
1550
|
+
{
|
1551
|
+
"__schema": "ParameterSchema",
|
1552
|
+
"location": {
|
1553
|
+
"filePath": "files-dependency-builder/detector-hook.ts",
|
1554
|
+
"line": 56,
|
1555
|
+
"character": 28
|
1556
|
+
},
|
1557
|
+
"name": "filename",
|
1558
|
+
"type": {
|
1559
|
+
"__schema": "KeywordTypeSchema",
|
1560
|
+
"location": {
|
1561
|
+
"filePath": "files-dependency-builder/detector-hook.ts",
|
1562
|
+
"line": 56,
|
1563
|
+
"character": 38
|
1564
|
+
},
|
1565
|
+
"name": "string"
|
1566
|
+
},
|
1567
|
+
"isOptional": false,
|
1568
|
+
"isSpread": false
|
1549
1569
|
}
|
1550
1570
|
],
|
1551
1571
|
"returnType": {
|
1552
1572
|
"__schema": "KeywordTypeSchema",
|
1553
1573
|
"location": {
|
1554
1574
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
1555
|
-
"line":
|
1556
|
-
"character":
|
1575
|
+
"line": 56,
|
1576
|
+
"character": 47
|
1557
1577
|
},
|
1558
1578
|
"name": "boolean"
|
1559
1579
|
},
|
@@ -1563,17 +1583,17 @@
|
|
1563
1583
|
"__schema": "FunctionLikeSchema",
|
1564
1584
|
"location": {
|
1565
1585
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
1566
|
-
"line":
|
1586
|
+
"line": 65,
|
1567
1587
|
"character": 3
|
1568
1588
|
},
|
1569
|
-
"signature": "(method) DetectorHook.getDetector(ext: string): DependencyDetector | undefined",
|
1589
|
+
"signature": "(method) DetectorHook.getDetector(ext: string, filename: string): DependencyDetector | undefined",
|
1570
1590
|
"name": "getDetector",
|
1571
1591
|
"params": [
|
1572
1592
|
{
|
1573
1593
|
"__schema": "ParameterSchema",
|
1574
1594
|
"location": {
|
1575
1595
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
1576
|
-
"line":
|
1596
|
+
"line": 65,
|
1577
1597
|
"character": 15
|
1578
1598
|
},
|
1579
1599
|
"name": "ext",
|
@@ -1581,29 +1601,49 @@
|
|
1581
1601
|
"__schema": "KeywordTypeSchema",
|
1582
1602
|
"location": {
|
1583
1603
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
1584
|
-
"line":
|
1604
|
+
"line": 65,
|
1585
1605
|
"character": 20
|
1586
1606
|
},
|
1587
1607
|
"name": "string"
|
1588
1608
|
},
|
1589
1609
|
"isOptional": false,
|
1590
1610
|
"isSpread": false
|
1611
|
+
},
|
1612
|
+
{
|
1613
|
+
"__schema": "ParameterSchema",
|
1614
|
+
"location": {
|
1615
|
+
"filePath": "files-dependency-builder/detector-hook.ts",
|
1616
|
+
"line": 65,
|
1617
|
+
"character": 28
|
1618
|
+
},
|
1619
|
+
"name": "filename",
|
1620
|
+
"type": {
|
1621
|
+
"__schema": "KeywordTypeSchema",
|
1622
|
+
"location": {
|
1623
|
+
"filePath": "files-dependency-builder/detector-hook.ts",
|
1624
|
+
"line": 65,
|
1625
|
+
"character": 38
|
1626
|
+
},
|
1627
|
+
"name": "string"
|
1628
|
+
},
|
1629
|
+
"isOptional": false,
|
1630
|
+
"isSpread": false
|
1591
1631
|
}
|
1592
1632
|
],
|
1593
1633
|
"returnType": {
|
1594
1634
|
"__schema": "TypeUnionSchema",
|
1595
1635
|
"location": {
|
1596
1636
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
1597
|
-
"line":
|
1598
|
-
"character":
|
1637
|
+
"line": 65,
|
1638
|
+
"character": 47
|
1599
1639
|
},
|
1600
1640
|
"types": [
|
1601
1641
|
{
|
1602
1642
|
"__schema": "TypeRefSchema",
|
1603
1643
|
"location": {
|
1604
1644
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
1605
|
-
"line":
|
1606
|
-
"character":
|
1645
|
+
"line": 65,
|
1646
|
+
"character": 47
|
1607
1647
|
},
|
1608
1648
|
"name": "DependencyDetector"
|
1609
1649
|
},
|
@@ -1611,8 +1651,8 @@
|
|
1611
1651
|
"__schema": "KeywordTypeSchema",
|
1612
1652
|
"location": {
|
1613
1653
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
1614
|
-
"line":
|
1615
|
-
"character":
|
1654
|
+
"line": 65,
|
1655
|
+
"character": 68
|
1616
1656
|
},
|
1617
1657
|
"name": "undefined"
|
1618
1658
|
}
|
@@ -1638,7 +1678,7 @@
|
|
1638
1678
|
"__schema": "InterfaceSchema",
|
1639
1679
|
"location": {
|
1640
1680
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
1641
|
-
"line":
|
1681
|
+
"line": 28,
|
1642
1682
|
"character": 1
|
1643
1683
|
},
|
1644
1684
|
"signature": "interface DependencyDetector",
|
@@ -1648,14 +1688,14 @@
|
|
1648
1688
|
"__schema": "FunctionLikeSchema",
|
1649
1689
|
"location": {
|
1650
1690
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
1651
|
-
"line":
|
1691
|
+
"line": 32,
|
1652
1692
|
"character": 3
|
1653
1693
|
},
|
1654
1694
|
"doc": {
|
1655
1695
|
"__schema": "DocSchema",
|
1656
1696
|
"location": {
|
1657
1697
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
1658
|
-
"line":
|
1698
|
+
"line": 29,
|
1659
1699
|
"character": 3
|
1660
1700
|
},
|
1661
1701
|
"raw": "/**\n * determine whether to apply on given file.\n */",
|
@@ -1669,7 +1709,7 @@
|
|
1669
1709
|
"__schema": "ParameterSchema",
|
1670
1710
|
"location": {
|
1671
1711
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
1672
|
-
"line":
|
1712
|
+
"line": 32,
|
1673
1713
|
"character": 15
|
1674
1714
|
},
|
1675
1715
|
"name": "context",
|
@@ -1677,7 +1717,7 @@
|
|
1677
1717
|
"__schema": "TypeRefSchema",
|
1678
1718
|
"location": {
|
1679
1719
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
1680
|
-
"line":
|
1720
|
+
"line": 32,
|
1681
1721
|
"character": 24
|
1682
1722
|
},
|
1683
1723
|
"name": "FileContext"
|
@@ -1690,7 +1730,7 @@
|
|
1690
1730
|
"__schema": "KeywordTypeSchema",
|
1691
1731
|
"location": {
|
1692
1732
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
1693
|
-
"line":
|
1733
|
+
"line": 32,
|
1694
1734
|
"character": 38
|
1695
1735
|
},
|
1696
1736
|
"name": "boolean"
|
@@ -1701,14 +1741,14 @@
|
|
1701
1741
|
"__schema": "VariableLikeSchema",
|
1702
1742
|
"location": {
|
1703
1743
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
1704
|
-
"line":
|
1744
|
+
"line": 39,
|
1705
1745
|
"character": 3
|
1706
1746
|
},
|
1707
1747
|
"doc": {
|
1708
1748
|
"__schema": "DocSchema",
|
1709
1749
|
"location": {
|
1710
1750
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
1711
|
-
"line":
|
1751
|
+
"line": 34,
|
1712
1752
|
"character": 3
|
1713
1753
|
},
|
1714
1754
|
"raw": "/**\n * determine what type of content the detector is for.\n * by default, the type is the extension name of the file (without the dot)\n * if no type provided.\n */",
|
@@ -1721,7 +1761,7 @@
|
|
1721
1761
|
"__schema": "KeywordTypeSchema",
|
1722
1762
|
"location": {
|
1723
1763
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
1724
|
-
"line":
|
1764
|
+
"line": 39,
|
1725
1765
|
"character": 10
|
1726
1766
|
},
|
1727
1767
|
"name": "string"
|
@@ -1732,14 +1772,14 @@
|
|
1732
1772
|
"__schema": "FunctionLikeSchema",
|
1733
1773
|
"location": {
|
1734
1774
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
1735
|
-
"line":
|
1775
|
+
"line": 44,
|
1736
1776
|
"character": 3
|
1737
1777
|
},
|
1738
1778
|
"doc": {
|
1739
1779
|
"__schema": "DocSchema",
|
1740
1780
|
"location": {
|
1741
1781
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
1742
|
-
"line":
|
1782
|
+
"line": 41,
|
1743
1783
|
"character": 3
|
1744
1784
|
},
|
1745
1785
|
"raw": "/**\n * detect file dependencies. list of file dependencies of the module.\n */",
|
@@ -1753,7 +1793,7 @@
|
|
1753
1793
|
"__schema": "ParameterSchema",
|
1754
1794
|
"location": {
|
1755
1795
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
1756
|
-
"line":
|
1796
|
+
"line": 44,
|
1757
1797
|
"character": 10
|
1758
1798
|
},
|
1759
1799
|
"name": "fileContent",
|
@@ -1761,7 +1801,7 @@
|
|
1761
1801
|
"__schema": "KeywordTypeSchema",
|
1762
1802
|
"location": {
|
1763
1803
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
1764
|
-
"line":
|
1804
|
+
"line": 44,
|
1765
1805
|
"character": 23
|
1766
1806
|
},
|
1767
1807
|
"name": "string"
|
@@ -1774,14 +1814,14 @@
|
|
1774
1814
|
"__schema": "TypeArraySchema",
|
1775
1815
|
"location": {
|
1776
1816
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
1777
|
-
"line":
|
1817
|
+
"line": 44,
|
1778
1818
|
"character": 32
|
1779
1819
|
},
|
1780
1820
|
"type": {
|
1781
1821
|
"__schema": "KeywordTypeSchema",
|
1782
1822
|
"location": {
|
1783
1823
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
1784
|
-
"line":
|
1824
|
+
"line": 44,
|
1785
1825
|
"character": 32
|
1786
1826
|
},
|
1787
1827
|
"name": "string"
|
@@ -1793,14 +1833,14 @@
|
|
1793
1833
|
"__schema": "FunctionLikeSchema",
|
1794
1834
|
"location": {
|
1795
1835
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
1796
|
-
"line":
|
1836
|
+
"line": 50,
|
1797
1837
|
"character": 3
|
1798
1838
|
},
|
1799
1839
|
"doc": {
|
1800
1840
|
"__schema": "DocSchema",
|
1801
1841
|
"location": {
|
1802
1842
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
1803
|
-
"line":
|
1843
|
+
"line": 46,
|
1804
1844
|
"character": 3
|
1805
1845
|
},
|
1806
1846
|
"raw": "/**\n * resolve the imported file location\n * @param file\n */",
|
@@ -1810,7 +1850,7 @@
|
|
1810
1850
|
"__schema": "PropertyLikeTagSchema",
|
1811
1851
|
"location": {
|
1812
1852
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
1813
|
-
"line":
|
1853
|
+
"line": 48,
|
1814
1854
|
"character": 6
|
1815
1855
|
},
|
1816
1856
|
"name": "file",
|
@@ -1825,7 +1865,7 @@
|
|
1825
1865
|
"__schema": "ParameterSchema",
|
1826
1866
|
"location": {
|
1827
1867
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
1828
|
-
"line":
|
1868
|
+
"line": 50,
|
1829
1869
|
"character": 21
|
1830
1870
|
},
|
1831
1871
|
"name": "file",
|
@@ -1833,7 +1873,7 @@
|
|
1833
1873
|
"__schema": "TypeRefSchema",
|
1834
1874
|
"location": {
|
1835
1875
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
1836
|
-
"line":
|
1876
|
+
"line": 50,
|
1837
1877
|
"character": 27
|
1838
1878
|
},
|
1839
1879
|
"name": "DependencyContext"
|
@@ -1846,7 +1886,7 @@
|
|
1846
1886
|
"__schema": "KeywordTypeSchema",
|
1847
1887
|
"location": {
|
1848
1888
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
1849
|
-
"line":
|
1889
|
+
"line": 50,
|
1850
1890
|
"character": 47
|
1851
1891
|
},
|
1852
1892
|
"name": "string"
|
@@ -1864,7 +1904,7 @@
|
|
1864
1904
|
"line": 4,
|
1865
1905
|
"character": 44
|
1866
1906
|
},
|
1867
|
-
"signature": "type FileContext = {\n ext: string;\n}",
|
1907
|
+
"signature": "type FileContext = {\n ext: string;\n filename: string;\n}",
|
1868
1908
|
"name": "FileContext",
|
1869
1909
|
"exportNode": {
|
1870
1910
|
"__schema": "TypeSchema",
|
@@ -1873,7 +1913,7 @@
|
|
1873
1913
|
"line": 1,
|
1874
1914
|
"character": 1
|
1875
1915
|
},
|
1876
|
-
"signature": "type FileContext = {\n ext: string;\n}",
|
1916
|
+
"signature": "type FileContext = {\n ext: string;\n filename: string;\n}",
|
1877
1917
|
"name": "FileContext",
|
1878
1918
|
"type": {
|
1879
1919
|
"__schema": "TypeLiteralSchema",
|
@@ -1913,6 +1953,26 @@
|
|
1913
1953
|
"name": "string"
|
1914
1954
|
},
|
1915
1955
|
"isOptional": false
|
1956
|
+
},
|
1957
|
+
{
|
1958
|
+
"__schema": "VariableLikeSchema",
|
1959
|
+
"location": {
|
1960
|
+
"filePath": "files-dependency-builder/detector-hook.ts",
|
1961
|
+
"line": 7,
|
1962
|
+
"character": 3
|
1963
|
+
},
|
1964
|
+
"signature": "(property) filename: string",
|
1965
|
+
"name": "filename",
|
1966
|
+
"type": {
|
1967
|
+
"__schema": "KeywordTypeSchema",
|
1968
|
+
"location": {
|
1969
|
+
"filePath": "files-dependency-builder/detector-hook.ts",
|
1970
|
+
"line": 7,
|
1971
|
+
"character": 13
|
1972
|
+
},
|
1973
|
+
"name": "string"
|
1974
|
+
},
|
1975
|
+
"isOptional": false
|
1916
1976
|
}
|
1917
1977
|
]
|
1918
1978
|
}
|
@@ -4019,7 +4079,7 @@
|
|
4019
4079
|
"line": 1,
|
4020
4080
|
"character": 1
|
4021
4081
|
},
|
4022
|
-
"signature": "type FileContext = {\n ext: string;\n}",
|
4082
|
+
"signature": "type FileContext = {\n ext: string;\n filename: string;\n}",
|
4023
4083
|
"name": "FileContext",
|
4024
4084
|
"type": {
|
4025
4085
|
"__schema": "TypeLiteralSchema",
|
@@ -4059,6 +4119,26 @@
|
|
4059
4119
|
"name": "string"
|
4060
4120
|
},
|
4061
4121
|
"isOptional": false
|
4122
|
+
},
|
4123
|
+
{
|
4124
|
+
"__schema": "VariableLikeSchema",
|
4125
|
+
"location": {
|
4126
|
+
"filePath": "files-dependency-builder/detector-hook.ts",
|
4127
|
+
"line": 7,
|
4128
|
+
"character": 3
|
4129
|
+
},
|
4130
|
+
"signature": "(property) filename: string",
|
4131
|
+
"name": "filename",
|
4132
|
+
"type": {
|
4133
|
+
"__schema": "KeywordTypeSchema",
|
4134
|
+
"location": {
|
4135
|
+
"filePath": "files-dependency-builder/detector-hook.ts",
|
4136
|
+
"line": 7,
|
4137
|
+
"character": 13
|
4138
|
+
},
|
4139
|
+
"name": "string"
|
4140
|
+
},
|
4141
|
+
"isOptional": false
|
4062
4142
|
}
|
4063
4143
|
]
|
4064
4144
|
}
|
@@ -4067,7 +4147,7 @@
|
|
4067
4147
|
"__schema": "TypeSchema",
|
4068
4148
|
"location": {
|
4069
4149
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
4070
|
-
"line":
|
4150
|
+
"line": 10,
|
4071
4151
|
"character": 1
|
4072
4152
|
},
|
4073
4153
|
"signature": "type DependencyContext = {\n dependency: string;\n filename: string;\n directory: string;\n}",
|
@@ -4076,7 +4156,7 @@
|
|
4076
4156
|
"__schema": "TypeLiteralSchema",
|
4077
4157
|
"location": {
|
4078
4158
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
4079
|
-
"line":
|
4159
|
+
"line": 10,
|
4080
4160
|
"character": 33
|
4081
4161
|
},
|
4082
4162
|
"members": [
|
@@ -4084,14 +4164,14 @@
|
|
4084
4164
|
"__schema": "VariableLikeSchema",
|
4085
4165
|
"location": {
|
4086
4166
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
4087
|
-
"line":
|
4167
|
+
"line": 15,
|
4088
4168
|
"character": 3
|
4089
4169
|
},
|
4090
4170
|
"doc": {
|
4091
4171
|
"__schema": "DocSchema",
|
4092
4172
|
"location": {
|
4093
4173
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
4094
|
-
"line":
|
4174
|
+
"line": 11,
|
4095
4175
|
"character": 3
|
4096
4176
|
},
|
4097
4177
|
"raw": "/**\n * name of the dependency.\n * e.g. `lodash` in `import _ from 'lodash'`\n */",
|
@@ -4104,7 +4184,7 @@
|
|
4104
4184
|
"__schema": "KeywordTypeSchema",
|
4105
4185
|
"location": {
|
4106
4186
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
4107
|
-
"line":
|
4187
|
+
"line": 15,
|
4108
4188
|
"character": 15
|
4109
4189
|
},
|
4110
4190
|
"name": "string"
|
@@ -4115,14 +4195,14 @@
|
|
4115
4195
|
"__schema": "VariableLikeSchema",
|
4116
4196
|
"location": {
|
4117
4197
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
4118
|
-
"line":
|
4198
|
+
"line": 20,
|
4119
4199
|
"character": 3
|
4120
4200
|
},
|
4121
4201
|
"doc": {
|
4122
4202
|
"__schema": "DocSchema",
|
4123
4203
|
"location": {
|
4124
4204
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
4125
|
-
"line":
|
4205
|
+
"line": 17,
|
4126
4206
|
"character": 3
|
4127
4207
|
},
|
4128
4208
|
"raw": "/**\n * name of the file.\n */",
|
@@ -4135,7 +4215,7 @@
|
|
4135
4215
|
"__schema": "KeywordTypeSchema",
|
4136
4216
|
"location": {
|
4137
4217
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
4138
|
-
"line":
|
4218
|
+
"line": 20,
|
4139
4219
|
"character": 13
|
4140
4220
|
},
|
4141
4221
|
"name": "string"
|
@@ -4146,14 +4226,14 @@
|
|
4146
4226
|
"__schema": "VariableLikeSchema",
|
4147
4227
|
"location": {
|
4148
4228
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
4149
|
-
"line":
|
4229
|
+
"line": 25,
|
4150
4230
|
"character": 3
|
4151
4231
|
},
|
4152
4232
|
"doc": {
|
4153
4233
|
"__schema": "DocSchema",
|
4154
4234
|
"location": {
|
4155
4235
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
4156
|
-
"line":
|
4236
|
+
"line": 22,
|
4157
4237
|
"character": 3
|
4158
4238
|
},
|
4159
4239
|
"raw": "/**\n * directory of the file.\n */",
|
@@ -4166,7 +4246,7 @@
|
|
4166
4246
|
"__schema": "KeywordTypeSchema",
|
4167
4247
|
"location": {
|
4168
4248
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
4169
|
-
"line":
|
4249
|
+
"line": 25,
|
4170
4250
|
"character": 14
|
4171
4251
|
},
|
4172
4252
|
"name": "string"
|
@@ -4180,7 +4260,7 @@
|
|
4180
4260
|
"__schema": "InterfaceSchema",
|
4181
4261
|
"location": {
|
4182
4262
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
4183
|
-
"line":
|
4263
|
+
"line": 28,
|
4184
4264
|
"character": 1
|
4185
4265
|
},
|
4186
4266
|
"signature": "interface DependencyDetector",
|
@@ -4190,14 +4270,14 @@
|
|
4190
4270
|
"__schema": "FunctionLikeSchema",
|
4191
4271
|
"location": {
|
4192
4272
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
4193
|
-
"line":
|
4273
|
+
"line": 32,
|
4194
4274
|
"character": 3
|
4195
4275
|
},
|
4196
4276
|
"doc": {
|
4197
4277
|
"__schema": "DocSchema",
|
4198
4278
|
"location": {
|
4199
4279
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
4200
|
-
"line":
|
4280
|
+
"line": 29,
|
4201
4281
|
"character": 3
|
4202
4282
|
},
|
4203
4283
|
"raw": "/**\n * determine whether to apply on given file.\n */",
|
@@ -4211,7 +4291,7 @@
|
|
4211
4291
|
"__schema": "ParameterSchema",
|
4212
4292
|
"location": {
|
4213
4293
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
4214
|
-
"line":
|
4294
|
+
"line": 32,
|
4215
4295
|
"character": 15
|
4216
4296
|
},
|
4217
4297
|
"name": "context",
|
@@ -4219,7 +4299,7 @@
|
|
4219
4299
|
"__schema": "TypeRefSchema",
|
4220
4300
|
"location": {
|
4221
4301
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
4222
|
-
"line":
|
4302
|
+
"line": 32,
|
4223
4303
|
"character": 24
|
4224
4304
|
},
|
4225
4305
|
"name": "FileContext"
|
@@ -4232,7 +4312,7 @@
|
|
4232
4312
|
"__schema": "KeywordTypeSchema",
|
4233
4313
|
"location": {
|
4234
4314
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
4235
|
-
"line":
|
4315
|
+
"line": 32,
|
4236
4316
|
"character": 38
|
4237
4317
|
},
|
4238
4318
|
"name": "boolean"
|
@@ -4243,14 +4323,14 @@
|
|
4243
4323
|
"__schema": "VariableLikeSchema",
|
4244
4324
|
"location": {
|
4245
4325
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
4246
|
-
"line":
|
4326
|
+
"line": 39,
|
4247
4327
|
"character": 3
|
4248
4328
|
},
|
4249
4329
|
"doc": {
|
4250
4330
|
"__schema": "DocSchema",
|
4251
4331
|
"location": {
|
4252
4332
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
4253
|
-
"line":
|
4333
|
+
"line": 34,
|
4254
4334
|
"character": 3
|
4255
4335
|
},
|
4256
4336
|
"raw": "/**\n * determine what type of content the detector is for.\n * by default, the type is the extension name of the file (without the dot)\n * if no type provided.\n */",
|
@@ -4263,7 +4343,7 @@
|
|
4263
4343
|
"__schema": "KeywordTypeSchema",
|
4264
4344
|
"location": {
|
4265
4345
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
4266
|
-
"line":
|
4346
|
+
"line": 39,
|
4267
4347
|
"character": 10
|
4268
4348
|
},
|
4269
4349
|
"name": "string"
|
@@ -4274,14 +4354,14 @@
|
|
4274
4354
|
"__schema": "FunctionLikeSchema",
|
4275
4355
|
"location": {
|
4276
4356
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
4277
|
-
"line":
|
4357
|
+
"line": 44,
|
4278
4358
|
"character": 3
|
4279
4359
|
},
|
4280
4360
|
"doc": {
|
4281
4361
|
"__schema": "DocSchema",
|
4282
4362
|
"location": {
|
4283
4363
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
4284
|
-
"line":
|
4364
|
+
"line": 41,
|
4285
4365
|
"character": 3
|
4286
4366
|
},
|
4287
4367
|
"raw": "/**\n * detect file dependencies. list of file dependencies of the module.\n */",
|
@@ -4295,7 +4375,7 @@
|
|
4295
4375
|
"__schema": "ParameterSchema",
|
4296
4376
|
"location": {
|
4297
4377
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
4298
|
-
"line":
|
4378
|
+
"line": 44,
|
4299
4379
|
"character": 10
|
4300
4380
|
},
|
4301
4381
|
"name": "fileContent",
|
@@ -4303,7 +4383,7 @@
|
|
4303
4383
|
"__schema": "KeywordTypeSchema",
|
4304
4384
|
"location": {
|
4305
4385
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
4306
|
-
"line":
|
4386
|
+
"line": 44,
|
4307
4387
|
"character": 23
|
4308
4388
|
},
|
4309
4389
|
"name": "string"
|
@@ -4316,14 +4396,14 @@
|
|
4316
4396
|
"__schema": "TypeArraySchema",
|
4317
4397
|
"location": {
|
4318
4398
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
4319
|
-
"line":
|
4399
|
+
"line": 44,
|
4320
4400
|
"character": 32
|
4321
4401
|
},
|
4322
4402
|
"type": {
|
4323
4403
|
"__schema": "KeywordTypeSchema",
|
4324
4404
|
"location": {
|
4325
4405
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
4326
|
-
"line":
|
4406
|
+
"line": 44,
|
4327
4407
|
"character": 32
|
4328
4408
|
},
|
4329
4409
|
"name": "string"
|
@@ -4335,14 +4415,14 @@
|
|
4335
4415
|
"__schema": "FunctionLikeSchema",
|
4336
4416
|
"location": {
|
4337
4417
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
4338
|
-
"line":
|
4418
|
+
"line": 50,
|
4339
4419
|
"character": 3
|
4340
4420
|
},
|
4341
4421
|
"doc": {
|
4342
4422
|
"__schema": "DocSchema",
|
4343
4423
|
"location": {
|
4344
4424
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
4345
|
-
"line":
|
4425
|
+
"line": 46,
|
4346
4426
|
"character": 3
|
4347
4427
|
},
|
4348
4428
|
"raw": "/**\n * resolve the imported file location\n * @param file\n */",
|
@@ -4352,7 +4432,7 @@
|
|
4352
4432
|
"__schema": "PropertyLikeTagSchema",
|
4353
4433
|
"location": {
|
4354
4434
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
4355
|
-
"line":
|
4435
|
+
"line": 48,
|
4356
4436
|
"character": 6
|
4357
4437
|
},
|
4358
4438
|
"name": "file",
|
@@ -4367,7 +4447,7 @@
|
|
4367
4447
|
"__schema": "ParameterSchema",
|
4368
4448
|
"location": {
|
4369
4449
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
4370
|
-
"line":
|
4450
|
+
"line": 50,
|
4371
4451
|
"character": 21
|
4372
4452
|
},
|
4373
4453
|
"name": "file",
|
@@ -4375,7 +4455,7 @@
|
|
4375
4455
|
"__schema": "TypeRefSchema",
|
4376
4456
|
"location": {
|
4377
4457
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
4378
|
-
"line":
|
4458
|
+
"line": 50,
|
4379
4459
|
"character": 27
|
4380
4460
|
},
|
4381
4461
|
"name": "DependencyContext"
|
@@ -4388,7 +4468,7 @@
|
|
4388
4468
|
"__schema": "KeywordTypeSchema",
|
4389
4469
|
"location": {
|
4390
4470
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
4391
|
-
"line":
|
4471
|
+
"line": 50,
|
4392
4472
|
"character": 47
|
4393
4473
|
},
|
4394
4474
|
"name": "string"
|
@@ -4402,7 +4482,7 @@
|
|
4402
4482
|
"__schema": "ClassSchema",
|
4403
4483
|
"location": {
|
4404
4484
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
4405
|
-
"line":
|
4485
|
+
"line": 53,
|
4406
4486
|
"character": 1
|
4407
4487
|
},
|
4408
4488
|
"signature": "class DetectorHook",
|
@@ -4412,7 +4492,7 @@
|
|
4412
4492
|
"__schema": "VariableLikeSchema",
|
4413
4493
|
"location": {
|
4414
4494
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
4415
|
-
"line":
|
4495
|
+
"line": 54,
|
4416
4496
|
"character": 3
|
4417
4497
|
},
|
4418
4498
|
"signature": "(property) DetectorHook.hooks: DependencyDetector[]",
|
@@ -4421,14 +4501,14 @@
|
|
4421
4501
|
"__schema": "TypeArraySchema",
|
4422
4502
|
"location": {
|
4423
4503
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
4424
|
-
"line":
|
4504
|
+
"line": 54,
|
4425
4505
|
"character": 17
|
4426
4506
|
},
|
4427
4507
|
"type": {
|
4428
4508
|
"__schema": "TypeRefSchema",
|
4429
4509
|
"location": {
|
4430
4510
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
4431
|
-
"line":
|
4511
|
+
"line": 54,
|
4432
4512
|
"character": 17
|
4433
4513
|
},
|
4434
4514
|
"name": "DependencyDetector"
|
@@ -4441,17 +4521,17 @@
|
|
4441
4521
|
"__schema": "FunctionLikeSchema",
|
4442
4522
|
"location": {
|
4443
4523
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
4444
|
-
"line":
|
4524
|
+
"line": 56,
|
4445
4525
|
"character": 3
|
4446
4526
|
},
|
4447
|
-
"signature": "(method) DetectorHook.isSupported(ext: string): boolean",
|
4527
|
+
"signature": "(method) DetectorHook.isSupported(ext: string, filename: string): boolean",
|
4448
4528
|
"name": "isSupported",
|
4449
4529
|
"params": [
|
4450
4530
|
{
|
4451
4531
|
"__schema": "ParameterSchema",
|
4452
4532
|
"location": {
|
4453
4533
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
4454
|
-
"line":
|
4534
|
+
"line": 56,
|
4455
4535
|
"character": 15
|
4456
4536
|
},
|
4457
4537
|
"name": "ext",
|
@@ -4459,21 +4539,41 @@
|
|
4459
4539
|
"__schema": "KeywordTypeSchema",
|
4460
4540
|
"location": {
|
4461
4541
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
4462
|
-
"line":
|
4542
|
+
"line": 56,
|
4463
4543
|
"character": 20
|
4464
4544
|
},
|
4465
4545
|
"name": "string"
|
4466
4546
|
},
|
4467
4547
|
"isOptional": false,
|
4468
4548
|
"isSpread": false
|
4549
|
+
},
|
4550
|
+
{
|
4551
|
+
"__schema": "ParameterSchema",
|
4552
|
+
"location": {
|
4553
|
+
"filePath": "files-dependency-builder/detector-hook.ts",
|
4554
|
+
"line": 56,
|
4555
|
+
"character": 28
|
4556
|
+
},
|
4557
|
+
"name": "filename",
|
4558
|
+
"type": {
|
4559
|
+
"__schema": "KeywordTypeSchema",
|
4560
|
+
"location": {
|
4561
|
+
"filePath": "files-dependency-builder/detector-hook.ts",
|
4562
|
+
"line": 56,
|
4563
|
+
"character": 38
|
4564
|
+
},
|
4565
|
+
"name": "string"
|
4566
|
+
},
|
4567
|
+
"isOptional": false,
|
4568
|
+
"isSpread": false
|
4469
4569
|
}
|
4470
4570
|
],
|
4471
4571
|
"returnType": {
|
4472
4572
|
"__schema": "KeywordTypeSchema",
|
4473
4573
|
"location": {
|
4474
4574
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
4475
|
-
"line":
|
4476
|
-
"character":
|
4575
|
+
"line": 56,
|
4576
|
+
"character": 47
|
4477
4577
|
},
|
4478
4578
|
"name": "boolean"
|
4479
4579
|
},
|
@@ -4483,17 +4583,17 @@
|
|
4483
4583
|
"__schema": "FunctionLikeSchema",
|
4484
4584
|
"location": {
|
4485
4585
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
4486
|
-
"line":
|
4586
|
+
"line": 65,
|
4487
4587
|
"character": 3
|
4488
4588
|
},
|
4489
|
-
"signature": "(method) DetectorHook.getDetector(ext: string): DependencyDetector | undefined",
|
4589
|
+
"signature": "(method) DetectorHook.getDetector(ext: string, filename: string): DependencyDetector | undefined",
|
4490
4590
|
"name": "getDetector",
|
4491
4591
|
"params": [
|
4492
4592
|
{
|
4493
4593
|
"__schema": "ParameterSchema",
|
4494
4594
|
"location": {
|
4495
4595
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
4496
|
-
"line":
|
4596
|
+
"line": 65,
|
4497
4597
|
"character": 15
|
4498
4598
|
},
|
4499
4599
|
"name": "ext",
|
@@ -4501,29 +4601,49 @@
|
|
4501
4601
|
"__schema": "KeywordTypeSchema",
|
4502
4602
|
"location": {
|
4503
4603
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
4504
|
-
"line":
|
4604
|
+
"line": 65,
|
4505
4605
|
"character": 20
|
4506
4606
|
},
|
4507
4607
|
"name": "string"
|
4508
4608
|
},
|
4509
4609
|
"isOptional": false,
|
4510
4610
|
"isSpread": false
|
4611
|
+
},
|
4612
|
+
{
|
4613
|
+
"__schema": "ParameterSchema",
|
4614
|
+
"location": {
|
4615
|
+
"filePath": "files-dependency-builder/detector-hook.ts",
|
4616
|
+
"line": 65,
|
4617
|
+
"character": 28
|
4618
|
+
},
|
4619
|
+
"name": "filename",
|
4620
|
+
"type": {
|
4621
|
+
"__schema": "KeywordTypeSchema",
|
4622
|
+
"location": {
|
4623
|
+
"filePath": "files-dependency-builder/detector-hook.ts",
|
4624
|
+
"line": 65,
|
4625
|
+
"character": 38
|
4626
|
+
},
|
4627
|
+
"name": "string"
|
4628
|
+
},
|
4629
|
+
"isOptional": false,
|
4630
|
+
"isSpread": false
|
4511
4631
|
}
|
4512
4632
|
],
|
4513
4633
|
"returnType": {
|
4514
4634
|
"__schema": "TypeUnionSchema",
|
4515
4635
|
"location": {
|
4516
4636
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
4517
|
-
"line":
|
4518
|
-
"character":
|
4637
|
+
"line": 65,
|
4638
|
+
"character": 47
|
4519
4639
|
},
|
4520
4640
|
"types": [
|
4521
4641
|
{
|
4522
4642
|
"__schema": "TypeRefSchema",
|
4523
4643
|
"location": {
|
4524
4644
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
4525
|
-
"line":
|
4526
|
-
"character":
|
4645
|
+
"line": 65,
|
4646
|
+
"character": 47
|
4527
4647
|
},
|
4528
4648
|
"name": "DependencyDetector"
|
4529
4649
|
},
|
@@ -4531,8 +4651,8 @@
|
|
4531
4651
|
"__schema": "KeywordTypeSchema",
|
4532
4652
|
"location": {
|
4533
4653
|
"filePath": "files-dependency-builder/detector-hook.ts",
|
4534
|
-
"line":
|
4535
|
-
"character":
|
4654
|
+
"line": 65,
|
4655
|
+
"character": 68
|
4536
4656
|
},
|
4537
4657
|
"name": "undefined"
|
4538
4658
|
}
|
@@ -4588,7 +4708,7 @@
|
|
4588
4708
|
"componentId": {
|
4589
4709
|
"scope": "teambit.dependencies",
|
4590
4710
|
"name": "dependencies",
|
4591
|
-
"version": "1.0.
|
4711
|
+
"version": "1.0.450"
|
4592
4712
|
},
|
4593
4713
|
"taggedModuleExports": []
|
4594
4714
|
}
|