tnp-helpers 19.0.44 → 19.0.46
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/browser/fesm2022/tnp-helpers.mjs +703 -124
- package/browser/fesm2022/tnp-helpers.mjs.map +1 -1
- package/browser/lib/base/classes/base-cli-worker/base-cli-worker-database-config.d.ts +10 -0
- package/browser/lib/base/classes/base-cli-worker/base-cli-worker-terminal-ui.d.ts +10 -9
- package/browser/lib/base/classes/base-cli-worker/base-cli-worker.d.ts +9 -3
- package/browser/lib/base/classes/base-cli-worker/index.d.ts +1 -0
- package/browser/lib/base/classes/base-java-jdk.d.ts +1 -1
- package/browser/lib/base/tcp-udp-ports/tcp-upd-ports-terminal-ui.d.ts +2 -2
- package/browser/lib/build-info._auto-generated_.d.ts +1 -1
- package/browser/lib/helpers/for-backend/helpers-file-folders.d.ts +1 -1
- package/browser/lib/models.d.ts +0 -2
- package/browser/lib/utils.d.ts +51 -29
- package/browser/package.json +1 -1
- package/lib/base/classes/base-cli-worker/base-cli-worker-database-config.d.ts +14 -0
- package/lib/base/classes/base-cli-worker/base-cli-worker-database-config.js +31 -0
- package/lib/base/classes/base-cli-worker/base-cli-worker-database-config.js.map +1 -0
- package/lib/base/classes/base-cli-worker/base-cli-worker-terminal-ui.d.ts +11 -10
- package/lib/base/classes/base-cli-worker/base-cli-worker-terminal-ui.js +3 -15
- package/lib/base/classes/base-cli-worker/base-cli-worker-terminal-ui.js.map +1 -1
- package/lib/base/classes/base-cli-worker/base-cli-worker.d.ts +9 -3
- package/lib/base/classes/base-cli-worker/base-cli-worker.js +32 -10
- package/lib/base/classes/base-cli-worker/base-cli-worker.js.map +1 -1
- package/lib/base/classes/base-cli-worker/index.d.ts +1 -0
- package/lib/base/classes/base-cli-worker/index.js +1 -0
- package/lib/base/classes/base-cli-worker/index.js.map +1 -1
- package/lib/base/classes/base-global-command-line.backend.d.ts +5 -0
- package/lib/base/classes/base-global-command-line.backend.js +156 -7
- package/lib/base/classes/base-global-command-line.backend.js.map +1 -1
- package/lib/base/classes/base-java-jdk.d.ts +1 -1
- package/lib/base/classes/base-java-jdk.js +5 -261
- package/lib/base/classes/base-java-jdk.js.map +1 -1
- package/lib/base/classes/base-project.js +6 -2
- package/lib/base/classes/base-project.js.map +1 -1
- package/lib/base/classes/base-release-process.js +2 -2
- package/lib/base/classes/base-release-process.js.map +1 -1
- package/lib/base/core-project.js +0 -2
- package/lib/base/core-project.js.map +1 -1
- package/lib/base/tcp-udp-ports/not-assignable-port.entity.js +2 -2
- package/lib/base/tcp-udp-ports/tcp-udp-ports.context.js +2 -18
- package/lib/base/tcp-udp-ports/tcp-udp-ports.context.js.map +1 -1
- package/lib/base/tcp-udp-ports/tcp-upd-ports-terminal-ui.d.ts +3 -3
- package/lib/base/tcp-udp-ports/tcp-upd-ports-terminal-ui.js +15 -5
- package/lib/base/tcp-udp-ports/tcp-upd-ports-terminal-ui.js.map +1 -1
- package/lib/build-info._auto-generated_.d.ts +1 -1
- package/lib/build-info._auto-generated_.js +1 -1
- package/lib/helpers/for-backend/helpers-file-folders.d.ts +1 -1
- package/lib/helpers/for-backend/helpers-file-folders.js +2 -0
- package/lib/helpers/for-backend/helpers-file-folders.js.map +1 -1
- package/lib/helpers/for-browser/angular.helper.js +2 -2
- package/lib/models.d.ts +0 -2
- package/lib/models.js.map +1 -1
- package/lib/old/base-component.js +2 -2
- package/lib/old/base-formly-component.js +2 -2
- package/lib/old/dual-component-ctrl.js +2 -2
- package/lib/utils.d.ts +51 -29
- package/lib/utils.js +476 -4
- package/lib/utils.js.map +1 -1
- package/package.json +1 -1
- package/tmp-environment.json +11 -7
- package/websql/fesm2022/tnp-helpers.mjs +703 -124
- package/websql/fesm2022/tnp-helpers.mjs.map +1 -1
- package/websql/lib/base/classes/base-cli-worker/base-cli-worker-database-config.d.ts +10 -0
- package/websql/lib/base/classes/base-cli-worker/base-cli-worker-terminal-ui.d.ts +10 -9
- package/websql/lib/base/classes/base-cli-worker/base-cli-worker.d.ts +9 -3
- package/websql/lib/base/classes/base-cli-worker/index.d.ts +1 -0
- package/websql/lib/base/classes/base-java-jdk.d.ts +1 -1
- package/websql/lib/base/tcp-udp-ports/tcp-upd-ports-terminal-ui.d.ts +2 -2
- package/websql/lib/build-info._auto-generated_.d.ts +1 -1
- package/websql/lib/helpers/for-backend/helpers-file-folders.d.ts +1 -1
- package/websql/lib/models.d.ts +0 -2
- package/websql/lib/utils.d.ts +51 -29
- package/websql/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Subject } from 'rxjs';
|
|
2
|
-
import { CoreModels, Utils, _, CoreHelpers, Helpers as Helpers$1, UtilsTerminal,
|
|
2
|
+
import { CoreModels, Utils, crossPlatformPath, _, CoreHelpers, Helpers as Helpers$1, UtilsTerminal, path, fse, chalk } from 'tnp-core/browser';
|
|
3
3
|
import * as fuzzy from 'fuzzy';
|
|
4
4
|
import { Level } from 'ng2-logger/browser';
|
|
5
5
|
import { CLASS } from 'typescript-class-helpers/browser';
|
|
@@ -1617,7 +1617,44 @@ var UtilsDotFile;
|
|
|
1617
1617
|
};
|
|
1618
1618
|
//#endregion
|
|
1619
1619
|
//#region set value to/from dot file
|
|
1620
|
-
UtilsDotFile.setValueToDotFile = (dotFileAbsPath,
|
|
1620
|
+
UtilsDotFile.setValueToDotFile = (dotFileAbsPath, key, value) => {
|
|
1621
|
+
/* */
|
|
1622
|
+
/* */
|
|
1623
|
+
/* */
|
|
1624
|
+
/* */
|
|
1625
|
+
/* */
|
|
1626
|
+
/* */
|
|
1627
|
+
/* */
|
|
1628
|
+
/* */
|
|
1629
|
+
/* */
|
|
1630
|
+
/* */
|
|
1631
|
+
/* */
|
|
1632
|
+
/* */
|
|
1633
|
+
/* */
|
|
1634
|
+
/* */
|
|
1635
|
+
/* */
|
|
1636
|
+
/* */
|
|
1637
|
+
/* */
|
|
1638
|
+
/* */
|
|
1639
|
+
/* */
|
|
1640
|
+
/* */
|
|
1641
|
+
/* */
|
|
1642
|
+
/* */
|
|
1643
|
+
/* */
|
|
1644
|
+
/* */
|
|
1645
|
+
/* */
|
|
1646
|
+
/* */
|
|
1647
|
+
/* */
|
|
1648
|
+
/* */
|
|
1649
|
+
/* */
|
|
1650
|
+
/* */
|
|
1651
|
+
/* */
|
|
1652
|
+
return (void 0);
|
|
1653
|
+
};
|
|
1654
|
+
//#endregion
|
|
1655
|
+
//#region set comment to key in dot file
|
|
1656
|
+
UtilsDotFile.setCommentToKeyInDotFile = (dotFileAbsPath, key, comment) => {
|
|
1657
|
+
/* */
|
|
1621
1658
|
/* */
|
|
1622
1659
|
/* */
|
|
1623
1660
|
/* */
|
|
@@ -1676,11 +1713,508 @@ var UtilsDotFile;
|
|
|
1676
1713
|
/* */
|
|
1677
1714
|
/* */
|
|
1678
1715
|
/* */
|
|
1679
|
-
return (void 0);
|
|
1680
|
-
};
|
|
1681
|
-
//#endregion
|
|
1682
|
-
//#region set values keys from object
|
|
1683
|
-
UtilsDotFile.setValuesKeysFromObject = (dotFileAbsPath, obj, options) => {
|
|
1716
|
+
return (void 0);
|
|
1717
|
+
};
|
|
1718
|
+
//#endregion
|
|
1719
|
+
//#region set values keys from object
|
|
1720
|
+
UtilsDotFile.setValuesKeysFromObject = (dotFileAbsPath, obj, options) => {
|
|
1721
|
+
/* */
|
|
1722
|
+
/* */
|
|
1723
|
+
/* */
|
|
1724
|
+
/* */
|
|
1725
|
+
/* */
|
|
1726
|
+
/* */
|
|
1727
|
+
/* */
|
|
1728
|
+
/* */
|
|
1729
|
+
/* */
|
|
1730
|
+
/* */
|
|
1731
|
+
/* */
|
|
1732
|
+
/* */
|
|
1733
|
+
/* */
|
|
1734
|
+
/* */
|
|
1735
|
+
/* */
|
|
1736
|
+
/* */
|
|
1737
|
+
/* */
|
|
1738
|
+
/* */
|
|
1739
|
+
/* */
|
|
1740
|
+
/* */
|
|
1741
|
+
/* */
|
|
1742
|
+
/* */
|
|
1743
|
+
/* */
|
|
1744
|
+
return (void 0);
|
|
1745
|
+
};
|
|
1746
|
+
//#endregion
|
|
1747
|
+
//#region get values keys as json object
|
|
1748
|
+
UtilsDotFile.getValuesKeysAsJsonObject = (dotFileAbsPath) => {
|
|
1749
|
+
/* */
|
|
1750
|
+
/* */
|
|
1751
|
+
/* */
|
|
1752
|
+
/* */
|
|
1753
|
+
/* */
|
|
1754
|
+
/* */
|
|
1755
|
+
/* */
|
|
1756
|
+
/* */
|
|
1757
|
+
/* */
|
|
1758
|
+
/* */
|
|
1759
|
+
/* */
|
|
1760
|
+
/* */
|
|
1761
|
+
/* */
|
|
1762
|
+
/* */
|
|
1763
|
+
/* */
|
|
1764
|
+
/* */
|
|
1765
|
+
/* */
|
|
1766
|
+
/* */
|
|
1767
|
+
/* */
|
|
1768
|
+
/* */
|
|
1769
|
+
/* */
|
|
1770
|
+
/* */
|
|
1771
|
+
return (void 0);
|
|
1772
|
+
};
|
|
1773
|
+
//#endregion
|
|
1774
|
+
//#region get comments keys as json object
|
|
1775
|
+
/**
|
|
1776
|
+
* @returns key|comment pairs as json object
|
|
1777
|
+
*/
|
|
1778
|
+
UtilsDotFile.getCommentsKeysAsJsonObject = (dotFileAbsPath) => {
|
|
1779
|
+
/* */
|
|
1780
|
+
/* */
|
|
1781
|
+
/* */
|
|
1782
|
+
/* */
|
|
1783
|
+
/* */
|
|
1784
|
+
/* */
|
|
1785
|
+
/* */
|
|
1786
|
+
/* */
|
|
1787
|
+
/* */
|
|
1788
|
+
/* */
|
|
1789
|
+
/* */
|
|
1790
|
+
/* */
|
|
1791
|
+
/* */
|
|
1792
|
+
/* */
|
|
1793
|
+
/* */
|
|
1794
|
+
/* */
|
|
1795
|
+
/* */
|
|
1796
|
+
/* */
|
|
1797
|
+
/* */
|
|
1798
|
+
/* */
|
|
1799
|
+
/* */
|
|
1800
|
+
/* */
|
|
1801
|
+
/* */
|
|
1802
|
+
/* */
|
|
1803
|
+
/* */
|
|
1804
|
+
/* */
|
|
1805
|
+
/* */
|
|
1806
|
+
/* */
|
|
1807
|
+
/* */
|
|
1808
|
+
/* */
|
|
1809
|
+
/* */
|
|
1810
|
+
/* */
|
|
1811
|
+
/* */
|
|
1812
|
+
/* */
|
|
1813
|
+
/* */
|
|
1814
|
+
/* */
|
|
1815
|
+
/* */
|
|
1816
|
+
/* */
|
|
1817
|
+
/* */
|
|
1818
|
+
/* */
|
|
1819
|
+
/* */
|
|
1820
|
+
/* */
|
|
1821
|
+
/* */
|
|
1822
|
+
/* */
|
|
1823
|
+
/* */
|
|
1824
|
+
/* */
|
|
1825
|
+
/* */
|
|
1826
|
+
/* */
|
|
1827
|
+
/* */
|
|
1828
|
+
/* */
|
|
1829
|
+
/* */
|
|
1830
|
+
/* */
|
|
1831
|
+
/* */
|
|
1832
|
+
/* */
|
|
1833
|
+
/* */
|
|
1834
|
+
/* */
|
|
1835
|
+
/* */
|
|
1836
|
+
/* */
|
|
1837
|
+
/* */
|
|
1838
|
+
/* */
|
|
1839
|
+
/* */
|
|
1840
|
+
/* */
|
|
1841
|
+
/* */
|
|
1842
|
+
/* */
|
|
1843
|
+
/* */
|
|
1844
|
+
/* */
|
|
1845
|
+
/* */
|
|
1846
|
+
/* */
|
|
1847
|
+
/* */
|
|
1848
|
+
/* */
|
|
1849
|
+
/* */
|
|
1850
|
+
/* */
|
|
1851
|
+
/* */
|
|
1852
|
+
/* */
|
|
1853
|
+
/* */
|
|
1854
|
+
return (void 0);
|
|
1855
|
+
};
|
|
1856
|
+
//#endregion
|
|
1857
|
+
})(UtilsDotFile || (UtilsDotFile = {}));
|
|
1858
|
+
//#endregion
|
|
1859
|
+
//#region utils zip browser
|
|
1860
|
+
var UtilsZipBrowser;
|
|
1861
|
+
(function (UtilsZipBrowser) {
|
|
1862
|
+
// <input type="file" id="folderInput" webkitdirectory />
|
|
1863
|
+
// ts
|
|
1864
|
+
// Copy
|
|
1865
|
+
// Edit
|
|
1866
|
+
// document.getElementById('folderInput').addEventListener('change', async (e) => {
|
|
1867
|
+
// const input = e.target as HTMLInputElement;
|
|
1868
|
+
// if (input.files) {
|
|
1869
|
+
// const zipBlob = await zipDirBrowser(input.files);
|
|
1870
|
+
// // Save the zip using FileSaver.js or URL.createObjectURL
|
|
1871
|
+
// const url = URL.createObjectURL(zipBlob);
|
|
1872
|
+
// const a = document.createElement('a');
|
|
1873
|
+
// a.href = url;
|
|
1874
|
+
// a.download = 'folder.zip';
|
|
1875
|
+
// a.click();
|
|
1876
|
+
// URL.revokeObjectURL(url);
|
|
1877
|
+
// }
|
|
1878
|
+
// });
|
|
1879
|
+
// import JSZip from 'jszip';
|
|
1880
|
+
// <input type="file" id="zipInput" />
|
|
1881
|
+
// ts
|
|
1882
|
+
// Copy
|
|
1883
|
+
// Edit
|
|
1884
|
+
// document.getElementById('zipInput').addEventListener('change', async (e) => {
|
|
1885
|
+
// const input = e.target as HTMLInputElement;
|
|
1886
|
+
// if (input.files?.[0]) {
|
|
1887
|
+
// const entries = await unzipArchiveBrowser(input.files[0]);
|
|
1888
|
+
// for (const [name, blob] of entries) {
|
|
1889
|
+
// console.log(`Extracted file: ${name}`, blob);
|
|
1890
|
+
// }
|
|
1891
|
+
// }
|
|
1892
|
+
// });
|
|
1893
|
+
UtilsZipBrowser.zipDirBrowser = async (fileList) => {
|
|
1894
|
+
// const zip = new JSZip();
|
|
1895
|
+
// for (const file of Array.from(fileList)) {
|
|
1896
|
+
// const relativePath = (file as any).webkitRelativePath || file.name;
|
|
1897
|
+
// zip.file(relativePath, file);
|
|
1898
|
+
// }
|
|
1899
|
+
// return zip.generateAsync({ type: 'blob' });
|
|
1900
|
+
return void 0;
|
|
1901
|
+
};
|
|
1902
|
+
UtilsZipBrowser.unzipArchiveBrowser = async (zipBlob) => {
|
|
1903
|
+
// const zip = await JSZip.loadAsync(zipBlob);
|
|
1904
|
+
// const files = new Map<string, Blob>();
|
|
1905
|
+
// for (const [filePath, fileObj] of Object.entries(zip.files)) {
|
|
1906
|
+
// if (!fileObj.dir) {
|
|
1907
|
+
// const content = await fileObj.async('blob');
|
|
1908
|
+
// files.set(filePath, content);
|
|
1909
|
+
// }
|
|
1910
|
+
// }
|
|
1911
|
+
// return files;
|
|
1912
|
+
return void 0;
|
|
1913
|
+
};
|
|
1914
|
+
})(UtilsZipBrowser || (UtilsZipBrowser = {}));
|
|
1915
|
+
//#endregion
|
|
1916
|
+
//#region utils zip node
|
|
1917
|
+
var UtilsZip;
|
|
1918
|
+
(function (UtilsZip) {
|
|
1919
|
+
//#region split zip file
|
|
1920
|
+
UtilsZip.splitFile7Zip = async (inputPath, partSizeMB = 99) => {
|
|
1921
|
+
/* */
|
|
1922
|
+
/* */
|
|
1923
|
+
/* */
|
|
1924
|
+
/* */
|
|
1925
|
+
/* */
|
|
1926
|
+
/* */
|
|
1927
|
+
/* */
|
|
1928
|
+
/* */
|
|
1929
|
+
/* */
|
|
1930
|
+
/* */
|
|
1931
|
+
/* */
|
|
1932
|
+
/* */
|
|
1933
|
+
/* */
|
|
1934
|
+
/* */
|
|
1935
|
+
/* */
|
|
1936
|
+
/* */
|
|
1937
|
+
/* */
|
|
1938
|
+
/* */
|
|
1939
|
+
/* */
|
|
1940
|
+
/* */
|
|
1941
|
+
/* */
|
|
1942
|
+
/* */
|
|
1943
|
+
/* */
|
|
1944
|
+
/* */
|
|
1945
|
+
/* */
|
|
1946
|
+
/* */
|
|
1947
|
+
/* */
|
|
1948
|
+
/* */
|
|
1949
|
+
/* */
|
|
1950
|
+
/* */
|
|
1951
|
+
/* */
|
|
1952
|
+
/* */
|
|
1953
|
+
/* */
|
|
1954
|
+
/* */
|
|
1955
|
+
/* */
|
|
1956
|
+
/* */
|
|
1957
|
+
/* */
|
|
1958
|
+
/* */
|
|
1959
|
+
/* */
|
|
1960
|
+
/* */
|
|
1961
|
+
/* */
|
|
1962
|
+
/* */
|
|
1963
|
+
/* */
|
|
1964
|
+
/* */
|
|
1965
|
+
/* */
|
|
1966
|
+
/* */
|
|
1967
|
+
return (void 0);
|
|
1968
|
+
};
|
|
1969
|
+
/**
|
|
1970
|
+
* Splits a file into smaller parts if its size exceeds the specified part size.
|
|
1971
|
+
* @returns true if file was split, false if not needed
|
|
1972
|
+
*/
|
|
1973
|
+
UtilsZip.splitFile = async (inputPath, partSizeMB = 99) => {
|
|
1974
|
+
/* */
|
|
1975
|
+
/* */
|
|
1976
|
+
/* */
|
|
1977
|
+
/* */
|
|
1978
|
+
/* */
|
|
1979
|
+
/* */
|
|
1980
|
+
/* */
|
|
1981
|
+
/* */
|
|
1982
|
+
/* */
|
|
1983
|
+
/* */
|
|
1984
|
+
/* */
|
|
1985
|
+
/* */
|
|
1986
|
+
/* */
|
|
1987
|
+
/* */
|
|
1988
|
+
/* */
|
|
1989
|
+
/* */
|
|
1990
|
+
/* */
|
|
1991
|
+
/* */
|
|
1992
|
+
/* */
|
|
1993
|
+
/* */
|
|
1994
|
+
/* */
|
|
1995
|
+
/* */
|
|
1996
|
+
/* */
|
|
1997
|
+
/* */
|
|
1998
|
+
/* */
|
|
1999
|
+
/* */
|
|
2000
|
+
/* */
|
|
2001
|
+
/* */
|
|
2002
|
+
/* */
|
|
2003
|
+
/* */
|
|
2004
|
+
/* */
|
|
2005
|
+
/* */
|
|
2006
|
+
/* */
|
|
2007
|
+
/* */
|
|
2008
|
+
/* */
|
|
2009
|
+
/* */
|
|
2010
|
+
/* */
|
|
2011
|
+
/* */
|
|
2012
|
+
/* */
|
|
2013
|
+
/* */
|
|
2014
|
+
/* */
|
|
2015
|
+
/* */
|
|
2016
|
+
/* */
|
|
2017
|
+
/* */
|
|
2018
|
+
/* */
|
|
2019
|
+
/* */
|
|
2020
|
+
/* */
|
|
2021
|
+
return (void 0);
|
|
2022
|
+
};
|
|
2023
|
+
//#endregion
|
|
2024
|
+
/**
|
|
2025
|
+
* @returns absolute path to zip file
|
|
2026
|
+
*/
|
|
2027
|
+
UtilsZip.zipDir = async (absPathToDir, options) => {
|
|
2028
|
+
/* */
|
|
2029
|
+
/* */
|
|
2030
|
+
/* */
|
|
2031
|
+
/* */
|
|
2032
|
+
/* */
|
|
2033
|
+
/* */
|
|
2034
|
+
/* */
|
|
2035
|
+
/* */
|
|
2036
|
+
/* */
|
|
2037
|
+
/* */
|
|
2038
|
+
/* */
|
|
2039
|
+
/* */
|
|
2040
|
+
/* */
|
|
2041
|
+
/* */
|
|
2042
|
+
/* */
|
|
2043
|
+
/* */
|
|
2044
|
+
/* */
|
|
2045
|
+
/* */
|
|
2046
|
+
/* */
|
|
2047
|
+
/* */
|
|
2048
|
+
/* */
|
|
2049
|
+
/* */
|
|
2050
|
+
/* */
|
|
2051
|
+
/* */
|
|
2052
|
+
/* */
|
|
2053
|
+
/* */
|
|
2054
|
+
/* */
|
|
2055
|
+
/* */
|
|
2056
|
+
/* */
|
|
2057
|
+
/* */
|
|
2058
|
+
/* */
|
|
2059
|
+
/* */
|
|
2060
|
+
/* */
|
|
2061
|
+
/* */
|
|
2062
|
+
/* */
|
|
2063
|
+
/* */
|
|
2064
|
+
/* */
|
|
2065
|
+
return (void 0);
|
|
2066
|
+
};
|
|
2067
|
+
// Unzip: `/some/path/folder.zip` → `/some/path/folder`
|
|
2068
|
+
UtilsZip.unzipArchive = async (absPathToZip) => {
|
|
2069
|
+
/* */
|
|
2070
|
+
/* */
|
|
2071
|
+
/* */
|
|
2072
|
+
/* */
|
|
2073
|
+
/* */
|
|
2074
|
+
/* */
|
|
2075
|
+
/* */
|
|
2076
|
+
/* */
|
|
2077
|
+
/* */
|
|
2078
|
+
/* */
|
|
2079
|
+
/* */
|
|
2080
|
+
/* */
|
|
2081
|
+
/* */
|
|
2082
|
+
/* */
|
|
2083
|
+
/* */
|
|
2084
|
+
/* */
|
|
2085
|
+
/* */
|
|
2086
|
+
/* */
|
|
2087
|
+
/* */
|
|
2088
|
+
/* */
|
|
2089
|
+
/* */
|
|
2090
|
+
/* */
|
|
2091
|
+
/* */
|
|
2092
|
+
/* */
|
|
2093
|
+
/* */
|
|
2094
|
+
/* */
|
|
2095
|
+
/* */
|
|
2096
|
+
/* */
|
|
2097
|
+
/* */
|
|
2098
|
+
/* */
|
|
2099
|
+
return (void 0);
|
|
2100
|
+
};
|
|
2101
|
+
})(UtilsZip || (UtilsZip = {}));
|
|
2102
|
+
//#endregion
|
|
2103
|
+
//#region utils worker
|
|
2104
|
+
var UtilsTaonWorker;
|
|
2105
|
+
(function (UtilsTaonWorker) {
|
|
2106
|
+
UtilsTaonWorker.getUniqueForTask = (task, location) => {
|
|
2107
|
+
if (!location) {
|
|
2108
|
+
throw new Error('[UtilsTaonWorker.getUniqueForTask()] Location must be provided');
|
|
2109
|
+
}
|
|
2110
|
+
if (!task) {
|
|
2111
|
+
throw new Error('[UtilsTaonWorker.getUniqueForTask()] Task must be provided');
|
|
2112
|
+
}
|
|
2113
|
+
location = crossPlatformPath(location);
|
|
2114
|
+
return `task(${task?.trim()}) in ${location}`?.trim();
|
|
2115
|
+
};
|
|
2116
|
+
})(UtilsTaonWorker || (UtilsTaonWorker = {}));
|
|
2117
|
+
//#endregion
|
|
2118
|
+
//#region utils java
|
|
2119
|
+
var UtilsJava;
|
|
2120
|
+
(function (UtilsJava) {
|
|
2121
|
+
//#region select jdk version
|
|
2122
|
+
UtilsJava.selectJdkVersion = async () => {
|
|
2123
|
+
/* */
|
|
2124
|
+
/* */
|
|
2125
|
+
/* */
|
|
2126
|
+
/* */
|
|
2127
|
+
/* */
|
|
2128
|
+
/* */
|
|
2129
|
+
/* */
|
|
2130
|
+
/* */
|
|
2131
|
+
/* */
|
|
2132
|
+
/* */
|
|
2133
|
+
/* */
|
|
2134
|
+
/* */
|
|
2135
|
+
/* */
|
|
2136
|
+
/* */
|
|
2137
|
+
/* */
|
|
2138
|
+
/* */
|
|
2139
|
+
/* */
|
|
2140
|
+
/* */
|
|
2141
|
+
/* */
|
|
2142
|
+
/* */
|
|
2143
|
+
/* */
|
|
2144
|
+
/* */
|
|
2145
|
+
/* */
|
|
2146
|
+
/* */
|
|
2147
|
+
/* */
|
|
2148
|
+
/* */
|
|
2149
|
+
/* */
|
|
2150
|
+
/* */
|
|
2151
|
+
/* */
|
|
2152
|
+
/* */
|
|
2153
|
+
/* */
|
|
2154
|
+
/* */
|
|
2155
|
+
/* */
|
|
2156
|
+
/* */
|
|
2157
|
+
/* */
|
|
2158
|
+
/* */
|
|
2159
|
+
/* */
|
|
2160
|
+
/* */
|
|
2161
|
+
/* */
|
|
2162
|
+
/* */
|
|
2163
|
+
/* */
|
|
2164
|
+
/* */
|
|
2165
|
+
/* */
|
|
2166
|
+
/* */
|
|
2167
|
+
/* */
|
|
2168
|
+
/* */
|
|
2169
|
+
/* */
|
|
2170
|
+
/* */
|
|
2171
|
+
/* */
|
|
2172
|
+
/* */
|
|
2173
|
+
/* */
|
|
2174
|
+
/* */
|
|
2175
|
+
/* */
|
|
2176
|
+
/* */
|
|
2177
|
+
/* */
|
|
2178
|
+
/* */
|
|
2179
|
+
/* */
|
|
2180
|
+
/* */
|
|
2181
|
+
/* */
|
|
2182
|
+
/* */
|
|
2183
|
+
/* */
|
|
2184
|
+
/* */
|
|
2185
|
+
/* */
|
|
2186
|
+
/* */
|
|
2187
|
+
/* */
|
|
2188
|
+
/* */
|
|
2189
|
+
/* */
|
|
2190
|
+
/* */
|
|
2191
|
+
/* */
|
|
2192
|
+
/* */
|
|
2193
|
+
/* */
|
|
2194
|
+
/* */
|
|
2195
|
+
/* */
|
|
2196
|
+
/* */
|
|
2197
|
+
/* */
|
|
2198
|
+
/* */
|
|
2199
|
+
/* */
|
|
2200
|
+
/* */
|
|
2201
|
+
/* */
|
|
2202
|
+
/* */
|
|
2203
|
+
/* */
|
|
2204
|
+
/* */
|
|
2205
|
+
/* */
|
|
2206
|
+
/* */
|
|
2207
|
+
/* */
|
|
2208
|
+
/* */
|
|
2209
|
+
/* */
|
|
2210
|
+
/* */
|
|
2211
|
+
/* */
|
|
2212
|
+
/* */
|
|
2213
|
+
/* */
|
|
2214
|
+
/* */
|
|
2215
|
+
/* */
|
|
2216
|
+
/* */
|
|
2217
|
+
/* */
|
|
1684
2218
|
/* */
|
|
1685
2219
|
/* */
|
|
1686
2220
|
/* */
|
|
@@ -1704,11 +2238,6 @@ var UtilsDotFile;
|
|
|
1704
2238
|
/* */
|
|
1705
2239
|
/* */
|
|
1706
2240
|
/* */
|
|
1707
|
-
return (void 0);
|
|
1708
|
-
};
|
|
1709
|
-
//#endregion
|
|
1710
|
-
//#region get values keys as json object
|
|
1711
|
-
UtilsDotFile.getValuesKeysAsJsonObject = (dotFileAbsPath) => {
|
|
1712
2241
|
/* */
|
|
1713
2242
|
/* */
|
|
1714
2243
|
/* */
|
|
@@ -1731,73 +2260,6 @@ var UtilsDotFile;
|
|
|
1731
2260
|
/* */
|
|
1732
2261
|
/* */
|
|
1733
2262
|
/* */
|
|
1734
|
-
return (void 0);
|
|
1735
|
-
};
|
|
1736
|
-
//#endregion
|
|
1737
|
-
})(UtilsDotFile || (UtilsDotFile = {}));
|
|
1738
|
-
//#endregion
|
|
1739
|
-
//#region utils zip browser
|
|
1740
|
-
var UtilsZipBrowser;
|
|
1741
|
-
(function (UtilsZipBrowser) {
|
|
1742
|
-
// <input type="file" id="folderInput" webkitdirectory />
|
|
1743
|
-
// ts
|
|
1744
|
-
// Copy
|
|
1745
|
-
// Edit
|
|
1746
|
-
// document.getElementById('folderInput').addEventListener('change', async (e) => {
|
|
1747
|
-
// const input = e.target as HTMLInputElement;
|
|
1748
|
-
// if (input.files) {
|
|
1749
|
-
// const zipBlob = await zipDirBrowser(input.files);
|
|
1750
|
-
// // Save the zip using FileSaver.js or URL.createObjectURL
|
|
1751
|
-
// const url = URL.createObjectURL(zipBlob);
|
|
1752
|
-
// const a = document.createElement('a');
|
|
1753
|
-
// a.href = url;
|
|
1754
|
-
// a.download = 'folder.zip';
|
|
1755
|
-
// a.click();
|
|
1756
|
-
// URL.revokeObjectURL(url);
|
|
1757
|
-
// }
|
|
1758
|
-
// });
|
|
1759
|
-
// import JSZip from 'jszip';
|
|
1760
|
-
// <input type="file" id="zipInput" />
|
|
1761
|
-
// ts
|
|
1762
|
-
// Copy
|
|
1763
|
-
// Edit
|
|
1764
|
-
// document.getElementById('zipInput').addEventListener('change', async (e) => {
|
|
1765
|
-
// const input = e.target as HTMLInputElement;
|
|
1766
|
-
// if (input.files?.[0]) {
|
|
1767
|
-
// const entries = await unzipArchiveBrowser(input.files[0]);
|
|
1768
|
-
// for (const [name, blob] of entries) {
|
|
1769
|
-
// console.log(`Extracted file: ${name}`, blob);
|
|
1770
|
-
// }
|
|
1771
|
-
// }
|
|
1772
|
-
// });
|
|
1773
|
-
UtilsZipBrowser.zipDirBrowser = async (fileList) => {
|
|
1774
|
-
// const zip = new JSZip();
|
|
1775
|
-
// for (const file of Array.from(fileList)) {
|
|
1776
|
-
// const relativePath = (file as any).webkitRelativePath || file.name;
|
|
1777
|
-
// zip.file(relativePath, file);
|
|
1778
|
-
// }
|
|
1779
|
-
// return zip.generateAsync({ type: 'blob' });
|
|
1780
|
-
return void 0;
|
|
1781
|
-
};
|
|
1782
|
-
UtilsZipBrowser.unzipArchiveBrowser = async (zipBlob) => {
|
|
1783
|
-
// const zip = await JSZip.loadAsync(zipBlob);
|
|
1784
|
-
// const files = new Map<string, Blob>();
|
|
1785
|
-
// for (const [filePath, fileObj] of Object.entries(zip.files)) {
|
|
1786
|
-
// if (!fileObj.dir) {
|
|
1787
|
-
// const content = await fileObj.async('blob');
|
|
1788
|
-
// files.set(filePath, content);
|
|
1789
|
-
// }
|
|
1790
|
-
// }
|
|
1791
|
-
// return files;
|
|
1792
|
-
return void 0;
|
|
1793
|
-
};
|
|
1794
|
-
})(UtilsZipBrowser || (UtilsZipBrowser = {}));
|
|
1795
|
-
//#endregion
|
|
1796
|
-
//#region utils zip node
|
|
1797
|
-
var UtilsZip;
|
|
1798
|
-
(function (UtilsZip) {
|
|
1799
|
-
//#region split zip file
|
|
1800
|
-
UtilsZip.splitFile7Zip = async (inputPath, partSizeMB = 99) => {
|
|
1801
2263
|
/* */
|
|
1802
2264
|
/* */
|
|
1803
2265
|
/* */
|
|
@@ -1846,11 +2308,19 @@ var UtilsZip;
|
|
|
1846
2308
|
/* */
|
|
1847
2309
|
return (void 0);
|
|
1848
2310
|
};
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
2311
|
+
//#endregion
|
|
2312
|
+
UtilsJava.detectJavaVersionMacOS = (javaHome) => {
|
|
2313
|
+
/* */
|
|
2314
|
+
/* */
|
|
2315
|
+
/* */
|
|
2316
|
+
/* */
|
|
2317
|
+
/* */
|
|
2318
|
+
/* */
|
|
2319
|
+
/* */
|
|
2320
|
+
/* */
|
|
2321
|
+
/* */
|
|
2322
|
+
/* */
|
|
2323
|
+
/* */
|
|
1854
2324
|
/* */
|
|
1855
2325
|
/* */
|
|
1856
2326
|
/* */
|
|
@@ -1861,6 +2331,12 @@ var UtilsZip;
|
|
|
1861
2331
|
/* */
|
|
1862
2332
|
/* */
|
|
1863
2333
|
/* */
|
|
2334
|
+
/* */
|
|
2335
|
+
/* */
|
|
2336
|
+
return (void 0);
|
|
2337
|
+
};
|
|
2338
|
+
//#region update java home path
|
|
2339
|
+
UtilsJava.updateJavaHomePath = (selectedPath) => {
|
|
1864
2340
|
/* */
|
|
1865
2341
|
/* */
|
|
1866
2342
|
/* */
|
|
@@ -1901,7 +2377,43 @@ var UtilsZip;
|
|
|
1901
2377
|
return (void 0);
|
|
1902
2378
|
};
|
|
1903
2379
|
//#endregion
|
|
1904
|
-
|
|
2380
|
+
//#region api methods / selectTomcatVersion
|
|
2381
|
+
UtilsJava.selectTomcatVersion = async () => {
|
|
2382
|
+
/* */
|
|
2383
|
+
/* */
|
|
2384
|
+
/* */
|
|
2385
|
+
/* */
|
|
2386
|
+
/* */
|
|
2387
|
+
/* */
|
|
2388
|
+
/* */
|
|
2389
|
+
/* */
|
|
2390
|
+
/* */
|
|
2391
|
+
/* */
|
|
2392
|
+
/* */
|
|
2393
|
+
/* */
|
|
2394
|
+
/* */
|
|
2395
|
+
/* */
|
|
2396
|
+
/* */
|
|
2397
|
+
/* */
|
|
2398
|
+
/* */
|
|
2399
|
+
/* */
|
|
2400
|
+
/* */
|
|
2401
|
+
/* */
|
|
2402
|
+
/* */
|
|
2403
|
+
/* */
|
|
2404
|
+
/* */
|
|
2405
|
+
/* */
|
|
2406
|
+
/* */
|
|
2407
|
+
/* */
|
|
2408
|
+
/* */
|
|
2409
|
+
/* */
|
|
2410
|
+
/* */
|
|
2411
|
+
/* */
|
|
2412
|
+
/* */
|
|
2413
|
+
/* */
|
|
2414
|
+
/* */
|
|
2415
|
+
/* */
|
|
2416
|
+
/* */
|
|
1905
2417
|
/* */
|
|
1906
2418
|
/* */
|
|
1907
2419
|
/* */
|
|
@@ -1923,10 +2435,6 @@ var UtilsZip;
|
|
|
1923
2435
|
/* */
|
|
1924
2436
|
/* */
|
|
1925
2437
|
/* */
|
|
1926
|
-
return (void 0);
|
|
1927
|
-
};
|
|
1928
|
-
// Unzip: `/some/path/folder.zip` → `/some/path/folder`
|
|
1929
|
-
UtilsZip.unzipArchive = async (absPathToZip) => {
|
|
1930
2438
|
/* */
|
|
1931
2439
|
/* */
|
|
1932
2440
|
/* */
|
|
@@ -1959,7 +2467,36 @@ var UtilsZip;
|
|
|
1959
2467
|
/* */
|
|
1960
2468
|
return (void 0);
|
|
1961
2469
|
};
|
|
1962
|
-
|
|
2470
|
+
//#endregion
|
|
2471
|
+
//#region update tomcat home path
|
|
2472
|
+
UtilsJava.updateTomcatHomePath = (selectedPath) => {
|
|
2473
|
+
/* */
|
|
2474
|
+
/* */
|
|
2475
|
+
/* */
|
|
2476
|
+
/* */
|
|
2477
|
+
/* */
|
|
2478
|
+
/* */
|
|
2479
|
+
/* */
|
|
2480
|
+
/* */
|
|
2481
|
+
/* */
|
|
2482
|
+
/* */
|
|
2483
|
+
/* */
|
|
2484
|
+
/* */
|
|
2485
|
+
/* */
|
|
2486
|
+
/* */
|
|
2487
|
+
/* */
|
|
2488
|
+
/* */
|
|
2489
|
+
/* */
|
|
2490
|
+
/* */
|
|
2491
|
+
/* */
|
|
2492
|
+
/* */
|
|
2493
|
+
/* */
|
|
2494
|
+
/* */
|
|
2495
|
+
/* */
|
|
2496
|
+
return (void 0);
|
|
2497
|
+
};
|
|
2498
|
+
//#endregion
|
|
2499
|
+
})(UtilsJava || (UtilsJava = {}));
|
|
1963
2500
|
//#endregion
|
|
1964
2501
|
|
|
1965
2502
|
class HelpersArrayObj {
|
|
@@ -4032,6 +4569,8 @@ class HelpersFileFolders {
|
|
|
4032
4569
|
/* */
|
|
4033
4570
|
/* */
|
|
4034
4571
|
/* */
|
|
4572
|
+
/* */
|
|
4573
|
+
/* */
|
|
4035
4574
|
return (void 0);
|
|
4036
4575
|
}
|
|
4037
4576
|
/**
|
|
@@ -4712,7 +5251,6 @@ Port = Port_1 = __decorate([
|
|
|
4712
5251
|
})
|
|
4713
5252
|
], Port);
|
|
4714
5253
|
|
|
4715
|
-
//#endregion
|
|
4716
5254
|
class BaseCliWorkerTerminalUI {
|
|
4717
5255
|
constructor(worker) {
|
|
4718
5256
|
this.worker = worker;
|
|
@@ -4737,18 +5275,6 @@ class BaseCliWorkerTerminalUI {
|
|
|
4737
5275
|
* override whole terminal header
|
|
4738
5276
|
*/
|
|
4739
5277
|
async header() {
|
|
4740
|
-
/* */
|
|
4741
|
-
/* */
|
|
4742
|
-
/* */
|
|
4743
|
-
/* */
|
|
4744
|
-
/* */
|
|
4745
|
-
/* */
|
|
4746
|
-
/* */
|
|
4747
|
-
/* */
|
|
4748
|
-
/* */
|
|
4749
|
-
/* */
|
|
4750
|
-
/* */
|
|
4751
|
-
/* */
|
|
4752
5278
|
/* */
|
|
4753
5279
|
/* */
|
|
4754
5280
|
/* */
|
|
@@ -4772,6 +5298,7 @@ class BaseCliWorkerTerminalUI {
|
|
|
4772
5298
|
/* */
|
|
4773
5299
|
/* */
|
|
4774
5300
|
/* */
|
|
5301
|
+
/* */
|
|
4775
5302
|
return (void 0);
|
|
4776
5303
|
}
|
|
4777
5304
|
//#endregion
|
|
@@ -4918,6 +5445,8 @@ class BaseCliWorker {
|
|
|
4918
5445
|
//#endregion
|
|
4919
5446
|
//#region methods / start normally in current process
|
|
4920
5447
|
/**
|
|
5448
|
+
* <strong>IMPORTANT USE ONLY IN DEVELOPMENT !!!</strong>
|
|
5449
|
+
* for production use startDetachedIfNeedsToBeStarted()
|
|
4921
5450
|
* start normally process
|
|
4922
5451
|
* this will crash if process already started
|
|
4923
5452
|
*/
|
|
@@ -4945,7 +5474,12 @@ class BaseCliWorker {
|
|
|
4945
5474
|
}
|
|
4946
5475
|
//#endregion
|
|
4947
5476
|
//#region methods / get controller for remote connection
|
|
4948
|
-
async getControllerForRemoteConnection() {
|
|
5477
|
+
async getControllerForRemoteConnection(options) {
|
|
5478
|
+
/* */
|
|
5479
|
+
/* */
|
|
5480
|
+
/* */
|
|
5481
|
+
/* */
|
|
5482
|
+
/* */
|
|
4949
5483
|
/* */
|
|
4950
5484
|
/* */
|
|
4951
5485
|
/* */
|
|
@@ -5022,6 +5556,8 @@ class BaseCliWorker {
|
|
|
5022
5556
|
/* */
|
|
5023
5557
|
/* */
|
|
5024
5558
|
/* */
|
|
5559
|
+
/* */
|
|
5560
|
+
/* */
|
|
5025
5561
|
return (void 0);
|
|
5026
5562
|
}
|
|
5027
5563
|
//#endregion
|
|
@@ -5143,6 +5679,8 @@ class BaseCliWorker {
|
|
|
5143
5679
|
/* */
|
|
5144
5680
|
/* */
|
|
5145
5681
|
/* */
|
|
5682
|
+
/* */
|
|
5683
|
+
/* */
|
|
5146
5684
|
return (void 0);
|
|
5147
5685
|
}
|
|
5148
5686
|
//#endregion
|
|
@@ -5238,6 +5776,19 @@ class BaseCliWorker {
|
|
|
5238
5776
|
/* */
|
|
5239
5777
|
/* */
|
|
5240
5778
|
/* */
|
|
5779
|
+
/* */
|
|
5780
|
+
/* */
|
|
5781
|
+
/* */
|
|
5782
|
+
/* */
|
|
5783
|
+
/* */
|
|
5784
|
+
/* */
|
|
5785
|
+
/* */
|
|
5786
|
+
/* */
|
|
5787
|
+
/* */
|
|
5788
|
+
/* */
|
|
5789
|
+
/* */
|
|
5790
|
+
/* */
|
|
5791
|
+
/* */
|
|
5241
5792
|
return (void 0);
|
|
5242
5793
|
}
|
|
5243
5794
|
//#endregion
|
|
@@ -5332,11 +5883,14 @@ class BaseCliWorker {
|
|
|
5332
5883
|
/* */
|
|
5333
5884
|
/* */
|
|
5334
5885
|
/* */
|
|
5886
|
+
/* */
|
|
5887
|
+
/* */
|
|
5335
5888
|
return (void 0);
|
|
5336
5889
|
}
|
|
5337
5890
|
//#endregion
|
|
5338
5891
|
//#region wait for process port saved to disk
|
|
5339
|
-
async waitForProcessPortSavedToDisk() {
|
|
5892
|
+
async waitForProcessPortSavedToDisk(options) {
|
|
5893
|
+
/* */
|
|
5340
5894
|
/* */
|
|
5341
5895
|
/* */
|
|
5342
5896
|
/* */
|
|
@@ -5392,6 +5946,32 @@ class BaseCliWorker {
|
|
|
5392
5946
|
}
|
|
5393
5947
|
}
|
|
5394
5948
|
|
|
5949
|
+
/**
|
|
5950
|
+
* Get taon service database config
|
|
5951
|
+
* (database is stored in user's home directory)
|
|
5952
|
+
* @param serviceNameUniqueInSystem - unique name of the service in the system
|
|
5953
|
+
* @param recreateMode - mode of database recreation, default is 'DROP_DB+MIGRATIONS'
|
|
5954
|
+
* @returns DatabaseConfig object with location and recreateMode
|
|
5955
|
+
*/
|
|
5956
|
+
const getBaseCliWorkerDatabaseConfig = (serviceNameUniqueInSystem, recreateMode = 'DROP_DB+MIGRATIONS') => {
|
|
5957
|
+
/* */
|
|
5958
|
+
/* */
|
|
5959
|
+
/* */
|
|
5960
|
+
/* */
|
|
5961
|
+
/* */
|
|
5962
|
+
/* */
|
|
5963
|
+
/* */
|
|
5964
|
+
/* */
|
|
5965
|
+
/* */
|
|
5966
|
+
/* */
|
|
5967
|
+
/* */
|
|
5968
|
+
/* */
|
|
5969
|
+
/* */
|
|
5970
|
+
/* */
|
|
5971
|
+
/* */
|
|
5972
|
+
return (void 0);
|
|
5973
|
+
};
|
|
5974
|
+
|
|
5395
5975
|
//#region base worker config
|
|
5396
5976
|
class BaseCliWorkerConfig {
|
|
5397
5977
|
static from(opt) {
|
|
@@ -6001,15 +6581,6 @@ const MIGRATIONS_CLASSES_FOR_PortsContext = {
|
|
|
6001
6581
|
|
|
6002
6582
|
//@ts-nocheck
|
|
6003
6583
|
|
|
6004
|
-
/* */
|
|
6005
|
-
/* */
|
|
6006
|
-
/* */
|
|
6007
|
-
/* */
|
|
6008
|
-
/* */
|
|
6009
|
-
/* */
|
|
6010
|
-
/* */
|
|
6011
|
-
/* */
|
|
6012
|
-
/* */
|
|
6013
6584
|
const PortsContextTemplate = Taon.createContextTemplate(() => ({
|
|
6014
6585
|
contextName: 'PortsContext',
|
|
6015
6586
|
appId: 'dev.taon.taon-ports-worker',
|
|
@@ -6018,11 +6589,7 @@ const PortsContextTemplate = Taon.createContextTemplate(() => ({
|
|
|
6018
6589
|
entities: { Port },
|
|
6019
6590
|
migrations: { ...MIGRATIONS_CLASSES_FOR_PortsContext },
|
|
6020
6591
|
skipWritingServerRoutes: true,
|
|
6021
|
-
|
|
6022
|
-
/* */
|
|
6023
|
-
/* */
|
|
6024
|
-
/* */
|
|
6025
|
-
/* */
|
|
6592
|
+
...getBaseCliWorkerDatabaseConfig('ports-worker', 'DROP_DB+MIGRATIONS'),
|
|
6026
6593
|
logs: {
|
|
6027
6594
|
migrations: true,
|
|
6028
6595
|
},
|
|
@@ -6098,6 +6665,8 @@ class TcpUdpPortsTerminalUI extends BaseCliWorkerTerminalUI {
|
|
|
6098
6665
|
/* */
|
|
6099
6666
|
/* */
|
|
6100
6667
|
/* */
|
|
6668
|
+
/* */
|
|
6669
|
+
/* */
|
|
6101
6670
|
return (void 0);
|
|
6102
6671
|
}
|
|
6103
6672
|
//#endregion
|
|
@@ -6149,6 +6718,8 @@ class TcpUdpPortsTerminalUI extends BaseCliWorkerTerminalUI {
|
|
|
6149
6718
|
/* */
|
|
6150
6719
|
/* */
|
|
6151
6720
|
/* */
|
|
6721
|
+
/* */
|
|
6722
|
+
/* */
|
|
6152
6723
|
return (void 0);
|
|
6153
6724
|
}
|
|
6154
6725
|
//#endregion
|
|
@@ -6192,6 +6763,8 @@ class TcpUdpPortsTerminalUI extends BaseCliWorkerTerminalUI {
|
|
|
6192
6763
|
/* */
|
|
6193
6764
|
/* */
|
|
6194
6765
|
/* */
|
|
6766
|
+
/* */
|
|
6767
|
+
/* */
|
|
6195
6768
|
return (void 0);
|
|
6196
6769
|
}
|
|
6197
6770
|
//#endregion
|
|
@@ -6262,6 +6835,8 @@ class TcpUdpPortsTerminalUI extends BaseCliWorkerTerminalUI {
|
|
|
6262
6835
|
/* */
|
|
6263
6836
|
/* */
|
|
6264
6837
|
/* */
|
|
6838
|
+
/* */
|
|
6839
|
+
/* */
|
|
6265
6840
|
return (void 0);
|
|
6266
6841
|
}
|
|
6267
6842
|
//#endregion
|
|
@@ -6302,6 +6877,8 @@ class TcpUdpPortsTerminalUI extends BaseCliWorkerTerminalUI {
|
|
|
6302
6877
|
/* */
|
|
6303
6878
|
/* */
|
|
6304
6879
|
/* */
|
|
6880
|
+
/* */
|
|
6881
|
+
/* */
|
|
6305
6882
|
return (void 0);
|
|
6306
6883
|
}
|
|
6307
6884
|
}
|
|
@@ -6336,7 +6913,7 @@ const PROJECT_NPM_NAME = 'tnp-helpers';
|
|
|
6336
6913
|
/**
|
|
6337
6914
|
* Autogenerated by current cli tool. Use *tnp release* to bump version.
|
|
6338
6915
|
*/
|
|
6339
|
-
const CURRENT_PACKAGE_VERSION = '19.0.
|
|
6916
|
+
const CURRENT_PACKAGE_VERSION = '19.0.46';
|
|
6340
6917
|
// THIS FILE IS GENERATED - DO NOT MODIFY
|
|
6341
6918
|
|
|
6342
6919
|
//#endregion
|
|
@@ -7325,7 +7902,7 @@ class BaseProject {
|
|
|
7325
7902
|
return (void 0);
|
|
7326
7903
|
}
|
|
7327
7904
|
getUniqueForTask(task) {
|
|
7328
|
-
return
|
|
7905
|
+
return UtilsTaonWorker.getUniqueForTask(task, this.location);
|
|
7329
7906
|
}
|
|
7330
7907
|
async registerAndAssignPort(taskName, options) {
|
|
7331
7908
|
/* */
|
|
@@ -7352,6 +7929,9 @@ class BaseProject {
|
|
|
7352
7929
|
/* */
|
|
7353
7930
|
/* */
|
|
7354
7931
|
/* */
|
|
7932
|
+
/* */
|
|
7933
|
+
/* */
|
|
7934
|
+
/* */
|
|
7355
7935
|
return (void 0);
|
|
7356
7936
|
}
|
|
7357
7937
|
//#region methods & getters / assign free port to project instance
|
|
@@ -12218,6 +12798,7 @@ class BaseReleaseProcess extends BaseFeatureForProject {
|
|
|
12218
12798
|
/* */
|
|
12219
12799
|
/* */
|
|
12220
12800
|
/* */
|
|
12801
|
+
/* */
|
|
12221
12802
|
return (void 0);
|
|
12222
12803
|
}
|
|
12223
12804
|
//#region methods & getters / publish to npm
|
|
@@ -14386,7 +14967,6 @@ class CoreProject {
|
|
|
14386
14967
|
const CoreTypescriptProject = CoreProject.from({
|
|
14387
14968
|
//#region configuration
|
|
14388
14969
|
branches: ['master', 'develop'],
|
|
14389
|
-
urlHttp: 'https://github.com/microsoft/TypeScript',
|
|
14390
14970
|
environments: [],
|
|
14391
14971
|
recognizedFn: project => {
|
|
14392
14972
|
/* */
|
|
@@ -14424,7 +15004,6 @@ const CoreAngularProject = CoreProject.from({
|
|
|
14424
15004
|
//#region configuration
|
|
14425
15005
|
extends: CoreTypescriptProject,
|
|
14426
15006
|
branches: ['master', 'develop'],
|
|
14427
|
-
urlHttp: 'https://github.com/angular/angular-cli',
|
|
14428
15007
|
environments: [],
|
|
14429
15008
|
recognizedFn: project => {
|
|
14430
15009
|
return project.hasFile('angular.json');
|
|
@@ -15363,5 +15942,5 @@ const Helpers = HelpersTaon.Instance;
|
|
|
15363
15942
|
* Generated bundle index. Do not edit.
|
|
15364
15943
|
*/
|
|
15365
15944
|
|
|
15366
|
-
export { BaseCliWorker, BaseCliWorkerConfig, BaseCliWorkerController, BaseCliWorkerTerminalUI, BaseCommandLineFeature, BaseCompilerForProject, BaseDebounceCompilerForProject, BaseFeatureForProject, BaseGit, BaseJsonFileReader, BaseLibraryBuild, BaseLinkedProjects, BaseNodeModules, BaseNpmHelpers, BasePackageJson, BaseProcessManger, BaseProject, BaseProjectResolver, BaseProjectTypeArr, BaseQuickFixes, BaseReleaseProcess, BaseVscodeHelpers, CommandConfig, CommandProcess, CommandProcessState, CommitData, CoreAngularProject, CoreProject, CoreTypescriptProject, Helpers, HelpersAngular, LinkedPorjectsConfig, LinkedProject, PackageJsonDependencyObjArr, Port, PortStatusArr, PortsController, PortsWorker, ProgressData, UtilsDotFile, UtilsHttp, UtilsMd, UtilsNpm, UtilsQuickFixes, UtilsTypescript, UtilsVSCode, UtilsZip, UtilsZipBrowser, executeCommand };
|
|
15945
|
+
export { BaseCliWorker, BaseCliWorkerConfig, BaseCliWorkerController, BaseCliWorkerTerminalUI, BaseCommandLineFeature, BaseCompilerForProject, BaseDebounceCompilerForProject, BaseFeatureForProject, BaseGit, BaseJsonFileReader, BaseLibraryBuild, BaseLinkedProjects, BaseNodeModules, BaseNpmHelpers, BasePackageJson, BaseProcessManger, BaseProject, BaseProjectResolver, BaseProjectTypeArr, BaseQuickFixes, BaseReleaseProcess, BaseVscodeHelpers, CommandConfig, CommandProcess, CommandProcessState, CommitData, CoreAngularProject, CoreProject, CoreTypescriptProject, Helpers, HelpersAngular, LinkedPorjectsConfig, LinkedProject, PackageJsonDependencyObjArr, Port, PortStatusArr, PortsController, PortsWorker, ProgressData, UtilsDotFile, UtilsHttp, UtilsJava, UtilsMd, UtilsNpm, UtilsQuickFixes, UtilsTaonWorker, UtilsTypescript, UtilsVSCode, UtilsZip, UtilsZipBrowser, executeCommand, getBaseCliWorkerDatabaseConfig };
|
|
15367
15946
|
//# sourceMappingURL=tnp-helpers.mjs.map
|