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/websql';
|
|
3
3
|
import { isImportDeclaration, isNamedImports, isExportDeclaration, isNamedExports, createSourceFile, ScriptTarget, ScriptKind } from 'typescript';
|
|
4
4
|
import * as fuzzy from 'fuzzy';
|
|
5
5
|
import { Level } from 'ng2-logger/websql';
|
|
@@ -1598,7 +1598,44 @@ var UtilsDotFile;
|
|
|
1598
1598
|
};
|
|
1599
1599
|
//#endregion
|
|
1600
1600
|
//#region set value to/from dot file
|
|
1601
|
-
UtilsDotFile.setValueToDotFile = (dotFileAbsPath,
|
|
1601
|
+
UtilsDotFile.setValueToDotFile = (dotFileAbsPath, key, value) => {
|
|
1602
|
+
/* */
|
|
1603
|
+
/* */
|
|
1604
|
+
/* */
|
|
1605
|
+
/* */
|
|
1606
|
+
/* */
|
|
1607
|
+
/* */
|
|
1608
|
+
/* */
|
|
1609
|
+
/* */
|
|
1610
|
+
/* */
|
|
1611
|
+
/* */
|
|
1612
|
+
/* */
|
|
1613
|
+
/* */
|
|
1614
|
+
/* */
|
|
1615
|
+
/* */
|
|
1616
|
+
/* */
|
|
1617
|
+
/* */
|
|
1618
|
+
/* */
|
|
1619
|
+
/* */
|
|
1620
|
+
/* */
|
|
1621
|
+
/* */
|
|
1622
|
+
/* */
|
|
1623
|
+
/* */
|
|
1624
|
+
/* */
|
|
1625
|
+
/* */
|
|
1626
|
+
/* */
|
|
1627
|
+
/* */
|
|
1628
|
+
/* */
|
|
1629
|
+
/* */
|
|
1630
|
+
/* */
|
|
1631
|
+
/* */
|
|
1632
|
+
/* */
|
|
1633
|
+
return (void 0);
|
|
1634
|
+
};
|
|
1635
|
+
//#endregion
|
|
1636
|
+
//#region set comment to key in dot file
|
|
1637
|
+
UtilsDotFile.setCommentToKeyInDotFile = (dotFileAbsPath, key, comment) => {
|
|
1638
|
+
/* */
|
|
1602
1639
|
/* */
|
|
1603
1640
|
/* */
|
|
1604
1641
|
/* */
|
|
@@ -1657,11 +1694,508 @@ var UtilsDotFile;
|
|
|
1657
1694
|
/* */
|
|
1658
1695
|
/* */
|
|
1659
1696
|
/* */
|
|
1660
|
-
return (void 0);
|
|
1661
|
-
};
|
|
1662
|
-
//#endregion
|
|
1663
|
-
//#region set values keys from object
|
|
1664
|
-
UtilsDotFile.setValuesKeysFromObject = (dotFileAbsPath, obj, options) => {
|
|
1697
|
+
return (void 0);
|
|
1698
|
+
};
|
|
1699
|
+
//#endregion
|
|
1700
|
+
//#region set values keys from object
|
|
1701
|
+
UtilsDotFile.setValuesKeysFromObject = (dotFileAbsPath, obj, options) => {
|
|
1702
|
+
/* */
|
|
1703
|
+
/* */
|
|
1704
|
+
/* */
|
|
1705
|
+
/* */
|
|
1706
|
+
/* */
|
|
1707
|
+
/* */
|
|
1708
|
+
/* */
|
|
1709
|
+
/* */
|
|
1710
|
+
/* */
|
|
1711
|
+
/* */
|
|
1712
|
+
/* */
|
|
1713
|
+
/* */
|
|
1714
|
+
/* */
|
|
1715
|
+
/* */
|
|
1716
|
+
/* */
|
|
1717
|
+
/* */
|
|
1718
|
+
/* */
|
|
1719
|
+
/* */
|
|
1720
|
+
/* */
|
|
1721
|
+
/* */
|
|
1722
|
+
/* */
|
|
1723
|
+
/* */
|
|
1724
|
+
/* */
|
|
1725
|
+
return (void 0);
|
|
1726
|
+
};
|
|
1727
|
+
//#endregion
|
|
1728
|
+
//#region get values keys as json object
|
|
1729
|
+
UtilsDotFile.getValuesKeysAsJsonObject = (dotFileAbsPath) => {
|
|
1730
|
+
/* */
|
|
1731
|
+
/* */
|
|
1732
|
+
/* */
|
|
1733
|
+
/* */
|
|
1734
|
+
/* */
|
|
1735
|
+
/* */
|
|
1736
|
+
/* */
|
|
1737
|
+
/* */
|
|
1738
|
+
/* */
|
|
1739
|
+
/* */
|
|
1740
|
+
/* */
|
|
1741
|
+
/* */
|
|
1742
|
+
/* */
|
|
1743
|
+
/* */
|
|
1744
|
+
/* */
|
|
1745
|
+
/* */
|
|
1746
|
+
/* */
|
|
1747
|
+
/* */
|
|
1748
|
+
/* */
|
|
1749
|
+
/* */
|
|
1750
|
+
/* */
|
|
1751
|
+
/* */
|
|
1752
|
+
return (void 0);
|
|
1753
|
+
};
|
|
1754
|
+
//#endregion
|
|
1755
|
+
//#region get comments keys as json object
|
|
1756
|
+
/**
|
|
1757
|
+
* @returns key|comment pairs as json object
|
|
1758
|
+
*/
|
|
1759
|
+
UtilsDotFile.getCommentsKeysAsJsonObject = (dotFileAbsPath) => {
|
|
1760
|
+
/* */
|
|
1761
|
+
/* */
|
|
1762
|
+
/* */
|
|
1763
|
+
/* */
|
|
1764
|
+
/* */
|
|
1765
|
+
/* */
|
|
1766
|
+
/* */
|
|
1767
|
+
/* */
|
|
1768
|
+
/* */
|
|
1769
|
+
/* */
|
|
1770
|
+
/* */
|
|
1771
|
+
/* */
|
|
1772
|
+
/* */
|
|
1773
|
+
/* */
|
|
1774
|
+
/* */
|
|
1775
|
+
/* */
|
|
1776
|
+
/* */
|
|
1777
|
+
/* */
|
|
1778
|
+
/* */
|
|
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
|
+
return (void 0);
|
|
1836
|
+
};
|
|
1837
|
+
//#endregion
|
|
1838
|
+
})(UtilsDotFile || (UtilsDotFile = {}));
|
|
1839
|
+
//#endregion
|
|
1840
|
+
//#region utils zip browser
|
|
1841
|
+
var UtilsZipBrowser;
|
|
1842
|
+
(function (UtilsZipBrowser) {
|
|
1843
|
+
// <input type="file" id="folderInput" webkitdirectory />
|
|
1844
|
+
// ts
|
|
1845
|
+
// Copy
|
|
1846
|
+
// Edit
|
|
1847
|
+
// document.getElementById('folderInput').addEventListener('change', async (e) => {
|
|
1848
|
+
// const input = e.target as HTMLInputElement;
|
|
1849
|
+
// if (input.files) {
|
|
1850
|
+
// const zipBlob = await zipDirBrowser(input.files);
|
|
1851
|
+
// // Save the zip using FileSaver.js or URL.createObjectURL
|
|
1852
|
+
// const url = URL.createObjectURL(zipBlob);
|
|
1853
|
+
// const a = document.createElement('a');
|
|
1854
|
+
// a.href = url;
|
|
1855
|
+
// a.download = 'folder.zip';
|
|
1856
|
+
// a.click();
|
|
1857
|
+
// URL.revokeObjectURL(url);
|
|
1858
|
+
// }
|
|
1859
|
+
// });
|
|
1860
|
+
// import JSZip from 'jszip';
|
|
1861
|
+
// <input type="file" id="zipInput" />
|
|
1862
|
+
// ts
|
|
1863
|
+
// Copy
|
|
1864
|
+
// Edit
|
|
1865
|
+
// document.getElementById('zipInput').addEventListener('change', async (e) => {
|
|
1866
|
+
// const input = e.target as HTMLInputElement;
|
|
1867
|
+
// if (input.files?.[0]) {
|
|
1868
|
+
// const entries = await unzipArchiveBrowser(input.files[0]);
|
|
1869
|
+
// for (const [name, blob] of entries) {
|
|
1870
|
+
// console.log(`Extracted file: ${name}`, blob);
|
|
1871
|
+
// }
|
|
1872
|
+
// }
|
|
1873
|
+
// });
|
|
1874
|
+
UtilsZipBrowser.zipDirBrowser = async (fileList) => {
|
|
1875
|
+
// const zip = new JSZip();
|
|
1876
|
+
// for (const file of Array.from(fileList)) {
|
|
1877
|
+
// const relativePath = (file as any).webkitRelativePath || file.name;
|
|
1878
|
+
// zip.file(relativePath, file);
|
|
1879
|
+
// }
|
|
1880
|
+
// return zip.generateAsync({ type: 'blob' });
|
|
1881
|
+
return void 0;
|
|
1882
|
+
};
|
|
1883
|
+
UtilsZipBrowser.unzipArchiveBrowser = async (zipBlob) => {
|
|
1884
|
+
// const zip = await JSZip.loadAsync(zipBlob);
|
|
1885
|
+
// const files = new Map<string, Blob>();
|
|
1886
|
+
// for (const [filePath, fileObj] of Object.entries(zip.files)) {
|
|
1887
|
+
// if (!fileObj.dir) {
|
|
1888
|
+
// const content = await fileObj.async('blob');
|
|
1889
|
+
// files.set(filePath, content);
|
|
1890
|
+
// }
|
|
1891
|
+
// }
|
|
1892
|
+
// return files;
|
|
1893
|
+
return void 0;
|
|
1894
|
+
};
|
|
1895
|
+
})(UtilsZipBrowser || (UtilsZipBrowser = {}));
|
|
1896
|
+
//#endregion
|
|
1897
|
+
//#region utils zip node
|
|
1898
|
+
var UtilsZip;
|
|
1899
|
+
(function (UtilsZip) {
|
|
1900
|
+
//#region split zip file
|
|
1901
|
+
UtilsZip.splitFile7Zip = async (inputPath, partSizeMB = 99) => {
|
|
1902
|
+
/* */
|
|
1903
|
+
/* */
|
|
1904
|
+
/* */
|
|
1905
|
+
/* */
|
|
1906
|
+
/* */
|
|
1907
|
+
/* */
|
|
1908
|
+
/* */
|
|
1909
|
+
/* */
|
|
1910
|
+
/* */
|
|
1911
|
+
/* */
|
|
1912
|
+
/* */
|
|
1913
|
+
/* */
|
|
1914
|
+
/* */
|
|
1915
|
+
/* */
|
|
1916
|
+
/* */
|
|
1917
|
+
/* */
|
|
1918
|
+
/* */
|
|
1919
|
+
/* */
|
|
1920
|
+
/* */
|
|
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
|
+
return (void 0);
|
|
1949
|
+
};
|
|
1950
|
+
/**
|
|
1951
|
+
* Splits a file into smaller parts if its size exceeds the specified part size.
|
|
1952
|
+
* @returns true if file was split, false if not needed
|
|
1953
|
+
*/
|
|
1954
|
+
UtilsZip.splitFile = async (inputPath, partSizeMB = 99) => {
|
|
1955
|
+
/* */
|
|
1956
|
+
/* */
|
|
1957
|
+
/* */
|
|
1958
|
+
/* */
|
|
1959
|
+
/* */
|
|
1960
|
+
/* */
|
|
1961
|
+
/* */
|
|
1962
|
+
/* */
|
|
1963
|
+
/* */
|
|
1964
|
+
/* */
|
|
1965
|
+
/* */
|
|
1966
|
+
/* */
|
|
1967
|
+
/* */
|
|
1968
|
+
/* */
|
|
1969
|
+
/* */
|
|
1970
|
+
/* */
|
|
1971
|
+
/* */
|
|
1972
|
+
/* */
|
|
1973
|
+
/* */
|
|
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
|
+
return (void 0);
|
|
2003
|
+
};
|
|
2004
|
+
//#endregion
|
|
2005
|
+
/**
|
|
2006
|
+
* @returns absolute path to zip file
|
|
2007
|
+
*/
|
|
2008
|
+
UtilsZip.zipDir = async (absPathToDir, options) => {
|
|
2009
|
+
/* */
|
|
2010
|
+
/* */
|
|
2011
|
+
/* */
|
|
2012
|
+
/* */
|
|
2013
|
+
/* */
|
|
2014
|
+
/* */
|
|
2015
|
+
/* */
|
|
2016
|
+
/* */
|
|
2017
|
+
/* */
|
|
2018
|
+
/* */
|
|
2019
|
+
/* */
|
|
2020
|
+
/* */
|
|
2021
|
+
/* */
|
|
2022
|
+
/* */
|
|
2023
|
+
/* */
|
|
2024
|
+
/* */
|
|
2025
|
+
/* */
|
|
2026
|
+
/* */
|
|
2027
|
+
/* */
|
|
2028
|
+
/* */
|
|
2029
|
+
/* */
|
|
2030
|
+
/* */
|
|
2031
|
+
/* */
|
|
2032
|
+
/* */
|
|
2033
|
+
/* */
|
|
2034
|
+
/* */
|
|
2035
|
+
/* */
|
|
2036
|
+
/* */
|
|
2037
|
+
/* */
|
|
2038
|
+
/* */
|
|
2039
|
+
/* */
|
|
2040
|
+
/* */
|
|
2041
|
+
/* */
|
|
2042
|
+
/* */
|
|
2043
|
+
/* */
|
|
2044
|
+
/* */
|
|
2045
|
+
/* */
|
|
2046
|
+
return (void 0);
|
|
2047
|
+
};
|
|
2048
|
+
// Unzip: `/some/path/folder.zip` → `/some/path/folder`
|
|
2049
|
+
UtilsZip.unzipArchive = async (absPathToZip) => {
|
|
2050
|
+
/* */
|
|
2051
|
+
/* */
|
|
2052
|
+
/* */
|
|
2053
|
+
/* */
|
|
2054
|
+
/* */
|
|
2055
|
+
/* */
|
|
2056
|
+
/* */
|
|
2057
|
+
/* */
|
|
2058
|
+
/* */
|
|
2059
|
+
/* */
|
|
2060
|
+
/* */
|
|
2061
|
+
/* */
|
|
2062
|
+
/* */
|
|
2063
|
+
/* */
|
|
2064
|
+
/* */
|
|
2065
|
+
/* */
|
|
2066
|
+
/* */
|
|
2067
|
+
/* */
|
|
2068
|
+
/* */
|
|
2069
|
+
/* */
|
|
2070
|
+
/* */
|
|
2071
|
+
/* */
|
|
2072
|
+
/* */
|
|
2073
|
+
/* */
|
|
2074
|
+
/* */
|
|
2075
|
+
/* */
|
|
2076
|
+
/* */
|
|
2077
|
+
/* */
|
|
2078
|
+
/* */
|
|
2079
|
+
/* */
|
|
2080
|
+
return (void 0);
|
|
2081
|
+
};
|
|
2082
|
+
})(UtilsZip || (UtilsZip = {}));
|
|
2083
|
+
//#endregion
|
|
2084
|
+
//#region utils worker
|
|
2085
|
+
var UtilsTaonWorker;
|
|
2086
|
+
(function (UtilsTaonWorker) {
|
|
2087
|
+
UtilsTaonWorker.getUniqueForTask = (task, location) => {
|
|
2088
|
+
if (!location) {
|
|
2089
|
+
throw new Error('[UtilsTaonWorker.getUniqueForTask()] Location must be provided');
|
|
2090
|
+
}
|
|
2091
|
+
if (!task) {
|
|
2092
|
+
throw new Error('[UtilsTaonWorker.getUniqueForTask()] Task must be provided');
|
|
2093
|
+
}
|
|
2094
|
+
location = crossPlatformPath(location);
|
|
2095
|
+
return `task(${task?.trim()}) in ${location}`?.trim();
|
|
2096
|
+
};
|
|
2097
|
+
})(UtilsTaonWorker || (UtilsTaonWorker = {}));
|
|
2098
|
+
//#endregion
|
|
2099
|
+
//#region utils java
|
|
2100
|
+
var UtilsJava;
|
|
2101
|
+
(function (UtilsJava) {
|
|
2102
|
+
//#region select jdk version
|
|
2103
|
+
UtilsJava.selectJdkVersion = async () => {
|
|
2104
|
+
/* */
|
|
2105
|
+
/* */
|
|
2106
|
+
/* */
|
|
2107
|
+
/* */
|
|
2108
|
+
/* */
|
|
2109
|
+
/* */
|
|
2110
|
+
/* */
|
|
2111
|
+
/* */
|
|
2112
|
+
/* */
|
|
2113
|
+
/* */
|
|
2114
|
+
/* */
|
|
2115
|
+
/* */
|
|
2116
|
+
/* */
|
|
2117
|
+
/* */
|
|
2118
|
+
/* */
|
|
2119
|
+
/* */
|
|
2120
|
+
/* */
|
|
2121
|
+
/* */
|
|
2122
|
+
/* */
|
|
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
|
+
/* */
|
|
1665
2199
|
/* */
|
|
1666
2200
|
/* */
|
|
1667
2201
|
/* */
|
|
@@ -1685,11 +2219,6 @@ var UtilsDotFile;
|
|
|
1685
2219
|
/* */
|
|
1686
2220
|
/* */
|
|
1687
2221
|
/* */
|
|
1688
|
-
return (void 0);
|
|
1689
|
-
};
|
|
1690
|
-
//#endregion
|
|
1691
|
-
//#region get values keys as json object
|
|
1692
|
-
UtilsDotFile.getValuesKeysAsJsonObject = (dotFileAbsPath) => {
|
|
1693
2222
|
/* */
|
|
1694
2223
|
/* */
|
|
1695
2224
|
/* */
|
|
@@ -1712,73 +2241,6 @@ var UtilsDotFile;
|
|
|
1712
2241
|
/* */
|
|
1713
2242
|
/* */
|
|
1714
2243
|
/* */
|
|
1715
|
-
return (void 0);
|
|
1716
|
-
};
|
|
1717
|
-
//#endregion
|
|
1718
|
-
})(UtilsDotFile || (UtilsDotFile = {}));
|
|
1719
|
-
//#endregion
|
|
1720
|
-
//#region utils zip browser
|
|
1721
|
-
var UtilsZipBrowser;
|
|
1722
|
-
(function (UtilsZipBrowser) {
|
|
1723
|
-
// <input type="file" id="folderInput" webkitdirectory />
|
|
1724
|
-
// ts
|
|
1725
|
-
// Copy
|
|
1726
|
-
// Edit
|
|
1727
|
-
// document.getElementById('folderInput').addEventListener('change', async (e) => {
|
|
1728
|
-
// const input = e.target as HTMLInputElement;
|
|
1729
|
-
// if (input.files) {
|
|
1730
|
-
// const zipBlob = await zipDirBrowser(input.files);
|
|
1731
|
-
// // Save the zip using FileSaver.js or URL.createObjectURL
|
|
1732
|
-
// const url = URL.createObjectURL(zipBlob);
|
|
1733
|
-
// const a = document.createElement('a');
|
|
1734
|
-
// a.href = url;
|
|
1735
|
-
// a.download = 'folder.zip';
|
|
1736
|
-
// a.click();
|
|
1737
|
-
// URL.revokeObjectURL(url);
|
|
1738
|
-
// }
|
|
1739
|
-
// });
|
|
1740
|
-
// import JSZip from 'jszip';
|
|
1741
|
-
// <input type="file" id="zipInput" />
|
|
1742
|
-
// ts
|
|
1743
|
-
// Copy
|
|
1744
|
-
// Edit
|
|
1745
|
-
// document.getElementById('zipInput').addEventListener('change', async (e) => {
|
|
1746
|
-
// const input = e.target as HTMLInputElement;
|
|
1747
|
-
// if (input.files?.[0]) {
|
|
1748
|
-
// const entries = await unzipArchiveBrowser(input.files[0]);
|
|
1749
|
-
// for (const [name, blob] of entries) {
|
|
1750
|
-
// console.log(`Extracted file: ${name}`, blob);
|
|
1751
|
-
// }
|
|
1752
|
-
// }
|
|
1753
|
-
// });
|
|
1754
|
-
UtilsZipBrowser.zipDirBrowser = async (fileList) => {
|
|
1755
|
-
// const zip = new JSZip();
|
|
1756
|
-
// for (const file of Array.from(fileList)) {
|
|
1757
|
-
// const relativePath = (file as any).webkitRelativePath || file.name;
|
|
1758
|
-
// zip.file(relativePath, file);
|
|
1759
|
-
// }
|
|
1760
|
-
// return zip.generateAsync({ type: 'blob' });
|
|
1761
|
-
return void 0;
|
|
1762
|
-
};
|
|
1763
|
-
UtilsZipBrowser.unzipArchiveBrowser = async (zipBlob) => {
|
|
1764
|
-
// const zip = await JSZip.loadAsync(zipBlob);
|
|
1765
|
-
// const files = new Map<string, Blob>();
|
|
1766
|
-
// for (const [filePath, fileObj] of Object.entries(zip.files)) {
|
|
1767
|
-
// if (!fileObj.dir) {
|
|
1768
|
-
// const content = await fileObj.async('blob');
|
|
1769
|
-
// files.set(filePath, content);
|
|
1770
|
-
// }
|
|
1771
|
-
// }
|
|
1772
|
-
// return files;
|
|
1773
|
-
return void 0;
|
|
1774
|
-
};
|
|
1775
|
-
})(UtilsZipBrowser || (UtilsZipBrowser = {}));
|
|
1776
|
-
//#endregion
|
|
1777
|
-
//#region utils zip node
|
|
1778
|
-
var UtilsZip;
|
|
1779
|
-
(function (UtilsZip) {
|
|
1780
|
-
//#region split zip file
|
|
1781
|
-
UtilsZip.splitFile7Zip = async (inputPath, partSizeMB = 99) => {
|
|
1782
2244
|
/* */
|
|
1783
2245
|
/* */
|
|
1784
2246
|
/* */
|
|
@@ -1827,11 +2289,19 @@ var UtilsZip;
|
|
|
1827
2289
|
/* */
|
|
1828
2290
|
return (void 0);
|
|
1829
2291
|
};
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
2292
|
+
//#endregion
|
|
2293
|
+
UtilsJava.detectJavaVersionMacOS = (javaHome) => {
|
|
2294
|
+
/* */
|
|
2295
|
+
/* */
|
|
2296
|
+
/* */
|
|
2297
|
+
/* */
|
|
2298
|
+
/* */
|
|
2299
|
+
/* */
|
|
2300
|
+
/* */
|
|
2301
|
+
/* */
|
|
2302
|
+
/* */
|
|
2303
|
+
/* */
|
|
2304
|
+
/* */
|
|
1835
2305
|
/* */
|
|
1836
2306
|
/* */
|
|
1837
2307
|
/* */
|
|
@@ -1842,6 +2312,12 @@ var UtilsZip;
|
|
|
1842
2312
|
/* */
|
|
1843
2313
|
/* */
|
|
1844
2314
|
/* */
|
|
2315
|
+
/* */
|
|
2316
|
+
/* */
|
|
2317
|
+
return (void 0);
|
|
2318
|
+
};
|
|
2319
|
+
//#region update java home path
|
|
2320
|
+
UtilsJava.updateJavaHomePath = (selectedPath) => {
|
|
1845
2321
|
/* */
|
|
1846
2322
|
/* */
|
|
1847
2323
|
/* */
|
|
@@ -1882,7 +2358,43 @@ var UtilsZip;
|
|
|
1882
2358
|
return (void 0);
|
|
1883
2359
|
};
|
|
1884
2360
|
//#endregion
|
|
1885
|
-
|
|
2361
|
+
//#region api methods / selectTomcatVersion
|
|
2362
|
+
UtilsJava.selectTomcatVersion = async () => {
|
|
2363
|
+
/* */
|
|
2364
|
+
/* */
|
|
2365
|
+
/* */
|
|
2366
|
+
/* */
|
|
2367
|
+
/* */
|
|
2368
|
+
/* */
|
|
2369
|
+
/* */
|
|
2370
|
+
/* */
|
|
2371
|
+
/* */
|
|
2372
|
+
/* */
|
|
2373
|
+
/* */
|
|
2374
|
+
/* */
|
|
2375
|
+
/* */
|
|
2376
|
+
/* */
|
|
2377
|
+
/* */
|
|
2378
|
+
/* */
|
|
2379
|
+
/* */
|
|
2380
|
+
/* */
|
|
2381
|
+
/* */
|
|
2382
|
+
/* */
|
|
2383
|
+
/* */
|
|
2384
|
+
/* */
|
|
2385
|
+
/* */
|
|
2386
|
+
/* */
|
|
2387
|
+
/* */
|
|
2388
|
+
/* */
|
|
2389
|
+
/* */
|
|
2390
|
+
/* */
|
|
2391
|
+
/* */
|
|
2392
|
+
/* */
|
|
2393
|
+
/* */
|
|
2394
|
+
/* */
|
|
2395
|
+
/* */
|
|
2396
|
+
/* */
|
|
2397
|
+
/* */
|
|
1886
2398
|
/* */
|
|
1887
2399
|
/* */
|
|
1888
2400
|
/* */
|
|
@@ -1904,10 +2416,6 @@ var UtilsZip;
|
|
|
1904
2416
|
/* */
|
|
1905
2417
|
/* */
|
|
1906
2418
|
/* */
|
|
1907
|
-
return (void 0);
|
|
1908
|
-
};
|
|
1909
|
-
// Unzip: `/some/path/folder.zip` → `/some/path/folder`
|
|
1910
|
-
UtilsZip.unzipArchive = async (absPathToZip) => {
|
|
1911
2419
|
/* */
|
|
1912
2420
|
/* */
|
|
1913
2421
|
/* */
|
|
@@ -1940,7 +2448,36 @@ var UtilsZip;
|
|
|
1940
2448
|
/* */
|
|
1941
2449
|
return (void 0);
|
|
1942
2450
|
};
|
|
1943
|
-
|
|
2451
|
+
//#endregion
|
|
2452
|
+
//#region update tomcat home path
|
|
2453
|
+
UtilsJava.updateTomcatHomePath = (selectedPath) => {
|
|
2454
|
+
/* */
|
|
2455
|
+
/* */
|
|
2456
|
+
/* */
|
|
2457
|
+
/* */
|
|
2458
|
+
/* */
|
|
2459
|
+
/* */
|
|
2460
|
+
/* */
|
|
2461
|
+
/* */
|
|
2462
|
+
/* */
|
|
2463
|
+
/* */
|
|
2464
|
+
/* */
|
|
2465
|
+
/* */
|
|
2466
|
+
/* */
|
|
2467
|
+
/* */
|
|
2468
|
+
/* */
|
|
2469
|
+
/* */
|
|
2470
|
+
/* */
|
|
2471
|
+
/* */
|
|
2472
|
+
/* */
|
|
2473
|
+
/* */
|
|
2474
|
+
/* */
|
|
2475
|
+
/* */
|
|
2476
|
+
/* */
|
|
2477
|
+
return (void 0);
|
|
2478
|
+
};
|
|
2479
|
+
//#endregion
|
|
2480
|
+
})(UtilsJava || (UtilsJava = {}));
|
|
1944
2481
|
//#endregion
|
|
1945
2482
|
|
|
1946
2483
|
class HelpersArrayObj {
|
|
@@ -4013,6 +4550,8 @@ class HelpersFileFolders {
|
|
|
4013
4550
|
/* */
|
|
4014
4551
|
/* */
|
|
4015
4552
|
/* */
|
|
4553
|
+
/* */
|
|
4554
|
+
/* */
|
|
4016
4555
|
return (void 0);
|
|
4017
4556
|
}
|
|
4018
4557
|
/**
|
|
@@ -4724,7 +5263,6 @@ Port = Port_1 = __decorate([
|
|
|
4724
5263
|
})
|
|
4725
5264
|
], Port);
|
|
4726
5265
|
|
|
4727
|
-
//#endregion
|
|
4728
5266
|
class BaseCliWorkerTerminalUI {
|
|
4729
5267
|
constructor(worker) {
|
|
4730
5268
|
this.worker = worker;
|
|
@@ -4749,18 +5287,6 @@ class BaseCliWorkerTerminalUI {
|
|
|
4749
5287
|
* override whole terminal header
|
|
4750
5288
|
*/
|
|
4751
5289
|
async header() {
|
|
4752
|
-
/* */
|
|
4753
|
-
/* */
|
|
4754
|
-
/* */
|
|
4755
|
-
/* */
|
|
4756
|
-
/* */
|
|
4757
|
-
/* */
|
|
4758
|
-
/* */
|
|
4759
|
-
/* */
|
|
4760
|
-
/* */
|
|
4761
|
-
/* */
|
|
4762
|
-
/* */
|
|
4763
|
-
/* */
|
|
4764
5290
|
/* */
|
|
4765
5291
|
/* */
|
|
4766
5292
|
/* */
|
|
@@ -4784,6 +5310,7 @@ class BaseCliWorkerTerminalUI {
|
|
|
4784
5310
|
/* */
|
|
4785
5311
|
/* */
|
|
4786
5312
|
/* */
|
|
5313
|
+
/* */
|
|
4787
5314
|
return (void 0);
|
|
4788
5315
|
}
|
|
4789
5316
|
//#endregion
|
|
@@ -4930,6 +5457,8 @@ class BaseCliWorker {
|
|
|
4930
5457
|
//#endregion
|
|
4931
5458
|
//#region methods / start normally in current process
|
|
4932
5459
|
/**
|
|
5460
|
+
* <strong>IMPORTANT USE ONLY IN DEVELOPMENT !!!</strong>
|
|
5461
|
+
* for production use startDetachedIfNeedsToBeStarted()
|
|
4933
5462
|
* start normally process
|
|
4934
5463
|
* this will crash if process already started
|
|
4935
5464
|
*/
|
|
@@ -4957,7 +5486,12 @@ class BaseCliWorker {
|
|
|
4957
5486
|
}
|
|
4958
5487
|
//#endregion
|
|
4959
5488
|
//#region methods / get controller for remote connection
|
|
4960
|
-
async getControllerForRemoteConnection() {
|
|
5489
|
+
async getControllerForRemoteConnection(options) {
|
|
5490
|
+
/* */
|
|
5491
|
+
/* */
|
|
5492
|
+
/* */
|
|
5493
|
+
/* */
|
|
5494
|
+
/* */
|
|
4961
5495
|
/* */
|
|
4962
5496
|
/* */
|
|
4963
5497
|
/* */
|
|
@@ -5034,6 +5568,8 @@ class BaseCliWorker {
|
|
|
5034
5568
|
/* */
|
|
5035
5569
|
/* */
|
|
5036
5570
|
/* */
|
|
5571
|
+
/* */
|
|
5572
|
+
/* */
|
|
5037
5573
|
return (void 0);
|
|
5038
5574
|
}
|
|
5039
5575
|
//#endregion
|
|
@@ -5155,6 +5691,8 @@ class BaseCliWorker {
|
|
|
5155
5691
|
/* */
|
|
5156
5692
|
/* */
|
|
5157
5693
|
/* */
|
|
5694
|
+
/* */
|
|
5695
|
+
/* */
|
|
5158
5696
|
return (void 0);
|
|
5159
5697
|
}
|
|
5160
5698
|
//#endregion
|
|
@@ -5250,6 +5788,19 @@ class BaseCliWorker {
|
|
|
5250
5788
|
/* */
|
|
5251
5789
|
/* */
|
|
5252
5790
|
/* */
|
|
5791
|
+
/* */
|
|
5792
|
+
/* */
|
|
5793
|
+
/* */
|
|
5794
|
+
/* */
|
|
5795
|
+
/* */
|
|
5796
|
+
/* */
|
|
5797
|
+
/* */
|
|
5798
|
+
/* */
|
|
5799
|
+
/* */
|
|
5800
|
+
/* */
|
|
5801
|
+
/* */
|
|
5802
|
+
/* */
|
|
5803
|
+
/* */
|
|
5253
5804
|
return (void 0);
|
|
5254
5805
|
}
|
|
5255
5806
|
//#endregion
|
|
@@ -5344,11 +5895,14 @@ class BaseCliWorker {
|
|
|
5344
5895
|
/* */
|
|
5345
5896
|
/* */
|
|
5346
5897
|
/* */
|
|
5898
|
+
/* */
|
|
5899
|
+
/* */
|
|
5347
5900
|
return (void 0);
|
|
5348
5901
|
}
|
|
5349
5902
|
//#endregion
|
|
5350
5903
|
//#region wait for process port saved to disk
|
|
5351
|
-
async waitForProcessPortSavedToDisk() {
|
|
5904
|
+
async waitForProcessPortSavedToDisk(options) {
|
|
5905
|
+
/* */
|
|
5352
5906
|
/* */
|
|
5353
5907
|
/* */
|
|
5354
5908
|
/* */
|
|
@@ -5404,6 +5958,32 @@ class BaseCliWorker {
|
|
|
5404
5958
|
}
|
|
5405
5959
|
}
|
|
5406
5960
|
|
|
5961
|
+
/**
|
|
5962
|
+
* Get taon service database config
|
|
5963
|
+
* (database is stored in user's home directory)
|
|
5964
|
+
* @param serviceNameUniqueInSystem - unique name of the service in the system
|
|
5965
|
+
* @param recreateMode - mode of database recreation, default is 'DROP_DB+MIGRATIONS'
|
|
5966
|
+
* @returns DatabaseConfig object with location and recreateMode
|
|
5967
|
+
*/
|
|
5968
|
+
const getBaseCliWorkerDatabaseConfig = (serviceNameUniqueInSystem, recreateMode = 'DROP_DB+MIGRATIONS') => {
|
|
5969
|
+
/* */
|
|
5970
|
+
/* */
|
|
5971
|
+
/* */
|
|
5972
|
+
/* */
|
|
5973
|
+
/* */
|
|
5974
|
+
/* */
|
|
5975
|
+
/* */
|
|
5976
|
+
/* */
|
|
5977
|
+
/* */
|
|
5978
|
+
/* */
|
|
5979
|
+
/* */
|
|
5980
|
+
/* */
|
|
5981
|
+
/* */
|
|
5982
|
+
/* */
|
|
5983
|
+
/* */
|
|
5984
|
+
return (void 0);
|
|
5985
|
+
};
|
|
5986
|
+
|
|
5407
5987
|
//#region base worker config
|
|
5408
5988
|
class BaseCliWorkerConfig {
|
|
5409
5989
|
static from(opt) {
|
|
@@ -6013,15 +6593,6 @@ const MIGRATIONS_CLASSES_FOR_PortsContext = {
|
|
|
6013
6593
|
|
|
6014
6594
|
//@ts-nocheck
|
|
6015
6595
|
|
|
6016
|
-
/* */
|
|
6017
|
-
/* */
|
|
6018
|
-
/* */
|
|
6019
|
-
/* */
|
|
6020
|
-
/* */
|
|
6021
|
-
/* */
|
|
6022
|
-
/* */
|
|
6023
|
-
/* */
|
|
6024
|
-
/* */
|
|
6025
6596
|
const PortsContextTemplate = Taon.createContextTemplate(() => ({
|
|
6026
6597
|
contextName: 'PortsContext',
|
|
6027
6598
|
appId: 'dev.taon.taon-ports-worker',
|
|
@@ -6030,11 +6601,7 @@ const PortsContextTemplate = Taon.createContextTemplate(() => ({
|
|
|
6030
6601
|
entities: { Port },
|
|
6031
6602
|
migrations: { ...MIGRATIONS_CLASSES_FOR_PortsContext },
|
|
6032
6603
|
skipWritingServerRoutes: true,
|
|
6033
|
-
|
|
6034
|
-
/* */
|
|
6035
|
-
/* */
|
|
6036
|
-
/* */
|
|
6037
|
-
/* */
|
|
6604
|
+
...getBaseCliWorkerDatabaseConfig('ports-worker', 'DROP_DB+MIGRATIONS'),
|
|
6038
6605
|
logs: {
|
|
6039
6606
|
migrations: true,
|
|
6040
6607
|
},
|
|
@@ -6110,6 +6677,8 @@ class TcpUdpPortsTerminalUI extends BaseCliWorkerTerminalUI {
|
|
|
6110
6677
|
/* */
|
|
6111
6678
|
/* */
|
|
6112
6679
|
/* */
|
|
6680
|
+
/* */
|
|
6681
|
+
/* */
|
|
6113
6682
|
return (void 0);
|
|
6114
6683
|
}
|
|
6115
6684
|
//#endregion
|
|
@@ -6161,6 +6730,8 @@ class TcpUdpPortsTerminalUI extends BaseCliWorkerTerminalUI {
|
|
|
6161
6730
|
/* */
|
|
6162
6731
|
/* */
|
|
6163
6732
|
/* */
|
|
6733
|
+
/* */
|
|
6734
|
+
/* */
|
|
6164
6735
|
return (void 0);
|
|
6165
6736
|
}
|
|
6166
6737
|
//#endregion
|
|
@@ -6204,6 +6775,8 @@ class TcpUdpPortsTerminalUI extends BaseCliWorkerTerminalUI {
|
|
|
6204
6775
|
/* */
|
|
6205
6776
|
/* */
|
|
6206
6777
|
/* */
|
|
6778
|
+
/* */
|
|
6779
|
+
/* */
|
|
6207
6780
|
return (void 0);
|
|
6208
6781
|
}
|
|
6209
6782
|
//#endregion
|
|
@@ -6274,6 +6847,8 @@ class TcpUdpPortsTerminalUI extends BaseCliWorkerTerminalUI {
|
|
|
6274
6847
|
/* */
|
|
6275
6848
|
/* */
|
|
6276
6849
|
/* */
|
|
6850
|
+
/* */
|
|
6851
|
+
/* */
|
|
6277
6852
|
return (void 0);
|
|
6278
6853
|
}
|
|
6279
6854
|
//#endregion
|
|
@@ -6314,6 +6889,8 @@ class TcpUdpPortsTerminalUI extends BaseCliWorkerTerminalUI {
|
|
|
6314
6889
|
/* */
|
|
6315
6890
|
/* */
|
|
6316
6891
|
/* */
|
|
6892
|
+
/* */
|
|
6893
|
+
/* */
|
|
6317
6894
|
return (void 0);
|
|
6318
6895
|
}
|
|
6319
6896
|
}
|
|
@@ -6348,7 +6925,7 @@ const PROJECT_NPM_NAME = 'tnp-helpers';
|
|
|
6348
6925
|
/**
|
|
6349
6926
|
* Autogenerated by current cli tool. Use *tnp release* to bump version.
|
|
6350
6927
|
*/
|
|
6351
|
-
const CURRENT_PACKAGE_VERSION = '19.0.
|
|
6928
|
+
const CURRENT_PACKAGE_VERSION = '19.0.46';
|
|
6352
6929
|
// THIS FILE IS GENERATED - DO NOT MODIFY
|
|
6353
6930
|
|
|
6354
6931
|
//#endregion
|
|
@@ -7319,7 +7896,7 @@ class BaseProject {
|
|
|
7319
7896
|
return (void 0);
|
|
7320
7897
|
}
|
|
7321
7898
|
getUniqueForTask(task) {
|
|
7322
|
-
return
|
|
7899
|
+
return UtilsTaonWorker.getUniqueForTask(task, this.location);
|
|
7323
7900
|
}
|
|
7324
7901
|
async registerAndAssignPort(taskName, options) {
|
|
7325
7902
|
/* */
|
|
@@ -7346,6 +7923,9 @@ class BaseProject {
|
|
|
7346
7923
|
/* */
|
|
7347
7924
|
/* */
|
|
7348
7925
|
/* */
|
|
7926
|
+
/* */
|
|
7927
|
+
/* */
|
|
7928
|
+
/* */
|
|
7349
7929
|
return (void 0);
|
|
7350
7930
|
}
|
|
7351
7931
|
//#region methods & getters / assign free port to project instance
|
|
@@ -12212,6 +12792,7 @@ class BaseReleaseProcess extends BaseFeatureForProject {
|
|
|
12212
12792
|
/* */
|
|
12213
12793
|
/* */
|
|
12214
12794
|
/* */
|
|
12795
|
+
/* */
|
|
12215
12796
|
return (void 0);
|
|
12216
12797
|
}
|
|
12217
12798
|
//#region methods & getters / publish to npm
|
|
@@ -14380,7 +14961,6 @@ class CoreProject {
|
|
|
14380
14961
|
const CoreTypescriptProject = CoreProject.from({
|
|
14381
14962
|
//#region configuration
|
|
14382
14963
|
branches: ['master', 'develop'],
|
|
14383
|
-
urlHttp: 'https://github.com/microsoft/TypeScript',
|
|
14384
14964
|
environments: [],
|
|
14385
14965
|
recognizedFn: project => {
|
|
14386
14966
|
/* */
|
|
@@ -14418,7 +14998,6 @@ const CoreAngularProject = CoreProject.from({
|
|
|
14418
14998
|
//#region configuration
|
|
14419
14999
|
extends: CoreTypescriptProject,
|
|
14420
15000
|
branches: ['master', 'develop'],
|
|
14421
|
-
urlHttp: 'https://github.com/angular/angular-cli',
|
|
14422
15001
|
environments: [],
|
|
14423
15002
|
recognizedFn: project => {
|
|
14424
15003
|
return project.hasFile('angular.json');
|
|
@@ -15357,5 +15936,5 @@ const Helpers = HelpersTaon.Instance;
|
|
|
15357
15936
|
* Generated bundle index. Do not edit.
|
|
15358
15937
|
*/
|
|
15359
15938
|
|
|
15360
|
-
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 };
|
|
15939
|
+
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 };
|
|
15361
15940
|
//# sourceMappingURL=tnp-helpers.mjs.map
|