tnp-helpers 19.0.53 → 19.0.55
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 +5 -275
- package/browser/fesm2022/tnp-helpers.mjs.map +1 -1
- package/browser/lib/base/tcp-udp-ports/tcp-udp-ports.context.d.ts +6 -0
- package/browser/lib/build-info._auto-generated_.d.ts +1 -1
- package/browser/lib/utils.d.ts +0 -16
- package/browser/package.json +1 -1
- package/lib/base/classes/base-cli-worker/base-cli-worker.js +9 -10
- package/lib/base/classes/base-cli-worker/base-cli-worker.js.map +1 -1
- package/lib/base/classes/base-docker.js +3 -4
- package/lib/base/classes/base-docker.js.map +1 -1
- package/lib/base/classes/base-global-command-line.backend.js +4 -4
- package/lib/base/classes/base-global-command-line.backend.js.map +1 -1
- package/lib/base/classes/base-project.js +58 -57
- package/lib/base/classes/base-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.d.ts +6 -0
- package/lib/build-info._auto-generated_.d.ts +1 -1
- package/lib/build-info._auto-generated_.js +1 -1
- package/lib/env-backend._auto-generated_.d.ts +34 -0
- package/lib/env-backend._auto-generated_.js +38 -0
- package/lib/env-backend._auto-generated_.js.map +1 -0
- package/lib/env-browser._auto-generated_.d.ts +34 -0
- package/lib/env-browser._auto-generated_.js +38 -0
- package/lib/env-browser._auto-generated_.js.map +1 -0
- package/lib/env.backend.d.ts +34 -0
- package/lib/env.backend.js +40 -0
- package/lib/env.backend.js.map +1 -0
- package/lib/env.browser.d.ts +34 -0
- package/lib/helpers/for-backend/helpers-dependencies.backend.d.ts +0 -1
- package/lib/helpers/for-backend/helpers-dependencies.backend.js +0 -27
- package/lib/helpers/for-backend/helpers-dependencies.backend.js.map +1 -1
- package/lib/helpers/for-backend/helpers-git.backend.js +12 -1
- package/lib/helpers/for-backend/helpers-git.backend.js.map +1 -1
- package/lib/helpers/for-browser/angular.helper.js +2 -2
- 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 +0 -16
- package/lib/utils.js +1 -221
- package/lib/utils.js.map +1 -1
- package/lib/validators/validators-git.js.map +1 -1
- package/package.json +1 -1
- package/tmp-environment.json +2 -2
- package/websql/fesm2022/tnp-helpers.mjs +5 -275
- package/websql/fesm2022/tnp-helpers.mjs.map +1 -1
- package/websql/lib/base/tcp-udp-ports/tcp-udp-ports.context.d.ts +6 -0
- package/websql/lib/build-info._auto-generated_.d.ts +1 -1
- package/websql/lib/utils.d.ts +0 -16
- package/websql/package.json +1 -1
- package/lib/base/classes/base-file-operations.d.ts +0 -0
- package/lib/base/classes/base-file-operations.js +0 -5
- package/lib/base/classes/base-file-operations.js.map +0 -1
|
@@ -1621,275 +1621,6 @@ var UtilsVSCode;
|
|
|
1621
1621
|
};
|
|
1622
1622
|
})(UtilsVSCode || (UtilsVSCode = {}));
|
|
1623
1623
|
//#endregion
|
|
1624
|
-
//#region utils dot file
|
|
1625
|
-
var UtilsDotFile;
|
|
1626
|
-
(function (UtilsDotFile) {
|
|
1627
|
-
//#region parse value from dot file util
|
|
1628
|
-
const parseValue = (rawValue) => {
|
|
1629
|
-
const val = rawValue.trim().replace(/^"|"$/g, '');
|
|
1630
|
-
// Try boolean
|
|
1631
|
-
if (val.toLowerCase() === 'true')
|
|
1632
|
-
return true;
|
|
1633
|
-
if (val.toLowerCase() === 'false')
|
|
1634
|
-
return false;
|
|
1635
|
-
// Try number
|
|
1636
|
-
if (!isNaN(Number(val)) && val !== '')
|
|
1637
|
-
return Number(val);
|
|
1638
|
-
return val;
|
|
1639
|
-
};
|
|
1640
|
-
//#endregion
|
|
1641
|
-
//#region set value to/from dot file
|
|
1642
|
-
UtilsDotFile.setValueToDotFile = (dotFileAbsPath, key, value) => {
|
|
1643
|
-
/* */
|
|
1644
|
-
/* */
|
|
1645
|
-
/* */
|
|
1646
|
-
/* */
|
|
1647
|
-
/* */
|
|
1648
|
-
/* */
|
|
1649
|
-
/* */
|
|
1650
|
-
/* */
|
|
1651
|
-
/* */
|
|
1652
|
-
/* */
|
|
1653
|
-
/* */
|
|
1654
|
-
/* */
|
|
1655
|
-
/* */
|
|
1656
|
-
/* */
|
|
1657
|
-
/* */
|
|
1658
|
-
/* */
|
|
1659
|
-
/* */
|
|
1660
|
-
/* */
|
|
1661
|
-
/* */
|
|
1662
|
-
/* */
|
|
1663
|
-
/* */
|
|
1664
|
-
/* */
|
|
1665
|
-
/* */
|
|
1666
|
-
/* */
|
|
1667
|
-
/* */
|
|
1668
|
-
/* */
|
|
1669
|
-
/* */
|
|
1670
|
-
/* */
|
|
1671
|
-
/* */
|
|
1672
|
-
/* */
|
|
1673
|
-
/* */
|
|
1674
|
-
/* */
|
|
1675
|
-
/* */
|
|
1676
|
-
/* */
|
|
1677
|
-
/* */
|
|
1678
|
-
return (void 0);
|
|
1679
|
-
};
|
|
1680
|
-
//#endregion
|
|
1681
|
-
//#region set comment to key in dot file
|
|
1682
|
-
UtilsDotFile.setCommentToKeyInDotFile = (dotFileAbsPath, key, comment) => {
|
|
1683
|
-
/* */
|
|
1684
|
-
/* */
|
|
1685
|
-
/* */
|
|
1686
|
-
/* */
|
|
1687
|
-
/* */
|
|
1688
|
-
/* */
|
|
1689
|
-
/* */
|
|
1690
|
-
/* */
|
|
1691
|
-
/* */
|
|
1692
|
-
/* */
|
|
1693
|
-
/* */
|
|
1694
|
-
/* */
|
|
1695
|
-
/* */
|
|
1696
|
-
/* */
|
|
1697
|
-
/* */
|
|
1698
|
-
/* */
|
|
1699
|
-
/* */
|
|
1700
|
-
/* */
|
|
1701
|
-
/* */
|
|
1702
|
-
/* */
|
|
1703
|
-
/* */
|
|
1704
|
-
/* */
|
|
1705
|
-
/* */
|
|
1706
|
-
/* */
|
|
1707
|
-
/* */
|
|
1708
|
-
/* */
|
|
1709
|
-
/* */
|
|
1710
|
-
/* */
|
|
1711
|
-
/* */
|
|
1712
|
-
/* */
|
|
1713
|
-
/* */
|
|
1714
|
-
/* */
|
|
1715
|
-
/* */
|
|
1716
|
-
/* */
|
|
1717
|
-
/* */
|
|
1718
|
-
/* */
|
|
1719
|
-
/* */
|
|
1720
|
-
/* */
|
|
1721
|
-
return (void 0);
|
|
1722
|
-
};
|
|
1723
|
-
//#endregion
|
|
1724
|
-
//#region get value from dot file
|
|
1725
|
-
UtilsDotFile.getValueFromDotFile = (dotFileAbsPath, key) => {
|
|
1726
|
-
/* */
|
|
1727
|
-
/* */
|
|
1728
|
-
/* */
|
|
1729
|
-
/* */
|
|
1730
|
-
/* */
|
|
1731
|
-
/* */
|
|
1732
|
-
/* */
|
|
1733
|
-
/* */
|
|
1734
|
-
/* */
|
|
1735
|
-
/* */
|
|
1736
|
-
/* */
|
|
1737
|
-
/* */
|
|
1738
|
-
/* */
|
|
1739
|
-
/* */
|
|
1740
|
-
/* */
|
|
1741
|
-
/* */
|
|
1742
|
-
/* */
|
|
1743
|
-
/* */
|
|
1744
|
-
/* */
|
|
1745
|
-
/* */
|
|
1746
|
-
/* */
|
|
1747
|
-
/* */
|
|
1748
|
-
/* */
|
|
1749
|
-
/* */
|
|
1750
|
-
return (void 0);
|
|
1751
|
-
};
|
|
1752
|
-
//#endregion
|
|
1753
|
-
//#region set values keys from object
|
|
1754
|
-
UtilsDotFile.setValuesKeysFromObject = (dotFileAbsPath, obj, options) => {
|
|
1755
|
-
/* */
|
|
1756
|
-
/* */
|
|
1757
|
-
/* */
|
|
1758
|
-
/* */
|
|
1759
|
-
/* */
|
|
1760
|
-
/* */
|
|
1761
|
-
/* */
|
|
1762
|
-
/* */
|
|
1763
|
-
/* */
|
|
1764
|
-
/* */
|
|
1765
|
-
/* */
|
|
1766
|
-
/* */
|
|
1767
|
-
/* */
|
|
1768
|
-
/* */
|
|
1769
|
-
/* */
|
|
1770
|
-
/* */
|
|
1771
|
-
/* */
|
|
1772
|
-
/* */
|
|
1773
|
-
/* */
|
|
1774
|
-
/* */
|
|
1775
|
-
/* */
|
|
1776
|
-
/* */
|
|
1777
|
-
/* */
|
|
1778
|
-
return (void 0);
|
|
1779
|
-
};
|
|
1780
|
-
//#endregion
|
|
1781
|
-
//#region get values keys as json object
|
|
1782
|
-
UtilsDotFile.getValuesKeysAsJsonObject = (dotFileAbsPath) => {
|
|
1783
|
-
/* */
|
|
1784
|
-
/* */
|
|
1785
|
-
/* */
|
|
1786
|
-
/* */
|
|
1787
|
-
/* */
|
|
1788
|
-
/* */
|
|
1789
|
-
/* */
|
|
1790
|
-
/* */
|
|
1791
|
-
/* */
|
|
1792
|
-
/* */
|
|
1793
|
-
/* */
|
|
1794
|
-
/* */
|
|
1795
|
-
/* */
|
|
1796
|
-
/* */
|
|
1797
|
-
/* */
|
|
1798
|
-
/* */
|
|
1799
|
-
/* */
|
|
1800
|
-
/* */
|
|
1801
|
-
/* */
|
|
1802
|
-
/* */
|
|
1803
|
-
/* */
|
|
1804
|
-
/* */
|
|
1805
|
-
return (void 0);
|
|
1806
|
-
};
|
|
1807
|
-
//#endregion
|
|
1808
|
-
//#region get comments keys as json object
|
|
1809
|
-
/**
|
|
1810
|
-
* @returns key|comment pairs as json object
|
|
1811
|
-
*/
|
|
1812
|
-
UtilsDotFile.getCommentsKeysAsJsonObject = (dotFileAbsPath) => {
|
|
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
|
-
/* */
|
|
1855
|
-
/* */
|
|
1856
|
-
/* */
|
|
1857
|
-
/* */
|
|
1858
|
-
/* */
|
|
1859
|
-
/* */
|
|
1860
|
-
/* */
|
|
1861
|
-
/* */
|
|
1862
|
-
/* */
|
|
1863
|
-
/* */
|
|
1864
|
-
/* */
|
|
1865
|
-
/* */
|
|
1866
|
-
/* */
|
|
1867
|
-
/* */
|
|
1868
|
-
/* */
|
|
1869
|
-
/* */
|
|
1870
|
-
/* */
|
|
1871
|
-
/* */
|
|
1872
|
-
/* */
|
|
1873
|
-
/* */
|
|
1874
|
-
/* */
|
|
1875
|
-
/* */
|
|
1876
|
-
/* */
|
|
1877
|
-
/* */
|
|
1878
|
-
/* */
|
|
1879
|
-
/* */
|
|
1880
|
-
/* */
|
|
1881
|
-
/* */
|
|
1882
|
-
/* */
|
|
1883
|
-
/* */
|
|
1884
|
-
/* */
|
|
1885
|
-
/* */
|
|
1886
|
-
/* */
|
|
1887
|
-
/* */
|
|
1888
|
-
return (void 0);
|
|
1889
|
-
};
|
|
1890
|
-
//#endregion
|
|
1891
|
-
})(UtilsDotFile || (UtilsDotFile = {}));
|
|
1892
|
-
//#endregion
|
|
1893
1624
|
//#region utils zip browser
|
|
1894
1625
|
var UtilsZipBrowser;
|
|
1895
1626
|
(function (UtilsZipBrowser) {
|
|
@@ -5624,14 +5355,13 @@ class BaseCliWorker {
|
|
|
5624
5355
|
// [ipAddressOfTaonInstance: string]: ReturnType<typeof Taon.createContext>;
|
|
5625
5356
|
// } = {};
|
|
5626
5357
|
async getRemoteControllerFor(ipAddressOfTaonInstance, port) {
|
|
5627
|
-
// this.workerRemoteContextFor[ipAddressOfTaonInstance] =
|
|
5628
|
-
const remoteCtx = this.workerContextTemplate();
|
|
5629
5358
|
// this.workerRemoteContextFor[ipAddressOfTaonInstance] = remoteCtx;
|
|
5630
5359
|
const useHttps = ipAddressOfTaonInstance !== CoreModels.localhostIp127;
|
|
5631
5360
|
const protocol = useHttps ? 'https' : 'http';
|
|
5632
|
-
const
|
|
5361
|
+
const remoteCtx = this.workerContextTemplate().cloneAsRemote({
|
|
5633
5362
|
overrideRemoteHost: `${protocol}://${ipAddressOfTaonInstance}${port ? `:${port}` : ''}`,
|
|
5634
5363
|
});
|
|
5364
|
+
const contextForRemoteConnection = await remoteCtx.initialize();
|
|
5635
5365
|
const taonProjectsController = contextForRemoteConnection.getInstanceBy(this.controllerClass);
|
|
5636
5366
|
return taonProjectsController;
|
|
5637
5367
|
}
|
|
@@ -5678,7 +5408,7 @@ class BaseCliWorker {
|
|
|
5678
5408
|
this.startCommand = startCommand;
|
|
5679
5409
|
this.serviceVersion = serviceVersion;
|
|
5680
5410
|
//#region fields & getters
|
|
5681
|
-
this.SPECIAL_WORKER_READY_MESSAGE =
|
|
5411
|
+
this.SPECIAL_WORKER_READY_MESSAGE = CoreModels.SPECIAL_WORKER_READY_MESSAGE;
|
|
5682
5412
|
// @ts-ignore TODO weird inheritance problem
|
|
5683
5413
|
this.terminalUI = new BaseCliWorkerTerminalUI(this);
|
|
5684
5414
|
}
|
|
@@ -7164,7 +6894,7 @@ const PROJECT_NPM_NAME = 'tnp-helpers';
|
|
|
7164
6894
|
/**
|
|
7165
6895
|
* Autogenerated by current cli tool. Use *tnp release* to bump version.
|
|
7166
6896
|
*/
|
|
7167
|
-
const CURRENT_PACKAGE_VERSION = '19.0.
|
|
6897
|
+
const CURRENT_PACKAGE_VERSION = '19.0.55';
|
|
7168
6898
|
// THIS FILE IS GENERATED - DO NOT MODIFY
|
|
7169
6899
|
|
|
7170
6900
|
//#endregion
|
|
@@ -16928,5 +16658,5 @@ const Helpers = HelpersTaon.Instance;
|
|
|
16928
16658
|
* Generated bundle index. Do not edit.
|
|
16929
16659
|
*/
|
|
16930
16660
|
|
|
16931
|
-
export { BaseCliWorker, BaseCliWorkerConfig, BaseCliWorkerController, BaseCliWorkerTerminalUI, BaseCommandLineFeature, BaseCompilerForProject, BaseDebounceCompilerForProject, BaseFeatureForProject, BaseFileFoldersOperations, BaseGit, BaseIgnoreHideHelpers, BaseJsonFileReader, BaseLibraryBuild, BaseLinkedProjects, BaseLinter, BaseNodeModules, BaseNpmHelpers, BasePackageJson, BaseProcessManger, BaseProject, BaseProjectResolver, BaseProjectTypeArr, BaseQuickFixes, BaseReleaseProcess, BaseVscodeHelpers, CommandConfig, CommandProcess, CommandProcessState, CommitData, CoreAngularProject, CoreProject, CoreTypescriptProject, FilePathMetaData, Helpers, HelpersAngular, LinkedPorjectsConfig, LinkedProject, PackageJsonDependencyObjArr, Port, PortStatusArr, PortsController, PortsWorker, ProgressData, UtilsCliMethod,
|
|
16661
|
+
export { BaseCliWorker, BaseCliWorkerConfig, BaseCliWorkerController, BaseCliWorkerTerminalUI, BaseCommandLineFeature, BaseCompilerForProject, BaseDebounceCompilerForProject, BaseFeatureForProject, BaseFileFoldersOperations, BaseGit, BaseIgnoreHideHelpers, BaseJsonFileReader, BaseLibraryBuild, BaseLinkedProjects, BaseLinter, BaseNodeModules, BaseNpmHelpers, BasePackageJson, BaseProcessManger, BaseProject, BaseProjectResolver, BaseProjectTypeArr, BaseQuickFixes, BaseReleaseProcess, BaseVscodeHelpers, CommandConfig, CommandProcess, CommandProcessState, CommitData, CoreAngularProject, CoreProject, CoreTypescriptProject, FilePathMetaData, Helpers, HelpersAngular, LinkedPorjectsConfig, LinkedProject, PackageJsonDependencyObjArr, Port, PortStatusArr, PortsController, PortsWorker, ProgressData, UtilsCliMethod, UtilsHttp, UtilsJava, UtilsMd, UtilsNpm, UtilsPasswords, UtilsQuickFixes, UtilsTaonWorker, UtilsTypescript, UtilsVSCode, UtilsZip, UtilsZipBrowser, executeCommand, getBaseCliWorkerDatabaseConfig };
|
|
16932
16662
|
//# sourceMappingURL=tnp-helpers.mjs.map
|