tnp-helpers 19.0.67 → 19.0.72
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 +510 -166
- package/browser/fesm2022/tnp-helpers.mjs.map +1 -1
- package/browser/lib/base/classes/base-cli-worker/base-cli-worker-controller.d.ts +1 -1
- package/browser/lib/base/classes/base-cli-worker/base-cli-worker-terminal-ui.d.ts +2 -2
- package/browser/lib/base/classes/base-cli-worker/base-cli-worker.d.ts +2 -2
- package/browser/lib/base/classes/base-cli-worker/base-cli-worker.models.d.ts +2 -2
- package/browser/lib/base/classes/base-compiler-for-project.d.ts +4 -4
- package/browser/lib/base/classes/base-global-command-line.d.ts +15 -1
- package/browser/lib/base/classes/base-linked-projects.d.ts +10 -3
- package/browser/lib/base/classes/base-package-json.d.ts +1 -0
- package/browser/lib/base/tcp-udp-ports/ports.controller.d.ts +2 -2
- package/browser/lib/base/tcp-udp-ports/tcp-udp-ports.context.d.ts +1 -1
- package/browser/lib/base/tcp-udp-ports/tcp-upd-ports.worker.d.ts +3 -3
- package/browser/lib/build-info._auto-generated_.d.ts +1 -1
- package/browser/lib/utils.d.ts +26 -3
- package/browser/migrations/1736198527297_init.d.ts +1 -1
- package/browser/migrations/1736199486472_addingNotAssignablePorts.d.ts +3 -3
- package/browser/migrations/1736454437350_addFreePorts.d.ts +3 -3
- package/browser/migrations/migrations_index._auto-generated_.d.ts +7 -7
- package/browser/package.json +1 -1
- package/lib/base/classes/base-bower-json.js +1 -1
- package/lib/base/classes/base-bower-json.js.map +1 -1
- package/lib/base/classes/base-cli-worker/base-cli-worker-controller.d.ts +1 -1
- package/lib/base/classes/base-cli-worker/base-cli-worker-controller.js +11 -11
- package/lib/base/classes/base-cli-worker/base-cli-worker-controller.js.map +1 -1
- package/lib/base/classes/base-cli-worker/base-cli-worker-terminal-ui.d.ts +2 -2
- package/lib/base/classes/base-cli-worker/base-cli-worker-terminal-ui.js +1 -1
- 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 +2 -2
- package/lib/base/classes/base-cli-worker/base-cli-worker.js +1 -1
- package/lib/base/classes/base-cli-worker/base-cli-worker.js.map +1 -1
- package/lib/base/classes/base-cli-worker/base-cli-worker.models.d.ts +2 -2
- package/lib/base/classes/base-cli-worker/base-cli-worker.models.js +1 -1
- package/lib/base/classes/base-cli-worker/base-cli-worker.models.js.map +1 -1
- package/lib/base/classes/base-compiler-for-project.d.ts +4 -4
- package/lib/base/classes/base-compiler-for-project.js +9 -11
- package/lib/base/classes/base-compiler-for-project.js.map +1 -1
- package/lib/base/classes/base-debounce-compiler-for-project.js +8 -5
- package/lib/base/classes/base-debounce-compiler-for-project.js.map +1 -1
- package/lib/base/classes/base-file-folders-operations.js +1 -1
- package/lib/base/classes/base-file-folders-operations.js.map +1 -1
- package/lib/base/classes/base-global-command-line.backend.d.ts +1 -13
- package/lib/base/classes/base-global-command-line.backend.js +11 -416
- package/lib/base/classes/base-global-command-line.backend.js.map +1 -1
- package/lib/base/classes/base-global-command-line.d.ts +14 -0
- package/lib/base/classes/base-global-command-line.js +105 -5
- package/lib/base/classes/base-global-command-line.js.map +1 -1
- package/lib/base/classes/base-json-file-reader.js +1 -1
- package/lib/base/classes/base-json-file-reader.js.map +1 -1
- package/lib/base/classes/base-library-build.js +1 -1
- package/lib/base/classes/base-library-build.js.map +1 -1
- package/lib/base/classes/base-linked-projects.d.ts +10 -3
- package/lib/base/classes/base-linked-projects.js +18 -8
- package/lib/base/classes/base-linked-projects.js.map +1 -1
- package/lib/base/classes/base-linter.js +4 -0
- package/lib/base/classes/base-linter.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-package-json.d.ts +1 -0
- package/lib/base/classes/base-package-json.js +5 -1
- package/lib/base/classes/base-package-json.js.map +1 -1
- package/lib/base/classes/base-project-resolver.js +1 -1
- package/lib/base/classes/base-project-resolver.js.map +1 -1
- package/lib/base/classes/base-project.js +23 -3
- package/lib/base/classes/base-project.js.map +1 -1
- package/lib/base/classes/base-quick-fixes.js +1 -1
- package/lib/base/classes/base-quick-fixes.js.map +1 -1
- package/lib/base/classes/base-release-process.js +1 -1
- package/lib/base/classes/base-release-process.js.map +1 -1
- package/lib/base/classes/base-start-config.backend.js +1 -1
- package/lib/base/classes/base-start-config.backend.js.map +1 -1
- package/lib/base/classes/base-static-pages.js +1 -1
- package/lib/base/classes/base-static-pages.js.map +1 -1
- package/lib/base/classes/base-vscode.js +15 -6
- package/lib/base/classes/base-vscode.js.map +1 -1
- package/lib/base/index-rebuilder.backend.js +1 -1
- package/lib/base/index-rebuilder.backend.js.map +1 -1
- package/lib/base/linked-project.js +1 -1
- package/lib/base/linked-project.js.map +1 -1
- package/lib/base/tcp-udp-ports/not-assignable-port.entity.js +2 -2
- package/lib/base/tcp-udp-ports/ports.controller.d.ts +2 -2
- package/lib/base/tcp-udp-ports/ports.controller.js +13 -13
- package/lib/base/tcp-udp-ports/ports.controller.js.map +1 -1
- package/lib/base/tcp-udp-ports/tcp-udp-ports.context.d.ts +1 -1
- package/lib/base/tcp-udp-ports/tcp-udp-ports.context.js +6 -6
- package/lib/base/tcp-udp-ports/tcp-udp-ports.context.js.map +1 -1
- package/lib/base/tcp-udp-ports/tcp-upd-ports.worker.d.ts +3 -3
- package/lib/base/tcp-udp-ports/tcp-upd-ports.worker.js +2 -2
- package/lib/base/tcp-udp-ports/tcp-upd-ports.worker.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-cli-tool.backend.js +1 -1
- package/lib/helpers/for-backend/helpers-cli-tool.backend.js.map +1 -1
- package/lib/helpers/for-backend/helpers-dependencies.backend.d.ts +1 -0
- package/lib/helpers/for-backend/helpers-dependencies.backend.js +27 -0
- package/lib/helpers/for-backend/helpers-dependencies.backend.js.map +1 -1
- package/lib/helpers/for-backend/helpers-file-folders.js +1 -1
- package/lib/helpers/for-backend/helpers-file-folders.js.map +1 -1
- package/lib/helpers/for-backend/helpers-git.backend.js +1 -1
- package/lib/helpers/for-backend/helpers-git.backend.js.map +1 -1
- package/lib/helpers/for-backend/helpers-path.backend.js +2 -2
- package/lib/helpers/for-backend/helpers-path.backend.js.map +1 -1
- package/lib/helpers/for-backend/helpers-process.js +1 -1
- package/lib/helpers/for-backend/helpers-process.js.map +1 -1
- package/lib/helpers/for-browser/angular.helper.js +2 -2
- package/lib/helpers/helpers-json5.backend.js +1 -1
- package/lib/helpers/helpers-json5.backend.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 +26 -3
- package/lib/utils.js +231 -67
- package/lib/utils.js.map +1 -1
- package/lib/validators/validators-git.js.map +1 -1
- package/migrations/1736198527297_init.d.ts +1 -1
- package/migrations/1736198527297_init.js +6 -6
- package/migrations/1736198527297_init.js.map +1 -1
- package/migrations/1736199486472_addingNotAssignablePorts.d.ts +3 -3
- package/migrations/1736199486472_addingNotAssignablePorts.js +7 -7
- package/migrations/1736199486472_addingNotAssignablePorts.js.map +1 -1
- package/migrations/1736454437350_addFreePorts.d.ts +3 -3
- package/migrations/1736454437350_addFreePorts.js +7 -7
- package/migrations/1736454437350_addFreePorts.js.map +1 -1
- package/migrations/migrations_index._auto-generated_.d.ts +7 -7
- package/migrations/migrations_index._auto-generated_.js +5 -5
- package/migrations/migrations_index._auto-generated_.js.map +1 -1
- package/package.json +7 -10
- package/tmp-environment.json +11 -7
- package/websql/fesm2022/tnp-helpers.mjs +482 -122
- package/websql/fesm2022/tnp-helpers.mjs.map +1 -1
- package/websql/lib/base/classes/base-cli-worker/base-cli-worker-controller.d.ts +1 -1
- package/websql/lib/base/classes/base-cli-worker/base-cli-worker-terminal-ui.d.ts +2 -2
- package/websql/lib/base/classes/base-cli-worker/base-cli-worker.d.ts +2 -2
- package/websql/lib/base/classes/base-cli-worker/base-cli-worker.models.d.ts +2 -2
- package/websql/lib/base/classes/base-compiler-for-project.d.ts +4 -4
- package/websql/lib/base/classes/base-global-command-line.d.ts +15 -1
- package/websql/lib/base/classes/base-linked-projects.d.ts +10 -3
- package/websql/lib/base/classes/base-package-json.d.ts +1 -0
- package/websql/lib/base/tcp-udp-ports/ports.controller.d.ts +2 -2
- package/websql/lib/base/tcp-udp-ports/tcp-udp-ports.context.d.ts +1 -1
- package/websql/lib/base/tcp-udp-ports/tcp-upd-ports.worker.d.ts +3 -3
- package/websql/lib/build-info._auto-generated_.d.ts +1 -1
- package/websql/lib/utils.d.ts +26 -3
- package/websql/migrations/1736198527297_init.d.ts +1 -1
- package/websql/migrations/1736199486472_addingNotAssignablePorts.d.ts +3 -3
- package/websql/migrations/1736454437350_addFreePorts.d.ts +3 -3
- package/websql/migrations/migrations_index._auto-generated_.d.ts +7 -7
- package/websql/package.json +1 -1
- package/lib/base/classes/base-process/base-process-api.service.d.ts +0 -7
- package/lib/base/classes/base-process/base-process.context.d.ts +0 -19
- package/lib/base/classes/base-process/base-process.context.js +0 -22
- package/lib/base/classes/base-process/base-process.context.js.map +0 -1
- package/lib/base/classes/base-process/base-process.controller.d.ts +0 -17
- package/lib/base/classes/base-process/base-process.controller.js +0 -91
- package/lib/base/classes/base-process/base-process.controller.js.map +0 -1
- package/lib/base/classes/base-process/base-process.d.ts +0 -8
- package/lib/base/classes/base-process/base-process.defaults-values.d.ts +0 -2
- package/lib/base/classes/base-process/base-process.defaults-values.js +0 -9
- package/lib/base/classes/base-process/base-process.defaults-values.js.map +0 -1
- package/lib/base/classes/base-process/base-process.js +0 -62
- package/lib/base/classes/base-process/base-process.js.map +0 -1
- package/lib/base/classes/base-process/base-process.models.d.ts +0 -6
- package/lib/base/classes/base-process/base-process.models.js +0 -3
- package/lib/base/classes/base-process/base-process.models.js.map +0 -1
- package/lib/base/classes/base-process/base-process.provider.d.ts +0 -16
- package/lib/base/classes/base-process/base-process.provider.js +0 -69
- package/lib/base/classes/base-process/base-process.provider.js.map +0 -1
- package/lib/base/classes/base-process/base-process.repository copy.d.ts +0 -8
- package/lib/base/classes/base-process/base-process.repository copy.js +0 -32
- package/lib/base/classes/base-process/base-process.repository copy.js.map +0 -1
- package/lib/base/classes/base-process/base-process.repository.d.ts +0 -8
- package/lib/base/classes/base-process/base-process.repository.js +0 -32
- package/lib/base/classes/base-process/base-process.repository.js.map +0 -1
- package/lib/base/classes/base-process/base-process.terminal-ui.d.ts +0 -11
- package/lib/base/classes/base-process/base-process.terminal-ui.js +0 -54
- package/lib/base/classes/base-process/base-process.terminal-ui.js.map +0 -1
- package/lib/base/classes/base-process/base-process.worker.d.ts +0 -16
- package/lib/base/classes/base-process/base-process.worker.js +0 -29
- package/lib/base/classes/base-process/base-process.worker.js.map +0 -1
- package/lib/base/classes/base-process/index.d.ts +0 -1
- package/lib/base/classes/base-process/index.js +0 -22
- package/lib/base/classes/base-process/index.js.map +0 -1
- package/lib/base/classes/base-process/processes.repository.d.ts +0 -0
- package/lib/base/classes/base-process/processes.repository.js +0 -5
- package/lib/base/classes/base-process/processes.repository.js.map +0 -1
- package/lib/env-backend._auto-generated_.d.ts +0 -34
- package/lib/env-backend._auto-generated_.js +0 -38
- package/lib/env-backend._auto-generated_.js.map +0 -1
- package/lib/env-browser._auto-generated_.d.ts +0 -34
- package/lib/env-browser._auto-generated_.js +0 -38
- package/lib/env-browser._auto-generated_.js.map +0 -1
- package/lib/env.backend.d.ts +0 -34
- package/lib/env.backend.js +0 -40
- package/lib/env.backend.js.map +0 -1
- package/lib/env.browser.d.ts +0 -34
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { Subject, BehaviorSubject } from 'rxjs';
|
|
2
|
-
import { CoreModels, Utils, crossPlatformPath, _, CoreHelpers, UtilsTerminal, chalk, path, Helpers as Helpers$1, fse, UtilsNetwork } from 'tnp-core/websql';
|
|
2
|
+
import { CoreModels, Utils, crossPlatformPath, _, CoreHelpers, UtilsTerminal, chalk, path, config, Helpers as Helpers$1, fse, folderName, fileName, UtilsNetwork, UtilsSudo, isElevated } 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';
|
|
6
6
|
import { CLASS } from 'typescript-class-helpers/websql';
|
|
7
7
|
import { __decorate, __metadata, __param } from 'tslib';
|
|
8
|
-
import { Taon,
|
|
9
|
-
import {
|
|
10
|
-
import { IncCompiler, ChangeOfFile } from 'incremental-compiler/websql';
|
|
8
|
+
import { Taon, TaonBaseClass, TaonBaseContext } from 'taon/websql';
|
|
9
|
+
import { BaseClientCompiler } from 'incremental-compiler/websql';
|
|
11
10
|
|
|
12
11
|
//#region @browser
|
|
13
12
|
const componentContextSymbol = Symbol();
|
|
@@ -494,6 +493,9 @@ var UtilsTypescript;
|
|
|
494
493
|
/* */
|
|
495
494
|
/* */
|
|
496
495
|
/* */
|
|
496
|
+
/* */
|
|
497
|
+
/* */
|
|
498
|
+
/* */
|
|
497
499
|
return (void 0);
|
|
498
500
|
};
|
|
499
501
|
UtilsTypescript.eslintFixAllFilesInsideFolder = (absPathToFolder) => {
|
|
@@ -513,7 +515,6 @@ var UtilsTypescript;
|
|
|
513
515
|
/* */
|
|
514
516
|
/* */
|
|
515
517
|
/* */
|
|
516
|
-
/* */
|
|
517
518
|
return (void 0);
|
|
518
519
|
};
|
|
519
520
|
//#endregion
|
|
@@ -1007,64 +1008,11 @@ var UtilsTypescript;
|
|
|
1007
1008
|
return (void 0);
|
|
1008
1009
|
};
|
|
1009
1010
|
//#endregion
|
|
1010
|
-
//#region fix standalone ng 19
|
|
1011
1011
|
/**
|
|
1012
1012
|
* Transition methods ng18 => ng19
|
|
1013
|
-
*
|
|
1014
|
-
* and add standalone: false if not exists
|
|
1013
|
+
* Adds standalone: false if not exists in component decorator
|
|
1015
1014
|
*/
|
|
1016
1015
|
function transformComponentStandaloneOption(sourceText) {
|
|
1017
|
-
/* */
|
|
1018
|
-
/* */
|
|
1019
|
-
/* */
|
|
1020
|
-
/* */
|
|
1021
|
-
/* */
|
|
1022
|
-
/* */
|
|
1023
|
-
/* */
|
|
1024
|
-
/* */
|
|
1025
|
-
/* */
|
|
1026
|
-
/* */
|
|
1027
|
-
/* */
|
|
1028
|
-
/* */
|
|
1029
|
-
/* */
|
|
1030
|
-
/* */
|
|
1031
|
-
/* */
|
|
1032
|
-
/* */
|
|
1033
|
-
/* */
|
|
1034
|
-
/* */
|
|
1035
|
-
/* */
|
|
1036
|
-
/* */
|
|
1037
|
-
/* */
|
|
1038
|
-
/* */
|
|
1039
|
-
/* */
|
|
1040
|
-
/* */
|
|
1041
|
-
/* */
|
|
1042
|
-
/* */
|
|
1043
|
-
/* */
|
|
1044
|
-
/* */
|
|
1045
|
-
/* */
|
|
1046
|
-
/* */
|
|
1047
|
-
/* */
|
|
1048
|
-
/* */
|
|
1049
|
-
/* */
|
|
1050
|
-
/* */
|
|
1051
|
-
/* */
|
|
1052
|
-
/* */
|
|
1053
|
-
/* */
|
|
1054
|
-
/* */
|
|
1055
|
-
/* */
|
|
1056
|
-
/* */
|
|
1057
|
-
/* */
|
|
1058
|
-
/* */
|
|
1059
|
-
/* */
|
|
1060
|
-
/* */
|
|
1061
|
-
/* */
|
|
1062
|
-
/* */
|
|
1063
|
-
/* */
|
|
1064
|
-
/* */
|
|
1065
|
-
/* */
|
|
1066
|
-
/* */
|
|
1067
|
-
/* */
|
|
1068
1016
|
/* */
|
|
1069
1017
|
/* */
|
|
1070
1018
|
/* */
|
|
@@ -1098,7 +1046,6 @@ var UtilsTypescript;
|
|
|
1098
1046
|
return (void 0);
|
|
1099
1047
|
}
|
|
1100
1048
|
UtilsTypescript.transformComponentStandaloneOption = transformComponentStandaloneOption;
|
|
1101
|
-
//#endregion
|
|
1102
1049
|
//#region escape @ in html text
|
|
1103
1050
|
const escapeAtInHtmlText = (fileContent) => {
|
|
1104
1051
|
return fileContent.replace(/>([^<@]*?)@([^<]*)</g, (_match, before, after) => {
|
|
@@ -1131,7 +1078,6 @@ var UtilsTypescript;
|
|
|
1131
1078
|
//#endregion
|
|
1132
1079
|
//#region remove tagged imports/exports
|
|
1133
1080
|
function removeTaggedImportExport(tsFileContent, tags) {
|
|
1134
|
-
//#region @websqlFunc
|
|
1135
1081
|
const sourceFile = createSourceFile('temp.ts', tsFileContent, ScriptTarget.Latest, true, ScriptKind.TS);
|
|
1136
1082
|
// debug && console.log(tsFileContent);
|
|
1137
1083
|
const lines = tsFileContent.split(/\r?\n/);
|
|
@@ -1172,7 +1118,6 @@ var UtilsTypescript;
|
|
|
1172
1118
|
const result = lines.join('\n');
|
|
1173
1119
|
// debug && console.log(result)
|
|
1174
1120
|
return result;
|
|
1175
|
-
//#endregion
|
|
1176
1121
|
}
|
|
1177
1122
|
UtilsTypescript.removeTaggedImportExport = removeTaggedImportExport;
|
|
1178
1123
|
//#endregion
|
|
@@ -1232,6 +1177,24 @@ var UtilsTypescript;
|
|
|
1232
1177
|
/* */
|
|
1233
1178
|
/* */
|
|
1234
1179
|
/* */
|
|
1180
|
+
/* */
|
|
1181
|
+
/* */
|
|
1182
|
+
/* */
|
|
1183
|
+
/* */
|
|
1184
|
+
/* */
|
|
1185
|
+
/* */
|
|
1186
|
+
/* */
|
|
1187
|
+
/* */
|
|
1188
|
+
/* */
|
|
1189
|
+
/* */
|
|
1190
|
+
/* */
|
|
1191
|
+
/* */
|
|
1192
|
+
/* */
|
|
1193
|
+
/* */
|
|
1194
|
+
/* */
|
|
1195
|
+
/* */
|
|
1196
|
+
/* */
|
|
1197
|
+
/* */
|
|
1235
1198
|
return (void 0);
|
|
1236
1199
|
};
|
|
1237
1200
|
//#endregion
|
|
@@ -1323,7 +1286,8 @@ var UtilsTypescript;
|
|
|
1323
1286
|
var UtilsHttp;
|
|
1324
1287
|
(function (UtilsHttp) {
|
|
1325
1288
|
//#region utils http / start http server
|
|
1326
|
-
UtilsHttp.startHttpServer = async (cwd, port) => {
|
|
1289
|
+
UtilsHttp.startHttpServer = async (cwd, port, options) => {
|
|
1290
|
+
/* */
|
|
1327
1291
|
/* */
|
|
1328
1292
|
/* */
|
|
1329
1293
|
/* */
|
|
@@ -1385,6 +1349,17 @@ var UtilsMd;
|
|
|
1385
1349
|
/* */
|
|
1386
1350
|
return (void 0);
|
|
1387
1351
|
};
|
|
1352
|
+
UtilsMd.getAssetsFromFile = (absPathToFile) => {
|
|
1353
|
+
/* */
|
|
1354
|
+
/* */
|
|
1355
|
+
/* */
|
|
1356
|
+
/* */
|
|
1357
|
+
/* */
|
|
1358
|
+
/* */
|
|
1359
|
+
/* */
|
|
1360
|
+
/* */
|
|
1361
|
+
return (void 0);
|
|
1362
|
+
};
|
|
1388
1363
|
/**
|
|
1389
1364
|
* Extract links to other Markdown files from a given Markdown content.
|
|
1390
1365
|
* @param mdfileContent
|
|
@@ -2558,6 +2533,214 @@ var UtilsDocker;
|
|
|
2558
2533
|
//#endregion
|
|
2559
2534
|
})(UtilsDocker || (UtilsDocker = {}));
|
|
2560
2535
|
//#endregion
|
|
2536
|
+
//#region utils file sync
|
|
2537
|
+
/**
|
|
2538
|
+
* ! TODO @IN_PROGRESS @LAST
|
|
2539
|
+
*/
|
|
2540
|
+
var UtilsFileSync;
|
|
2541
|
+
(function (UtilsFileSync) {
|
|
2542
|
+
//#region constants
|
|
2543
|
+
// ───── SAFETY SETTINGS ─────────────────────────────
|
|
2544
|
+
// Minimum realistic photo/video size (in bytes) before we even try
|
|
2545
|
+
const MIN_PHOTO_SIZE = 50_000; // ~50 KB — anything smaller is probably placeholder
|
|
2546
|
+
const MIN_VIDEO_SIZE = 500_000; // ~500 KB
|
|
2547
|
+
// How long we wait after the file stops growing before processing
|
|
2548
|
+
const STABILIZATION_MS = 5000; // 5 seconds is bulletproof
|
|
2549
|
+
//#endregion
|
|
2550
|
+
//#region for folders
|
|
2551
|
+
UtilsFileSync.forFolders = async (folder) => {
|
|
2552
|
+
/* */
|
|
2553
|
+
/* */
|
|
2554
|
+
/* */
|
|
2555
|
+
/* */
|
|
2556
|
+
/* */
|
|
2557
|
+
/* */
|
|
2558
|
+
/* */
|
|
2559
|
+
/* */
|
|
2560
|
+
/* */
|
|
2561
|
+
/* */
|
|
2562
|
+
/* */
|
|
2563
|
+
/* */
|
|
2564
|
+
/* */
|
|
2565
|
+
/* */
|
|
2566
|
+
/* */
|
|
2567
|
+
/* */
|
|
2568
|
+
/* */
|
|
2569
|
+
/* */
|
|
2570
|
+
/* */
|
|
2571
|
+
/* */
|
|
2572
|
+
/* */
|
|
2573
|
+
/* */
|
|
2574
|
+
/* */
|
|
2575
|
+
/* */
|
|
2576
|
+
/* */
|
|
2577
|
+
/* */
|
|
2578
|
+
/* */
|
|
2579
|
+
/* */
|
|
2580
|
+
/* */
|
|
2581
|
+
/* */
|
|
2582
|
+
/* */
|
|
2583
|
+
/* */
|
|
2584
|
+
/* */
|
|
2585
|
+
/* */
|
|
2586
|
+
/* */
|
|
2587
|
+
/* */
|
|
2588
|
+
/* */
|
|
2589
|
+
/* */
|
|
2590
|
+
/* */
|
|
2591
|
+
/* */
|
|
2592
|
+
/* */
|
|
2593
|
+
/* */
|
|
2594
|
+
/* */
|
|
2595
|
+
/* */
|
|
2596
|
+
/* */
|
|
2597
|
+
/* */
|
|
2598
|
+
/* */
|
|
2599
|
+
/* */
|
|
2600
|
+
/* */
|
|
2601
|
+
/* */
|
|
2602
|
+
/* */
|
|
2603
|
+
/* */
|
|
2604
|
+
/* */
|
|
2605
|
+
/* */
|
|
2606
|
+
/* */
|
|
2607
|
+
/* */
|
|
2608
|
+
/* */
|
|
2609
|
+
/* */
|
|
2610
|
+
/* */
|
|
2611
|
+
/* */
|
|
2612
|
+
/* */
|
|
2613
|
+
/* */
|
|
2614
|
+
/* */
|
|
2615
|
+
/* */
|
|
2616
|
+
/* */
|
|
2617
|
+
/* */
|
|
2618
|
+
/* */
|
|
2619
|
+
/* */
|
|
2620
|
+
/* */
|
|
2621
|
+
/* */
|
|
2622
|
+
/* */
|
|
2623
|
+
/* */
|
|
2624
|
+
/* */
|
|
2625
|
+
/* */
|
|
2626
|
+
/* */
|
|
2627
|
+
/* */
|
|
2628
|
+
/* */
|
|
2629
|
+
/* */
|
|
2630
|
+
/* */
|
|
2631
|
+
/* */
|
|
2632
|
+
/* */
|
|
2633
|
+
/* */
|
|
2634
|
+
/* */
|
|
2635
|
+
/* */
|
|
2636
|
+
/* */
|
|
2637
|
+
/* */
|
|
2638
|
+
/* */
|
|
2639
|
+
/* */
|
|
2640
|
+
/* */
|
|
2641
|
+
/* */
|
|
2642
|
+
/* */
|
|
2643
|
+
/* */
|
|
2644
|
+
/* */
|
|
2645
|
+
/* */
|
|
2646
|
+
/* */
|
|
2647
|
+
/* */
|
|
2648
|
+
/* */
|
|
2649
|
+
/* */
|
|
2650
|
+
/* */
|
|
2651
|
+
/* */
|
|
2652
|
+
/* */
|
|
2653
|
+
/* */
|
|
2654
|
+
return (void 0);
|
|
2655
|
+
};
|
|
2656
|
+
//#endregion
|
|
2657
|
+
//#region is hevc
|
|
2658
|
+
async function isHevc(file) {
|
|
2659
|
+
/* */
|
|
2660
|
+
/* */
|
|
2661
|
+
/* */
|
|
2662
|
+
/* */
|
|
2663
|
+
/* */
|
|
2664
|
+
/* */
|
|
2665
|
+
/* */
|
|
2666
|
+
/* */
|
|
2667
|
+
/* */
|
|
2668
|
+
/* */
|
|
2669
|
+
return (void 0);
|
|
2670
|
+
}
|
|
2671
|
+
//#endregion
|
|
2672
|
+
//#region safe process
|
|
2673
|
+
const safeProcess = async (filePath, wacherData) => {
|
|
2674
|
+
/* */
|
|
2675
|
+
/* */
|
|
2676
|
+
/* */
|
|
2677
|
+
/* */
|
|
2678
|
+
/* */
|
|
2679
|
+
/* */
|
|
2680
|
+
/* */
|
|
2681
|
+
/* */
|
|
2682
|
+
/* */
|
|
2683
|
+
/* */
|
|
2684
|
+
/* */
|
|
2685
|
+
/* */
|
|
2686
|
+
/* */
|
|
2687
|
+
/* */
|
|
2688
|
+
/* */
|
|
2689
|
+
/* */
|
|
2690
|
+
/* */
|
|
2691
|
+
/* */
|
|
2692
|
+
/* */
|
|
2693
|
+
/* */
|
|
2694
|
+
/* */
|
|
2695
|
+
/* */
|
|
2696
|
+
/* */
|
|
2697
|
+
/* */
|
|
2698
|
+
/* */
|
|
2699
|
+
/* */
|
|
2700
|
+
/* */
|
|
2701
|
+
/* */
|
|
2702
|
+
/* */
|
|
2703
|
+
/* */
|
|
2704
|
+
/* */
|
|
2705
|
+
/* */
|
|
2706
|
+
/* */
|
|
2707
|
+
/* */
|
|
2708
|
+
/* */
|
|
2709
|
+
/* */
|
|
2710
|
+
/* */
|
|
2711
|
+
/* */
|
|
2712
|
+
/* */
|
|
2713
|
+
/* */
|
|
2714
|
+
/* */
|
|
2715
|
+
/* */
|
|
2716
|
+
/* */
|
|
2717
|
+
/* */
|
|
2718
|
+
/* */
|
|
2719
|
+
/* */
|
|
2720
|
+
/* */
|
|
2721
|
+
/* */
|
|
2722
|
+
/* */
|
|
2723
|
+
/* */
|
|
2724
|
+
/* */
|
|
2725
|
+
/* */
|
|
2726
|
+
/* */
|
|
2727
|
+
/* */
|
|
2728
|
+
/* */
|
|
2729
|
+
/* */
|
|
2730
|
+
/* */
|
|
2731
|
+
/* */
|
|
2732
|
+
/* */
|
|
2733
|
+
/* */
|
|
2734
|
+
/* */
|
|
2735
|
+
/* */
|
|
2736
|
+
/* */
|
|
2737
|
+
/* */
|
|
2738
|
+
/* */
|
|
2739
|
+
/* */
|
|
2740
|
+
return (void 0);
|
|
2741
|
+
};
|
|
2742
|
+
//#endregion
|
|
2743
|
+
})(UtilsFileSync || (UtilsFileSync = {}));
|
|
2561
2744
|
|
|
2562
2745
|
class HelpersArrayObj {
|
|
2563
2746
|
from(s) {
|
|
@@ -5460,7 +5643,7 @@ var BaseCLiWorkerStartMode;
|
|
|
5460
5643
|
})(BaseCLiWorkerStartMode || (BaseCLiWorkerStartMode = {}));
|
|
5461
5644
|
class BaseCLiWorkerStartParams {
|
|
5462
5645
|
}
|
|
5463
|
-
class BaseCliMethodOptions extends
|
|
5646
|
+
class BaseCliMethodOptions extends TaonBaseClass {
|
|
5464
5647
|
static from(opt) {
|
|
5465
5648
|
opt = opt ?? {};
|
|
5466
5649
|
opt.cliParams = opt.cliParams ?? {};
|
|
@@ -6293,7 +6476,7 @@ class BaseCliWorkerConfig {
|
|
|
6293
6476
|
}
|
|
6294
6477
|
//#endregion
|
|
6295
6478
|
|
|
6296
|
-
let
|
|
6479
|
+
let TaonBaseCliWorkerController = class TaonBaseCliWorkerController extends Taon.Base.Controller {
|
|
6297
6480
|
constructor() {
|
|
6298
6481
|
super(...arguments);
|
|
6299
6482
|
/**
|
|
@@ -6403,14 +6586,14 @@ __decorate([
|
|
|
6403
6586
|
__metadata("design:type", Function),
|
|
6404
6587
|
__metadata("design:paramtypes", [String, String]),
|
|
6405
6588
|
__metadata("design:returntype", Object)
|
|
6406
|
-
],
|
|
6589
|
+
], TaonBaseCliWorkerController.prototype, "baseCLiWorkerCommand_initializeMetadata", null);
|
|
6407
6590
|
__decorate([
|
|
6408
6591
|
Taon.Http.GET(),
|
|
6409
6592
|
__param(0, Taon.Http.Param.Query('dontRemoveConfigFile')),
|
|
6410
6593
|
__metadata("design:type", Function),
|
|
6411
6594
|
__metadata("design:paramtypes", [Boolean]),
|
|
6412
6595
|
__metadata("design:returntype", Object)
|
|
6413
|
-
],
|
|
6596
|
+
], TaonBaseCliWorkerController.prototype, "baseCLiWorkerCommand_kill", null);
|
|
6414
6597
|
__decorate([
|
|
6415
6598
|
Taon.Http.HTML({
|
|
6416
6599
|
pathIsGlobal: true,
|
|
@@ -6419,26 +6602,26 @@ __decorate([
|
|
|
6419
6602
|
__metadata("design:type", Function),
|
|
6420
6603
|
__metadata("design:paramtypes", []),
|
|
6421
6604
|
__metadata("design:returntype", Object)
|
|
6422
|
-
],
|
|
6605
|
+
], TaonBaseCliWorkerController.prototype, "info", null);
|
|
6423
6606
|
__decorate([
|
|
6424
6607
|
Taon.Http.POST(),
|
|
6425
6608
|
__param(0, Taon.Http.Param.Body()),
|
|
6426
6609
|
__metadata("design:type", Function),
|
|
6427
6610
|
__metadata("design:paramtypes", [BaseCliWorkerConfig]),
|
|
6428
6611
|
__metadata("design:returntype", Object)
|
|
6429
|
-
],
|
|
6612
|
+
], TaonBaseCliWorkerController.prototype, "baseCLiWorkerCommand_isHealthy", null);
|
|
6430
6613
|
__decorate([
|
|
6431
6614
|
Taon.Http.POST(),
|
|
6432
6615
|
__param(0, Taon.Http.Param.Body()),
|
|
6433
6616
|
__metadata("design:type", Function),
|
|
6434
6617
|
__metadata("design:paramtypes", [BaseCliWorkerConfig]),
|
|
6435
6618
|
__metadata("design:returntype", Object)
|
|
6436
|
-
],
|
|
6437
|
-
|
|
6619
|
+
], TaonBaseCliWorkerController.prototype, "baseCLiWorkerCommand_hasUpToDateVersion", null);
|
|
6620
|
+
TaonBaseCliWorkerController = __decorate([
|
|
6438
6621
|
Taon.Controller({
|
|
6439
|
-
className: '
|
|
6622
|
+
className: 'TaonBaseCliWorkerController',
|
|
6440
6623
|
})
|
|
6441
|
-
],
|
|
6624
|
+
], TaonBaseCliWorkerController);
|
|
6442
6625
|
|
|
6443
6626
|
//#endregion
|
|
6444
6627
|
var BaseCliWorkerUtils;
|
|
@@ -6467,7 +6650,7 @@ var BaseCliWorkerUtils;
|
|
|
6467
6650
|
})(BaseCliWorkerUtils || (BaseCliWorkerUtils = {}));
|
|
6468
6651
|
|
|
6469
6652
|
//#endregion
|
|
6470
|
-
let
|
|
6653
|
+
let TaonPortsController = class TaonPortsController extends TaonBaseCliWorkerController {
|
|
6471
6654
|
constructor() {
|
|
6472
6655
|
super(...arguments);
|
|
6473
6656
|
//#region fields
|
|
@@ -6700,28 +6883,28 @@ __decorate([
|
|
|
6700
6883
|
__metadata("design:type", Function),
|
|
6701
6884
|
__metadata("design:paramtypes", []),
|
|
6702
6885
|
__metadata("design:returntype", Object)
|
|
6703
|
-
],
|
|
6886
|
+
], TaonPortsController.prototype, "getFirstFreePort", null);
|
|
6704
6887
|
__decorate([
|
|
6705
6888
|
Taon.Http.GET(),
|
|
6706
6889
|
__param(0, Taon.Http.Param.Query('portNumber')),
|
|
6707
6890
|
__metadata("design:type", Function),
|
|
6708
6891
|
__metadata("design:paramtypes", [Number]),
|
|
6709
6892
|
__metadata("design:returntype", Object)
|
|
6710
|
-
],
|
|
6893
|
+
], TaonPortsController.prototype, "getPortByNumber", null);
|
|
6711
6894
|
__decorate([
|
|
6712
6895
|
Taon.Http.GET(),
|
|
6713
6896
|
__param(0, Taon.Http.Param.Query('status')),
|
|
6714
6897
|
__metadata("design:type", Function),
|
|
6715
6898
|
__metadata("design:paramtypes", [String]),
|
|
6716
6899
|
__metadata("design:returntype", Object)
|
|
6717
|
-
],
|
|
6900
|
+
], TaonPortsController.prototype, "getPortsByStatus", null);
|
|
6718
6901
|
__decorate([
|
|
6719
6902
|
Taon.Http.DELETE(),
|
|
6720
6903
|
__param(0, Taon.Http.Param.Query('portNumber')),
|
|
6721
6904
|
__metadata("design:type", Function),
|
|
6722
6905
|
__metadata("design:paramtypes", [Number]),
|
|
6723
6906
|
__metadata("design:returntype", Object)
|
|
6724
|
-
],
|
|
6907
|
+
], TaonPortsController.prototype, "deletePort", null);
|
|
6725
6908
|
__decorate([
|
|
6726
6909
|
Taon.Http.PUT(),
|
|
6727
6910
|
__param(0, Taon.Http.Param.Query('portNumber')),
|
|
@@ -6729,7 +6912,7 @@ __decorate([
|
|
|
6729
6912
|
__metadata("design:type", Function),
|
|
6730
6913
|
__metadata("design:paramtypes", [Number, String]),
|
|
6731
6914
|
__metadata("design:returntype", Object)
|
|
6732
|
-
],
|
|
6915
|
+
], TaonPortsController.prototype, "updatePortUniqueId", null);
|
|
6733
6916
|
__decorate([
|
|
6734
6917
|
Taon.Http.POST(),
|
|
6735
6918
|
__param(0, Taon.Http.Param.Query('portNumber')),
|
|
@@ -6737,7 +6920,7 @@ __decorate([
|
|
|
6737
6920
|
__metadata("design:type", Function),
|
|
6738
6921
|
__metadata("design:paramtypes", [Number, String]),
|
|
6739
6922
|
__metadata("design:returntype", Object)
|
|
6740
|
-
],
|
|
6923
|
+
], TaonPortsController.prototype, "addTakeByOsPort", null);
|
|
6741
6924
|
__decorate([
|
|
6742
6925
|
Taon.Http.PUT(),
|
|
6743
6926
|
__param(0, Taon.Http.Param.Query('uniqueServiceName')),
|
|
@@ -6745,12 +6928,12 @@ __decorate([
|
|
|
6745
6928
|
__metadata("design:type", Function),
|
|
6746
6929
|
__metadata("design:paramtypes", [String, Number]),
|
|
6747
6930
|
__metadata("design:returntype", Object)
|
|
6748
|
-
],
|
|
6749
|
-
|
|
6931
|
+
], TaonPortsController.prototype, "registerAndAssignPort", null);
|
|
6932
|
+
TaonPortsController = __decorate([
|
|
6750
6933
|
Taon.Controller({
|
|
6751
|
-
className: '
|
|
6934
|
+
className: 'TaonPortsController',
|
|
6752
6935
|
})
|
|
6753
|
-
],
|
|
6936
|
+
], TaonPortsController);
|
|
6754
6937
|
|
|
6755
6938
|
let MainContext_1736198527297_init = class MainContext_1736198527297_init extends Taon.Base.Migration {
|
|
6756
6939
|
/**
|
|
@@ -6771,7 +6954,7 @@ MainContext_1736198527297_init = __decorate([
|
|
|
6771
6954
|
className: 'MainContext_1736198527297_init',
|
|
6772
6955
|
})
|
|
6773
6956
|
], MainContext_1736198527297_init);
|
|
6774
|
-
let
|
|
6957
|
+
let TaonPortsContext_1736198527297_init = class TaonPortsContext_1736198527297_init extends Taon.Base.Migration {
|
|
6775
6958
|
/**
|
|
6776
6959
|
* remove this method if you are ready to run this migration
|
|
6777
6960
|
*/
|
|
@@ -6787,11 +6970,11 @@ let PortsContext_1736198527297_init = class PortsContext_1736198527297_init exte
|
|
|
6787
6970
|
// console.log('Hello from migration DOWN!')
|
|
6788
6971
|
}
|
|
6789
6972
|
};
|
|
6790
|
-
|
|
6973
|
+
TaonPortsContext_1736198527297_init = __decorate([
|
|
6791
6974
|
Taon.Migration({
|
|
6792
|
-
className: '
|
|
6975
|
+
className: 'TaonPortsContext_1736198527297_init',
|
|
6793
6976
|
})
|
|
6794
|
-
],
|
|
6977
|
+
], TaonPortsContext_1736198527297_init);
|
|
6795
6978
|
|
|
6796
6979
|
const portsWithDescription = {
|
|
6797
6980
|
3000: 'Commonly used for development servers',
|
|
@@ -6812,11 +6995,11 @@ const portsWithDescription = {
|
|
|
6812
6995
|
5984: 'CouchDB',
|
|
6813
6996
|
6000: 'in use by something in macos',
|
|
6814
6997
|
};
|
|
6815
|
-
let
|
|
6998
|
+
let TaonPortsContext_1736199486472_addingNotAssignablePorts = class TaonPortsContext_1736199486472_addingNotAssignablePorts extends Taon
|
|
6816
6999
|
.Base.Migration {
|
|
6817
7000
|
constructor() {
|
|
6818
7001
|
super(...arguments);
|
|
6819
|
-
this.portsController = this.injectController(
|
|
7002
|
+
this.portsController = this.injectController(TaonPortsController);
|
|
6820
7003
|
this.commonPortsFrom3000to6000 = Object.keys(portsWithDescription).map(Number);
|
|
6821
7004
|
}
|
|
6822
7005
|
async up(queryRunner) {
|
|
@@ -6844,17 +7027,17 @@ let PortsContext_1736199486472_addingNotAssignablePorts = class PortsContext_173
|
|
|
6844
7027
|
}
|
|
6845
7028
|
}
|
|
6846
7029
|
};
|
|
6847
|
-
|
|
7030
|
+
TaonPortsContext_1736199486472_addingNotAssignablePorts = __decorate([
|
|
6848
7031
|
Taon.Migration({
|
|
6849
|
-
className: '
|
|
7032
|
+
className: 'TaonPortsContext_1736199486472_addingNotAssignablePorts',
|
|
6850
7033
|
})
|
|
6851
|
-
],
|
|
7034
|
+
], TaonPortsContext_1736199486472_addingNotAssignablePorts);
|
|
6852
7035
|
|
|
6853
|
-
let
|
|
7036
|
+
let TaonPortsContext_1736454437350_addFreePorts = class TaonPortsContext_1736454437350_addFreePorts extends Taon.Base
|
|
6854
7037
|
.Migration {
|
|
6855
7038
|
constructor() {
|
|
6856
7039
|
super(...arguments);
|
|
6857
|
-
this.portsController = this.injectController(
|
|
7040
|
+
this.portsController = this.injectController(TaonPortsController);
|
|
6858
7041
|
}
|
|
6859
7042
|
async up(queryRunner) {
|
|
6860
7043
|
const portsTableRepo = await queryRunner.manager.getRepository(Port);
|
|
@@ -6888,33 +7071,33 @@ let PortsContext_1736454437350_addFreePorts = class PortsContext_1736454437350_a
|
|
|
6888
7071
|
}
|
|
6889
7072
|
}
|
|
6890
7073
|
};
|
|
6891
|
-
|
|
7074
|
+
TaonPortsContext_1736454437350_addFreePorts = __decorate([
|
|
6892
7075
|
Taon.Migration({
|
|
6893
|
-
className: '
|
|
7076
|
+
className: 'TaonPortsContext_1736454437350_addFreePorts',
|
|
6894
7077
|
})
|
|
6895
|
-
],
|
|
7078
|
+
], TaonPortsContext_1736454437350_addFreePorts);
|
|
6896
7079
|
|
|
6897
7080
|
// THIS FILE IS GENERATED - DO NOT MODIFY
|
|
6898
7081
|
// THIS FILE IS GENERATED - DO NOT MODIFY
|
|
6899
7082
|
const MIGRATIONS_CLASSES_FOR_MainContext = {
|
|
6900
7083
|
/* 06-01-2025 22:22:07 */ MainContext_1736198527297_init,
|
|
6901
7084
|
};
|
|
6902
|
-
const
|
|
6903
|
-
/* 06-01-2025 22:22:07 */
|
|
6904
|
-
/* 06-01-2025 22:38:06 */
|
|
6905
|
-
/* 09-01-2025 21:27:17 */
|
|
7085
|
+
const MIGRATIONS_CLASSES_FOR_TaonPortsContext = {
|
|
7086
|
+
/* 06-01-2025 22:22:07 */ TaonPortsContext_1736198527297_init,
|
|
7087
|
+
/* 06-01-2025 22:38:06 */ TaonPortsContext_1736199486472_addingNotAssignablePorts,
|
|
7088
|
+
/* 09-01-2025 21:27:17 */ TaonPortsContext_1736454437350_addFreePorts,
|
|
6906
7089
|
};
|
|
6907
7090
|
// THIS FILE IS GENERATED - DO NOT MODIFY
|
|
6908
7091
|
|
|
6909
7092
|
//@ts-nocheck
|
|
6910
7093
|
|
|
6911
|
-
const
|
|
6912
|
-
contextName: '
|
|
7094
|
+
const TaonPortsContextTemplate = Taon.createContextTemplate(() => ({
|
|
7095
|
+
contextName: 'TaonPortsContext',
|
|
6913
7096
|
appId: 'dev.taon.taon-ports-worker',
|
|
6914
|
-
contexts: {
|
|
6915
|
-
controllers: {
|
|
7097
|
+
contexts: { TaonBaseContext },
|
|
7098
|
+
controllers: { TaonPortsController },
|
|
6916
7099
|
entities: { Port },
|
|
6917
|
-
migrations: { ...
|
|
7100
|
+
migrations: { ...MIGRATIONS_CLASSES_FOR_TaonPortsContext },
|
|
6918
7101
|
skipWritingServerRoutes: true,
|
|
6919
7102
|
...getBaseCliWorkerDatabaseConfig('ports-worker', 'DROP_DB+MIGRATIONS'),
|
|
6920
7103
|
logs: {
|
|
@@ -7228,8 +7411,8 @@ class PortsWorker extends BaseCliWorker {
|
|
|
7228
7411
|
constructor() {
|
|
7229
7412
|
super(...arguments);
|
|
7230
7413
|
this.terminalUI = new TcpUdpPortsTerminalUI(this);
|
|
7231
|
-
this.workerContextTemplate =
|
|
7232
|
-
this.controllerClass =
|
|
7414
|
+
this.workerContextTemplate = TaonPortsContextTemplate; // TODO for some reason as any is nessesary
|
|
7415
|
+
this.controllerClass = TaonPortsController;
|
|
7233
7416
|
}
|
|
7234
7417
|
}
|
|
7235
7418
|
|
|
@@ -7253,7 +7436,7 @@ const PROJECT_NPM_NAME = 'tnp-helpers';
|
|
|
7253
7436
|
/**
|
|
7254
7437
|
* Autogenerated by current cli tool. Use *tnp release* to bump version.
|
|
7255
7438
|
*/
|
|
7256
|
-
const CURRENT_PACKAGE_VERSION = '19.0.
|
|
7439
|
+
const CURRENT_PACKAGE_VERSION = '19.0.72';
|
|
7257
7440
|
// THIS FILE IS GENERATED - DO NOT MODIFY
|
|
7258
7441
|
|
|
7259
7442
|
//#endregion
|
|
@@ -8260,6 +8443,22 @@ class BaseProject {
|
|
|
8260
8443
|
/* */
|
|
8261
8444
|
/* */
|
|
8262
8445
|
/* */
|
|
8446
|
+
/* */
|
|
8447
|
+
/* */
|
|
8448
|
+
/* */
|
|
8449
|
+
/* */
|
|
8450
|
+
/* */
|
|
8451
|
+
/* */
|
|
8452
|
+
/* */
|
|
8453
|
+
/* */
|
|
8454
|
+
/* */
|
|
8455
|
+
/* */
|
|
8456
|
+
/* */
|
|
8457
|
+
/* */
|
|
8458
|
+
/* */
|
|
8459
|
+
/* */
|
|
8460
|
+
/* */
|
|
8461
|
+
/* */
|
|
8263
8462
|
return (void 0);
|
|
8264
8463
|
}
|
|
8265
8464
|
//#region methods & getters / get unique for task
|
|
@@ -8300,6 +8499,13 @@ class BaseProject {
|
|
|
8300
8499
|
/* */
|
|
8301
8500
|
/* */
|
|
8302
8501
|
/* */
|
|
8502
|
+
/* */
|
|
8503
|
+
/* */
|
|
8504
|
+
/* */
|
|
8505
|
+
/* */
|
|
8506
|
+
/* */
|
|
8507
|
+
/* */
|
|
8508
|
+
/* */
|
|
8303
8509
|
return (void 0);
|
|
8304
8510
|
}
|
|
8305
8511
|
//#endregion
|
|
@@ -9523,6 +9729,10 @@ class BasePackageJson extends BaseJsonFileReader {
|
|
|
9523
9729
|
get repository() {
|
|
9524
9730
|
return this.data?.repository;
|
|
9525
9731
|
}
|
|
9732
|
+
setRepository(repository) {
|
|
9733
|
+
this.data.repository = repository;
|
|
9734
|
+
this.saveToDisk('setting repository');
|
|
9735
|
+
}
|
|
9526
9736
|
/**
|
|
9527
9737
|
* set the WHOLE dependencies object
|
|
9528
9738
|
* THIS WILL NOT MERGE -> IT WILL REPLACE WHOLE DEPENDENCIES OBJECT
|
|
@@ -10855,10 +11065,12 @@ class BaseLinkedProjects extends BaseFeatureForProject {
|
|
|
10855
11065
|
}
|
|
10856
11066
|
//#endregion
|
|
10857
11067
|
//#region methods & getters / add linked project
|
|
10858
|
-
addLinkedProject(linkedProj) {
|
|
10859
|
-
|
|
10860
|
-
|
|
10861
|
-
|
|
11068
|
+
addLinkedProject(linkedProj, options) {
|
|
11069
|
+
/* */
|
|
11070
|
+
/* */
|
|
11071
|
+
/* */
|
|
11072
|
+
/* */
|
|
11073
|
+
/* */
|
|
10862
11074
|
/* */
|
|
10863
11075
|
/* */
|
|
10864
11076
|
/* */
|
|
@@ -10897,7 +11109,8 @@ class BaseLinkedProjects extends BaseFeatureForProject {
|
|
|
10897
11109
|
}
|
|
10898
11110
|
//#endregion
|
|
10899
11111
|
//#region methods & getters / add linked projects
|
|
10900
|
-
addLinkedProjects(linkedProjs) {
|
|
11112
|
+
addLinkedProjects(linkedProjs, options) {
|
|
11113
|
+
/* */
|
|
10901
11114
|
/* */
|
|
10902
11115
|
/* */
|
|
10903
11116
|
/* */
|
|
@@ -10906,7 +11119,10 @@ class BaseLinkedProjects extends BaseFeatureForProject {
|
|
|
10906
11119
|
}
|
|
10907
11120
|
//#endregion
|
|
10908
11121
|
//#region methods & getters / set linked projects config
|
|
10909
|
-
setLinkedProjectsConfig(linkedPorjectsConfig) {
|
|
11122
|
+
setLinkedProjectsConfig(linkedPorjectsConfig, options) {
|
|
11123
|
+
/* */
|
|
11124
|
+
/* */
|
|
11125
|
+
/* */
|
|
10910
11126
|
/* */
|
|
10911
11127
|
/* */
|
|
10912
11128
|
/* */
|
|
@@ -10947,6 +11163,11 @@ class BaseLinkedProjects extends BaseFeatureForProject {
|
|
|
10947
11163
|
return (void 0);
|
|
10948
11164
|
}
|
|
10949
11165
|
//#endregion
|
|
11166
|
+
formatConfigFile() {
|
|
11167
|
+
/* */
|
|
11168
|
+
/* */
|
|
11169
|
+
return (void 0);
|
|
11170
|
+
}
|
|
10950
11171
|
//#region methods & getters / get linked projects config path
|
|
10951
11172
|
get linkedProjectsConfigPath() {
|
|
10952
11173
|
return this.project.pathFor(config.file.linked_projects_json);
|
|
@@ -12913,6 +13134,10 @@ trim_trailing_whitespace = false
|
|
|
12913
13134
|
/* */
|
|
12914
13135
|
/* */
|
|
12915
13136
|
/* */
|
|
13137
|
+
/* */
|
|
13138
|
+
/* */
|
|
13139
|
+
/* */
|
|
13140
|
+
/* */
|
|
12916
13141
|
return (void 0);
|
|
12917
13142
|
}
|
|
12918
13143
|
//#endregion
|
|
@@ -13616,6 +13841,14 @@ class BaseVscodeHelpers extends BaseFeatureForProject {
|
|
|
13616
13841
|
/* */
|
|
13617
13842
|
/* */
|
|
13618
13843
|
/* */
|
|
13844
|
+
/* */
|
|
13845
|
+
/* */
|
|
13846
|
+
/* */
|
|
13847
|
+
/* */
|
|
13848
|
+
/* */
|
|
13849
|
+
/* */
|
|
13850
|
+
/* */
|
|
13851
|
+
/* */
|
|
13619
13852
|
return (void 0);
|
|
13620
13853
|
}
|
|
13621
13854
|
//#endregion
|
|
@@ -13702,6 +13935,7 @@ class BaseVscodeHelpers extends BaseFeatureForProject {
|
|
|
13702
13935
|
'package-lock.json': true,
|
|
13703
13936
|
'tmp-*': true,
|
|
13704
13937
|
'src/lib/env/**/*.*': true,
|
|
13938
|
+
'*.rest': true,
|
|
13705
13939
|
};
|
|
13706
13940
|
Object.keys(settings['search.exclude']).forEach(k => {
|
|
13707
13941
|
settings['search.exclude'][`**/${k}`] = true;
|
|
@@ -14458,10 +14692,8 @@ ${await this.getLastChangesFromCommits({
|
|
|
14458
14692
|
}
|
|
14459
14693
|
|
|
14460
14694
|
//#region imports
|
|
14461
|
-
/* */
|
|
14462
|
-
/* */
|
|
14463
14695
|
//#endregion
|
|
14464
|
-
class BaseCompilerForProject extends
|
|
14696
|
+
class BaseCompilerForProject extends BaseClientCompiler {
|
|
14465
14697
|
//#region check folder compiler
|
|
14466
14698
|
checkFolderCompiler(project, options, dontCheck = false) {
|
|
14467
14699
|
/* */
|
|
@@ -14501,6 +14733,8 @@ class BaseCompilerForProject extends IncCompiler.Base {
|
|
|
14501
14733
|
/* */
|
|
14502
14734
|
/* */
|
|
14503
14735
|
/* */
|
|
14736
|
+
/* */
|
|
14737
|
+
/* */
|
|
14504
14738
|
return (void 0);
|
|
14505
14739
|
}
|
|
14506
14740
|
//#endregion
|
|
@@ -14548,7 +14782,11 @@ class BaseDebounceCompilerForProject extends BaseCompilerForProject {
|
|
|
14548
14782
|
this.initialParams = initialParams || {};
|
|
14549
14783
|
this.exitedFilesAbsPathes = absFilesPathes;
|
|
14550
14784
|
return await this.action({
|
|
14551
|
-
changeOfFiles: absFilesPathes.map(fileAbsolutePath =>
|
|
14785
|
+
changeOfFiles: absFilesPathes.map(fileAbsolutePath => ({
|
|
14786
|
+
fileAbsolutePath,
|
|
14787
|
+
eventName: 'change',
|
|
14788
|
+
datetime: new Date(),
|
|
14789
|
+
})),
|
|
14552
14790
|
asyncEvent: false,
|
|
14553
14791
|
});
|
|
14554
14792
|
}
|
|
@@ -15396,6 +15634,32 @@ class BaseGlobalCommandLine extends BaseCommandLineFeature {
|
|
|
15396
15634
|
_() {
|
|
15397
15635
|
Helpers.error('Please select git command');
|
|
15398
15636
|
}
|
|
15637
|
+
/**
|
|
15638
|
+
* @returns true is sudo was used to restart the process
|
|
15639
|
+
*/
|
|
15640
|
+
async _runAsSudoIfNotElevated({ globalCommandName, }) {
|
|
15641
|
+
/* */
|
|
15642
|
+
/* */
|
|
15643
|
+
/* */
|
|
15644
|
+
/* */
|
|
15645
|
+
/* */
|
|
15646
|
+
/* */
|
|
15647
|
+
/* */
|
|
15648
|
+
/* */
|
|
15649
|
+
/* */
|
|
15650
|
+
/* */
|
|
15651
|
+
/* */
|
|
15652
|
+
/* */
|
|
15653
|
+
/* */
|
|
15654
|
+
/* */
|
|
15655
|
+
/* */
|
|
15656
|
+
/* */
|
|
15657
|
+
/* */
|
|
15658
|
+
/* */
|
|
15659
|
+
/* */
|
|
15660
|
+
/* */
|
|
15661
|
+
return (void 0);
|
|
15662
|
+
}
|
|
15399
15663
|
//#region commands / prevent cwd is not project
|
|
15400
15664
|
/**
|
|
15401
15665
|
* TODO return argument not need for now
|
|
@@ -15579,7 +15843,7 @@ class BaseGlobalCommandLine extends BaseCommandLineFeature {
|
|
|
15579
15843
|
/**
|
|
15580
15844
|
* quick git update push
|
|
15581
15845
|
*/
|
|
15582
|
-
async
|
|
15846
|
+
async _update(commitMessage, force = false) {
|
|
15583
15847
|
/* */
|
|
15584
15848
|
/* */
|
|
15585
15849
|
/* */
|
|
@@ -15591,6 +15855,16 @@ class BaseGlobalCommandLine extends BaseCommandLineFeature {
|
|
|
15591
15855
|
/* */
|
|
15592
15856
|
/* */
|
|
15593
15857
|
/* */
|
|
15858
|
+
/* */
|
|
15859
|
+
/* */
|
|
15860
|
+
/* */
|
|
15861
|
+
/* */
|
|
15862
|
+
return (void 0);
|
|
15863
|
+
}
|
|
15864
|
+
async forceup() {
|
|
15865
|
+
await this.forceUpdate();
|
|
15866
|
+
}
|
|
15867
|
+
async forceUpdate() {
|
|
15594
15868
|
/* */
|
|
15595
15869
|
/* */
|
|
15596
15870
|
/* */
|
|
@@ -15598,6 +15872,16 @@ class BaseGlobalCommandLine extends BaseCommandLineFeature {
|
|
|
15598
15872
|
/* */
|
|
15599
15873
|
return (void 0);
|
|
15600
15874
|
}
|
|
15875
|
+
async update() {
|
|
15876
|
+
/* */
|
|
15877
|
+
/* */
|
|
15878
|
+
return (void 0);
|
|
15879
|
+
}
|
|
15880
|
+
async docsUp() {
|
|
15881
|
+
/* */
|
|
15882
|
+
/* */
|
|
15883
|
+
return (void 0);
|
|
15884
|
+
}
|
|
15601
15885
|
async updateProject(project, force = false) {
|
|
15602
15886
|
/* */
|
|
15603
15887
|
/* */
|
|
@@ -17446,6 +17730,11 @@ class BaseGlobalCommandLine extends BaseCommandLineFeature {
|
|
|
17446
17730
|
//#endregion
|
|
17447
17731
|
//#region commands / simulate domain
|
|
17448
17732
|
async simulateDomain() {
|
|
17733
|
+
/* */
|
|
17734
|
+
/* */
|
|
17735
|
+
/* */
|
|
17736
|
+
/* */
|
|
17737
|
+
/* */
|
|
17449
17738
|
/* */
|
|
17450
17739
|
/* */
|
|
17451
17740
|
/* */
|
|
@@ -18108,6 +18397,16 @@ class BaseGlobalCommandLine extends BaseCommandLineFeature {
|
|
|
18108
18397
|
//#endregion
|
|
18109
18398
|
//#region commands / is online
|
|
18110
18399
|
async isOnline() {
|
|
18400
|
+
/* */
|
|
18401
|
+
/* */
|
|
18402
|
+
/* */
|
|
18403
|
+
/* */
|
|
18404
|
+
/* */
|
|
18405
|
+
/* */
|
|
18406
|
+
/* */
|
|
18407
|
+
/* */
|
|
18408
|
+
/* */
|
|
18409
|
+
/* */
|
|
18111
18410
|
/* */
|
|
18112
18411
|
/* */
|
|
18113
18412
|
/* */
|
|
@@ -18131,6 +18430,67 @@ class BaseGlobalCommandLine extends BaseCommandLineFeature {
|
|
|
18131
18430
|
confShell() {
|
|
18132
18431
|
this.configureShell();
|
|
18133
18432
|
}
|
|
18433
|
+
//#endregion
|
|
18434
|
+
//#region commands / git reset all
|
|
18435
|
+
gitResetAll() {
|
|
18436
|
+
/* */
|
|
18437
|
+
/* */
|
|
18438
|
+
/* */
|
|
18439
|
+
/* */
|
|
18440
|
+
/* */
|
|
18441
|
+
/* */
|
|
18442
|
+
/* */
|
|
18443
|
+
/* */
|
|
18444
|
+
/* */
|
|
18445
|
+
/* */
|
|
18446
|
+
/* */
|
|
18447
|
+
/* */
|
|
18448
|
+
return (void 0);
|
|
18449
|
+
}
|
|
18450
|
+
//#endregion
|
|
18451
|
+
//#region commands / is elevated
|
|
18452
|
+
async isElevated() {
|
|
18453
|
+
/* */
|
|
18454
|
+
/* */
|
|
18455
|
+
/* */
|
|
18456
|
+
/* */
|
|
18457
|
+
/* */
|
|
18458
|
+
return (void 0);
|
|
18459
|
+
}
|
|
18460
|
+
//#endregion
|
|
18461
|
+
//#region commands / sudo check
|
|
18462
|
+
async sudoCheck() {
|
|
18463
|
+
const sudoStatus = await UtilsSudo.getStatus();
|
|
18464
|
+
console.log('is command available', sudoStatus.isAvailable);
|
|
18465
|
+
console.log('is inline sudo enable', sudoStatus.isInline);
|
|
18466
|
+
console.log('is this command elevated (sudo or admin)', await isElevated());
|
|
18467
|
+
this._exit();
|
|
18468
|
+
}
|
|
18469
|
+
//#endregion
|
|
18470
|
+
//#region commands / python modules exists
|
|
18471
|
+
async pythonModuleExists() {
|
|
18472
|
+
/* */
|
|
18473
|
+
/* */
|
|
18474
|
+
/* */
|
|
18475
|
+
/* */
|
|
18476
|
+
/* */
|
|
18477
|
+
/* */
|
|
18478
|
+
/* */
|
|
18479
|
+
/* */
|
|
18480
|
+
/* */
|
|
18481
|
+
/* */
|
|
18482
|
+
/* */
|
|
18483
|
+
/* */
|
|
18484
|
+
/* */
|
|
18485
|
+
/* */
|
|
18486
|
+
/* */
|
|
18487
|
+
/* */
|
|
18488
|
+
/* */
|
|
18489
|
+
/* */
|
|
18490
|
+
/* */
|
|
18491
|
+
/* */
|
|
18492
|
+
return (void 0);
|
|
18493
|
+
}
|
|
18134
18494
|
}
|
|
18135
18495
|
|
|
18136
18496
|
//#region imports
|
|
@@ -19902,5 +20262,5 @@ const Helpers = HelpersTaon.Instance;
|
|
|
19902
20262
|
* Generated bundle index. Do not edit.
|
|
19903
20263
|
*/
|
|
19904
20264
|
|
|
19905
|
-
export { BaseCLiWorkerStartMode, BaseCLiWorkerStartParams, BaseCliMethodOptions, BaseCliWorker, BaseCliWorkerConfig, BaseCliWorkerConfigGetContextOptions,
|
|
20265
|
+
export { BaseCLiWorkerStartMode, BaseCLiWorkerStartParams, BaseCliMethodOptions, BaseCliWorker, BaseCliWorkerConfig, BaseCliWorkerConfigGetContextOptions, BaseCliWorkerTerminalUI, BaseCliWorkerUtils, BaseCommandLineFeature, BaseCompilerForProject, BaseDebounceCompilerForProject, BaseFeatureForProject, BaseFileFoldersOperations, BaseGit, BaseGlobalCommandLine, BaseIgnoreHideHelpers, BaseJsonFileReader, BaseLibraryBuild, BaseLinkedProjects, BaseLinter, BaseNodeModules, BaseNpmHelpers, BasePackageJson, BaseProcessManger, BaseProject, BaseProjectResolver, BaseProjectTypeArr, BaseQuickFixes, BaseReleaseProcess, BaseVscodeHelpers, CommandConfig, CommandProcess, CommandProcessState, CommitData, CoreAngularProject, CoreProject, CoreTypescriptProject, Helpers, HelpersAngular, LinkedPorjectsConfig, LinkedProject, PackageJsonDependencyObjArr, Port, PortStatusArr, PortsWorker, ProgressData, TaonBaseCliWorkerController, TaonPortsController, UtilsDocker, UtilsFileSync, UtilsHttp, UtilsJava, UtilsMd, UtilsNpm, UtilsPasswords, UtilsQuickFixes, UtilsTaonWorker, UtilsTypescript, UtilsVSCode, UtilsZip, UtilsZipBrowser, executeCommand, getBaseCliWorkerDatabaseConfig };
|
|
19906
20266
|
//# sourceMappingURL=tnp-helpers.mjs.map
|