tnp-helpers 21.0.17 → 21.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. package/browser/fesm2022/tnp-helpers-browser.mjs +285 -52
  2. package/browser/fesm2022/tnp-helpers-browser.mjs.map +1 -1
  3. package/browser/package.json +1 -1
  4. package/browser/types/tnp-helpers-browser.d.ts +17 -14
  5. package/lib/base/classes/base-command-line-feature.backend.d.ts +47 -0
  6. package/lib/base/classes/base-command-line-feature.backend.js +147 -0
  7. package/lib/base/classes/base-command-line-feature.backend.js.map +1 -0
  8. package/lib/base/classes/base-command-line-feature.js +1 -1
  9. package/lib/base/classes/base-command-line-feature.js.map +1 -1
  10. package/lib/base/classes/base-git.d.ts +0 -7
  11. package/lib/base/classes/base-git.js +0 -11
  12. package/lib/base/classes/base-git.js.map +1 -1
  13. package/lib/base/classes/base-global-command-line.backend.d.ts +243 -0
  14. package/lib/base/classes/base-global-command-line.backend.js +2212 -0
  15. package/lib/base/classes/base-global-command-line.backend.js.map +1 -0
  16. package/lib/base/classes/base-global-command-line.d.ts +4 -2
  17. package/lib/base/classes/base-global-command-line.js +119 -97
  18. package/lib/base/classes/base-global-command-line.js.map +1 -1
  19. package/lib/base/classes/base-linter.d.ts +1 -1
  20. package/lib/base/classes/base-linter.js +72 -3
  21. package/lib/base/classes/base-linter.js.map +1 -1
  22. package/lib/base/classes/base-npm-helpers.js +2 -2
  23. package/lib/base/classes/base-npm-helpers.js.map +1 -1
  24. package/lib/base/classes/base-package-json.d.ts +1 -0
  25. package/lib/base/classes/base-package-json.js +10 -0
  26. package/lib/base/classes/base-package-json.js.map +1 -1
  27. package/lib/base/classes/base-powershell.d.ts +58 -0
  28. package/lib/base/classes/base-powershell.js +105 -0
  29. package/lib/base/classes/base-powershell.js.map +1 -0
  30. package/lib/base/classes/base-process/base-process-api.service.d.ts +7 -0
  31. package/lib/base/classes/base-process/base-process.context.d.ts +19 -0
  32. package/lib/base/classes/base-process/base-process.context.js +22 -0
  33. package/lib/base/classes/base-process/base-process.context.js.map +1 -0
  34. package/lib/base/classes/base-process/base-process.controller.d.ts +17 -0
  35. package/lib/base/classes/base-process/base-process.controller.js +91 -0
  36. package/lib/base/classes/base-process/base-process.controller.js.map +1 -0
  37. package/lib/base/classes/base-process/base-process.d.ts +8 -0
  38. package/lib/base/classes/base-process/base-process.defaults-values.d.ts +2 -0
  39. package/lib/base/classes/base-process/base-process.defaults-values.js +9 -0
  40. package/lib/base/classes/base-process/base-process.defaults-values.js.map +1 -0
  41. package/lib/base/classes/base-process/base-process.js +62 -0
  42. package/lib/base/classes/base-process/base-process.js.map +1 -0
  43. package/lib/base/classes/base-process/base-process.models.d.ts +6 -0
  44. package/lib/base/classes/base-process/base-process.models.js +3 -0
  45. package/lib/base/classes/base-process/base-process.models.js.map +1 -0
  46. package/lib/base/classes/base-process/base-process.provider.d.ts +16 -0
  47. package/lib/base/classes/base-process/base-process.provider.js +69 -0
  48. package/lib/base/classes/base-process/base-process.provider.js.map +1 -0
  49. package/lib/base/classes/base-process/base-process.repository copy.d.ts +8 -0
  50. package/lib/base/classes/base-process/base-process.repository copy.js +32 -0
  51. package/lib/base/classes/base-process/base-process.repository copy.js.map +1 -0
  52. package/lib/base/classes/base-process/base-process.repository.d.ts +8 -0
  53. package/lib/base/classes/base-process/base-process.repository.js +32 -0
  54. package/lib/base/classes/base-process/base-process.repository.js.map +1 -0
  55. package/lib/base/classes/base-process/base-process.terminal-ui.d.ts +11 -0
  56. package/lib/base/classes/base-process/base-process.terminal-ui.js +54 -0
  57. package/lib/base/classes/base-process/base-process.terminal-ui.js.map +1 -0
  58. package/lib/base/classes/base-process/base-process.worker.d.ts +16 -0
  59. package/lib/base/classes/base-process/base-process.worker.js +29 -0
  60. package/lib/base/classes/base-process/base-process.worker.js.map +1 -0
  61. package/lib/base/classes/base-process/index.d.ts +1 -0
  62. package/lib/base/classes/base-process/index.js +22 -0
  63. package/lib/base/classes/base-process/index.js.map +1 -0
  64. package/lib/base/classes/base-process/processes.repository.d.ts +0 -0
  65. package/lib/base/classes/base-process/processes.repository.js +5 -0
  66. package/lib/base/classes/base-process/processes.repository.js.map +1 -0
  67. package/lib/base/classes/base-project.d.ts +4 -2
  68. package/lib/base/classes/base-project.js +99 -78
  69. package/lib/base/classes/base-project.js.map +1 -1
  70. package/lib/base/classes/base-vscode.d.ts +1 -0
  71. package/lib/base/classes/base-vscode.js +10 -2
  72. package/lib/base/classes/base-vscode.js.map +1 -1
  73. package/lib/base/core-project.d.ts +2 -2
  74. package/lib/base/tcp-udp-ports/not-assignable-port.entity.js +2 -2
  75. package/lib/base/tcp-udp-ports/ports.entity.d.ts +1 -1
  76. package/lib/base/tcp-udp-ports/tcp-udp-ports.context.d.ts +8 -8
  77. package/lib/build-info._auto-generated_.d.ts +1 -1
  78. package/lib/build-info._auto-generated_.js +1 -1
  79. package/lib/env/env.angular-node-app.d.ts +2 -3
  80. package/lib/env/env.angular-node-app.js +4 -5
  81. package/lib/env/env.angular-node-app.js.map +1 -1
  82. package/lib/env/env.docs-webapp.d.ts +2 -3
  83. package/lib/env/env.docs-webapp.js +4 -5
  84. package/lib/env/env.docs-webapp.js.map +1 -1
  85. package/lib/env/env.electron-app.d.ts +2 -3
  86. package/lib/env/env.electron-app.js +4 -5
  87. package/lib/env/env.electron-app.js.map +1 -1
  88. package/lib/env/env.mobile-app.d.ts +2 -3
  89. package/lib/env/env.mobile-app.js +4 -5
  90. package/lib/env/env.mobile-app.js.map +1 -1
  91. package/lib/env/env.npm-lib-and-cli-tool.d.ts +2 -3
  92. package/lib/env/env.npm-lib-and-cli-tool.js +4 -5
  93. package/lib/env/env.npm-lib-and-cli-tool.js.map +1 -1
  94. package/lib/env/env.vscode-plugin.d.ts +2 -3
  95. package/lib/env/env.vscode-plugin.js +4 -5
  96. package/lib/env/env.vscode-plugin.js.map +1 -1
  97. package/lib/env-backend._auto-generated_.d.ts +34 -0
  98. package/lib/env-backend._auto-generated_.js +38 -0
  99. package/lib/env-backend._auto-generated_.js.map +1 -0
  100. package/lib/env-browser._auto-generated_.d.ts +34 -0
  101. package/lib/env-browser._auto-generated_.js +38 -0
  102. package/lib/env-browser._auto-generated_.js.map +1 -0
  103. package/lib/env.backend.d.ts +34 -0
  104. package/lib/env.backend.js +40 -0
  105. package/lib/env.backend.js.map +1 -0
  106. package/lib/env.browser.d.ts +34 -0
  107. package/lib/helpers/for-backend/helpers-dependencies.backend.d.ts +2 -0
  108. package/lib/helpers/for-backend/helpers-dependencies.backend.js +7 -0
  109. package/lib/helpers/for-backend/helpers-dependencies.backend.js.map +1 -0
  110. package/lib/helpers/for-backend/helpers-network.backend.d.ts +9 -0
  111. package/lib/helpers/for-backend/helpers-network.backend.js +44 -0
  112. package/lib/helpers/for-backend/helpers-network.backend.js.map +1 -0
  113. package/lib/helpers/for-browser/angular.helper.js +2 -2
  114. package/lib/index._auto-generated_.js +1 -1
  115. package/lib/index._auto-generated_.js.map +1 -1
  116. package/lib/models.d.ts +1 -0
  117. package/lib/models.js.map +1 -1
  118. package/lib/old/base-component.js +2 -2
  119. package/lib/old/base-formly-component.js +2 -2
  120. package/lib/old/dual-component-ctrl.js +2 -2
  121. package/lib/utils.d.ts +4 -1
  122. package/lib/utils.js +105 -16
  123. package/lib/utils.js.map +1 -1
  124. package/lib/validators/validators-firedev.d.ts +3 -0
  125. package/lib/validators/validators-firedev.js +34 -0
  126. package/lib/validators/validators-firedev.js.map +1 -0
  127. package/lib/validators/validators-git.d.ts +3 -0
  128. package/lib/validators/validators-git.js +13 -0
  129. package/lib/validators/validators-git.js.map +1 -0
  130. package/lib/validators/validators-network.d.ts +3 -0
  131. package/lib/validators/validators-network.js +19 -0
  132. package/lib/validators/validators-network.js.map +1 -0
  133. package/lib/validators/validators.d.ts +6 -0
  134. package/lib/validators/validators.js +11 -0
  135. package/lib/validators/validators.js.map +1 -0
  136. package/package.json +1 -1
  137. package/tmp-environment.json +33 -0
  138. package/websql/fesm2022/tnp-helpers-websql.mjs +289 -55
  139. package/websql/fesm2022/tnp-helpers-websql.mjs.map +1 -1
  140. package/websql/package.json +1 -1
  141. package/websql/types/tnp-helpers-websql.d.ts +17 -14
@@ -1,12 +1,13 @@
1
1
  import { Subject, BehaviorSubject } from 'rxjs';
2
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, isCallExpression, SyntaxKind, isImportDeclaration, isExportDeclaration, forEachChild, ScriptKind } from 'typescript';
3
+ import { createSourceFile, ScriptTarget, isCallExpression, SyntaxKind, isImportDeclaration, isExportDeclaration, forEachChild, ScriptKind, getLeadingCommentRanges, getTrailingCommentRanges, isArrayLiteralExpression, isObjectLiteralExpression } from 'typescript';
4
4
  import * as fuzzy from 'fuzzy';
5
5
  import { Level } from 'ng2-logger/browser';
6
6
  import { CLASS } from 'typescript-class-helpers/browser';
7
7
  import { __decorate, __param, __metadata } from 'tslib';
8
8
  import { TaonBaseEntity, TaonEntity, TaonBaseClass, TaonBaseController, PUT, Body, GET, Query, HTML, POST, TaonController, DELETE, TaonBaseMigration, TaonMigration, Taon, TaonBaseContext } from 'taon/browser';
9
9
  import { BaseClientCompiler } from 'incremental-compiler/browser';
10
+ import { console as console$1 } from 'inspector';
10
11
 
11
12
  //#region @browser
12
13
  const componentContextSymbol = Symbol();
@@ -992,7 +993,7 @@ var UtilsTypescript;
992
993
  };
993
994
  //#endregion
994
995
  //#region recognize imports from file
995
- //#region helpers / ts import export class
996
+ //#region recognize imports from file / ts import export class
996
997
  class TsImportExport {
997
998
  //#endregion
998
999
  //#region constructor
@@ -1067,7 +1068,7 @@ var UtilsTypescript;
1067
1068
  }
1068
1069
  UtilsTypescript.TsImportExport = TsImportExport;
1069
1070
  //#endregion
1070
- //#region helpers / get quote type
1071
+ //#region recognize imports from file / get quote type
1071
1072
  const getQuoteType = (text) => {
1072
1073
  /* */
1073
1074
  /* */
@@ -1076,6 +1077,7 @@ var UtilsTypescript;
1076
1077
  return (void 0);
1077
1078
  };
1078
1079
  //#endregion
1080
+ //#region recognize imports from file / extract import export elements
1079
1081
  const extractImportExportElements = (node) => {
1080
1082
  /* */
1081
1083
  /* */
@@ -1100,12 +1102,16 @@ var UtilsTypescript;
1100
1102
  /* */
1101
1103
  return (void 0);
1102
1104
  };
1105
+ //#endregion
1106
+ //#region recognize imports from file / recognize imports from file
1103
1107
  UtilsTypescript.recognizeImportsFromFile = (fileAbsPAth) => {
1104
1108
  /* */
1105
1109
  /* */
1106
1110
  /* */
1107
1111
  return (void 0);
1108
1112
  };
1113
+ //#endregion
1114
+ //#region recognize imports from file / recognize imports from content
1109
1115
  UtilsTypescript.recognizeImportsFromContent = (fileContent) => {
1110
1116
  if (!fileContent) {
1111
1117
  return [];
@@ -1150,6 +1156,7 @@ var UtilsTypescript;
1150
1156
  return results;
1151
1157
  };
1152
1158
  //#endregion
1159
+ //#endregion
1153
1160
  //#region transform Angular component standalone option
1154
1161
  /**
1155
1162
  * Transition methods ng18 => ng19
@@ -1221,9 +1228,8 @@ var UtilsTypescript;
1221
1228
  };
1222
1229
  //#endregion
1223
1230
  //#region remove tagged imports/exports
1224
- function removeTaggedImportExport(tsFileContent, tags) {
1231
+ function removeTaggedImportExport(tsFileContent, tags, replaceWithEmptyLine = false) {
1225
1232
  const sourceFile = createSourceFile('temp.ts', tsFileContent, ScriptTarget.Latest, true, ScriptKind.TS);
1226
- // debug && console.log(tsFileContent);
1227
1233
  const lines = tsFileContent.split(/\r?\n/);
1228
1234
  const tagRegex = new RegExp(tags
1229
1235
  .map(t => (Array.isArray(t) ? t[0] : t))
@@ -1244,27 +1250,111 @@ var UtilsTypescript;
1244
1250
  const endLineText = lines[endLine]; // ← get real line content from file
1245
1251
  if (!tagRegex.test(endLineText))
1246
1252
  continue;
1247
- // debug &&
1248
- // console.log(`
1249
- // start: ${start}
1250
- // end: ${end}
1251
- // startLine: ${startLine}
1252
- // endLine: ${endLine}
1253
- // endLineText: >> ${endLineText} <<
1254
- // `);
1255
- // console.log('removing line ' + startLine + ' to ' + endLine);
1256
1253
  for (let i = startLine; i <= endLine; i++) {
1257
1254
  const original = lines[i];
1258
- lines[i] = '/* */' + ' '.repeat(Math.max(0, original.length - 4));
1255
+ if (replaceWithEmptyLine) {
1256
+ lines[i] = '';
1257
+ }
1258
+ else {
1259
+ lines[i] = '/* */' + ' '.repeat(Math.max(0, original.length - 4));
1260
+ }
1259
1261
  }
1260
1262
  }
1261
- // debug && console.log('\n\n\n\n');
1262
1263
  const result = lines.join('\n');
1263
- // debug && console.log(result)
1264
1264
  return result;
1265
1265
  }
1266
1266
  UtilsTypescript.removeTaggedImportExport = removeTaggedImportExport;
1267
1267
  //#endregion
1268
+ //#region remove tagged array objects
1269
+ function removeTaggedArrayObjects(tsFileContent, tags, replaceWithEmptyLine = false) {
1270
+ const sourceFile = createSourceFile('temp.ts', tsFileContent, ScriptTarget.Latest, true, ScriptKind.TS);
1271
+ const lines = tsFileContent.split(/\r?\n/);
1272
+ const tagRegex = new RegExp(tags.map(t => Utils.escapeStringForRegEx(t)).join('|'), 'i');
1273
+ function hasTag(node) {
1274
+ const fullText = sourceFile.getFullText();
1275
+ // comments BEFORE object
1276
+ const leading = getLeadingCommentRanges(fullText, node.getFullStart()) ?? [];
1277
+ for (const c of leading) {
1278
+ const text = fullText.slice(c.pos, c.end);
1279
+ if (tagRegex.test(text))
1280
+ return true;
1281
+ }
1282
+ // comments AFTER `{` (same-line)
1283
+ const trailing = getTrailingCommentRanges(fullText, node.getStart()) ?? [];
1284
+ for (const c of trailing) {
1285
+ const text = fullText.slice(c.pos, c.end);
1286
+ if (tagRegex.test(text))
1287
+ return true;
1288
+ }
1289
+ return false;
1290
+ }
1291
+ function commentOutNode(node) {
1292
+ const startLine = sourceFile.getLineAndCharacterOfPosition(node.getStart()).line;
1293
+ const endLine = sourceFile.getLineAndCharacterOfPosition(node.getEnd()).line;
1294
+ for (let i = startLine; i <= endLine; i++) {
1295
+ const original = lines[i];
1296
+ if (replaceWithEmptyLine) {
1297
+ lines[i] = '';
1298
+ }
1299
+ else {
1300
+ lines[i] = '/* */' + ' '.repeat(Math.max(0, original.length - 4));
1301
+ }
1302
+ }
1303
+ }
1304
+ function visit(node) {
1305
+ if (isArrayLiteralExpression(node)) {
1306
+ for (const element of node.elements) {
1307
+ if (isObjectLiteralExpression(element) && hasTag(element)) {
1308
+ commentOutNode(element);
1309
+ }
1310
+ }
1311
+ }
1312
+ forEachChild(node, visit);
1313
+ }
1314
+ visit(sourceFile);
1315
+ return lines.join('\n');
1316
+ }
1317
+ UtilsTypescript.removeTaggedArrayObjects = removeTaggedArrayObjects;
1318
+ //#endregion
1319
+ //#region remove tagged lines
1320
+ function removeTaggedLines(tsFileContent, tags, replaceWithEmptyLine = false) {
1321
+ const lines = tsFileContent.split(/\r?\n/);
1322
+ const tagRegex = new RegExp(tags
1323
+ .filter(Boolean)
1324
+ .map(t => Utils.escapeStringForRegEx(t))
1325
+ .join('|'), 'i');
1326
+ for (let i = 0; i < lines.length; i++) {
1327
+ const original = lines[i];
1328
+ if (!tagRegex.test(original))
1329
+ continue;
1330
+ // preserve line length
1331
+ if (replaceWithEmptyLine) {
1332
+ lines[i] = '';
1333
+ }
1334
+ else {
1335
+ lines[i] = '/* */' + ' '.repeat(Math.max(0, original.length - 4));
1336
+ }
1337
+ }
1338
+ return lines.join('\n');
1339
+ }
1340
+ UtilsTypescript.removeTaggedLines = removeTaggedLines;
1341
+ //#endregion
1342
+ //#region add content below placeholder
1343
+ function addBelowPlaceholder(tsFileContent, placeholderTag, contentToAdd) {
1344
+ const lines = tsFileContent.split(/\r?\n/);
1345
+ const insertLines = contentToAdd.split(/\r?\n/);
1346
+ const placeholderRegex = new RegExp(Utils.escapeStringForRegEx(placeholderTag), 'i');
1347
+ for (let i = 0; i < lines.length; i++) {
1348
+ if (!placeholderRegex.test(lines[i]))
1349
+ continue;
1350
+ // insert directly BELOW the placeholder line
1351
+ lines.splice(i + 1, 0, ...insertLines);
1352
+ break;
1353
+ }
1354
+ return lines.join('\n');
1355
+ }
1356
+ UtilsTypescript.addBelowPlaceholder = addBelowPlaceholder;
1357
+ //#endregion
1268
1358
  //#region wrap first imports in region
1269
1359
  UtilsTypescript.wrapFirstImportsInImportsRegion = (fileContent) => {
1270
1360
  /* */
@@ -7948,7 +8038,7 @@ const PROJECT_NPM_NAME = 'tnp-helpers';
7948
8038
  /**
7949
8039
  * Autogenerated by current cli tool. Use *tnp release* to bump version.
7950
8040
  */
7951
- const CURRENT_PACKAGE_VERSION = '21.0.17';
8041
+ const CURRENT_PACKAGE_VERSION = '21.0.19';
7952
8042
  // THIS FILE IS GENERATED - DO NOT MODIFY
7953
8043
 
7954
8044
  //#endregion
@@ -8546,6 +8636,17 @@ class BaseProject {
8546
8636
  //#endregion
8547
8637
  //#region methods & getters / parent
8548
8638
  get parent() {
8639
+ /* */
8640
+ /* */
8641
+ /* */
8642
+ /* */
8643
+ /* */
8644
+ /* */
8645
+ /* */
8646
+ /* */
8647
+ /* */
8648
+ /* */
8649
+ /* */
8549
8650
  /* */
8550
8651
  /* */
8551
8652
  /* */
@@ -9122,7 +9223,21 @@ class BaseProject {
9122
9223
  }
9123
9224
  //#endregion
9124
9225
  //#region methods & getters / reset process
9125
- async resetProcess(overrideBranch, recrusive = false) {
9226
+ async resetProcess(overrideBranch, options) {
9227
+ /* */
9228
+ /* */
9229
+ /* */
9230
+ /* */
9231
+ /* */
9232
+ /* */
9233
+ /* */
9234
+ /* */
9235
+ /* */
9236
+ /* */
9237
+ /* */
9238
+ /* */
9239
+ /* */
9240
+ /* */
9126
9241
  /* */
9127
9242
  /* */
9128
9243
  /* */
@@ -10545,6 +10660,15 @@ class BasePackageJson extends BaseJsonFileReader {
10545
10660
  /* */
10546
10661
  return (void 0);
10547
10662
  }
10663
+ getBumpedOrCurrentVersionFor(releaseType) {
10664
+ /* */
10665
+ /* */
10666
+ /* */
10667
+ /* */
10668
+ /* */
10669
+ /* */
10670
+ return (void 0);
10671
+ }
10548
10672
  //#endregion
10549
10673
  //#region update deps from locations
10550
10674
  updateDepsFrom(locations) {
@@ -12344,7 +12468,6 @@ class BaseGit extends BaseFeatureForProject {
12344
12468
  /* */
12345
12469
  /* */
12346
12470
  /* */
12347
- /* */
12348
12471
  return (void 0);
12349
12472
  }
12350
12473
  //#region methods & getters / has action commits to melt
@@ -13211,8 +13334,6 @@ class BaseGit extends BaseFeatureForProject {
13211
13334
  /* */
13212
13335
  /* */
13213
13336
  /* */
13214
- /* */
13215
- /* */
13216
13337
  return (void 0);
13217
13338
  }
13218
13339
  //#endregion
@@ -13400,17 +13521,6 @@ class BaseGit extends BaseFeatureForProject {
13400
13521
  return (void 0);
13401
13522
  }
13402
13523
  //#endregion
13403
- //#region methods & getters / reset is resting also children
13404
- /**
13405
- * If true command navi reset will reset project
13406
- * and its children.
13407
- *
13408
- * If false command navi reset will reset only project.
13409
- */
13410
- resetIsRestingAlsoChildren() {
13411
- return true;
13412
- }
13413
- //#endregion
13414
13524
  useBranchNameDirectlyAsCommitMessage() {
13415
13525
  return false;
13416
13526
  }
@@ -13710,9 +13820,6 @@ trim_trailing_whitespace = false
13710
13820
  return (void 0);
13711
13821
  }
13712
13822
  //#endregion
13713
- isEnableForProject() {
13714
- return true;
13715
- }
13716
13823
  //#region write lint files
13717
13824
  writeLintFiles() {
13718
13825
  /* */
@@ -13734,6 +13841,84 @@ trim_trailing_whitespace = false
13734
13841
  /* */
13735
13842
  return (void 0);
13736
13843
  }
13844
+ //#endregion
13845
+ async start(throwInstedExit = false) {
13846
+ /* */
13847
+ /* */
13848
+ /* */
13849
+ /* */
13850
+ /* */
13851
+ /* */
13852
+ /* */
13853
+ /* */
13854
+ /* */
13855
+ /* */
13856
+ /* */
13857
+ /* */
13858
+ /* */
13859
+ /* */
13860
+ /* */
13861
+ /* */
13862
+ /* */
13863
+ /* */
13864
+ /* */
13865
+ /* */
13866
+ /* */
13867
+ /* */
13868
+ /* */
13869
+ /* */
13870
+ /* */
13871
+ /* */
13872
+ /* */
13873
+ /* */
13874
+ /* */
13875
+ /* */
13876
+ /* */
13877
+ /* */
13878
+ /* */
13879
+ /* */
13880
+ /* */
13881
+ /* */
13882
+ /* */
13883
+ /* */
13884
+ /* */
13885
+ /* */
13886
+ /* */
13887
+ /* */
13888
+ /* */
13889
+ /* */
13890
+ /* */
13891
+ /* */
13892
+ /* */
13893
+ /* */
13894
+ /* */
13895
+ /* */
13896
+ /* */
13897
+ /* */
13898
+ /* */
13899
+ /* */
13900
+ /* */
13901
+ /* */
13902
+ /* */
13903
+ /* */
13904
+ /* */
13905
+ /* */
13906
+ /* */
13907
+ /* */
13908
+ /* */
13909
+ /* */
13910
+ /* */
13911
+ /* */
13912
+ /* */
13913
+ /* */
13914
+ /* */
13915
+ /* */
13916
+ /* */
13917
+ /* */
13918
+ /* */
13919
+ /* */
13920
+ /* */
13921
+ }
13737
13922
  }
13738
13923
 
13739
13924
  class BaseVscodeHelpers extends BaseFeatureForProject {
@@ -13905,6 +14090,14 @@ class BaseVscodeHelpers extends BaseFeatureForProject {
13905
14090
  ]).map(c => c.toLowerCase());
13906
14091
  }
13907
14092
  //#endregion
14093
+ getDeprecatedExtension() {
14094
+ return [
14095
+ 'ivangabriele.vscode-git-add-and-commit',
14096
+ 'alexiv.vscode-angular2-files',
14097
+ 'taddison.gitlazy',
14098
+ 'xabikos.JavaScriptSnippets'
14099
+ ];
14100
+ }
13908
14101
  //#region extensions
13909
14102
  /**
13910
14103
  * @deprecated use getExtensions() instead
@@ -14422,7 +14615,6 @@ class BaseVscodeHelpers extends BaseFeatureForProject {
14422
14615
  /* */
14423
14616
  /* */
14424
14617
  /* */
14425
- /* */
14426
14618
  return (void 0);
14427
14619
  }
14428
14620
  //#endregion
@@ -16542,6 +16734,14 @@ class BaseGlobalCommandLine extends BaseCommandLineFeature {
16542
16734
  /* */
16543
16735
  /* */
16544
16736
  /* */
16737
+ /* */
16738
+ /* */
16739
+ /* */
16740
+ /* */
16741
+ /* */
16742
+ /* */
16743
+ /* */
16744
+ /* */
16545
16745
  return (void 0);
16546
16746
  }
16547
16747
  //#region commands / force update
@@ -16801,7 +17001,29 @@ class BaseGlobalCommandLine extends BaseCommandLineFeature {
16801
17001
  }
16802
17002
  //#endregion
16803
17003
  //#region commands / reset
16804
- __resetInfo(branchToReset, withChildren) {
17004
+ async fetch() {
17005
+ /* */
17006
+ /* */
17007
+ /* */
17008
+ /* */
17009
+ /* */
17010
+ return (void 0);
17011
+ }
17012
+ async reset() {
17013
+ await this.resetProject({ commandActionType: 'only-this' });
17014
+ }
17015
+ async resetAll() {
17016
+ await this.resetProject({ commandActionType: 'first-level' });
17017
+ }
17018
+ async resetDeep() {
17019
+ await this.resetProject({ commandActionType: 'deep' });
17020
+ }
17021
+ async resetProject(options) {
17022
+ /* */
17023
+ /* */
17024
+ /* */
17025
+ /* */
17026
+ /* */
16805
17027
  /* */
16806
17028
  /* */
16807
17029
  /* */
@@ -16821,17 +17043,11 @@ class BaseGlobalCommandLine extends BaseCommandLineFeature {
16821
17043
  /* */
16822
17044
  /* */
16823
17045
  /* */
16824
- return (void 0);
16825
- }
16826
- async fetch() {
16827
17046
  /* */
16828
17047
  /* */
16829
17048
  /* */
16830
17049
  /* */
16831
17050
  /* */
16832
- return (void 0);
16833
- }
16834
- async reset() {
16835
17051
  /* */
16836
17052
  /* */
16837
17053
  /* */
@@ -16942,6 +17158,8 @@ class BaseGlobalCommandLine extends BaseCommandLineFeature {
16942
17158
  /* */
16943
17159
  /* */
16944
17160
  /* */
17161
+ /* */
17162
+ /* */
16945
17163
  return (void 0);
16946
17164
  }
16947
17165
  //#endregion
@@ -17279,6 +17497,7 @@ class BaseGlobalCommandLine extends BaseCommandLineFeature {
17279
17497
  /* */
17280
17498
  /* */
17281
17499
  /* */
17500
+ /* */
17282
17501
  return (void 0);
17283
17502
  }
17284
17503
  //#endregion
@@ -17676,6 +17895,8 @@ class BaseGlobalCommandLine extends BaseCommandLineFeature {
17676
17895
  /* */
17677
17896
  /* */
17678
17897
  /* */
17898
+ /* */
17899
+ /* */
17679
17900
  return (void 0);
17680
17901
  }
17681
17902
  //#endregion
@@ -17811,6 +18032,8 @@ class BaseGlobalCommandLine extends BaseCommandLineFeature {
17811
18032
  /* */
17812
18033
  /* */
17813
18034
  /* */
18035
+ /* */
18036
+ /* */
17814
18037
  return (void 0);
17815
18038
  }
17816
18039
  //#endregion
@@ -18112,7 +18335,7 @@ class BaseGlobalCommandLine extends BaseCommandLineFeature {
18112
18335
  }
18113
18336
  //#endregion
18114
18337
  //#region select branch from list of branches
18115
- async __selectBrach(branches, task) {
18338
+ async __selectBranch(branches, task, commandActionType) {
18116
18339
  /* */
18117
18340
  /* */
18118
18341
  /* */
@@ -18364,6 +18587,8 @@ class BaseGlobalCommandLine extends BaseCommandLineFeature {
18364
18587
  /* */
18365
18588
  /* */
18366
18589
  /* */
18590
+ /* */
18591
+ /* */
18367
18592
  return (void 0);
18368
18593
  }
18369
18594
  //#endregion
@@ -18595,6 +18820,10 @@ class BaseGlobalCommandLine extends BaseCommandLineFeature {
18595
18820
  /* */
18596
18821
  /* */
18597
18822
  /* */
18823
+ /* */
18824
+ /* */
18825
+ /* */
18826
+ /* */
18598
18827
  return (void 0);
18599
18828
  }
18600
18829
  //#endregion
@@ -18903,7 +19132,7 @@ class BaseGlobalCommandLine extends BaseCommandLineFeature {
18903
19132
  //#region commands / pwd
18904
19133
  pwd() {
18905
19134
  config.frameworkName = 'taon';
18906
- console.log(crossPlatformPath(this.cwd));
19135
+ console$1.log(crossPlatformPath(this.cwd));
18907
19136
  this._exit();
18908
19137
  }
18909
19138
  //#endregion
@@ -19025,6 +19254,10 @@ class BaseGlobalCommandLine extends BaseCommandLineFeature {
19025
19254
  /* */
19026
19255
  /* */
19027
19256
  /* */
19257
+ /* */
19258
+ /* */
19259
+ /* */
19260
+ /* */
19028
19261
  return (void 0);
19029
19262
  }
19030
19263
  //#endregion
@@ -19115,7 +19348,7 @@ class BaseGlobalCommandLine extends BaseCommandLineFeature {
19115
19348
  //#region commands / public ip address
19116
19349
  async publicIpAddress() {
19117
19350
  const ip = await UtilsNetwork.getCurrentPublicIpAddress();
19118
- console.log(`Your public IP address is: ${ip}`);
19351
+ console$1.log(`Your public IP address is: ${ip}`);
19119
19352
  this._exit();
19120
19353
  }
19121
19354
  async publicIp() {
@@ -19127,12 +19360,12 @@ class BaseGlobalCommandLine extends BaseCommandLineFeature {
19127
19360
  //#region commands / open origins in vscode
19128
19361
  async localIps() {
19129
19362
  const firstActiveLocalIp = await UtilsNetwork.getFirstIpV4LocalActiveIpAddress();
19130
- console.log(`Your first active local IP address is: ${firstActiveLocalIp} `);
19363
+ console$1.log(`Your first active local IP address is: ${firstActiveLocalIp} `);
19131
19364
  const ips = await UtilsNetwork.getLocalIpAddresses();
19132
19365
  for (let index = 0; index < ips.length; index++) {
19133
19366
  const ip = ips[index];
19134
19367
  // console.log(ip);
19135
- console.log(`${index + 1}. Local IP address is: ` +
19368
+ console$1.log(`${index + 1}. Local IP address is: ` +
19136
19369
  `${ip.address}, type: ${ip.type}`);
19137
19370
  }
19138
19371
  this._exit();
@@ -19204,9 +19437,9 @@ class BaseGlobalCommandLine extends BaseCommandLineFeature {
19204
19437
  //#region commands / sudo check
19205
19438
  async sudoCheck() {
19206
19439
  const sudoStatus = await UtilsSudo.getStatus();
19207
- console.log('is command available', sudoStatus.isAvailable);
19208
- console.log('is inline sudo enable', sudoStatus.isInline);
19209
- console.log('is this command elevated (sudo or admin)', await isElevated());
19440
+ console$1.log('is command available', sudoStatus.isAvailable);
19441
+ console$1.log('is inline sudo enable', sudoStatus.isInline);
19442
+ console$1.log('is this command elevated (sudo or admin)', await isElevated());
19210
19443
  this._exit();
19211
19444
  }
19212
19445
  //#endregion