tnp-helpers 19.0.53 → 19.0.54

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.
Files changed (60) hide show
  1. package/browser/README.md +24 -24
  2. package/browser/fesm2022/tnp-helpers.mjs +5 -275
  3. package/browser/fesm2022/tnp-helpers.mjs.map +1 -1
  4. package/browser/lib/base/tcp-udp-ports/tcp-udp-ports.context.d.ts +6 -0
  5. package/browser/lib/build-info._auto-generated_.d.ts +1 -1
  6. package/browser/lib/utils.d.ts +0 -16
  7. package/browser/package.json +1 -1
  8. package/lib/base/classes/base-cli-worker/base-cli-worker.js +9 -10
  9. package/lib/base/classes/base-cli-worker/base-cli-worker.js.map +1 -1
  10. package/lib/base/classes/base-docker.js +3 -4
  11. package/lib/base/classes/base-docker.js.map +1 -1
  12. package/lib/base/classes/base-global-command-line.backend.js +2 -2
  13. package/lib/base/classes/base-global-command-line.backend.js.map +1 -1
  14. package/lib/base/classes/base-project.js +58 -57
  15. package/lib/base/classes/base-project.js.map +1 -1
  16. package/lib/base/tcp-udp-ports/not-assignable-port.entity.js +2 -2
  17. package/lib/base/tcp-udp-ports/ports.entity.d.ts +1 -1
  18. package/lib/base/tcp-udp-ports/tcp-udp-ports.context.d.ts +6 -0
  19. package/lib/build-info._auto-generated_.d.ts +1 -1
  20. package/lib/build-info._auto-generated_.js +1 -1
  21. package/lib/helpers/for-backend/helpers-git.backend.js +12 -1
  22. package/lib/helpers/for-backend/helpers-git.backend.js.map +1 -1
  23. package/lib/helpers/for-browser/angular.helper.js +2 -2
  24. package/lib/helpers/helpers-numbers.js.map +1 -1
  25. package/lib/old/base-component.js +2 -2
  26. package/lib/old/base-formly-component.js +2 -2
  27. package/lib/old/dual-component-ctrl.js +2 -2
  28. package/lib/utils.d.ts +0 -16
  29. package/lib/utils.js +1 -221
  30. package/lib/utils.js.map +1 -1
  31. package/package.json +1 -1
  32. package/websql/README.md +24 -24
  33. package/websql/fesm2022/tnp-helpers.mjs +5 -275
  34. package/websql/fesm2022/tnp-helpers.mjs.map +1 -1
  35. package/websql/lib/base/tcp-udp-ports/tcp-udp-ports.context.d.ts +6 -0
  36. package/websql/lib/build-info._auto-generated_.d.ts +1 -1
  37. package/websql/lib/utils.d.ts +0 -16
  38. package/websql/package.json +1 -1
  39. package/lib/base/classes/base-command-line-feature.backend.d.ts +0 -47
  40. package/lib/base/classes/base-command-line-feature.backend.js +0 -147
  41. package/lib/base/classes/base-command-line-feature.backend.js.map +0 -1
  42. package/lib/base/classes/base-file-operations.d.ts +0 -0
  43. package/lib/base/classes/base-file-operations.js +0 -5
  44. package/lib/base/classes/base-file-operations.js.map +0 -1
  45. package/lib/helpers/for-backend/helpers-dependencies.backend.d.ts +0 -3
  46. package/lib/helpers/for-backend/helpers-dependencies.backend.js +0 -34
  47. package/lib/helpers/for-backend/helpers-dependencies.backend.js.map +0 -1
  48. package/lib/validators/validators-firedev.d.ts +0 -3
  49. package/lib/validators/validators-firedev.js +0 -34
  50. package/lib/validators/validators-firedev.js.map +0 -1
  51. package/lib/validators/validators-git.d.ts +0 -3
  52. package/lib/validators/validators-git.js +0 -13
  53. package/lib/validators/validators-git.js.map +0 -1
  54. package/lib/validators/validators-network.d.ts +0 -3
  55. package/lib/validators/validators-network.js +0 -19
  56. package/lib/validators/validators-network.js.map +0 -1
  57. package/lib/validators/validators.d.ts +0 -6
  58. package/lib/validators/validators.js +0 -11
  59. package/lib/validators/validators.js.map +0 -1
  60. package/tmp-environment.json +0 -33
package/browser/README.md CHANGED
@@ -1,24 +1,24 @@
1
- # MyLib
2
-
3
- This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.2.0.
4
-
5
- ## Code scaffolding
6
-
7
- Run `ng generate component component-name --project my-lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project my-lib`.
8
- > Note: Don't forget to add `--project my-lib` or else it will be added to the default project in your `angular.json` file.
9
-
10
- ## Build
11
-
12
- Run `ng build my-lib` to build the project. The build artifacts will be stored in the `dist/` directory.
13
-
14
- ## Publishing
15
-
16
- After building your library with `ng build my-lib`, go to the dist folder `cd dist/my-lib` and run `npm publish`.
17
-
18
- ## Running unit tests
19
-
20
- Run `ng test my-lib` to execute the unit tests via [Karma](https://karma-runner.github.io).
21
-
22
- ## Further help
23
-
24
- To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
1
+ # MyLib
2
+
3
+ This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.2.0.
4
+
5
+ ## Code scaffolding
6
+
7
+ Run `ng generate component component-name --project my-lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project my-lib`.
8
+ > Note: Don't forget to add `--project my-lib` or else it will be added to the default project in your `angular.json` file.
9
+
10
+ ## Build
11
+
12
+ Run `ng build my-lib` to build the project. The build artifacts will be stored in the `dist/` directory.
13
+
14
+ ## Publishing
15
+
16
+ After building your library with `ng build my-lib`, go to the dist folder `cd dist/my-lib` and run `npm publish`.
17
+
18
+ ## Running unit tests
19
+
20
+ Run `ng test my-lib` to execute the unit tests via [Karma](https://karma-runner.github.io).
21
+
22
+ ## Further help
23
+
24
+ To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
@@ -1640,275 +1640,6 @@ var UtilsVSCode;
1640
1640
  };
1641
1641
  })(UtilsVSCode || (UtilsVSCode = {}));
1642
1642
  //#endregion
1643
- //#region utils dot file
1644
- var UtilsDotFile;
1645
- (function (UtilsDotFile) {
1646
- //#region parse value from dot file util
1647
- const parseValue = (rawValue) => {
1648
- const val = rawValue.trim().replace(/^"|"$/g, '');
1649
- // Try boolean
1650
- if (val.toLowerCase() === 'true')
1651
- return true;
1652
- if (val.toLowerCase() === 'false')
1653
- return false;
1654
- // Try number
1655
- if (!isNaN(Number(val)) && val !== '')
1656
- return Number(val);
1657
- return val;
1658
- };
1659
- //#endregion
1660
- //#region set value to/from dot file
1661
- UtilsDotFile.setValueToDotFile = (dotFileAbsPath, key, value) => {
1662
- /* */
1663
- /* */
1664
- /* */
1665
- /* */
1666
- /* */
1667
- /* */
1668
- /* */
1669
- /* */
1670
- /* */
1671
- /* */
1672
- /* */
1673
- /* */
1674
- /* */
1675
- /* */
1676
- /* */
1677
- /* */
1678
- /* */
1679
- /* */
1680
- /* */
1681
- /* */
1682
- /* */
1683
- /* */
1684
- /* */
1685
- /* */
1686
- /* */
1687
- /* */
1688
- /* */
1689
- /* */
1690
- /* */
1691
- /* */
1692
- /* */
1693
- /* */
1694
- /* */
1695
- /* */
1696
- /* */
1697
- return (void 0);
1698
- };
1699
- //#endregion
1700
- //#region set comment to key in dot file
1701
- UtilsDotFile.setCommentToKeyInDotFile = (dotFileAbsPath, key, comment) => {
1702
- /* */
1703
- /* */
1704
- /* */
1705
- /* */
1706
- /* */
1707
- /* */
1708
- /* */
1709
- /* */
1710
- /* */
1711
- /* */
1712
- /* */
1713
- /* */
1714
- /* */
1715
- /* */
1716
- /* */
1717
- /* */
1718
- /* */
1719
- /* */
1720
- /* */
1721
- /* */
1722
- /* */
1723
- /* */
1724
- /* */
1725
- /* */
1726
- /* */
1727
- /* */
1728
- /* */
1729
- /* */
1730
- /* */
1731
- /* */
1732
- /* */
1733
- /* */
1734
- /* */
1735
- /* */
1736
- /* */
1737
- /* */
1738
- /* */
1739
- /* */
1740
- return (void 0);
1741
- };
1742
- //#endregion
1743
- //#region get value from dot file
1744
- UtilsDotFile.getValueFromDotFile = (dotFileAbsPath, key) => {
1745
- /* */
1746
- /* */
1747
- /* */
1748
- /* */
1749
- /* */
1750
- /* */
1751
- /* */
1752
- /* */
1753
- /* */
1754
- /* */
1755
- /* */
1756
- /* */
1757
- /* */
1758
- /* */
1759
- /* */
1760
- /* */
1761
- /* */
1762
- /* */
1763
- /* */
1764
- /* */
1765
- /* */
1766
- /* */
1767
- /* */
1768
- /* */
1769
- return (void 0);
1770
- };
1771
- //#endregion
1772
- //#region set values keys from object
1773
- UtilsDotFile.setValuesKeysFromObject = (dotFileAbsPath, obj, options) => {
1774
- /* */
1775
- /* */
1776
- /* */
1777
- /* */
1778
- /* */
1779
- /* */
1780
- /* */
1781
- /* */
1782
- /* */
1783
- /* */
1784
- /* */
1785
- /* */
1786
- /* */
1787
- /* */
1788
- /* */
1789
- /* */
1790
- /* */
1791
- /* */
1792
- /* */
1793
- /* */
1794
- /* */
1795
- /* */
1796
- /* */
1797
- return (void 0);
1798
- };
1799
- //#endregion
1800
- //#region get values keys as json object
1801
- UtilsDotFile.getValuesKeysAsJsonObject = (dotFileAbsPath) => {
1802
- /* */
1803
- /* */
1804
- /* */
1805
- /* */
1806
- /* */
1807
- /* */
1808
- /* */
1809
- /* */
1810
- /* */
1811
- /* */
1812
- /* */
1813
- /* */
1814
- /* */
1815
- /* */
1816
- /* */
1817
- /* */
1818
- /* */
1819
- /* */
1820
- /* */
1821
- /* */
1822
- /* */
1823
- /* */
1824
- return (void 0);
1825
- };
1826
- //#endregion
1827
- //#region get comments keys as json object
1828
- /**
1829
- * @returns key|comment pairs as json object
1830
- */
1831
- UtilsDotFile.getCommentsKeysAsJsonObject = (dotFileAbsPath) => {
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
- /* */
1889
- /* */
1890
- /* */
1891
- /* */
1892
- /* */
1893
- /* */
1894
- /* */
1895
- /* */
1896
- /* */
1897
- /* */
1898
- /* */
1899
- /* */
1900
- /* */
1901
- /* */
1902
- /* */
1903
- /* */
1904
- /* */
1905
- /* */
1906
- /* */
1907
- return (void 0);
1908
- };
1909
- //#endregion
1910
- })(UtilsDotFile || (UtilsDotFile = {}));
1911
- //#endregion
1912
1643
  //#region utils zip browser
1913
1644
  var UtilsZipBrowser;
1914
1645
  (function (UtilsZipBrowser) {
@@ -5612,14 +5343,13 @@ class BaseCliWorker {
5612
5343
  // [ipAddressOfTaonInstance: string]: ReturnType<typeof Taon.createContext>;
5613
5344
  // } = {};
5614
5345
  async getRemoteControllerFor(ipAddressOfTaonInstance, port) {
5615
- // this.workerRemoteContextFor[ipAddressOfTaonInstance] =
5616
- const remoteCtx = this.workerContextTemplate();
5617
5346
  // this.workerRemoteContextFor[ipAddressOfTaonInstance] = remoteCtx;
5618
5347
  const useHttps = ipAddressOfTaonInstance !== CoreModels.localhostIp127;
5619
5348
  const protocol = useHttps ? 'https' : 'http';
5620
- const contextForRemoteConnection = await remoteCtx.initialize({
5349
+ const remoteCtx = this.workerContextTemplate().cloneAsRemote({
5621
5350
  overrideRemoteHost: `${protocol}://${ipAddressOfTaonInstance}${port ? `:${port}` : ''}`,
5622
5351
  });
5352
+ const contextForRemoteConnection = await remoteCtx.initialize();
5623
5353
  const taonProjectsController = contextForRemoteConnection.getInstanceBy(this.controllerClass);
5624
5354
  return taonProjectsController;
5625
5355
  }
@@ -5666,7 +5396,7 @@ class BaseCliWorker {
5666
5396
  this.startCommand = startCommand;
5667
5397
  this.serviceVersion = serviceVersion;
5668
5398
  //#region fields & getters
5669
- this.SPECIAL_WORKER_READY_MESSAGE = '$$$ WORKER_READY $$$';
5399
+ this.SPECIAL_WORKER_READY_MESSAGE = CoreModels.SPECIAL_WORKER_READY_MESSAGE;
5670
5400
  // @ts-ignore TODO weird inheritance problem
5671
5401
  this.terminalUI = new BaseCliWorkerTerminalUI(this);
5672
5402
  }
@@ -7152,7 +6882,7 @@ const PROJECT_NPM_NAME = 'tnp-helpers';
7152
6882
  /**
7153
6883
  * Autogenerated by current cli tool. Use *tnp release* to bump version.
7154
6884
  */
7155
- const CURRENT_PACKAGE_VERSION = '19.0.53';
6885
+ const CURRENT_PACKAGE_VERSION = '19.0.54';
7156
6886
  // THIS FILE IS GENERATED - DO NOT MODIFY
7157
6887
 
7158
6888
  //#endregion
@@ -16934,5 +16664,5 @@ const Helpers = HelpersTaon.Instance;
16934
16664
  * Generated bundle index. Do not edit.
16935
16665
  */
16936
16666
 
16937
- 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, UtilsDotFile, UtilsHttp, UtilsJava, UtilsMd, UtilsNpm, UtilsPasswords, UtilsQuickFixes, UtilsTaonWorker, UtilsTypescript, UtilsVSCode, UtilsZip, UtilsZipBrowser, executeCommand, getBaseCliWorkerDatabaseConfig };
16667
+ 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 };
16938
16668
  //# sourceMappingURL=tnp-helpers.mjs.map