tnp-helpers 19.0.43 → 19.0.45
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/README.md +24 -24
- package/browser/fesm2022/tnp-helpers.mjs +238 -36
- 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/tcp-udp-ports/tcp-udp-ports.context.d.ts +1 -0
- 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 +44 -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 +2 -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-db.js +1 -2
- package/lib/base/classes/base-db.js.map +1 -1
- package/lib/base/classes/base-global-command-line.backend.d.ts +2 -0
- package/lib/base/classes/base-global-command-line.backend.js +109 -3
- package/lib/base/classes/base-global-command-line.backend.js.map +1 -1
- package/lib/base/classes/base-java-jdk.js +2 -2
- package/lib/base/classes/base-java-jdk.js.map +1 -1
- package/lib/base/classes/base-node-modules.js +1 -1
- package/lib/base/classes/base-node-modules.js.map +1 -1
- package/lib/base/classes/base-powershell.js +2 -2
- package/lib/base/classes/base-powershell.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/classes/base-vscode.js +5 -1
- package/lib/base/classes/base-vscode.js.map +1 -1
- package/lib/base/tcp-udp-ports/not-assignable-port.entity.js +2 -2
- package/lib/base/tcp-udp-ports/ports.entity.d.ts +1 -1
- package/lib/base/tcp-udp-ports/tcp-udp-ports.context.d.ts +3 -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 +7 -2
- package/lib/helpers/for-backend/helpers-file-folders.js.map +1 -1
- package/lib/helpers/for-browser/angular.helper.js +2 -2
- package/lib/helpers/helpers-numbers.js.map +1 -1
- 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 +44 -29
- package/lib/utils.js +136 -4
- package/lib/utils.js.map +1 -1
- package/package.json +1 -1
- package/tmp-environment.json +3 -7
- package/websql/README.md +24 -24
- package/websql/fesm2022/tnp-helpers.mjs +238 -36
- 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/tcp-udp-ports/tcp-udp-ports.context.d.ts +1 -0
- 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 +44 -29
- package/websql/package.json +1 -1
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.
|
|
@@ -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
|
/* */
|
|
@@ -1734,6 +1771,89 @@ var UtilsDotFile;
|
|
|
1734
1771
|
return (void 0);
|
|
1735
1772
|
};
|
|
1736
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
|
|
1737
1857
|
})(UtilsDotFile || (UtilsDotFile = {}));
|
|
1738
1858
|
//#endregion
|
|
1739
1859
|
//#region utils zip browser
|
|
@@ -1901,7 +2021,26 @@ var UtilsZip;
|
|
|
1901
2021
|
return (void 0);
|
|
1902
2022
|
};
|
|
1903
2023
|
//#endregion
|
|
1904
|
-
|
|
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
|
+
/* */
|
|
1905
2044
|
/* */
|
|
1906
2045
|
/* */
|
|
1907
2046
|
/* */
|
|
@@ -1961,6 +2100,21 @@ var UtilsZip;
|
|
|
1961
2100
|
};
|
|
1962
2101
|
})(UtilsZip || (UtilsZip = {}));
|
|
1963
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
|
|
1964
2118
|
|
|
1965
2119
|
class HelpersArrayObj {
|
|
1966
2120
|
from(s) {
|
|
@@ -3068,6 +3222,7 @@ class HelpersFileFolders {
|
|
|
3068
3222
|
/* */
|
|
3069
3223
|
/* */
|
|
3070
3224
|
/* */
|
|
3225
|
+
/* */
|
|
3071
3226
|
return (void 0);
|
|
3072
3227
|
}
|
|
3073
3228
|
// createMultiplatformLink(target: string, link: string) {
|
|
@@ -4031,6 +4186,8 @@ class HelpersFileFolders {
|
|
|
4031
4186
|
/* */
|
|
4032
4187
|
/* */
|
|
4033
4188
|
/* */
|
|
4189
|
+
/* */
|
|
4190
|
+
/* */
|
|
4034
4191
|
return (void 0);
|
|
4035
4192
|
}
|
|
4036
4193
|
/**
|
|
@@ -4711,7 +4868,6 @@ Port = Port_1 = __decorate([
|
|
|
4711
4868
|
})
|
|
4712
4869
|
], Port);
|
|
4713
4870
|
|
|
4714
|
-
//#endregion
|
|
4715
4871
|
class BaseCliWorkerTerminalUI {
|
|
4716
4872
|
constructor(worker) {
|
|
4717
4873
|
this.worker = worker;
|
|
@@ -4736,18 +4892,6 @@ class BaseCliWorkerTerminalUI {
|
|
|
4736
4892
|
* override whole terminal header
|
|
4737
4893
|
*/
|
|
4738
4894
|
async header() {
|
|
4739
|
-
/* */
|
|
4740
|
-
/* */
|
|
4741
|
-
/* */
|
|
4742
|
-
/* */
|
|
4743
|
-
/* */
|
|
4744
|
-
/* */
|
|
4745
|
-
/* */
|
|
4746
|
-
/* */
|
|
4747
|
-
/* */
|
|
4748
|
-
/* */
|
|
4749
|
-
/* */
|
|
4750
|
-
/* */
|
|
4751
4895
|
/* */
|
|
4752
4896
|
/* */
|
|
4753
4897
|
/* */
|
|
@@ -4917,6 +5061,8 @@ class BaseCliWorker {
|
|
|
4917
5061
|
//#endregion
|
|
4918
5062
|
//#region methods / start normally in current process
|
|
4919
5063
|
/**
|
|
5064
|
+
* <strong>IMPORTANT USE ONLY IN DEVELOPMENT !!!</strong>
|
|
5065
|
+
* for production use startDetachedIfNeedsToBeStarted()
|
|
4920
5066
|
* start normally process
|
|
4921
5067
|
* this will crash if process already started
|
|
4922
5068
|
*/
|
|
@@ -4944,7 +5090,12 @@ class BaseCliWorker {
|
|
|
4944
5090
|
}
|
|
4945
5091
|
//#endregion
|
|
4946
5092
|
//#region methods / get controller for remote connection
|
|
4947
|
-
async getControllerForRemoteConnection() {
|
|
5093
|
+
async getControllerForRemoteConnection(options) {
|
|
5094
|
+
/* */
|
|
5095
|
+
/* */
|
|
5096
|
+
/* */
|
|
5097
|
+
/* */
|
|
5098
|
+
/* */
|
|
4948
5099
|
/* */
|
|
4949
5100
|
/* */
|
|
4950
5101
|
/* */
|
|
@@ -5021,6 +5172,8 @@ class BaseCliWorker {
|
|
|
5021
5172
|
/* */
|
|
5022
5173
|
/* */
|
|
5023
5174
|
/* */
|
|
5175
|
+
/* */
|
|
5176
|
+
/* */
|
|
5024
5177
|
return (void 0);
|
|
5025
5178
|
}
|
|
5026
5179
|
//#endregion
|
|
@@ -5142,6 +5295,8 @@ class BaseCliWorker {
|
|
|
5142
5295
|
/* */
|
|
5143
5296
|
/* */
|
|
5144
5297
|
/* */
|
|
5298
|
+
/* */
|
|
5299
|
+
/* */
|
|
5145
5300
|
return (void 0);
|
|
5146
5301
|
}
|
|
5147
5302
|
//#endregion
|
|
@@ -5237,6 +5392,19 @@ class BaseCliWorker {
|
|
|
5237
5392
|
/* */
|
|
5238
5393
|
/* */
|
|
5239
5394
|
/* */
|
|
5395
|
+
/* */
|
|
5396
|
+
/* */
|
|
5397
|
+
/* */
|
|
5398
|
+
/* */
|
|
5399
|
+
/* */
|
|
5400
|
+
/* */
|
|
5401
|
+
/* */
|
|
5402
|
+
/* */
|
|
5403
|
+
/* */
|
|
5404
|
+
/* */
|
|
5405
|
+
/* */
|
|
5406
|
+
/* */
|
|
5407
|
+
/* */
|
|
5240
5408
|
return (void 0);
|
|
5241
5409
|
}
|
|
5242
5410
|
//#endregion
|
|
@@ -5331,11 +5499,14 @@ class BaseCliWorker {
|
|
|
5331
5499
|
/* */
|
|
5332
5500
|
/* */
|
|
5333
5501
|
/* */
|
|
5502
|
+
/* */
|
|
5503
|
+
/* */
|
|
5334
5504
|
return (void 0);
|
|
5335
5505
|
}
|
|
5336
5506
|
//#endregion
|
|
5337
5507
|
//#region wait for process port saved to disk
|
|
5338
|
-
async waitForProcessPortSavedToDisk() {
|
|
5508
|
+
async waitForProcessPortSavedToDisk(options) {
|
|
5509
|
+
/* */
|
|
5339
5510
|
/* */
|
|
5340
5511
|
/* */
|
|
5341
5512
|
/* */
|
|
@@ -5391,6 +5562,32 @@ class BaseCliWorker {
|
|
|
5391
5562
|
}
|
|
5392
5563
|
}
|
|
5393
5564
|
|
|
5565
|
+
/**
|
|
5566
|
+
* Get taon service database config
|
|
5567
|
+
* (database is stored in user's home directory)
|
|
5568
|
+
* @param serviceNameUniqueInSystem - unique name of the service in the system
|
|
5569
|
+
* @param recreateMode - mode of database recreation, default is 'DROP_DB+MIGRATIONS'
|
|
5570
|
+
* @returns DatabaseConfig object with location and recreateMode
|
|
5571
|
+
*/
|
|
5572
|
+
const getBaseCliWorkerDatabaseConfig = (serviceNameUniqueInSystem, recreateMode = 'DROP_DB+MIGRATIONS') => {
|
|
5573
|
+
/* */
|
|
5574
|
+
/* */
|
|
5575
|
+
/* */
|
|
5576
|
+
/* */
|
|
5577
|
+
/* */
|
|
5578
|
+
/* */
|
|
5579
|
+
/* */
|
|
5580
|
+
/* */
|
|
5581
|
+
/* */
|
|
5582
|
+
/* */
|
|
5583
|
+
/* */
|
|
5584
|
+
/* */
|
|
5585
|
+
/* */
|
|
5586
|
+
/* */
|
|
5587
|
+
/* */
|
|
5588
|
+
return (void 0);
|
|
5589
|
+
};
|
|
5590
|
+
|
|
5394
5591
|
//#region base worker config
|
|
5395
5592
|
class BaseCliWorkerConfig {
|
|
5396
5593
|
static from(opt) {
|
|
@@ -6000,15 +6197,6 @@ const MIGRATIONS_CLASSES_FOR_PortsContext = {
|
|
|
6000
6197
|
|
|
6001
6198
|
//@ts-nocheck
|
|
6002
6199
|
|
|
6003
|
-
/* */
|
|
6004
|
-
/* */
|
|
6005
|
-
/* */
|
|
6006
|
-
/* */
|
|
6007
|
-
/* */
|
|
6008
|
-
/* */
|
|
6009
|
-
/* */
|
|
6010
|
-
/* */
|
|
6011
|
-
/* */
|
|
6012
6200
|
const PortsContextTemplate = Taon.createContextTemplate(() => ({
|
|
6013
6201
|
contextName: 'PortsContext',
|
|
6014
6202
|
appId: 'dev.taon.taon-ports-worker',
|
|
@@ -6017,11 +6205,7 @@ const PortsContextTemplate = Taon.createContextTemplate(() => ({
|
|
|
6017
6205
|
entities: { Port },
|
|
6018
6206
|
migrations: { ...MIGRATIONS_CLASSES_FOR_PortsContext },
|
|
6019
6207
|
skipWritingServerRoutes: true,
|
|
6020
|
-
|
|
6021
|
-
/* */
|
|
6022
|
-
/* */
|
|
6023
|
-
/* */
|
|
6024
|
-
/* */
|
|
6208
|
+
...getBaseCliWorkerDatabaseConfig('ports-worker', 'DROP_DB+MIGRATIONS'),
|
|
6025
6209
|
logs: {
|
|
6026
6210
|
migrations: true,
|
|
6027
6211
|
},
|
|
@@ -6097,6 +6281,8 @@ class TcpUdpPortsTerminalUI extends BaseCliWorkerTerminalUI {
|
|
|
6097
6281
|
/* */
|
|
6098
6282
|
/* */
|
|
6099
6283
|
/* */
|
|
6284
|
+
/* */
|
|
6285
|
+
/* */
|
|
6100
6286
|
return (void 0);
|
|
6101
6287
|
}
|
|
6102
6288
|
//#endregion
|
|
@@ -6148,6 +6334,8 @@ class TcpUdpPortsTerminalUI extends BaseCliWorkerTerminalUI {
|
|
|
6148
6334
|
/* */
|
|
6149
6335
|
/* */
|
|
6150
6336
|
/* */
|
|
6337
|
+
/* */
|
|
6338
|
+
/* */
|
|
6151
6339
|
return (void 0);
|
|
6152
6340
|
}
|
|
6153
6341
|
//#endregion
|
|
@@ -6191,6 +6379,8 @@ class TcpUdpPortsTerminalUI extends BaseCliWorkerTerminalUI {
|
|
|
6191
6379
|
/* */
|
|
6192
6380
|
/* */
|
|
6193
6381
|
/* */
|
|
6382
|
+
/* */
|
|
6383
|
+
/* */
|
|
6194
6384
|
return (void 0);
|
|
6195
6385
|
}
|
|
6196
6386
|
//#endregion
|
|
@@ -6261,6 +6451,8 @@ class TcpUdpPortsTerminalUI extends BaseCliWorkerTerminalUI {
|
|
|
6261
6451
|
/* */
|
|
6262
6452
|
/* */
|
|
6263
6453
|
/* */
|
|
6454
|
+
/* */
|
|
6455
|
+
/* */
|
|
6264
6456
|
return (void 0);
|
|
6265
6457
|
}
|
|
6266
6458
|
//#endregion
|
|
@@ -6301,6 +6493,8 @@ class TcpUdpPortsTerminalUI extends BaseCliWorkerTerminalUI {
|
|
|
6301
6493
|
/* */
|
|
6302
6494
|
/* */
|
|
6303
6495
|
/* */
|
|
6496
|
+
/* */
|
|
6497
|
+
/* */
|
|
6304
6498
|
return (void 0);
|
|
6305
6499
|
}
|
|
6306
6500
|
}
|
|
@@ -6335,7 +6529,7 @@ const PROJECT_NPM_NAME = 'tnp-helpers';
|
|
|
6335
6529
|
/**
|
|
6336
6530
|
* Autogenerated by current cli tool. Use *tnp release* to bump version.
|
|
6337
6531
|
*/
|
|
6338
|
-
const CURRENT_PACKAGE_VERSION = '19.0.
|
|
6532
|
+
const CURRENT_PACKAGE_VERSION = '19.0.45';
|
|
6339
6533
|
// THIS FILE IS GENERATED - DO NOT MODIFY
|
|
6340
6534
|
|
|
6341
6535
|
//#endregion
|
|
@@ -7324,7 +7518,7 @@ class BaseProject {
|
|
|
7324
7518
|
return (void 0);
|
|
7325
7519
|
}
|
|
7326
7520
|
getUniqueForTask(task) {
|
|
7327
|
-
return
|
|
7521
|
+
return UtilsTaonWorker.getUniqueForTask(task, this.location);
|
|
7328
7522
|
}
|
|
7329
7523
|
async registerAndAssignPort(taskName, options) {
|
|
7330
7524
|
/* */
|
|
@@ -7351,6 +7545,9 @@ class BaseProject {
|
|
|
7351
7545
|
/* */
|
|
7352
7546
|
/* */
|
|
7353
7547
|
/* */
|
|
7548
|
+
/* */
|
|
7549
|
+
/* */
|
|
7550
|
+
/* */
|
|
7354
7551
|
return (void 0);
|
|
7355
7552
|
}
|
|
7356
7553
|
//#region methods & getters / assign free port to project instance
|
|
@@ -8941,7 +9138,7 @@ class BaseNodeModules {
|
|
|
8941
9138
|
*/
|
|
8942
9139
|
get realPath() {
|
|
8943
9140
|
try {
|
|
8944
|
-
const realPath = fse.realpathSync(this.path);
|
|
9141
|
+
const realPath = crossPlatformPath(fse.realpathSync(this.path));
|
|
8945
9142
|
return realPath;
|
|
8946
9143
|
}
|
|
8947
9144
|
catch (error) {
|
|
@@ -11769,6 +11966,10 @@ class BaseVscodeHelpers extends BaseFeatureForProject {
|
|
|
11769
11966
|
/* */
|
|
11770
11967
|
/* */
|
|
11771
11968
|
/* */
|
|
11969
|
+
/* */
|
|
11970
|
+
/* */
|
|
11971
|
+
/* */
|
|
11972
|
+
/* */
|
|
11772
11973
|
return (void 0);
|
|
11773
11974
|
}
|
|
11774
11975
|
//#endregion
|
|
@@ -12213,6 +12414,7 @@ class BaseReleaseProcess extends BaseFeatureForProject {
|
|
|
12213
12414
|
/* */
|
|
12214
12415
|
/* */
|
|
12215
12416
|
/* */
|
|
12417
|
+
/* */
|
|
12216
12418
|
return (void 0);
|
|
12217
12419
|
}
|
|
12218
12420
|
//#region methods & getters / publish to npm
|
|
@@ -15358,5 +15560,5 @@ const Helpers = HelpersTaon.Instance;
|
|
|
15358
15560
|
* Generated bundle index. Do not edit.
|
|
15359
15561
|
*/
|
|
15360
15562
|
|
|
15361
|
-
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 };
|
|
15563
|
+
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, UtilsTaonWorker, UtilsTypescript, UtilsVSCode, UtilsZip, UtilsZipBrowser, executeCommand, getBaseCliWorkerDatabaseConfig };
|
|
15362
15564
|
//# sourceMappingURL=tnp-helpers.mjs.map
|