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,12 +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/browser';
|
|
2
|
+
import { CoreModels, Utils, crossPlatformPath, _, CoreHelpers, UtilsTerminal, chalk, path, config, Helpers as Helpers$1, fse, folderName, fileName, UtilsNetwork, UtilsSudo, isElevated } from 'tnp-core/browser';
|
|
3
|
+
import { createSourceFile, ScriptTarget, ScriptKind, isImportDeclaration, isExportDeclaration } from 'typescript';
|
|
3
4
|
import * as fuzzy from 'fuzzy';
|
|
4
5
|
import { Level } from 'ng2-logger/browser';
|
|
5
6
|
import { CLASS } from 'typescript-class-helpers/browser';
|
|
6
7
|
import { __decorate, __param, __metadata } from 'tslib';
|
|
7
|
-
import { Taon,
|
|
8
|
-
import {
|
|
9
|
-
import { IncCompiler, ChangeOfFile } from 'incremental-compiler/browser';
|
|
8
|
+
import { Taon, TaonBaseClass, TaonBaseContext } from 'taon/browser';
|
|
9
|
+
import { BaseClientCompiler } from 'incremental-compiler/browser';
|
|
10
10
|
|
|
11
11
|
//#region @browser
|
|
12
12
|
const componentContextSymbol = Symbol();
|
|
@@ -493,6 +493,9 @@ var UtilsTypescript;
|
|
|
493
493
|
/* */
|
|
494
494
|
/* */
|
|
495
495
|
/* */
|
|
496
|
+
/* */
|
|
497
|
+
/* */
|
|
498
|
+
/* */
|
|
496
499
|
return (void 0);
|
|
497
500
|
};
|
|
498
501
|
UtilsTypescript.eslintFixAllFilesInsideFolder = (absPathToFolder) => {
|
|
@@ -512,7 +515,6 @@ var UtilsTypescript;
|
|
|
512
515
|
/* */
|
|
513
516
|
/* */
|
|
514
517
|
/* */
|
|
515
|
-
/* */
|
|
516
518
|
return (void 0);
|
|
517
519
|
};
|
|
518
520
|
//#endregion
|
|
@@ -1009,64 +1011,11 @@ var UtilsTypescript;
|
|
|
1009
1011
|
return (void 0);
|
|
1010
1012
|
};
|
|
1011
1013
|
//#endregion
|
|
1012
|
-
//#region fix standalone ng 19
|
|
1013
1014
|
/**
|
|
1014
1015
|
* Transition methods ng18 => ng19
|
|
1015
|
-
*
|
|
1016
|
-
* and add standalone: false if not exists
|
|
1016
|
+
* Adds standalone: false if not exists in component decorator
|
|
1017
1017
|
*/
|
|
1018
1018
|
function transformComponentStandaloneOption(sourceText) {
|
|
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
|
-
/* */
|
|
1069
|
-
/* */
|
|
1070
1019
|
/* */
|
|
1071
1020
|
/* */
|
|
1072
1021
|
/* */
|
|
@@ -1100,7 +1049,6 @@ var UtilsTypescript;
|
|
|
1100
1049
|
return (void 0);
|
|
1101
1050
|
}
|
|
1102
1051
|
UtilsTypescript.transformComponentStandaloneOption = transformComponentStandaloneOption;
|
|
1103
|
-
//#endregion
|
|
1104
1052
|
//#region escape @ in html text
|
|
1105
1053
|
const escapeAtInHtmlText = (fileContent) => {
|
|
1106
1054
|
return fileContent.replace(/>([^<@]*?)@([^<]*)</g, (_match, before, after) => {
|
|
@@ -1133,6 +1081,51 @@ var UtilsTypescript;
|
|
|
1133
1081
|
//#endregion
|
|
1134
1082
|
//#region remove tagged imports/exports
|
|
1135
1083
|
function removeTaggedImportExport(tsFileContent, tags) {
|
|
1084
|
+
const sourceFile = createSourceFile('temp.ts', tsFileContent, ScriptTarget.Latest, true, ScriptKind.TS);
|
|
1085
|
+
// debug && console.log(tsFileContent);
|
|
1086
|
+
const lines = tsFileContent.split(/\r?\n/);
|
|
1087
|
+
const tagRegex = new RegExp(tags
|
|
1088
|
+
.map(t => (Array.isArray(t) ? t[0] : t))
|
|
1089
|
+
.filter(Boolean)
|
|
1090
|
+
.map(t => Utils.escapeStringForRegEx(t))
|
|
1091
|
+
.join('|'), 'i');
|
|
1092
|
+
let a = 0;
|
|
1093
|
+
for (const statement of sourceFile.statements) {
|
|
1094
|
+
// debug && console.log('processing line ' + a++);
|
|
1095
|
+
if (!isImportDeclaration(statement) && !isExportDeclaration(statement)) {
|
|
1096
|
+
continue;
|
|
1097
|
+
}
|
|
1098
|
+
const start = statement.getStart();
|
|
1099
|
+
const end = statement.getEnd();
|
|
1100
|
+
const startLine = sourceFile.getLineAndCharacterOfPosition(start).line;
|
|
1101
|
+
const endLine = sourceFile.getLineAndCharacterOfPosition(end).line;
|
|
1102
|
+
// get full text including trailing comments
|
|
1103
|
+
const endLineText = lines[endLine]; // ← get real line content from file
|
|
1104
|
+
if (!tagRegex.test(endLineText))
|
|
1105
|
+
continue;
|
|
1106
|
+
// debug &&
|
|
1107
|
+
// console.log(`
|
|
1108
|
+
// start: ${start}
|
|
1109
|
+
// end: ${end}
|
|
1110
|
+
// startLine: ${startLine}
|
|
1111
|
+
// endLine: ${endLine}
|
|
1112
|
+
// endLineText: >> ${endLineText} <<
|
|
1113
|
+
// `);
|
|
1114
|
+
// console.log('removing line ' + startLine + ' to ' + endLine);
|
|
1115
|
+
for (let i = startLine; i <= endLine; i++) {
|
|
1116
|
+
const original = lines[i];
|
|
1117
|
+
lines[i] = '/* */' + ' '.repeat(Math.max(0, original.length - 4));
|
|
1118
|
+
}
|
|
1119
|
+
}
|
|
1120
|
+
// debug && console.log('\n\n\n\n');
|
|
1121
|
+
const result = lines.join('\n');
|
|
1122
|
+
// debug && console.log(result)
|
|
1123
|
+
return result;
|
|
1124
|
+
}
|
|
1125
|
+
UtilsTypescript.removeTaggedImportExport = removeTaggedImportExport;
|
|
1126
|
+
//#endregion
|
|
1127
|
+
//#region wrap first imports in region
|
|
1128
|
+
UtilsTypescript.wrapFirstImportsInImportsRegion = (fileContent) => {
|
|
1136
1129
|
/* */
|
|
1137
1130
|
/* */
|
|
1138
1131
|
/* */
|
|
@@ -1151,52 +1144,6 @@ var UtilsTypescript;
|
|
|
1151
1144
|
/* */
|
|
1152
1145
|
/* */
|
|
1153
1146
|
/* */
|
|
1154
|
-
/* */
|
|
1155
|
-
/* */
|
|
1156
|
-
/* */
|
|
1157
|
-
/* */
|
|
1158
|
-
/* */
|
|
1159
|
-
/* */
|
|
1160
|
-
/* */
|
|
1161
|
-
/* */
|
|
1162
|
-
/* */
|
|
1163
|
-
/* */
|
|
1164
|
-
/* */
|
|
1165
|
-
/* */
|
|
1166
|
-
/* */
|
|
1167
|
-
/* */
|
|
1168
|
-
/* */
|
|
1169
|
-
/* */
|
|
1170
|
-
/* */
|
|
1171
|
-
/* */
|
|
1172
|
-
/* */
|
|
1173
|
-
/* */
|
|
1174
|
-
/* */
|
|
1175
|
-
/* */
|
|
1176
|
-
/* */
|
|
1177
|
-
/* */
|
|
1178
|
-
/* */
|
|
1179
|
-
/* */
|
|
1180
|
-
/* */
|
|
1181
|
-
/* */
|
|
1182
|
-
/* */
|
|
1183
|
-
/* */
|
|
1184
|
-
/* */
|
|
1185
|
-
/* */
|
|
1186
|
-
/* */
|
|
1187
|
-
/* */
|
|
1188
|
-
/* */
|
|
1189
|
-
/* */
|
|
1190
|
-
/* */
|
|
1191
|
-
/* */
|
|
1192
|
-
/* */
|
|
1193
|
-
/* */
|
|
1194
|
-
return (void 0);
|
|
1195
|
-
}
|
|
1196
|
-
UtilsTypescript.removeTaggedImportExport = removeTaggedImportExport;
|
|
1197
|
-
//#endregion
|
|
1198
|
-
//#region wrap first imports in region
|
|
1199
|
-
UtilsTypescript.wrapFirstImportsInImportsRegion = (fileContent) => {
|
|
1200
1147
|
/* */
|
|
1201
1148
|
/* */
|
|
1202
1149
|
/* */
|
|
@@ -1342,7 +1289,8 @@ var UtilsTypescript;
|
|
|
1342
1289
|
var UtilsHttp;
|
|
1343
1290
|
(function (UtilsHttp) {
|
|
1344
1291
|
//#region utils http / start http server
|
|
1345
|
-
UtilsHttp.startHttpServer = async (cwd, port) => {
|
|
1292
|
+
UtilsHttp.startHttpServer = async (cwd, port, options) => {
|
|
1293
|
+
/* */
|
|
1346
1294
|
/* */
|
|
1347
1295
|
/* */
|
|
1348
1296
|
/* */
|
|
@@ -1404,6 +1352,17 @@ var UtilsMd;
|
|
|
1404
1352
|
/* */
|
|
1405
1353
|
return (void 0);
|
|
1406
1354
|
};
|
|
1355
|
+
UtilsMd.getAssetsFromFile = (absPathToFile) => {
|
|
1356
|
+
/* */
|
|
1357
|
+
/* */
|
|
1358
|
+
/* */
|
|
1359
|
+
/* */
|
|
1360
|
+
/* */
|
|
1361
|
+
/* */
|
|
1362
|
+
/* */
|
|
1363
|
+
/* */
|
|
1364
|
+
return (void 0);
|
|
1365
|
+
};
|
|
1407
1366
|
/**
|
|
1408
1367
|
* Extract links to other Markdown files from a given Markdown content.
|
|
1409
1368
|
* @param mdfileContent
|
|
@@ -2577,6 +2536,214 @@ var UtilsDocker;
|
|
|
2577
2536
|
//#endregion
|
|
2578
2537
|
})(UtilsDocker || (UtilsDocker = {}));
|
|
2579
2538
|
//#endregion
|
|
2539
|
+
//#region utils file sync
|
|
2540
|
+
/**
|
|
2541
|
+
* ! TODO @IN_PROGRESS @LAST
|
|
2542
|
+
*/
|
|
2543
|
+
var UtilsFileSync;
|
|
2544
|
+
(function (UtilsFileSync) {
|
|
2545
|
+
//#region constants
|
|
2546
|
+
// ───── SAFETY SETTINGS ─────────────────────────────
|
|
2547
|
+
// Minimum realistic photo/video size (in bytes) before we even try
|
|
2548
|
+
const MIN_PHOTO_SIZE = 50_000; // ~50 KB — anything smaller is probably placeholder
|
|
2549
|
+
const MIN_VIDEO_SIZE = 500_000; // ~500 KB
|
|
2550
|
+
// How long we wait after the file stops growing before processing
|
|
2551
|
+
const STABILIZATION_MS = 5000; // 5 seconds is bulletproof
|
|
2552
|
+
//#endregion
|
|
2553
|
+
//#region for folders
|
|
2554
|
+
UtilsFileSync.forFolders = async (folder) => {
|
|
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
|
+
/* */
|
|
2655
|
+
/* */
|
|
2656
|
+
/* */
|
|
2657
|
+
return (void 0);
|
|
2658
|
+
};
|
|
2659
|
+
//#endregion
|
|
2660
|
+
//#region is hevc
|
|
2661
|
+
async function isHevc(file) {
|
|
2662
|
+
/* */
|
|
2663
|
+
/* */
|
|
2664
|
+
/* */
|
|
2665
|
+
/* */
|
|
2666
|
+
/* */
|
|
2667
|
+
/* */
|
|
2668
|
+
/* */
|
|
2669
|
+
/* */
|
|
2670
|
+
/* */
|
|
2671
|
+
/* */
|
|
2672
|
+
return (void 0);
|
|
2673
|
+
}
|
|
2674
|
+
//#endregion
|
|
2675
|
+
//#region safe process
|
|
2676
|
+
const safeProcess = async (filePath, wacherData) => {
|
|
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
|
+
/* */
|
|
2741
|
+
/* */
|
|
2742
|
+
/* */
|
|
2743
|
+
return (void 0);
|
|
2744
|
+
};
|
|
2745
|
+
//#endregion
|
|
2746
|
+
})(UtilsFileSync || (UtilsFileSync = {}));
|
|
2580
2747
|
|
|
2581
2748
|
class HelpersArrayObj {
|
|
2582
2749
|
from(s) {
|
|
@@ -5448,7 +5615,7 @@ var BaseCLiWorkerStartMode;
|
|
|
5448
5615
|
})(BaseCLiWorkerStartMode || (BaseCLiWorkerStartMode = {}));
|
|
5449
5616
|
class BaseCLiWorkerStartParams {
|
|
5450
5617
|
}
|
|
5451
|
-
class BaseCliMethodOptions extends
|
|
5618
|
+
class BaseCliMethodOptions extends TaonBaseClass {
|
|
5452
5619
|
static from(opt) {
|
|
5453
5620
|
opt = opt ?? {};
|
|
5454
5621
|
opt.cliParams = opt.cliParams ?? {};
|
|
@@ -6281,7 +6448,7 @@ class BaseCliWorkerConfig {
|
|
|
6281
6448
|
}
|
|
6282
6449
|
//#endregion
|
|
6283
6450
|
|
|
6284
|
-
let
|
|
6451
|
+
let TaonBaseCliWorkerController = class TaonBaseCliWorkerController extends Taon.Base.Controller {
|
|
6285
6452
|
constructor() {
|
|
6286
6453
|
super(...arguments);
|
|
6287
6454
|
/**
|
|
@@ -6391,14 +6558,14 @@ __decorate([
|
|
|
6391
6558
|
__metadata("design:type", Function),
|
|
6392
6559
|
__metadata("design:paramtypes", [String, String]),
|
|
6393
6560
|
__metadata("design:returntype", Object)
|
|
6394
|
-
],
|
|
6561
|
+
], TaonBaseCliWorkerController.prototype, "baseCLiWorkerCommand_initializeMetadata", null);
|
|
6395
6562
|
__decorate([
|
|
6396
6563
|
Taon.Http.GET(),
|
|
6397
6564
|
__param(0, Taon.Http.Param.Query('dontRemoveConfigFile')),
|
|
6398
6565
|
__metadata("design:type", Function),
|
|
6399
6566
|
__metadata("design:paramtypes", [Boolean]),
|
|
6400
6567
|
__metadata("design:returntype", Object)
|
|
6401
|
-
],
|
|
6568
|
+
], TaonBaseCliWorkerController.prototype, "baseCLiWorkerCommand_kill", null);
|
|
6402
6569
|
__decorate([
|
|
6403
6570
|
Taon.Http.HTML({
|
|
6404
6571
|
pathIsGlobal: true,
|
|
@@ -6407,26 +6574,26 @@ __decorate([
|
|
|
6407
6574
|
__metadata("design:type", Function),
|
|
6408
6575
|
__metadata("design:paramtypes", []),
|
|
6409
6576
|
__metadata("design:returntype", Object)
|
|
6410
|
-
],
|
|
6577
|
+
], TaonBaseCliWorkerController.prototype, "info", null);
|
|
6411
6578
|
__decorate([
|
|
6412
6579
|
Taon.Http.POST(),
|
|
6413
6580
|
__param(0, Taon.Http.Param.Body()),
|
|
6414
6581
|
__metadata("design:type", Function),
|
|
6415
6582
|
__metadata("design:paramtypes", [BaseCliWorkerConfig]),
|
|
6416
6583
|
__metadata("design:returntype", Object)
|
|
6417
|
-
],
|
|
6584
|
+
], TaonBaseCliWorkerController.prototype, "baseCLiWorkerCommand_isHealthy", null);
|
|
6418
6585
|
__decorate([
|
|
6419
6586
|
Taon.Http.POST(),
|
|
6420
6587
|
__param(0, Taon.Http.Param.Body()),
|
|
6421
6588
|
__metadata("design:type", Function),
|
|
6422
6589
|
__metadata("design:paramtypes", [BaseCliWorkerConfig]),
|
|
6423
6590
|
__metadata("design:returntype", Object)
|
|
6424
|
-
],
|
|
6425
|
-
|
|
6591
|
+
], TaonBaseCliWorkerController.prototype, "baseCLiWorkerCommand_hasUpToDateVersion", null);
|
|
6592
|
+
TaonBaseCliWorkerController = __decorate([
|
|
6426
6593
|
Taon.Controller({
|
|
6427
|
-
className: '
|
|
6594
|
+
className: 'TaonBaseCliWorkerController',
|
|
6428
6595
|
})
|
|
6429
|
-
],
|
|
6596
|
+
], TaonBaseCliWorkerController);
|
|
6430
6597
|
|
|
6431
6598
|
//#endregion
|
|
6432
6599
|
var BaseCliWorkerUtils;
|
|
@@ -6455,7 +6622,7 @@ var BaseCliWorkerUtils;
|
|
|
6455
6622
|
})(BaseCliWorkerUtils || (BaseCliWorkerUtils = {}));
|
|
6456
6623
|
|
|
6457
6624
|
//#endregion
|
|
6458
|
-
let
|
|
6625
|
+
let TaonPortsController = class TaonPortsController extends TaonBaseCliWorkerController {
|
|
6459
6626
|
constructor() {
|
|
6460
6627
|
super(...arguments);
|
|
6461
6628
|
//#region fields
|
|
@@ -6688,28 +6855,28 @@ __decorate([
|
|
|
6688
6855
|
__metadata("design:type", Function),
|
|
6689
6856
|
__metadata("design:paramtypes", []),
|
|
6690
6857
|
__metadata("design:returntype", Object)
|
|
6691
|
-
],
|
|
6858
|
+
], TaonPortsController.prototype, "getFirstFreePort", null);
|
|
6692
6859
|
__decorate([
|
|
6693
6860
|
Taon.Http.GET(),
|
|
6694
6861
|
__param(0, Taon.Http.Param.Query('portNumber')),
|
|
6695
6862
|
__metadata("design:type", Function),
|
|
6696
6863
|
__metadata("design:paramtypes", [Number]),
|
|
6697
6864
|
__metadata("design:returntype", Object)
|
|
6698
|
-
],
|
|
6865
|
+
], TaonPortsController.prototype, "getPortByNumber", null);
|
|
6699
6866
|
__decorate([
|
|
6700
6867
|
Taon.Http.GET(),
|
|
6701
6868
|
__param(0, Taon.Http.Param.Query('status')),
|
|
6702
6869
|
__metadata("design:type", Function),
|
|
6703
6870
|
__metadata("design:paramtypes", [String]),
|
|
6704
6871
|
__metadata("design:returntype", Object)
|
|
6705
|
-
],
|
|
6872
|
+
], TaonPortsController.prototype, "getPortsByStatus", null);
|
|
6706
6873
|
__decorate([
|
|
6707
6874
|
Taon.Http.DELETE(),
|
|
6708
6875
|
__param(0, Taon.Http.Param.Query('portNumber')),
|
|
6709
6876
|
__metadata("design:type", Function),
|
|
6710
6877
|
__metadata("design:paramtypes", [Number]),
|
|
6711
6878
|
__metadata("design:returntype", Object)
|
|
6712
|
-
],
|
|
6879
|
+
], TaonPortsController.prototype, "deletePort", null);
|
|
6713
6880
|
__decorate([
|
|
6714
6881
|
Taon.Http.PUT(),
|
|
6715
6882
|
__param(0, Taon.Http.Param.Query('portNumber')),
|
|
@@ -6717,7 +6884,7 @@ __decorate([
|
|
|
6717
6884
|
__metadata("design:type", Function),
|
|
6718
6885
|
__metadata("design:paramtypes", [Number, String]),
|
|
6719
6886
|
__metadata("design:returntype", Object)
|
|
6720
|
-
],
|
|
6887
|
+
], TaonPortsController.prototype, "updatePortUniqueId", null);
|
|
6721
6888
|
__decorate([
|
|
6722
6889
|
Taon.Http.POST(),
|
|
6723
6890
|
__param(0, Taon.Http.Param.Query('portNumber')),
|
|
@@ -6725,7 +6892,7 @@ __decorate([
|
|
|
6725
6892
|
__metadata("design:type", Function),
|
|
6726
6893
|
__metadata("design:paramtypes", [Number, String]),
|
|
6727
6894
|
__metadata("design:returntype", Object)
|
|
6728
|
-
],
|
|
6895
|
+
], TaonPortsController.prototype, "addTakeByOsPort", null);
|
|
6729
6896
|
__decorate([
|
|
6730
6897
|
Taon.Http.PUT(),
|
|
6731
6898
|
__param(0, Taon.Http.Param.Query('uniqueServiceName')),
|
|
@@ -6733,12 +6900,12 @@ __decorate([
|
|
|
6733
6900
|
__metadata("design:type", Function),
|
|
6734
6901
|
__metadata("design:paramtypes", [String, Number]),
|
|
6735
6902
|
__metadata("design:returntype", Object)
|
|
6736
|
-
],
|
|
6737
|
-
|
|
6903
|
+
], TaonPortsController.prototype, "registerAndAssignPort", null);
|
|
6904
|
+
TaonPortsController = __decorate([
|
|
6738
6905
|
Taon.Controller({
|
|
6739
|
-
className: '
|
|
6906
|
+
className: 'TaonPortsController',
|
|
6740
6907
|
})
|
|
6741
|
-
],
|
|
6908
|
+
], TaonPortsController);
|
|
6742
6909
|
|
|
6743
6910
|
let MainContext_1736198527297_init = class MainContext_1736198527297_init extends Taon.Base.Migration {
|
|
6744
6911
|
/**
|
|
@@ -6759,7 +6926,7 @@ MainContext_1736198527297_init = __decorate([
|
|
|
6759
6926
|
className: 'MainContext_1736198527297_init',
|
|
6760
6927
|
})
|
|
6761
6928
|
], MainContext_1736198527297_init);
|
|
6762
|
-
let
|
|
6929
|
+
let TaonPortsContext_1736198527297_init = class TaonPortsContext_1736198527297_init extends Taon.Base.Migration {
|
|
6763
6930
|
/**
|
|
6764
6931
|
* remove this method if you are ready to run this migration
|
|
6765
6932
|
*/
|
|
@@ -6775,11 +6942,11 @@ let PortsContext_1736198527297_init = class PortsContext_1736198527297_init exte
|
|
|
6775
6942
|
// console.log('Hello from migration DOWN!')
|
|
6776
6943
|
}
|
|
6777
6944
|
};
|
|
6778
|
-
|
|
6945
|
+
TaonPortsContext_1736198527297_init = __decorate([
|
|
6779
6946
|
Taon.Migration({
|
|
6780
|
-
className: '
|
|
6947
|
+
className: 'TaonPortsContext_1736198527297_init',
|
|
6781
6948
|
})
|
|
6782
|
-
],
|
|
6949
|
+
], TaonPortsContext_1736198527297_init);
|
|
6783
6950
|
|
|
6784
6951
|
const portsWithDescription = {
|
|
6785
6952
|
3000: 'Commonly used for development servers',
|
|
@@ -6800,11 +6967,11 @@ const portsWithDescription = {
|
|
|
6800
6967
|
5984: 'CouchDB',
|
|
6801
6968
|
6000: 'in use by something in macos',
|
|
6802
6969
|
};
|
|
6803
|
-
let
|
|
6970
|
+
let TaonPortsContext_1736199486472_addingNotAssignablePorts = class TaonPortsContext_1736199486472_addingNotAssignablePorts extends Taon
|
|
6804
6971
|
.Base.Migration {
|
|
6805
6972
|
constructor() {
|
|
6806
6973
|
super(...arguments);
|
|
6807
|
-
this.portsController = this.injectController(
|
|
6974
|
+
this.portsController = this.injectController(TaonPortsController);
|
|
6808
6975
|
this.commonPortsFrom3000to6000 = Object.keys(portsWithDescription).map(Number);
|
|
6809
6976
|
}
|
|
6810
6977
|
async up(queryRunner) {
|
|
@@ -6832,17 +6999,17 @@ let PortsContext_1736199486472_addingNotAssignablePorts = class PortsContext_173
|
|
|
6832
6999
|
}
|
|
6833
7000
|
}
|
|
6834
7001
|
};
|
|
6835
|
-
|
|
7002
|
+
TaonPortsContext_1736199486472_addingNotAssignablePorts = __decorate([
|
|
6836
7003
|
Taon.Migration({
|
|
6837
|
-
className: '
|
|
7004
|
+
className: 'TaonPortsContext_1736199486472_addingNotAssignablePorts',
|
|
6838
7005
|
})
|
|
6839
|
-
],
|
|
7006
|
+
], TaonPortsContext_1736199486472_addingNotAssignablePorts);
|
|
6840
7007
|
|
|
6841
|
-
let
|
|
7008
|
+
let TaonPortsContext_1736454437350_addFreePorts = class TaonPortsContext_1736454437350_addFreePorts extends Taon.Base
|
|
6842
7009
|
.Migration {
|
|
6843
7010
|
constructor() {
|
|
6844
7011
|
super(...arguments);
|
|
6845
|
-
this.portsController = this.injectController(
|
|
7012
|
+
this.portsController = this.injectController(TaonPortsController);
|
|
6846
7013
|
}
|
|
6847
7014
|
async up(queryRunner) {
|
|
6848
7015
|
const portsTableRepo = await queryRunner.manager.getRepository(Port);
|
|
@@ -6876,33 +7043,33 @@ let PortsContext_1736454437350_addFreePorts = class PortsContext_1736454437350_a
|
|
|
6876
7043
|
}
|
|
6877
7044
|
}
|
|
6878
7045
|
};
|
|
6879
|
-
|
|
7046
|
+
TaonPortsContext_1736454437350_addFreePorts = __decorate([
|
|
6880
7047
|
Taon.Migration({
|
|
6881
|
-
className: '
|
|
7048
|
+
className: 'TaonPortsContext_1736454437350_addFreePorts',
|
|
6882
7049
|
})
|
|
6883
|
-
],
|
|
7050
|
+
], TaonPortsContext_1736454437350_addFreePorts);
|
|
6884
7051
|
|
|
6885
7052
|
// THIS FILE IS GENERATED - DO NOT MODIFY
|
|
6886
7053
|
// THIS FILE IS GENERATED - DO NOT MODIFY
|
|
6887
7054
|
const MIGRATIONS_CLASSES_FOR_MainContext = {
|
|
6888
7055
|
/* 06-01-2025 22:22:07 */ MainContext_1736198527297_init,
|
|
6889
7056
|
};
|
|
6890
|
-
const
|
|
6891
|
-
/* 06-01-2025 22:22:07 */
|
|
6892
|
-
/* 06-01-2025 22:38:06 */
|
|
6893
|
-
/* 09-01-2025 21:27:17 */
|
|
7057
|
+
const MIGRATIONS_CLASSES_FOR_TaonPortsContext = {
|
|
7058
|
+
/* 06-01-2025 22:22:07 */ TaonPortsContext_1736198527297_init,
|
|
7059
|
+
/* 06-01-2025 22:38:06 */ TaonPortsContext_1736199486472_addingNotAssignablePorts,
|
|
7060
|
+
/* 09-01-2025 21:27:17 */ TaonPortsContext_1736454437350_addFreePorts,
|
|
6894
7061
|
};
|
|
6895
7062
|
// THIS FILE IS GENERATED - DO NOT MODIFY
|
|
6896
7063
|
|
|
6897
7064
|
//@ts-nocheck
|
|
6898
7065
|
|
|
6899
|
-
const
|
|
6900
|
-
contextName: '
|
|
7066
|
+
const TaonPortsContextTemplate = Taon.createContextTemplate(() => ({
|
|
7067
|
+
contextName: 'TaonPortsContext',
|
|
6901
7068
|
appId: 'dev.taon.taon-ports-worker',
|
|
6902
|
-
contexts: {
|
|
6903
|
-
controllers: {
|
|
7069
|
+
contexts: { TaonBaseContext },
|
|
7070
|
+
controllers: { TaonPortsController },
|
|
6904
7071
|
entities: { Port },
|
|
6905
|
-
migrations: { ...
|
|
7072
|
+
migrations: { ...MIGRATIONS_CLASSES_FOR_TaonPortsContext },
|
|
6906
7073
|
skipWritingServerRoutes: true,
|
|
6907
7074
|
...getBaseCliWorkerDatabaseConfig('ports-worker', 'DROP_DB+MIGRATIONS'),
|
|
6908
7075
|
logs: {
|
|
@@ -7216,8 +7383,8 @@ class PortsWorker extends BaseCliWorker {
|
|
|
7216
7383
|
constructor() {
|
|
7217
7384
|
super(...arguments);
|
|
7218
7385
|
this.terminalUI = new TcpUdpPortsTerminalUI(this);
|
|
7219
|
-
this.workerContextTemplate =
|
|
7220
|
-
this.controllerClass =
|
|
7386
|
+
this.workerContextTemplate = TaonPortsContextTemplate; // TODO for some reason as any is nessesary
|
|
7387
|
+
this.controllerClass = TaonPortsController;
|
|
7221
7388
|
}
|
|
7222
7389
|
}
|
|
7223
7390
|
|
|
@@ -7241,7 +7408,7 @@ const PROJECT_NPM_NAME = 'tnp-helpers';
|
|
|
7241
7408
|
/**
|
|
7242
7409
|
* Autogenerated by current cli tool. Use *tnp release* to bump version.
|
|
7243
7410
|
*/
|
|
7244
|
-
const CURRENT_PACKAGE_VERSION = '19.0.
|
|
7411
|
+
const CURRENT_PACKAGE_VERSION = '19.0.72';
|
|
7245
7412
|
// THIS FILE IS GENERATED - DO NOT MODIFY
|
|
7246
7413
|
|
|
7247
7414
|
//#endregion
|
|
@@ -8266,6 +8433,22 @@ class BaseProject {
|
|
|
8266
8433
|
/* */
|
|
8267
8434
|
/* */
|
|
8268
8435
|
/* */
|
|
8436
|
+
/* */
|
|
8437
|
+
/* */
|
|
8438
|
+
/* */
|
|
8439
|
+
/* */
|
|
8440
|
+
/* */
|
|
8441
|
+
/* */
|
|
8442
|
+
/* */
|
|
8443
|
+
/* */
|
|
8444
|
+
/* */
|
|
8445
|
+
/* */
|
|
8446
|
+
/* */
|
|
8447
|
+
/* */
|
|
8448
|
+
/* */
|
|
8449
|
+
/* */
|
|
8450
|
+
/* */
|
|
8451
|
+
/* */
|
|
8269
8452
|
return (void 0);
|
|
8270
8453
|
}
|
|
8271
8454
|
//#region methods & getters / get unique for task
|
|
@@ -8306,6 +8489,13 @@ class BaseProject {
|
|
|
8306
8489
|
/* */
|
|
8307
8490
|
/* */
|
|
8308
8491
|
/* */
|
|
8492
|
+
/* */
|
|
8493
|
+
/* */
|
|
8494
|
+
/* */
|
|
8495
|
+
/* */
|
|
8496
|
+
/* */
|
|
8497
|
+
/* */
|
|
8498
|
+
/* */
|
|
8309
8499
|
return (void 0);
|
|
8310
8500
|
}
|
|
8311
8501
|
//#endregion
|
|
@@ -9529,6 +9719,10 @@ class BasePackageJson extends BaseJsonFileReader {
|
|
|
9529
9719
|
get repository() {
|
|
9530
9720
|
return this.data?.repository;
|
|
9531
9721
|
}
|
|
9722
|
+
setRepository(repository) {
|
|
9723
|
+
this.data.repository = repository;
|
|
9724
|
+
this.saveToDisk('setting repository');
|
|
9725
|
+
}
|
|
9532
9726
|
/**
|
|
9533
9727
|
* set the WHOLE dependencies object
|
|
9534
9728
|
* THIS WILL NOT MERGE -> IT WILL REPLACE WHOLE DEPENDENCIES OBJECT
|
|
@@ -10861,10 +11055,12 @@ class BaseLinkedProjects extends BaseFeatureForProject {
|
|
|
10861
11055
|
}
|
|
10862
11056
|
//#endregion
|
|
10863
11057
|
//#region methods & getters / add linked project
|
|
10864
|
-
addLinkedProject(linkedProj) {
|
|
10865
|
-
|
|
10866
|
-
|
|
10867
|
-
|
|
11058
|
+
addLinkedProject(linkedProj, options) {
|
|
11059
|
+
/* */
|
|
11060
|
+
/* */
|
|
11061
|
+
/* */
|
|
11062
|
+
/* */
|
|
11063
|
+
/* */
|
|
10868
11064
|
/* */
|
|
10869
11065
|
/* */
|
|
10870
11066
|
/* */
|
|
@@ -10903,7 +11099,8 @@ class BaseLinkedProjects extends BaseFeatureForProject {
|
|
|
10903
11099
|
}
|
|
10904
11100
|
//#endregion
|
|
10905
11101
|
//#region methods & getters / add linked projects
|
|
10906
|
-
addLinkedProjects(linkedProjs) {
|
|
11102
|
+
addLinkedProjects(linkedProjs, options) {
|
|
11103
|
+
/* */
|
|
10907
11104
|
/* */
|
|
10908
11105
|
/* */
|
|
10909
11106
|
/* */
|
|
@@ -10912,7 +11109,10 @@ class BaseLinkedProjects extends BaseFeatureForProject {
|
|
|
10912
11109
|
}
|
|
10913
11110
|
//#endregion
|
|
10914
11111
|
//#region methods & getters / set linked projects config
|
|
10915
|
-
setLinkedProjectsConfig(linkedPorjectsConfig) {
|
|
11112
|
+
setLinkedProjectsConfig(linkedPorjectsConfig, options) {
|
|
11113
|
+
/* */
|
|
11114
|
+
/* */
|
|
11115
|
+
/* */
|
|
10916
11116
|
/* */
|
|
10917
11117
|
/* */
|
|
10918
11118
|
/* */
|
|
@@ -10953,6 +11153,11 @@ class BaseLinkedProjects extends BaseFeatureForProject {
|
|
|
10953
11153
|
return (void 0);
|
|
10954
11154
|
}
|
|
10955
11155
|
//#endregion
|
|
11156
|
+
formatConfigFile() {
|
|
11157
|
+
/* */
|
|
11158
|
+
/* */
|
|
11159
|
+
return (void 0);
|
|
11160
|
+
}
|
|
10956
11161
|
//#region methods & getters / get linked projects config path
|
|
10957
11162
|
get linkedProjectsConfigPath() {
|
|
10958
11163
|
return this.project.pathFor(config.file.linked_projects_json);
|
|
@@ -12919,6 +13124,10 @@ trim_trailing_whitespace = false
|
|
|
12919
13124
|
/* */
|
|
12920
13125
|
/* */
|
|
12921
13126
|
/* */
|
|
13127
|
+
/* */
|
|
13128
|
+
/* */
|
|
13129
|
+
/* */
|
|
13130
|
+
/* */
|
|
12922
13131
|
return (void 0);
|
|
12923
13132
|
}
|
|
12924
13133
|
//#endregion
|
|
@@ -13622,6 +13831,14 @@ class BaseVscodeHelpers extends BaseFeatureForProject {
|
|
|
13622
13831
|
/* */
|
|
13623
13832
|
/* */
|
|
13624
13833
|
/* */
|
|
13834
|
+
/* */
|
|
13835
|
+
/* */
|
|
13836
|
+
/* */
|
|
13837
|
+
/* */
|
|
13838
|
+
/* */
|
|
13839
|
+
/* */
|
|
13840
|
+
/* */
|
|
13841
|
+
/* */
|
|
13625
13842
|
return (void 0);
|
|
13626
13843
|
}
|
|
13627
13844
|
//#endregion
|
|
@@ -13708,6 +13925,7 @@ class BaseVscodeHelpers extends BaseFeatureForProject {
|
|
|
13708
13925
|
'package-lock.json': true,
|
|
13709
13926
|
'tmp-*': true,
|
|
13710
13927
|
'src/lib/env/**/*.*': true,
|
|
13928
|
+
'*.rest': true,
|
|
13711
13929
|
};
|
|
13712
13930
|
Object.keys(settings['search.exclude']).forEach(k => {
|
|
13713
13931
|
settings['search.exclude'][`**/${k}`] = true;
|
|
@@ -14464,10 +14682,8 @@ ${await this.getLastChangesFromCommits({
|
|
|
14464
14682
|
}
|
|
14465
14683
|
|
|
14466
14684
|
//#region imports
|
|
14467
|
-
/* */
|
|
14468
|
-
/* */
|
|
14469
14685
|
//#endregion
|
|
14470
|
-
class BaseCompilerForProject extends
|
|
14686
|
+
class BaseCompilerForProject extends BaseClientCompiler {
|
|
14471
14687
|
//#region check folder compiler
|
|
14472
14688
|
checkFolderCompiler(project, options, dontCheck = false) {
|
|
14473
14689
|
/* */
|
|
@@ -14507,6 +14723,8 @@ class BaseCompilerForProject extends IncCompiler.Base {
|
|
|
14507
14723
|
/* */
|
|
14508
14724
|
/* */
|
|
14509
14725
|
/* */
|
|
14726
|
+
/* */
|
|
14727
|
+
/* */
|
|
14510
14728
|
return (void 0);
|
|
14511
14729
|
}
|
|
14512
14730
|
//#endregion
|
|
@@ -14554,7 +14772,11 @@ class BaseDebounceCompilerForProject extends BaseCompilerForProject {
|
|
|
14554
14772
|
this.initialParams = initialParams || {};
|
|
14555
14773
|
this.exitedFilesAbsPathes = absFilesPathes;
|
|
14556
14774
|
return await this.action({
|
|
14557
|
-
changeOfFiles: absFilesPathes.map(fileAbsolutePath =>
|
|
14775
|
+
changeOfFiles: absFilesPathes.map(fileAbsolutePath => ({
|
|
14776
|
+
fileAbsolutePath,
|
|
14777
|
+
eventName: 'change',
|
|
14778
|
+
datetime: new Date(),
|
|
14779
|
+
})),
|
|
14558
14780
|
asyncEvent: false,
|
|
14559
14781
|
});
|
|
14560
14782
|
}
|
|
@@ -15402,6 +15624,32 @@ class BaseGlobalCommandLine extends BaseCommandLineFeature {
|
|
|
15402
15624
|
_() {
|
|
15403
15625
|
Helpers.error('Please select git command');
|
|
15404
15626
|
}
|
|
15627
|
+
/**
|
|
15628
|
+
* @returns true is sudo was used to restart the process
|
|
15629
|
+
*/
|
|
15630
|
+
async _runAsSudoIfNotElevated({ globalCommandName, }) {
|
|
15631
|
+
/* */
|
|
15632
|
+
/* */
|
|
15633
|
+
/* */
|
|
15634
|
+
/* */
|
|
15635
|
+
/* */
|
|
15636
|
+
/* */
|
|
15637
|
+
/* */
|
|
15638
|
+
/* */
|
|
15639
|
+
/* */
|
|
15640
|
+
/* */
|
|
15641
|
+
/* */
|
|
15642
|
+
/* */
|
|
15643
|
+
/* */
|
|
15644
|
+
/* */
|
|
15645
|
+
/* */
|
|
15646
|
+
/* */
|
|
15647
|
+
/* */
|
|
15648
|
+
/* */
|
|
15649
|
+
/* */
|
|
15650
|
+
/* */
|
|
15651
|
+
return (void 0);
|
|
15652
|
+
}
|
|
15405
15653
|
//#region commands / prevent cwd is not project
|
|
15406
15654
|
/**
|
|
15407
15655
|
* TODO return argument not need for now
|
|
@@ -15585,7 +15833,7 @@ class BaseGlobalCommandLine extends BaseCommandLineFeature {
|
|
|
15585
15833
|
/**
|
|
15586
15834
|
* quick git update push
|
|
15587
15835
|
*/
|
|
15588
|
-
async
|
|
15836
|
+
async _update(commitMessage, force = false) {
|
|
15589
15837
|
/* */
|
|
15590
15838
|
/* */
|
|
15591
15839
|
/* */
|
|
@@ -15597,6 +15845,16 @@ class BaseGlobalCommandLine extends BaseCommandLineFeature {
|
|
|
15597
15845
|
/* */
|
|
15598
15846
|
/* */
|
|
15599
15847
|
/* */
|
|
15848
|
+
/* */
|
|
15849
|
+
/* */
|
|
15850
|
+
/* */
|
|
15851
|
+
/* */
|
|
15852
|
+
return (void 0);
|
|
15853
|
+
}
|
|
15854
|
+
async forceup() {
|
|
15855
|
+
await this.forceUpdate();
|
|
15856
|
+
}
|
|
15857
|
+
async forceUpdate() {
|
|
15600
15858
|
/* */
|
|
15601
15859
|
/* */
|
|
15602
15860
|
/* */
|
|
@@ -15604,6 +15862,16 @@ class BaseGlobalCommandLine extends BaseCommandLineFeature {
|
|
|
15604
15862
|
/* */
|
|
15605
15863
|
return (void 0);
|
|
15606
15864
|
}
|
|
15865
|
+
async update() {
|
|
15866
|
+
/* */
|
|
15867
|
+
/* */
|
|
15868
|
+
return (void 0);
|
|
15869
|
+
}
|
|
15870
|
+
async docsUp() {
|
|
15871
|
+
/* */
|
|
15872
|
+
/* */
|
|
15873
|
+
return (void 0);
|
|
15874
|
+
}
|
|
15607
15875
|
async updateProject(project, force = false) {
|
|
15608
15876
|
/* */
|
|
15609
15877
|
/* */
|
|
@@ -17452,6 +17720,11 @@ class BaseGlobalCommandLine extends BaseCommandLineFeature {
|
|
|
17452
17720
|
//#endregion
|
|
17453
17721
|
//#region commands / simulate domain
|
|
17454
17722
|
async simulateDomain() {
|
|
17723
|
+
/* */
|
|
17724
|
+
/* */
|
|
17725
|
+
/* */
|
|
17726
|
+
/* */
|
|
17727
|
+
/* */
|
|
17455
17728
|
/* */
|
|
17456
17729
|
/* */
|
|
17457
17730
|
/* */
|
|
@@ -18114,6 +18387,16 @@ class BaseGlobalCommandLine extends BaseCommandLineFeature {
|
|
|
18114
18387
|
//#endregion
|
|
18115
18388
|
//#region commands / is online
|
|
18116
18389
|
async isOnline() {
|
|
18390
|
+
/* */
|
|
18391
|
+
/* */
|
|
18392
|
+
/* */
|
|
18393
|
+
/* */
|
|
18394
|
+
/* */
|
|
18395
|
+
/* */
|
|
18396
|
+
/* */
|
|
18397
|
+
/* */
|
|
18398
|
+
/* */
|
|
18399
|
+
/* */
|
|
18117
18400
|
/* */
|
|
18118
18401
|
/* */
|
|
18119
18402
|
/* */
|
|
@@ -18137,6 +18420,67 @@ class BaseGlobalCommandLine extends BaseCommandLineFeature {
|
|
|
18137
18420
|
confShell() {
|
|
18138
18421
|
this.configureShell();
|
|
18139
18422
|
}
|
|
18423
|
+
//#endregion
|
|
18424
|
+
//#region commands / git reset all
|
|
18425
|
+
gitResetAll() {
|
|
18426
|
+
/* */
|
|
18427
|
+
/* */
|
|
18428
|
+
/* */
|
|
18429
|
+
/* */
|
|
18430
|
+
/* */
|
|
18431
|
+
/* */
|
|
18432
|
+
/* */
|
|
18433
|
+
/* */
|
|
18434
|
+
/* */
|
|
18435
|
+
/* */
|
|
18436
|
+
/* */
|
|
18437
|
+
/* */
|
|
18438
|
+
return (void 0);
|
|
18439
|
+
}
|
|
18440
|
+
//#endregion
|
|
18441
|
+
//#region commands / is elevated
|
|
18442
|
+
async isElevated() {
|
|
18443
|
+
/* */
|
|
18444
|
+
/* */
|
|
18445
|
+
/* */
|
|
18446
|
+
/* */
|
|
18447
|
+
/* */
|
|
18448
|
+
return (void 0);
|
|
18449
|
+
}
|
|
18450
|
+
//#endregion
|
|
18451
|
+
//#region commands / sudo check
|
|
18452
|
+
async sudoCheck() {
|
|
18453
|
+
const sudoStatus = await UtilsSudo.getStatus();
|
|
18454
|
+
console.log('is command available', sudoStatus.isAvailable);
|
|
18455
|
+
console.log('is inline sudo enable', sudoStatus.isInline);
|
|
18456
|
+
console.log('is this command elevated (sudo or admin)', await isElevated());
|
|
18457
|
+
this._exit();
|
|
18458
|
+
}
|
|
18459
|
+
//#endregion
|
|
18460
|
+
//#region commands / python modules exists
|
|
18461
|
+
async pythonModuleExists() {
|
|
18462
|
+
/* */
|
|
18463
|
+
/* */
|
|
18464
|
+
/* */
|
|
18465
|
+
/* */
|
|
18466
|
+
/* */
|
|
18467
|
+
/* */
|
|
18468
|
+
/* */
|
|
18469
|
+
/* */
|
|
18470
|
+
/* */
|
|
18471
|
+
/* */
|
|
18472
|
+
/* */
|
|
18473
|
+
/* */
|
|
18474
|
+
/* */
|
|
18475
|
+
/* */
|
|
18476
|
+
/* */
|
|
18477
|
+
/* */
|
|
18478
|
+
/* */
|
|
18479
|
+
/* */
|
|
18480
|
+
/* */
|
|
18481
|
+
/* */
|
|
18482
|
+
return (void 0);
|
|
18483
|
+
}
|
|
18140
18484
|
}
|
|
18141
18485
|
|
|
18142
18486
|
//#region imports
|
|
@@ -19908,5 +20252,5 @@ const Helpers = HelpersTaon.Instance;
|
|
|
19908
20252
|
* Generated bundle index. Do not edit.
|
|
19909
20253
|
*/
|
|
19910
20254
|
|
|
19911
|
-
export { BaseCLiWorkerStartMode, BaseCLiWorkerStartParams, BaseCliMethodOptions, BaseCliWorker, BaseCliWorkerConfig, BaseCliWorkerConfigGetContextOptions,
|
|
20255
|
+
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 };
|
|
19912
20256
|
//# sourceMappingURL=tnp-helpers.mjs.map
|