tnp-core 18.0.47 → 18.0.50

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 (101) hide show
  1. package/README.md +1 -1
  2. package/assets/shared/shared_folder_info.txt +1 -1
  3. package/browser/esm2022/lib/core-imports.mjs +66 -5
  4. package/browser/esm2022/lib/core-models.mjs +51 -48
  5. package/browser/esm2022/lib/helpers-messages.mjs +9 -4
  6. package/browser/esm2022/lib/helpers.mjs +152 -369
  7. package/browser/esm2022/lib/utils.mjs +521 -8
  8. package/browser/fesm2022/tnp-core.mjs +1469 -1105
  9. package/browser/fesm2022/tnp-core.mjs.map +1 -1
  10. package/browser/lib/core-imports.d.ts +41 -1
  11. package/browser/lib/core-models.d.ts +51 -83
  12. package/browser/lib/helpers-messages.d.ts +6 -3
  13. package/browser/lib/helpers.d.ts +22 -0
  14. package/browser/lib/utils.d.ts +48 -0
  15. package/cli.backend.d.ts +1 -0
  16. package/cli.backend.js +15 -2
  17. package/cli.backend.js.map +1 -1
  18. package/client/esm2022/lib/core-imports.mjs +66 -5
  19. package/client/esm2022/lib/core-models.mjs +51 -48
  20. package/client/esm2022/lib/helpers-messages.mjs +9 -4
  21. package/client/esm2022/lib/helpers.mjs +152 -369
  22. package/client/esm2022/lib/utils.mjs +521 -8
  23. package/client/fesm2022/tnp-core.mjs +1469 -1105
  24. package/client/fesm2022/tnp-core.mjs.map +1 -1
  25. package/client/lib/core-imports.d.ts +41 -1
  26. package/client/lib/core-models.d.ts +51 -83
  27. package/client/lib/helpers-messages.d.ts +6 -3
  28. package/client/lib/helpers.d.ts +22 -0
  29. package/client/lib/utils.d.ts +48 -0
  30. package/index.js +15 -2
  31. package/index.js.map +1 -1
  32. package/lib/build-info._auto-generated_.js.map +1 -1
  33. package/lib/command-exists.js +20 -20
  34. package/lib/command-exists.js.map +1 -1
  35. package/lib/core-cli.js +49 -66
  36. package/lib/core-cli.js.map +1 -1
  37. package/lib/core-config.js.map +1 -1
  38. package/lib/core-imports.d.ts +41 -20
  39. package/lib/core-imports.js +202 -78
  40. package/lib/core-imports.js.map +1 -1
  41. package/lib/core-models.d.ts +51 -83
  42. package/lib/core-models.js +52 -47
  43. package/lib/core-models.js.map +1 -1
  44. package/lib/framework-name.js +2 -2
  45. package/lib/framework-name.js.map +1 -1
  46. package/lib/helpers-isomorphic.js +33 -52
  47. package/lib/helpers-isomorphic.js.map +1 -1
  48. package/lib/helpers-messages.d.ts +6 -3
  49. package/lib/helpers-messages.js +79 -102
  50. package/lib/helpers-messages.js.map +1 -1
  51. package/lib/helpers.d.ts +21 -3
  52. package/lib/helpers.js +718 -967
  53. package/lib/helpers.js.map +1 -1
  54. package/lib/index._auto-generated_.js.map +1 -1
  55. package/lib/index.js +23 -10
  56. package/lib/index.js.map +1 -1
  57. package/lib/node-chalk-mock.js +2 -2
  58. package/lib/node-chalk-mock.js.map +1 -1
  59. package/lib/node-path-mock.js +2 -2
  60. package/lib/node-path-mock.js.map +1 -1
  61. package/lib/progress-data.js +21 -23
  62. package/lib/progress-data.js.map +1 -1
  63. package/lib/public-api.js +19 -6
  64. package/lib/public-api.js.map +1 -1
  65. package/lib/required-global-npm-packages.js.map +1 -1
  66. package/lib/required.d.ts +44 -0
  67. package/lib/safe-types/glob.d.ts +102 -0
  68. package/lib/safe-types/minimatch/assert-valid-pattern.d.ts +1 -0
  69. package/lib/safe-types/minimatch/ast.d.ts +17 -0
  70. package/lib/safe-types/minimatch/brace-expressions.d.ts +7 -0
  71. package/lib/safe-types/minimatch/escape.d.ts +11 -0
  72. package/lib/safe-types/minimatch/index.d copy.d.ts +93 -0
  73. package/lib/safe-types/minimatch/index.d.ts +93 -0
  74. package/lib/safe-types/minimatch/unescapd.d.ts +16 -0
  75. package/lib/safe-types/minimatch/unescape.d.ts +16 -0
  76. package/lib/safe-types/minimatch.d.ts +0 -0
  77. package/lib/safe-types/rimraf.d.ts +28 -0
  78. package/lib/utils.d.ts +48 -1
  79. package/lib/utils.js +1252 -1146
  80. package/lib/utils.js.map +1 -1
  81. package/migrations/index.js +15 -2
  82. package/migrations/index.js.map +1 -1
  83. package/migrations/migrations_index._auto-generated_.js.map +1 -1
  84. package/package.json +26 -89
  85. package/src.d.ts +1 -1
  86. package/taon.jsonc +48 -58
  87. package/tmp-environment.json +8 -403
  88. package/websql/esm2022/lib/core-imports.mjs +66 -5
  89. package/websql/esm2022/lib/core-models.mjs +51 -48
  90. package/websql/esm2022/lib/helpers-messages.mjs +9 -4
  91. package/websql/esm2022/lib/helpers.mjs +152 -369
  92. package/websql/esm2022/lib/utils.mjs +521 -8
  93. package/websql/fesm2022/tnp-core.mjs +1466 -1102
  94. package/websql/fesm2022/tnp-core.mjs.map +1 -1
  95. package/websql/lib/core-imports.d.ts +41 -1
  96. package/websql/lib/core-models.d.ts +51 -83
  97. package/websql/lib/helpers-messages.d.ts +6 -3
  98. package/websql/lib/helpers.d.ts +22 -0
  99. package/websql/lib/utils.d.ts +48 -0
  100. package/browser/package.json +0 -25
  101. package/websql/package.json +0 -25
@@ -10,6 +10,7 @@ export { dateformat };
10
10
  import * as json5 from 'json5';
11
11
  export { json5 };
12
12
  import { Subject } from 'rxjs';
13
+ import { Blob as Blob$1 } from 'buffer';
13
14
  import axios from 'axios';
14
15
 
15
16
  let isBrowser = false;
@@ -488,6 +489,8 @@ const path$1 = {
488
489
  ({}); // @--end-of-file-for-module=tnp-core lib/node-path-mock.ts
489
490
 
490
491
  let forceTrace = false;
492
+ /* */
493
+ /* */
491
494
  let $;
492
495
  $ = jQuery;
493
496
  /* */
@@ -502,8 +505,69 @@ let chalk = void 0;
502
505
  /* */
503
506
  // @ts-ignore
504
507
  chalk = chalk$1;
508
+ let glob = void 0;
509
+ /* */
510
+ /* */
511
+ let fse = void 0;
512
+ /* */
513
+ /* */
514
+ let os = void 0;
515
+ /* */
516
+ /* */
517
+ let child_process = void 0;
518
+ /* */
519
+ /* */
520
+ let http = void 0;
521
+ /* */
522
+ /* */
523
+ let https = void 0;
524
+ /* */
525
+ /* */
526
+ let isRoot = void 0;
527
+ /* */
528
+ /* */
529
+ let isAdmin = void 0;
530
+ /* */
531
+ /* */
532
+ /**
533
+ * check if the current process is elevated
534
+ * - sudo in unix/macos
535
+ * - admin in windows
536
+ */
537
+ let isElevated = void 0;
538
+ /* */
539
+ /* */
540
+ let fkill = void 0;
541
+ /* */
542
+ /* */
543
+ let psList = void 0;
544
+ /* */
545
+ /* */
546
+ let net = void 0;
547
+ /* */
548
+ /* */
549
+ let spawn = void 0;
550
+ /* */
551
+ /* */
552
+ let minimatch = void 0;
553
+ /* */
554
+ /* */
555
+ let rimraf = void 0;
505
556
  /* */
506
557
  /* */
558
+ let chokidar = void 0;
559
+ /* */
560
+ /* */
561
+ let mkdirp = void 0;
562
+ /* */
563
+ /* */
564
+ let ncp = void 0;
565
+ /* */
566
+ /* */
567
+ let ps = void 0;
568
+ /* */
569
+ /* */
570
+ let fg = void 0;
507
571
  /* */
508
572
  /* */
509
573
  /**
@@ -590,79 +654,79 @@ const crossPlatformPath = (pathStringOrPathParts) => {
590
654
  /* */
591
655
  /* */
592
656
  /* */
593
- /* */
594
- /* */
595
- /* */
596
657
  ;
597
658
  ({}); // @--end-of-file-for-module=tnp-core lib/core-imports.ts
598
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29yZS1pbXBvcnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vdG1wLWxpYnMtZm9yLWRpc3Qtd2Vic3FsL3RucC1jb3JlL3Byb2plY3RzL3RucC1jb3JlL3NyYy9saWIvY29yZS1pbXBvcnRzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUdBLElBQUksVUFBVSxHQUFHLEtBQUssQ0FBQztBQUN2QixLQUFLO0FBQ0wsS0FBSztBQUNMLEtBQUs7QUFDTCxLQUFLO0FBQ0wsS0FBSztBQUNMLEtBQUs7QUFDTCxLQU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vKiAqL1xuLyogKi9cbi8qICovXG4vKiAqL1xuLyogKi9cbi8qICovXG4vKiAqL1xuLyogKi9cbi8qICovXG4vKiAqL1xuLyogKi9cbi8qICovXG4vKiAqL1xuLyogKi9cbi8qICovXG4vKiAqL1xuLyogKi9cbi8qICovXG4vKiAqL1xuLyogKi9cbi8qICovXG4vKiAqL1xuLyogKi9cbi8qICovXG4vKiAqL1xuXG5cblxuXG4gOyh7fSk7IC8vIEAtLWVuZC1vZi1maWxlLWZvci1tb2R1bGU9dG5wLWNvcmUgbGliL2NvcmUtaW1wb3J0cy50cyJdfQ==
599
660
 
600
661
  var CoreModels;
601
662
  (function (CoreModels) {
602
663
  CoreModels.InstalationTypeArr = ['-g', '--save', '--save-dev'];
603
- CoreModels.PackageJsonDependencyObjArr = [
604
- 'dependencies',
605
- 'devDependencies',
606
- 'peerDependencies',
607
- 'resolutions',
664
+ CoreModels.NpmSpecialVersions = [
665
+ 'latest',
666
+ 'next',
667
+ 'beta',
668
+ 'alpha',
669
+ 'rc',
670
+ 'lts',
608
671
  ];
609
- CoreModels.ReleaseArtifactTaonNames = Object.freeze({
610
- ANGULAR_ELECTRON_APP: 'angular-electron-app',
672
+ /**
673
+ * Available application environments.
674
+ */
675
+ CoreModels.EnvironmentName = Object.freeze({
611
676
  /**
612
- * Angular frontend webapp (pwa) inside docker
677
+ * Default environment, typically for artifact without application
678
+ * or for storing common data
613
679
  */
614
- ANGULAR_FRONTEND_WEBAPP: 'angular-frontend-webapp',
680
+ __: '__',
615
681
  /**
616
- * Angular + Ionic
682
+ * Local development environment, typically the developer's machine.
617
683
  */
618
- ANGULAR_IONIC_APP: 'angular-ionic-app',
684
+ LOCALHOST: 'localhost',
619
685
  /**
620
- * MkDocs documentation webapp (pwa) inside docker
686
+ * Development environment used by engineers to deploy and test new features.
621
687
  */
622
- MKDOCS_DOCS_WEBAPP: 'mkdocs-docs-webapp',
688
+ DEV: 'dev',
623
689
  /**
624
- * Nodejs backend server inside docker
625
- * (could be backend or frontend or microservice)
690
+ * Staging environment used for final validations before production.
626
691
  */
627
- NODEJS_BACKEND_SERVER: 'nodejs-backend-server',
692
+ STAGE: 'stage',
628
693
  /**
629
- * Npm lib package and global cli tool
694
+ * Production environment serving live users.
630
695
  */
631
- NPM_LIB_PKG_AND_CLI_TOOL: 'npm-lib-pkg-and-cli-tool',
696
+ PROD: 'prod',
632
697
  /**
633
- * Visual Studio Code extension
698
+ * Automated test environment for running unit, integration, or automated tests.
634
699
  */
635
- VSCODE_EXTENSION: 'vscode-extension',
636
- });
637
- CoreModels.ReleaseArtifactTaonNamesArr = Object.values(CoreModels.ReleaseArtifactTaonNames);
638
- /**
639
- * Object with all possible local release types for taon
640
- * inside LOCAL release
641
- */
642
- CoreModels.LocalReleaseArtifactTaonNames = Object.freeze({
643
- DOCKER_BACKEND_FRONTEND_APP: 'docker-backend-frontend-app',
700
+ TEST: 'test',
701
+ /**
702
+ * Quality assurance environment designated for manual and exploratory testing.
703
+ */
704
+ QA: 'qa',
705
+ /**
706
+ * Sandbox environment for experimenting and integration without affecting other environments.
707
+ */
708
+ SANDBOX: 'sandbox',
709
+ /**
710
+ * User Acceptance Testing environment where clients or stakeholders validate the release candidate.
711
+ */
712
+ UAT: 'uat',
713
+ /**
714
+ * Pre-production environment, closely mirroring production for final testing and validation.
715
+ */
716
+ PREPROD: 'preprod',
717
+ /**
718
+ * Demonstration environment specifically configured for client presentations and demos.
719
+ */
720
+ DEMO: 'demo',
644
721
  /**
645
- * Global CLI tool
722
+ * Continuous Integration environment used by CI/CD pipelines for automated builds and deployments.
646
723
  */
647
- GLOBAL_CLI_TOOL: 'global-cli-tool',
724
+ CI: 'ci',
648
725
  /**
649
- * Visual Studio Code extension
726
+ * Training environment dedicated to internal team onboarding and training activities.
650
727
  */
651
- VSCODE_EXTENSION: 'vscode-extension',
728
+ TRAINING: 'training',
652
729
  });
653
- /**
654
- * Array with all possible local release types for taon
655
- * inside LOCAL release
656
- */
657
- CoreModels.LocalReleaseArtifactTaonNamesArr = Object.values(CoreModels.LocalReleaseArtifactTaonNames);
658
- CoreModels.NpmSpecialVersions = [
659
- 'latest',
660
- 'next',
661
- 'beta',
662
- 'alpha',
663
- 'rc',
664
- 'lts',
665
- ];
666
730
  CoreModels.ImageFileExtensionArr = [
667
731
  'jpg',
668
732
  'jpeg',
@@ -673,8 +737,8 @@ var CoreModels;
673
737
  'typescript',
674
738
  'angular',
675
739
  'angular-lib',
676
- 'unknow',
677
- 'unknow-npm-project',
740
+ 'unknown',
741
+ 'unknown-npm-project',
678
742
  ];
679
743
  CoreModels.mimeTypes = {
680
744
  '.aac': 'audio/aac',
@@ -770,11 +834,6 @@ var CoreModels;
770
834
  ;
771
835
  ({}); // @--end-of-file-for-module=tnp-core lib/core-models.ts
772
836
 
773
- /* */
774
- /* */
775
- /* */
776
- /* */
777
- /* */
778
837
  const BLOB_SUPPORTED_IN_SQLJS = false;
779
838
  var Utils;
780
839
  (function (Utils) {
@@ -788,6 +847,21 @@ var Utils;
788
847
  : (seen[uniqueProperty ? item[uniqueProperty] : item] = true);
789
848
  });
790
849
  };
850
+ /**
851
+ * @param anyObject
852
+ * @returns object with sorted keys
853
+ */
854
+ Utils.sortKeys = (anyObject) => {
855
+ if (_.isArray(anyObject)) {
856
+ return anyObject.map(Utils.sortKeys);
857
+ }
858
+ if (_.isObject(anyObject)) {
859
+ return _.fromPairs(_.keys(anyObject)
860
+ .sort()
861
+ .map(key => [key, Utils.sortKeys(anyObject[key])]));
862
+ }
863
+ return anyObject;
864
+ };
791
865
  /**
792
866
  * Example:
793
867
  * new RegExp(escapeStringForRegEx('a.b.c'),'g') => /a\.b\.c/g
@@ -844,6 +918,72 @@ var Utils;
844
918
  /* */
845
919
  return (void 0);
846
920
  };
921
+ /**
922
+ * Traverses the cache to search for all the cached
923
+ * files of the specified module name
924
+ */
925
+ const searchCache = (moduleName, callback) => {
926
+ /* */
927
+ /* */
928
+ /* */
929
+ /* */
930
+ /* */
931
+ /* */
932
+ /* */
933
+ /* */
934
+ /* */
935
+ /* */
936
+ /* */
937
+ /* */
938
+ /* */
939
+ /* */
940
+ /* */
941
+ /* */
942
+ /* */
943
+ /* */
944
+ /* */
945
+ /* */
946
+ return (void 0);
947
+ };
948
+ /**
949
+ * Removes a module from the cache
950
+ */
951
+ const purgeCache = moduleName => {
952
+ /* */
953
+ /* */
954
+ /* */
955
+ /* */
956
+ /* */
957
+ /* */
958
+ /* */
959
+ /* */
960
+ /* */
961
+ /* */
962
+ /* */
963
+ /* */
964
+ /* */
965
+ /* */
966
+ return (void 0);
967
+ };
968
+ Utils.requireUncached = (module) => {
969
+ /* */
970
+ /* */
971
+ /* */
972
+ /* */
973
+ return (void 0);
974
+ };
975
+ /**
976
+ * similar to camelCase but remove
977
+ * all non word / repeated characters
978
+ */
979
+ Utils.camelize = (str = '') => {
980
+ str = str.replace(/\W/g, '').toLowerCase();
981
+ return str
982
+ .replace(/(?:^\w|[A-Z]|\b\w)/g, function (word, index) {
983
+ return index == 0 ? word.toLowerCase() : word.toUpperCase();
984
+ })
985
+ .replace(/\s+/g, '');
986
+ };
847
987
  let json;
848
988
  (function (json) {
849
989
  json.getAtrributies = (jsonDeepPath, // lodash path to property in json ex. deep.path.to.prop
@@ -946,7 +1086,7 @@ var Utils;
946
1086
  */
947
1087
  async function arrayBufferToBlob(buffer, contentType) {
948
1088
  // @ts-ignore
949
- return new Blob([buffer], { type: contentType });
1089
+ return new Blob$1([buffer], { type: contentType });
950
1090
  }
951
1091
  binary.arrayBufferToBlob = arrayBufferToBlob;
952
1092
  /**
@@ -1011,7 +1151,7 @@ var Utils;
1011
1151
  }
1012
1152
  byteArrays[sliceIndex] = new Uint8Array(bytes);
1013
1153
  }
1014
- return new Blob(byteArrays, { type: content_type });
1154
+ return new Blob$1(byteArrays, { type: content_type });
1015
1155
  }
1016
1156
  binary.base64toBlob = base64toBlob;
1017
1157
  async function base64toDbBinaryFormat(text) {
@@ -1098,7 +1238,7 @@ var Utils;
1098
1238
  /* */
1099
1239
  /* */
1100
1240
  async function fileToBlob(file) {
1101
- return new Blob([new Uint8Array(await file.arrayBuffer())], {
1241
+ return new Blob$1([new Uint8Array(await file.arrayBuffer())], {
1102
1242
  type: file.type,
1103
1243
  });
1104
1244
  }
@@ -1138,7 +1278,7 @@ var Utils;
1138
1278
  /* */
1139
1279
  /* */
1140
1280
  async function textToBlob(text, type = 'text/plain') {
1141
- const blob = new Blob([text], { type });
1281
+ const blob = new Blob$1([text], { type });
1142
1282
  return blob;
1143
1283
  }
1144
1284
  binary.textToBlob = textToBlob;
@@ -1149,7 +1289,7 @@ var Utils;
1149
1289
  async function textToFile(text, fileRelativePathOrName) {
1150
1290
  const ext = path.extname(fileRelativePathOrName);
1151
1291
  const type = CoreModels.mimeTypes[ext];
1152
- const blob = new Blob([text], { type });
1292
+ const blob = new Blob$1([text], { type });
1153
1293
  const file = await blobToFile(blob, fileRelativePathOrName);
1154
1294
  return file;
1155
1295
  }
@@ -1159,7 +1299,7 @@ var Utils;
1159
1299
  }
1160
1300
  binary.fileToText = fileToText;
1161
1301
  async function jsonToBlob(jsonObj) {
1162
- const blob = new Blob([JSON.stringify(jsonObj, null, 2)], {
1302
+ const blob = new Blob$1([JSON.stringify(jsonObj, null, 2)], {
1163
1303
  type: 'application/json',
1164
1304
  });
1165
1305
  return blob;
@@ -1201,12 +1341,9 @@ var UtilsProcess;
1201
1341
  * TODO IMPLEMENT
1202
1342
  * start async node process
1203
1343
  */
1204
- /**
1205
- * This let you start child process and resolve promise when some
1206
- * condition is met. It is useful for example when you want to start
1207
- * process and wait until some output is in stdout or stderr.
1208
- */
1209
- UtilsProcess.startAsyncChildProcessCommandUntil = async (command, options) => {
1344
+ UtilsProcess.startAsync = async (command, cwd, options) => {
1345
+ /* */
1346
+ /* */
1210
1347
  /* */
1211
1348
  /* */
1212
1349
  /* */
@@ -1274,9 +1411,6 @@ var UtilsProcess;
1274
1411
  /* */
1275
1412
  /* */
1276
1413
  /* */
1277
- return (void 0);
1278
- };
1279
- UtilsProcess.getGitBashPath = () => {
1280
1414
  /* */
1281
1415
  /* */
1282
1416
  /* */
@@ -1295,13 +1429,6 @@ var UtilsProcess;
1295
1429
  /* */
1296
1430
  /* */
1297
1431
  /* */
1298
- return (void 0);
1299
- };
1300
- /**
1301
- * TODO IMPLEMENT
1302
- * start async node process
1303
- */
1304
- UtilsProcess.startInNewTerminalWindow = (command, options) => {
1305
1432
  /* */
1306
1433
  /* */
1307
1434
  /* */
@@ -1403,10 +1530,6 @@ var UtilsProcess;
1403
1530
  /* */
1404
1531
  /* */
1405
1532
  /* */
1406
- return (void 0);
1407
- };
1408
- UtilsProcess.getBashOrShellName = () => {
1409
- return 'browser';
1410
1533
  /* */
1411
1534
  /* */
1412
1535
  /* */
@@ -1439,71 +1562,12 @@ var UtilsProcess;
1439
1562
  /* */
1440
1563
  /* */
1441
1564
  /* */
1442
- return (void 0);
1443
- };
1444
- })(UtilsProcess || (UtilsProcess = {}));
1445
- var UtilsOs;
1446
- (function (UtilsOs) {
1447
- /**
1448
- * check if script is running in client browser
1449
- * (websql model -> is also considered as browser
1450
- * because it is running in browser)
1451
- */
1452
- UtilsOs.isRunningInBrowser = () => {
1453
1565
  /* */
1454
1566
  /* */
1455
- return true;
1456
- };
1457
- /**
1458
- * check if script is running in nodejs
1459
- * (backend script or electron script)
1460
- */
1461
- UtilsOs.isRunningInNode = () => {
1462
1567
  /* */
1463
1568
  /* */
1464
- return false;
1465
- };
1466
- /**
1467
- * check if script is running special
1468
- * browser mode that has sql.js backend
1469
- * and executes sql queries in browser
1470
- */
1471
- UtilsOs.isRunningInWebSQL = () => {
1472
1569
  /* */
1473
1570
  /* */
1474
- return true;
1475
- return false;
1476
- };
1477
- /**
1478
- * check whether the current process is running inside
1479
- * Electron backend or browser.
1480
- */
1481
- UtilsOs.isRunningInElectron = () => {
1482
- // @ts-ignore
1483
- if (typeof window !== 'undefined' &&
1484
- typeof window.process === 'object' &&
1485
- window.process.type === 'renderer') {
1486
- return true;
1487
- }
1488
- // @ts-ignore
1489
- if (typeof process !== 'undefined' &&
1490
- typeof process.versions === 'object' &&
1491
- !!process.versions.electron) {
1492
- return true;
1493
- }
1494
- if (typeof navigator === 'object' &&
1495
- typeof navigator.userAgent === 'string' &&
1496
- navigator.userAgent.indexOf('Electron') >= 0) {
1497
- return true;
1498
- }
1499
- return false;
1500
- };
1501
- /**
1502
- * Check wether the current process is running inside
1503
- * windows subsystem for linux (WSL).
1504
- */
1505
- UtilsOs.isRunningInWsl = () => {
1506
- return false;
1507
1571
  /* */
1508
1572
  /* */
1509
1573
  /* */
@@ -1521,10 +1585,6 @@ var UtilsOs;
1521
1585
  /* */
1522
1586
  /* */
1523
1587
  /* */
1524
- return (void 0);
1525
- };
1526
- UtilsOs.isRunningInDocker = () => {
1527
- return false;
1528
1588
  /* */
1529
1589
  /* */
1530
1590
  /* */
@@ -1532,9 +1592,6 @@ var UtilsOs;
1532
1592
  /* */
1533
1593
  /* */
1534
1594
  /* */
1535
- return (void 0);
1536
- };
1537
- UtilsOs.isRunningInLinuxGraphicsCapableEnvironment = () => {
1538
1595
  /* */
1539
1596
  /* */
1540
1597
  /* */
@@ -1542,27 +1599,10 @@ var UtilsOs;
1542
1599
  /* */
1543
1600
  /* */
1544
1601
  /* */
1545
- return (void 0);
1546
- };
1547
- /**
1548
- * Check whether the current process is running in CLI mode.
1549
- */
1550
- UtilsOs.isRunningInCliMode = () => {
1551
- return false;
1552
1602
  /* */
1553
1603
  /* */
1554
- return (void 0);
1555
- };
1556
- /**
1557
- * Check whether the current process is running in mocha test.
1558
- */
1559
- UtilsOs.isRunningInMochaTest = () => {
1560
- return false;
1561
1604
  /* */
1562
1605
  /* */
1563
- return (void 0);
1564
- };
1565
- const isPortInUseOnHost = (port, host) => {
1566
1606
  /* */
1567
1607
  /* */
1568
1608
  /* */
@@ -1590,100 +1630,14 @@ var UtilsOs;
1590
1630
  return (void 0);
1591
1631
  };
1592
1632
  /**
1593
- * Checks if a given port is already in use (bound by another process).
1594
- *
1595
- * @param port - The port number to check.
1596
- * @param host - The hostname or IP address to bind to (default: '127.0.0.1').
1597
- * @returns Promise<boolean> - Resolves to `true` if the port is in use, otherwise `false`.
1633
+ * This let you start child process and resolve promise when some
1634
+ * condition is met. It is useful for example when you want to start
1635
+ * process and wait until some output is in stdout or stderr.
1598
1636
  */
1599
- UtilsOs.isPortInUse = async (port, options) => {
1637
+ UtilsProcess.startAsyncChildProcessCommandUntil = async (command, options) => {
1600
1638
  /* */
1601
1639
  /* */
1602
1640
  /* */
1603
- /* */
1604
- /* */
1605
- /* */
1606
- /* */
1607
- /* */
1608
- /* */
1609
- /* */
1610
- /* */
1611
- /* */
1612
- /* */
1613
- return (void 0);
1614
- };
1615
- })(UtilsOs || (UtilsOs = {}));
1616
- var UtilsString;
1617
- (function (UtilsString) {
1618
- UtilsString.kebabCaseNoSplitNumbers = (input) => {
1619
- return (input
1620
- .replace(/\s+/g, '-')
1621
- .replace(/([a-z0-9])([A-Z])/g, '$1-$2')
1622
- .toLowerCase());
1623
- };
1624
- })(UtilsString || (UtilsString = {}));
1625
- /**
1626
- * Taon migration utilities
1627
- */
1628
- var UtilsMigrations;
1629
- (function (UtilsMigrations) {
1630
- UtilsMigrations.getTimestampFromClassName = (className) => {
1631
- const [maybeTimestamp1, maybeTimestamp2] = className.split('_') || [];
1632
- const timestamp1 = parseInt(maybeTimestamp1);
1633
- const timestamp2 = parseInt(maybeTimestamp2);
1634
- const timestamp = !_.isNaN(timestamp1) ? timestamp1 : timestamp2;
1635
- return UtilsMigrations.isValidTimestamp(timestamp) ? timestamp : void 0;
1636
- };
1637
- UtilsMigrations.getFormattedTimestampFromClassName = (className) => {
1638
- const timestamp = UtilsMigrations.getTimestampFromClassName(className);
1639
- if (!timestamp) {
1640
- return void 0;
1641
- }
1642
- return UtilsMigrations.formatTimestamp(timestamp);
1643
- };
1644
- UtilsMigrations.formatTimestamp = (timestamp) => {
1645
- const dateFromTimestamp = new Date(timestamp);
1646
- return `${dateformat(dateFromTimestamp, 'dd-mm-yyyy HH:MM:ss')}`;
1647
- };
1648
- UtilsMigrations.isValidTimestamp = (value) => {
1649
- if (typeof value !== 'number') {
1650
- return false; // Must be a number
1651
- }
1652
- const minTimestamp = 0; // Minimum possible timestamp (Unix epoch)
1653
- const maxTimestamp = 8640000000000000; // Max safe timestamp in JS (represents year ~275760)
1654
- return value >= minTimestamp && value <= maxTimestamp;
1655
- };
1656
- })(UtilsMigrations || (UtilsMigrations = {}));
1657
- var UtilsTerminal;
1658
- (function (UtilsTerminal) {
1659
- UtilsTerminal.clearConsole = () => {
1660
- /* */
1661
- /* */
1662
- /* */
1663
- /* */
1664
- /* */
1665
- /* */
1666
- /* */
1667
- /* */
1668
- /* */
1669
- return (void 0);
1670
- };
1671
- const transformChoices = (choices) => {
1672
- /* */
1673
- /* */
1674
- /* */
1675
- /* */
1676
- /* */
1677
- /* */
1678
- /* */
1679
- /* */
1680
- /* */
1681
- /* */
1682
- /* */
1683
- /* */
1684
- return (void 0);
1685
- };
1686
- UtilsTerminal.multiselect = async (options) => {
1687
1641
  /* */
1688
1642
  /* */
1689
1643
  /* */
@@ -1748,6 +1702,9 @@ var UtilsTerminal;
1748
1702
  /* */
1749
1703
  /* */
1750
1704
  /* */
1705
+ return (void 0);
1706
+ };
1707
+ UtilsProcess.getGitBashPath = () => {
1751
1708
  /* */
1752
1709
  /* */
1753
1710
  /* */
@@ -1769,14 +1726,10 @@ var UtilsTerminal;
1769
1726
  return (void 0);
1770
1727
  };
1771
1728
  /**
1772
- * Similar to select but executes action if provided
1773
- * @returns selected and executed value
1729
+ * TODO IMPLEMENT
1730
+ * start async node process
1774
1731
  */
1775
- UtilsTerminal.multiselectActionAndExecute = async (choices, options) => {
1776
- /* */
1777
- /* */
1778
- /* */
1779
- /* */
1732
+ UtilsProcess.startInNewTerminalWindow = (command, options) => {
1780
1733
  /* */
1781
1734
  /* */
1782
1735
  /* */
@@ -1813,13 +1766,6 @@ var UtilsTerminal;
1813
1766
  /* */
1814
1767
  /* */
1815
1768
  /* */
1816
- return (void 0);
1817
- };
1818
- /**
1819
- * Similar to select but executes action if provided
1820
- * @returns selected and executed value
1821
- */
1822
- UtilsTerminal.selectActionAndExecute = async (choices, options) => {
1823
1769
  /* */
1824
1770
  /* */
1825
1771
  /* */
@@ -1855,9 +1801,6 @@ var UtilsTerminal;
1855
1801
  /* */
1856
1802
  /* */
1857
1803
  /* */
1858
- return (void 0);
1859
- };
1860
- UtilsTerminal.select = async (options) => {
1861
1804
  /* */
1862
1805
  /* */
1863
1806
  /* */
@@ -1888,6 +1831,10 @@ var UtilsTerminal;
1888
1831
  /* */
1889
1832
  /* */
1890
1833
  /* */
1834
+ return (void 0);
1835
+ };
1836
+ UtilsProcess.getBashOrShellName = () => {
1837
+ return 'browser';
1891
1838
  /* */
1892
1839
  /* */
1893
1840
  /* */
@@ -1918,24 +1865,14 @@ var UtilsTerminal;
1918
1865
  /* */
1919
1866
  /* */
1920
1867
  /* */
1921
- return (void 0);
1922
- };
1923
- UtilsTerminal.pipeEnterToStdin = () => {
1924
1868
  /* */
1925
1869
  /* */
1926
1870
  return (void 0);
1927
1871
  };
1928
- UtilsTerminal.input = async ({ defaultValue, question, required, // TODO something is werid with required
1929
- }) => {
1930
- /* */
1931
- /* */
1932
- /* */
1933
- /* */
1934
- /* */
1935
- /* */
1936
- /* */
1937
- /* */
1938
- /* */
1872
+ /**
1873
+ * Get CPU and memory usage for a single PID.
1874
+ */
1875
+ UtilsProcess.getUsageForPid = async (pid) => {
1939
1876
  /* */
1940
1877
  /* */
1941
1878
  /* */
@@ -1959,9 +1896,11 @@ var UtilsTerminal;
1959
1896
  /* */
1960
1897
  return (void 0);
1961
1898
  };
1962
- UtilsTerminal.confirm = async (options) => {
1963
- /* */
1964
- /* */
1899
+ /**
1900
+ * Return a list of direct child PIDs for the given PID on a Unix-like system.
1901
+ * Uses `ps -o pid= --ppid <pid>` to find child processes.
1902
+ */
1903
+ async function getChildPidsUnix(pid) {
1965
1904
  /* */
1966
1905
  /* */
1967
1906
  /* */
@@ -1977,6 +1916,13 @@ var UtilsTerminal;
1977
1916
  /* */
1978
1917
  /* */
1979
1918
  /* */
1919
+ return (void 0);
1920
+ }
1921
+ /**
1922
+ * Return a list of direct child PIDs for the given PID on Windows.
1923
+ * Uses `wmic process where (ParentProcessId=<pid>) get ProcessId` to find child processes.
1924
+ */
1925
+ async function getChildPidsWindows(pid) {
1980
1926
  /* */
1981
1927
  /* */
1982
1928
  /* */
@@ -1993,12 +1939,27 @@ var UtilsTerminal;
1993
1939
  /* */
1994
1940
  /* */
1995
1941
  /* */
1942
+ return (void 0);
1943
+ }
1944
+ /**
1945
+ * Cross-platform function to list *direct* child PIDs of a given PID.
1946
+ * Uses the appropriate command depending on `process.platform`.
1947
+ */
1948
+ async function getChildPidsOnce(pid) {
1996
1949
  /* */
1997
1950
  /* */
1998
1951
  /* */
1999
1952
  /* */
2000
1953
  /* */
2001
1954
  /* */
1955
+ return (void 0);
1956
+ }
1957
+ UtilsProcess.getChildPidsOnce = getChildPidsOnce;
1958
+ /**
1959
+ * Get CPU and memory usage for the current process (the Node.js process itself),
1960
+ * plus any child processes spawned by it.
1961
+ */
1962
+ UtilsProcess.getCurrentProcessAndChildUsage = async () => {
2002
1963
  /* */
2003
1964
  /* */
2004
1965
  /* */
@@ -2024,12 +1985,70 @@ var UtilsTerminal;
2024
1985
  /* */
2025
1986
  /* */
2026
1987
  /* */
1988
+ return (void 0);
1989
+ };
1990
+ })(UtilsProcess || (UtilsProcess = {}));
1991
+ var UtilsOs;
1992
+ (function (UtilsOs) {
1993
+ /**
1994
+ * check if script is running in client browser
1995
+ * (websql model -> is also considered as browser
1996
+ * because it is running in browser)
1997
+ */
1998
+ UtilsOs.isRunningInBrowser = () => {
2027
1999
  /* */
2028
2000
  /* */
2001
+ return true;
2002
+ };
2003
+ /**
2004
+ * check if script is running in nodejs
2005
+ * (backend script or electron script)
2006
+ */
2007
+ UtilsOs.isRunningInNode = () => {
2029
2008
  /* */
2030
2009
  /* */
2010
+ return false;
2011
+ };
2012
+ /**
2013
+ * check if script is running special
2014
+ * browser mode that has sql.js backend
2015
+ * and executes sql queries in browser
2016
+ */
2017
+ UtilsOs.isRunningInWebSQL = () => {
2031
2018
  /* */
2032
2019
  /* */
2020
+ return true;
2021
+ return false;
2022
+ };
2023
+ /**
2024
+ * check whether the current process is running inside
2025
+ * Electron backend or browser.
2026
+ */
2027
+ UtilsOs.isRunningInElectron = () => {
2028
+ // @ts-ignore
2029
+ if (typeof window !== 'undefined' &&
2030
+ typeof window.process === 'object' &&
2031
+ window.process.type === 'renderer') {
2032
+ return true;
2033
+ }
2034
+ // @ts-ignore
2035
+ if (typeof process !== 'undefined' &&
2036
+ typeof process.versions === 'object' &&
2037
+ !!process.versions.electron) {
2038
+ return true;
2039
+ }
2040
+ if (typeof navigator === 'object' &&
2041
+ typeof navigator.userAgent === 'string' &&
2042
+ navigator.userAgent.indexOf('Electron') >= 0) {
2043
+ return true;
2044
+ }
2045
+ return false;
2046
+ };
2047
+ /**
2048
+ * Check whether the current process is running inside
2049
+ * a Visual Studio Code extension.
2050
+ */
2051
+ UtilsOs.isRunningInVscodeExtension = () => {
2033
2052
  /* */
2034
2053
  /* */
2035
2054
  /* */
@@ -2040,8 +2059,12 @@ var UtilsTerminal;
2040
2059
  /* */
2041
2060
  return (void 0);
2042
2061
  };
2043
- UtilsTerminal.pressAnyKeyToContinueAsync = (options) => {
2044
- /* */
2062
+ /**
2063
+ * Check wether the current process is running inside
2064
+ * windows subsystem for linux (WSL).
2065
+ */
2066
+ UtilsOs.isRunningInWsl = () => {
2067
+ return false;
2045
2068
  /* */
2046
2069
  /* */
2047
2070
  /* */
@@ -2061,19 +2084,25 @@ var UtilsTerminal;
2061
2084
  /* */
2062
2085
  return (void 0);
2063
2086
  };
2064
- /**
2065
- * @deprecated use UtilsTerminal.pressAnyKeyToContinueAsync()
2066
- */
2067
- UtilsTerminal.pressAnyKey = (options) => {
2087
+ UtilsOs.isRunningInWindowsCmd = () => {
2088
+ return false;
2068
2089
  /* */
2069
2090
  /* */
2070
2091
  /* */
2092
+ return (void 0);
2093
+ };
2094
+ UtilsOs.isRunningInDocker = () => {
2095
+ return false;
2071
2096
  /* */
2072
2097
  /* */
2073
2098
  /* */
2074
2099
  /* */
2075
2100
  /* */
2076
2101
  /* */
2102
+ /* */
2103
+ return (void 0);
2104
+ };
2105
+ UtilsOs.isRunningInLinuxGraphicsCapableEnvironment = () => {
2077
2106
  /* */
2078
2107
  /* */
2079
2108
  /* */
@@ -2081,10 +2110,27 @@ var UtilsTerminal;
2081
2110
  /* */
2082
2111
  /* */
2083
2112
  /* */
2113
+ return (void 0);
2114
+ };
2115
+ /**
2116
+ * Check whether the current process is running in CLI mode.
2117
+ */
2118
+ UtilsOs.isRunningInCliMode = () => {
2119
+ return false;
2084
2120
  /* */
2085
2121
  /* */
2122
+ return (void 0);
2123
+ };
2124
+ /**
2125
+ * Check whether the current process is running in mocha test.
2126
+ */
2127
+ UtilsOs.isRunningInMochaTest = () => {
2128
+ return false;
2086
2129
  /* */
2087
2130
  /* */
2131
+ return (void 0);
2132
+ };
2133
+ const isPortInUseOnHost = (port, host) => {
2088
2134
  /* */
2089
2135
  /* */
2090
2136
  /* */
@@ -2092,9 +2138,6 @@ var UtilsTerminal;
2092
2138
  /* */
2093
2139
  /* */
2094
2140
  /* */
2095
- return (void 0);
2096
- };
2097
- UtilsTerminal.previewLongList = async (list, listName = 'List') => {
2098
2141
  /* */
2099
2142
  /* */
2100
2143
  /* */
@@ -2115,24 +2158,13 @@ var UtilsTerminal;
2115
2158
  return (void 0);
2116
2159
  };
2117
2160
  /**
2118
- * Displays a long list in the console using a pager like `less`.
2119
- * Returns a Promise that resolves when the user exits the pager.
2161
+ * Checks if a given port is already in use (bound by another process).
2120
2162
  *
2121
- * @param {string} list - The long string content to display.
2122
- * @returns {Promise<void>} A Promise that resolves when the pager exits.
2163
+ * @param port - The port number to check.
2164
+ * @param host - The hostname or IP address to bind to (default: '127.0.0.1').
2165
+ * @returns Promise<boolean> - Resolves to `true` if the port is in use, otherwise `false`.
2123
2166
  */
2124
- UtilsTerminal.previewLongListGitLogLike = (list) => {
2125
- /* */
2126
- /* */
2127
- /* */
2128
- /* */
2129
- /* */
2130
- /* */
2131
- /* */
2132
- /* */
2133
- /* */
2134
- /* */
2135
- /* */
2167
+ UtilsOs.isPortInUse = async (port, options) => {
2136
2168
  /* */
2137
2169
  /* */
2138
2170
  /* */
@@ -2148,182 +2180,70 @@ var UtilsTerminal;
2148
2180
  /* */
2149
2181
  return (void 0);
2150
2182
  };
2151
- })(UtilsTerminal || (UtilsTerminal = {}));
2152
- ;
2153
- ({}); // @--end-of-file-for-module=tnp-core lib/utils.ts
2154
-
2155
- class HelpersIsomorphic {
2156
- /**
2157
- * @deprecated
2158
- * use UtilsOs.isRunningInBrowser() instead
2159
- */
2160
- get isBrowser() {
2161
- return UtilsOs.isRunningInBrowser();
2162
- }
2163
- /**
2164
- * @deprecated
2165
- * use UtilsOs.isRunningInWebSQL() instead
2166
- */
2167
- get isWebSQL() {
2168
- return UtilsOs.isRunningInWebSQL();
2169
- }
2170
- /**
2171
- * @deprecated
2172
- * use UtilsOs.isRunningInNode() instead
2173
- */
2174
- get isNode() {
2175
- return UtilsOs.isRunningInNode();
2176
- }
2177
- /**
2178
- * @deprecated
2179
- * use UtilsOs.isRunningInElectron() instead
2180
- */
2181
- get isElectron() {
2182
- return UtilsOs.isRunningInElectron();
2183
- }
2184
- /**
2185
- * TODO what is the purpose of this function?
2186
- * @deprecated
2187
- */
2188
- contain(arr, item) {
2189
- return (arr.filter(l => {
2190
- if (l instanceof RegExp) {
2191
- return l.test(item);
2192
- }
2193
- if (l === item) {
2194
- return true;
2195
- }
2196
- if (item.match && typeof item.match === 'function' ? item.match(l) : false) {
2197
- return true;
2198
- }
2199
- return false;
2200
- }).length > 0);
2201
- }
2202
- }
2203
- ;
2204
- ({}); // @--end-of-file-for-module=tnp-core lib/helpers-isomorphic.ts
2205
-
2206
- /* */
2207
- /* */
2208
- /* */
2209
- const KEY = {
2210
- LAST_ERROR: Symbol(),
2211
- LAST_INFO: Symbol(),
2212
- LAST_WARN: Symbol(),
2213
- LAST_LOG: Symbol(),
2214
- LAST_SUCCESS: Symbol(),
2215
- LAST_TASK_STARTED: Symbol(),
2216
- LAST_TASK_DONE: Symbol(),
2217
- };
2218
- const KEY_COUNT = {
2219
- LAST_ERROR: Symbol(),
2220
- LAST_INFO: Symbol(),
2221
- LAST_WARN: Symbol(),
2222
- LAST_LOG: Symbol(),
2223
- LAST_SUCCESS: Symbol(),
2224
- LAST_TASK_STARTED: Symbol(),
2225
- LAST_TASK_DONE: Symbol(),
2226
- };
2227
- const KEY_IMPORTANTCE = {
2228
- LAST_ERROR: Symbol(),
2229
- LAST_INFO: Symbol(),
2230
- LAST_WARN: Symbol(),
2231
- LAST_LOG: Symbol(),
2232
- LAST_SUCCESS: Symbol(),
2233
- LAST_TASK_STARTED: Symbol(),
2234
- LAST_TASK_DONE: Symbol(),
2235
- };
2236
- /* */
2237
- /* */
2238
- /* */
2239
- /* */
2240
- /* */
2241
- /* */
2242
- /* */
2243
- /* */
2244
- /* */
2245
- /* */
2246
- /* */
2247
- /* */
2248
- /* */
2249
- /* */
2250
- /* */
2251
- /* */
2252
- /* */
2253
- /* */
2254
- /* */
2255
- /* */
2256
- /* */
2257
- const LIMIT = 10;
2183
+ })(UtilsOs || (UtilsOs = {}));
2184
+ var UtilsString;
2185
+ (function (UtilsString) {
2186
+ UtilsString.kebabCaseNoSplitNumbers = (input) => {
2187
+ return (input
2188
+ .replace(/\s+/g, '-')
2189
+ .replace(/([a-z0-9])([A-Z])/g, '$1-$2')
2190
+ .toLowerCase());
2191
+ };
2192
+ })(UtilsString || (UtilsString = {}));
2258
2193
  /**
2259
- * @param details any data to be transformed
2260
- * @returns string ready to be displayed
2194
+ * Taon migration utilities
2261
2195
  */
2262
- const transformData = (details) => {
2263
- if (typeof details === 'object') {
2264
- try {
2265
- const json = JSON.stringify(details, null, 2);
2266
- details = json;
2196
+ var UtilsMigrations;
2197
+ (function (UtilsMigrations) {
2198
+ UtilsMigrations.getTimestampFromClassName = (className) => {
2199
+ const [maybeTimestamp1, maybeTimestamp2] = className.split('_') || [];
2200
+ const timestamp1 = parseInt(maybeTimestamp1);
2201
+ const timestamp2 = parseInt(maybeTimestamp2);
2202
+ const timestamp = !_.isNaN(timestamp1) ? timestamp1 : timestamp2;
2203
+ return UtilsMigrations.isValidTimestamp(timestamp) ? timestamp : void 0;
2204
+ };
2205
+ UtilsMigrations.getFormattedTimestampFromClassName = (className) => {
2206
+ const timestamp = UtilsMigrations.getTimestampFromClassName(className);
2207
+ if (!timestamp) {
2208
+ return void 0;
2267
2209
  }
2268
- catch (error) {
2269
- return details;
2210
+ return UtilsMigrations.formatTimestamp(timestamp);
2211
+ };
2212
+ UtilsMigrations.formatTimestamp = (timestamp) => {
2213
+ const dateFromTimestamp = new Date(timestamp);
2214
+ return `${dateformat(dateFromTimestamp, 'dd-mm-yyyy HH:MM:ss')}`;
2215
+ };
2216
+ UtilsMigrations.isValidTimestamp = (value) => {
2217
+ if (typeof value !== 'number') {
2218
+ return false; // Must be a number
2270
2219
  }
2271
- }
2272
- return details;
2273
- };
2274
- class HelpersMessages extends HelpersIsomorphic {
2275
- msgCacheClear() {
2220
+ const minTimestamp = 0; // Minimum possible timestamp (Unix epoch)
2221
+ const maxTimestamp = 8640000000000000; // Max safe timestamp in JS (represents year ~275760)
2222
+ return value >= minTimestamp && value <= maxTimestamp;
2223
+ };
2224
+ })(UtilsMigrations || (UtilsMigrations = {}));
2225
+ var UtilsTerminal;
2226
+ (function (UtilsTerminal) {
2227
+ UtilsTerminal.wait = (second) => {
2228
+ return new Promise((resolve, reject) => {
2229
+ setTimeout(() => {
2230
+ resolve(void 0);
2231
+ }, second * 1000);
2232
+ });
2233
+ };
2234
+ UtilsTerminal.clearConsole = () => {
2276
2235
  /* */
2277
2236
  /* */
2278
2237
  /* */
2279
2238
  /* */
2280
2239
  /* */
2281
- }
2282
- renderError(err) {
2283
- if (this.isBrowser) {
2284
- console.error(err);
2285
- }
2286
- else {
2287
- /* */
2288
- /* */
2289
- /* */
2290
- /* */
2291
- /* */
2292
- /* */
2293
- /* */
2294
- /* */
2295
- /* */
2296
- }
2297
- }
2298
- /**
2299
- * Throw error and exit process
2300
- * make sure browser or nodejs will not continue
2301
- * @param details
2302
- */
2303
- throw(details) {
2304
- if (this.isBrowser) {
2305
- document.body.innerHTML =
2306
- '<h1>Application has encountered an error and stopped.</h1>';
2307
- document.body.style.pointerEvents = 'none';
2308
- /* */
2309
- /* */
2310
- /* */
2311
- /* */
2312
- }
2313
- throw new Error(details);
2314
- }
2315
- tryCatchError(error) {
2316
- Helpers.error(error, true, true);
2317
- }
2318
- error(details, noExit = false, noTrace = false) {
2319
- if (Helpers.isBrowser) {
2320
- console.error(details);
2321
- return;
2322
- }
2323
2240
  /* */
2324
2241
  /* */
2325
2242
  /* */
2326
2243
  /* */
2244
+ return (void 0);
2245
+ };
2246
+ const transformChoices = (choices) => {
2327
2247
  /* */
2328
2248
  /* */
2329
2249
  /* */
@@ -2336,6 +2256,9 @@ class HelpersMessages extends HelpersIsomorphic {
2336
2256
  /* */
2337
2257
  /* */
2338
2258
  /* */
2259
+ return (void 0);
2260
+ };
2261
+ UtilsTerminal.multiselect = async (options) => {
2339
2262
  /* */
2340
2263
  /* */
2341
2264
  /* */
@@ -2370,18 +2293,12 @@ class HelpersMessages extends HelpersIsomorphic {
2370
2293
  /* */
2371
2294
  /* */
2372
2295
  /* */
2373
- }
2374
- info(details, repeatable = false) {
2375
2296
  /* */
2376
2297
  /* */
2377
2298
  /* */
2378
2299
  /* */
2379
2300
  /* */
2380
2301
  /* */
2381
- if (Helpers.isBrowser) {
2382
- console.info(details);
2383
- return;
2384
- }
2385
2302
  /* */
2386
2303
  /* */
2387
2304
  /* */
@@ -2416,12 +2333,6 @@ class HelpersMessages extends HelpersIsomorphic {
2416
2333
  /* */
2417
2334
  /* */
2418
2335
  /* */
2419
- }
2420
- success(details) {
2421
- if (Helpers.isBrowser) {
2422
- console.info(details);
2423
- return;
2424
- }
2425
2336
  /* */
2426
2337
  /* */
2427
2338
  /* */
@@ -2430,6 +2341,13 @@ class HelpersMessages extends HelpersIsomorphic {
2430
2341
  /* */
2431
2342
  /* */
2432
2343
  /* */
2344
+ return (void 0);
2345
+ };
2346
+ /**
2347
+ * Similar to select but executes action if provided
2348
+ * @returns selected and executed value
2349
+ */
2350
+ UtilsTerminal.multiselectActionAndExecute = async (choices, options) => {
2433
2351
  /* */
2434
2352
  /* */
2435
2353
  /* */
@@ -2459,18 +2377,6 @@ class HelpersMessages extends HelpersIsomorphic {
2459
2377
  /* */
2460
2378
  /* */
2461
2379
  /* */
2462
- }
2463
- /**
2464
- *
2465
- * @param details
2466
- * @param isLogTask is less important log task
2467
- * @returns
2468
- */
2469
- taskStarted(details, isLogTask = false) {
2470
- if (Helpers.isBrowser) {
2471
- console.info(details);
2472
- return;
2473
- }
2474
2380
  /* */
2475
2381
  /* */
2476
2382
  /* */
@@ -2482,6 +2388,13 @@ class HelpersMessages extends HelpersIsomorphic {
2482
2388
  /* */
2483
2389
  /* */
2484
2390
  /* */
2391
+ return (void 0);
2392
+ };
2393
+ /**
2394
+ * Similar to select but executes action if provided
2395
+ * @returns selected and executed value
2396
+ */
2397
+ UtilsTerminal.selectActionAndExecute = async (choices, options) => {
2485
2398
  /* */
2486
2399
  /* */
2487
2400
  /* */
@@ -2517,13 +2430,10 @@ class HelpersMessages extends HelpersIsomorphic {
2517
2430
  /* */
2518
2431
  /* */
2519
2432
  /* */
2433
+ return (void 0);
2434
+ };
2435
+ UtilsTerminal.select = async (options) => {
2520
2436
  /* */
2521
- }
2522
- taskDone(details, isLessImportant = false) {
2523
- if (Helpers.isBrowser) {
2524
- console.info(details);
2525
- return;
2526
- }
2527
2437
  /* */
2528
2438
  /* */
2529
2439
  /* */
@@ -2576,27 +2486,22 @@ class HelpersMessages extends HelpersIsomorphic {
2576
2486
  /* */
2577
2487
  /* */
2578
2488
  /* */
2579
- }
2580
- get isVerboseMode() {
2581
- return true; // TODO what it means in browser
2582
2489
  /* */
2583
2490
  /* */
2584
- }
2585
- /**
2586
- * log messages only available in verbose mode
2587
- */
2588
- log(details, debugLevel = 0) {
2589
- if (Helpers.isBrowser) {
2590
- console.log(details);
2591
- return;
2592
- }
2593
2491
  /* */
2594
2492
  /* */
2595
2493
  /* */
2596
2494
  /* */
2597
2495
  /* */
2496
+ return (void 0);
2497
+ };
2498
+ UtilsTerminal.pipeEnterToStdin = () => {
2598
2499
  /* */
2599
2500
  /* */
2501
+ return (void 0);
2502
+ };
2503
+ UtilsTerminal.input = async ({ defaultValue, question, required, // TODO something is werid with required
2504
+ }) => {
2600
2505
  /* */
2601
2506
  /* */
2602
2507
  /* */
@@ -2627,6 +2532,9 @@ class HelpersMessages extends HelpersIsomorphic {
2627
2532
  /* */
2628
2533
  /* */
2629
2534
  /* */
2535
+ return (void 0);
2536
+ };
2537
+ UtilsTerminal.confirm = async (options) => {
2630
2538
  /* */
2631
2539
  /* */
2632
2540
  /* */
@@ -2640,56 +2548,26 @@ class HelpersMessages extends HelpersIsomorphic {
2640
2548
  /* */
2641
2549
  /* */
2642
2550
  /* */
2643
- }
2644
- /**
2645
- * Logs not visible in normal use of taon-cli
2646
- */
2647
- logSuccess(details) {
2648
2551
  /* */
2649
2552
  /* */
2650
2553
  /* */
2651
2554
  /* */
2652
2555
  /* */
2653
- return (void 0);
2654
- }
2655
- /**
2656
- * Logs not visible in normal use of taon-cli
2657
- */
2658
- logInfo(details, repeatable = false) {
2659
2556
  /* */
2660
2557
  /* */
2661
2558
  /* */
2662
2559
  /* */
2663
2560
  /* */
2664
- return (void 0);
2665
- }
2666
- /**
2667
- * Logs not visible in normal use of taon-cli
2668
- */
2669
- logError(details, noExit = false, noTrace = false) {
2670
2561
  /* */
2671
2562
  /* */
2672
2563
  /* */
2673
2564
  /* */
2674
2565
  /* */
2675
- return (void 0);
2676
- }
2677
- /**
2678
- * Logs not visible in normal use of taon-cli
2679
- */
2680
- logWarn(details, trace = false) {
2681
2566
  /* */
2682
2567
  /* */
2683
2568
  /* */
2684
2569
  /* */
2685
2570
  /* */
2686
- return (void 0);
2687
- }
2688
- warn(details, trace = false) {
2689
- if (Helpers.isBrowser) {
2690
- console.warn(details);
2691
- return;
2692
- }
2693
2571
  /* */
2694
2572
  /* */
2695
2573
  /* */
@@ -2736,134 +2614,38 @@ class HelpersMessages extends HelpersIsomorphic {
2736
2614
  /* */
2737
2615
  /* */
2738
2616
  /* */
2617
+ return (void 0);
2618
+ };
2619
+ UtilsTerminal.pressAnyKeyToContinueAsync = (options) => {
2739
2620
  /* */
2740
2621
  /* */
2741
2622
  /* */
2742
2623
  /* */
2743
2624
  /* */
2744
2625
  /* */
2745
- }
2746
- }
2747
- ;
2748
- ({}); // @--end-of-file-for-module=tnp-core lib/helpers-messages.ts
2749
-
2750
- /* */
2751
- /* */
2752
- /* */
2753
- /* */
2754
- /* */
2755
- /* */
2756
- /* */
2757
- /* */
2758
- /* */
2759
- /* */
2760
- /* */
2761
- /* */
2762
- /* */
2763
- /* */
2764
- /* */
2765
- /* */
2766
- /* */
2767
- const encoding = 'utf8';
2768
- /* */
2769
- /* */
2770
- const WEBSQL_PROC_MOCK_PROCESSES_PID = {};
2771
- const WEBSQL_PROC_MOCK_PROCESSES_PPID = {};
2772
- class HelpersCore extends HelpersMessages {
2773
- static get InstanceCore() {
2774
- if (!HelpersCore._instanceCore) {
2775
- HelpersCore._instanceCore = new HelpersCore();
2776
- }
2777
- return HelpersCore._instanceCore;
2778
- }
2779
- /* */
2780
- /* */
2781
- /* */
2782
- /* */
2783
- /* */
2784
- /* */
2785
- /* */
2786
- /* */
2787
- /* */
2788
- /* */
2789
- /* */
2790
- /* */
2791
- /* */
2792
- /* */
2793
- /* */
2794
- /* */
2795
- /* */
2796
- /* */
2797
- /* */
2798
- /* */
2799
- constructor() {
2800
- super();
2801
2626
  /* */
2802
2627
  /* */
2803
- this.bigMaxBuffer = 2024 * 500;
2804
2628
  /* */
2805
2629
  /* */
2806
2630
  /* */
2807
- }
2808
- /**
2809
- * @deprecated use UtilsOs.isRunningInsideWsl()
2810
- */
2811
- get isWsl() {
2812
- return UtilsOs.isRunningInWsl();
2813
- }
2814
- /**
2815
- * @deprecated use UtilsOs.isRunningInDocker
2816
- */
2817
- isRunningInDocker() {
2818
- return UtilsOs.isRunningInDocker();
2819
- }
2820
- /**
2821
- * @deprecated use UtilsOs.isRunningInLinuxGraphicEnvironment
2822
- */
2823
- isRunningInLinuxGraphicsCapableEnvironment() {
2824
- return UtilsOs.isRunningInLinuxGraphicsCapableEnvironment();
2825
- }
2826
- /**
2827
- * @deprecated use UtilsTerminal.clearConsole
2828
- */
2829
- clearConsole() {
2830
- return UtilsTerminal.clearConsole();
2831
- }
2832
- /**
2833
- * get electron browser ipc renderer
2834
- */
2835
- get ipcRenderer() {
2836
2631
  /* */
2837
2632
  /* */
2838
- if (!this.isElectron) {
2839
- return;
2840
- }
2841
- return window.require('electron')
2842
- .ipcRenderer;
2843
- }
2844
- /**
2845
- * get electron web frame
2846
- */
2847
- get webFrame() {
2848
2633
  /* */
2849
2634
  /* */
2850
- if (!this.isElectron) {
2851
- return;
2852
- }
2853
- return window.require('electron').webFrame;
2854
- }
2635
+ /* */
2636
+ /* */
2637
+ /* */
2638
+ return (void 0);
2639
+ };
2855
2640
  /**
2856
- * get electron backend ipc main proces
2641
+ * @deprecated use UtilsTerminal.pressAnyKeyToContinueAsync()
2857
2642
  */
2858
- get ipcMain() {
2643
+ UtilsTerminal.pressAnyKey = (options) => {
2859
2644
  /* */
2860
2645
  /* */
2861
2646
  /* */
2862
2647
  /* */
2863
2648
  /* */
2864
- return (void 0);
2865
- }
2866
- getElectronWindow({ allowRunningInsecureContent = true, } = {}) {
2867
2649
  /* */
2868
2650
  /* */
2869
2651
  /* */
@@ -2879,24 +2661,16 @@ class HelpersCore extends HelpersMessages {
2879
2661
  /* */
2880
2662
  /* */
2881
2663
  /* */
2882
- return (void 0);
2883
- }
2884
- mediaTypeFromSrc(src) {
2885
- const ext = path.extname(src);
2886
- const media = CoreModels.mimeTypes[ext];
2887
- return _.first(media?.split('/'));
2888
- }
2889
- sleep(seconds = 1) {
2890
2664
  /* */
2891
2665
  /* */
2892
- return (void 0);
2893
- }
2894
- removeIfExists(absoluteFileOrFolderPath) {
2895
2666
  /* */
2896
2667
  /* */
2897
2668
  /* */
2898
2669
  /* */
2899
2670
  /* */
2671
+ return (void 0);
2672
+ };
2673
+ UtilsTerminal.previewLongList = async (list, listName = 'List') => {
2900
2674
  /* */
2901
2675
  /* */
2902
2676
  /* */
@@ -2910,18 +2684,20 @@ class HelpersCore extends HelpersMessages {
2910
2684
  /* */
2911
2685
  /* */
2912
2686
  /* */
2913
- return (void 0);
2914
- }
2915
- /**
2916
- * path.relative that return cross platform path
2917
- */
2918
- relative(cwd, to) {
2919
- return crossPlatformPath(path.relative(cwd, to));
2920
- }
2921
- removeFileIfExists(absoluteFilePath) {
2922
2687
  /* */
2923
2688
  /* */
2924
2689
  /* */
2690
+ /* */
2691
+ return (void 0);
2692
+ };
2693
+ /**
2694
+ * Displays a long list in the console using a pager like `less`.
2695
+ * Returns a Promise that resolves when the user exits the pager.
2696
+ *
2697
+ * @param {string} list - The long string content to display.
2698
+ * @returns {Promise<void>} A Promise that resolves when the pager exits.
2699
+ */
2700
+ UtilsTerminal.previewLongListGitLogLike = (list) => {
2925
2701
  /* */
2926
2702
  /* */
2927
2703
  /* */
@@ -2932,9 +2708,6 @@ class HelpersCore extends HelpersMessages {
2932
2708
  /* */
2933
2709
  /* */
2934
2710
  /* */
2935
- return (void 0);
2936
- }
2937
- removeFolderIfExists(absoluteFolderPath) {
2938
2711
  /* */
2939
2712
  /* */
2940
2713
  /* */
@@ -2950,41 +2723,849 @@ class HelpersCore extends HelpersMessages {
2950
2723
  /* */
2951
2724
  /* */
2952
2725
  return (void 0);
2726
+ };
2727
+ })(UtilsTerminal || (UtilsTerminal = {}));
2728
+ ;
2729
+ ({}); // @--end-of-file-for-module=tnp-core lib/utils.ts
2730
+
2731
+ class HelpersIsomorphic {
2732
+ /**
2733
+ * @deprecated
2734
+ * use UtilsOs.isRunningInBrowser() instead
2735
+ */
2736
+ get isBrowser() {
2737
+ return UtilsOs.isRunningInBrowser();
2953
2738
  }
2954
2739
  /**
2955
- * leave max 1 empty line
2740
+ * @deprecated
2741
+ * use UtilsOs.isRunningInWebSQL() instead
2956
2742
  */
2957
- removeEmptyLineFromString(str) {
2958
- const lines = (str || '').split('\n');
2959
- let previousWasEmpty = false;
2960
- return lines
2961
- .filter(line => {
2962
- if (line.trim() === '') {
2963
- if (previousWasEmpty) {
2964
- return false;
2965
- }
2966
- else {
2967
- previousWasEmpty = true;
2968
- return true;
2969
- }
2970
- }
2971
- else {
2972
- previousWasEmpty = false;
2973
- return true;
2974
- }
2975
- })
2976
- .join('\n');
2743
+ get isWebSQL() {
2744
+ return UtilsOs.isRunningInWebSQL();
2977
2745
  }
2978
2746
  /**
2979
2747
  * @deprecated
2748
+ * use UtilsOs.isRunningInNode() instead
2980
2749
  */
2981
- tryRemoveDir(dirpath, contentOnly = false, omitWarningNotExisted = false) {
2982
- /* */
2983
- /* */
2984
- /* */
2985
- /* */
2986
- /* */
2987
- /* */
2750
+ get isNode() {
2751
+ return UtilsOs.isRunningInNode();
2752
+ }
2753
+ /**
2754
+ * @deprecated
2755
+ * use UtilsOs.isRunningInElectron() instead
2756
+ */
2757
+ get isElectron() {
2758
+ return UtilsOs.isRunningInElectron();
2759
+ }
2760
+ /**
2761
+ * TODO what is the purpose of this function?
2762
+ * @deprecated
2763
+ */
2764
+ contain(arr, item) {
2765
+ return (arr.filter(l => {
2766
+ if (l instanceof RegExp) {
2767
+ return l.test(item);
2768
+ }
2769
+ if (l === item) {
2770
+ return true;
2771
+ }
2772
+ if (item.match && typeof item.match === 'function' ? item.match(l) : false) {
2773
+ return true;
2774
+ }
2775
+ return false;
2776
+ }).length > 0);
2777
+ }
2778
+ }
2779
+ ;
2780
+ ({}); // @--end-of-file-for-module=tnp-core lib/helpers-isomorphic.ts
2781
+
2782
+ /* */
2783
+ /* */
2784
+ /* */
2785
+ const KEY = {
2786
+ LAST_ERROR: Symbol(),
2787
+ LAST_INFO: Symbol(),
2788
+ LAST_WARN: Symbol(),
2789
+ LAST_LOG: Symbol(),
2790
+ LAST_SUCCESS: Symbol(),
2791
+ LAST_TASK_STARTED: Symbol(),
2792
+ LAST_TASK_DONE: Symbol(),
2793
+ };
2794
+ const KEY_COUNT = {
2795
+ LAST_ERROR: Symbol(),
2796
+ LAST_INFO: Symbol(),
2797
+ LAST_WARN: Symbol(),
2798
+ LAST_LOG: Symbol(),
2799
+ LAST_SUCCESS: Symbol(),
2800
+ LAST_TASK_STARTED: Symbol(),
2801
+ LAST_TASK_DONE: Symbol(),
2802
+ };
2803
+ const KEY_IMPORTANTCE = {
2804
+ LAST_ERROR: Symbol(),
2805
+ LAST_INFO: Symbol(),
2806
+ LAST_WARN: Symbol(),
2807
+ LAST_LOG: Symbol(),
2808
+ LAST_SUCCESS: Symbol(),
2809
+ LAST_TASK_STARTED: Symbol(),
2810
+ LAST_TASK_DONE: Symbol(),
2811
+ };
2812
+ /* */
2813
+ /* */
2814
+ /* */
2815
+ /* */
2816
+ /* */
2817
+ /* */
2818
+ /* */
2819
+ /* */
2820
+ /* */
2821
+ /* */
2822
+ /* */
2823
+ /* */
2824
+ /* */
2825
+ /* */
2826
+ /* */
2827
+ /* */
2828
+ /* */
2829
+ /* */
2830
+ /* */
2831
+ /* */
2832
+ /* */
2833
+ const LIMIT = 10;
2834
+ /**
2835
+ * @param details any data to be transformed
2836
+ * @returns string ready to be displayed
2837
+ */
2838
+ const transformData = (details) => {
2839
+ if (typeof details === 'object') {
2840
+ try {
2841
+ const json = JSON.stringify(details, null, 2);
2842
+ details = json;
2843
+ }
2844
+ catch (error) {
2845
+ return details;
2846
+ }
2847
+ }
2848
+ return details;
2849
+ };
2850
+ class HelpersMessages extends HelpersIsomorphic {
2851
+ msgCacheClear() {
2852
+ /* */
2853
+ /* */
2854
+ /* */
2855
+ /* */
2856
+ /* */
2857
+ }
2858
+ renderError(err) {
2859
+ if (this.isBrowser) {
2860
+ console.error(err);
2861
+ }
2862
+ else {
2863
+ /* */
2864
+ /* */
2865
+ /* */
2866
+ /* */
2867
+ /* */
2868
+ /* */
2869
+ /* */
2870
+ /* */
2871
+ /* */
2872
+ }
2873
+ }
2874
+ /**
2875
+ * throw error
2876
+ */
2877
+ throw(details) {
2878
+ throw new Error(details);
2879
+ }
2880
+ /**
2881
+ * throw error and stop application
2882
+ * @param details
2883
+ */
2884
+ stopApplication(details) {
2885
+ if (this.isBrowser) {
2886
+ document.body.innerHTML =
2887
+ '<h1>Application has encountered an error and stopped.</h1>';
2888
+ document.body.style.pointerEvents = 'none';
2889
+ /* */
2890
+ /* */
2891
+ /* */
2892
+ /* */
2893
+ }
2894
+ throw new Error(details);
2895
+ }
2896
+ tryCatchError(error) {
2897
+ Helpers.error(error, true, true);
2898
+ }
2899
+ error(details, noExit = false, noTrace = false) {
2900
+ if (Helpers.isBrowser) {
2901
+ console.error(details);
2902
+ return;
2903
+ }
2904
+ /* */
2905
+ /* */
2906
+ /* */
2907
+ /* */
2908
+ /* */
2909
+ /* */
2910
+ /* */
2911
+ /* */
2912
+ /* */
2913
+ /* */
2914
+ /* */
2915
+ /* */
2916
+ /* */
2917
+ /* */
2918
+ /* */
2919
+ /* */
2920
+ /* */
2921
+ /* */
2922
+ /* */
2923
+ /* */
2924
+ /* */
2925
+ /* */
2926
+ /* */
2927
+ /* */
2928
+ /* */
2929
+ /* */
2930
+ /* */
2931
+ /* */
2932
+ /* */
2933
+ /* */
2934
+ /* */
2935
+ /* */
2936
+ /* */
2937
+ /* */
2938
+ /* */
2939
+ /* */
2940
+ /* */
2941
+ /* */
2942
+ /* */
2943
+ /* */
2944
+ /* */
2945
+ /* */
2946
+ /* */
2947
+ /* */
2948
+ /* */
2949
+ /* */
2950
+ /* */
2951
+ /* */
2952
+ /* */
2953
+ /* */
2954
+ }
2955
+ info(details, repeatable = false) {
2956
+ /* */
2957
+ /* */
2958
+ /* */
2959
+ /* */
2960
+ /* */
2961
+ /* */
2962
+ if (Helpers.isBrowser) {
2963
+ console.info(details);
2964
+ return;
2965
+ }
2966
+ /* */
2967
+ /* */
2968
+ /* */
2969
+ /* */
2970
+ /* */
2971
+ /* */
2972
+ /* */
2973
+ /* */
2974
+ /* */
2975
+ /* */
2976
+ /* */
2977
+ /* */
2978
+ /* */
2979
+ /* */
2980
+ /* */
2981
+ /* */
2982
+ /* */
2983
+ /* */
2984
+ /* */
2985
+ /* */
2986
+ /* */
2987
+ /* */
2988
+ /* */
2989
+ /* */
2990
+ /* */
2991
+ /* */
2992
+ /* */
2993
+ /* */
2994
+ /* */
2995
+ /* */
2996
+ /* */
2997
+ /* */
2998
+ /* */
2999
+ /* */
3000
+ }
3001
+ success(details) {
3002
+ if (Helpers.isBrowser) {
3003
+ console.info(details);
3004
+ return;
3005
+ }
3006
+ /* */
3007
+ /* */
3008
+ /* */
3009
+ /* */
3010
+ /* */
3011
+ /* */
3012
+ /* */
3013
+ /* */
3014
+ /* */
3015
+ /* */
3016
+ /* */
3017
+ /* */
3018
+ /* */
3019
+ /* */
3020
+ /* */
3021
+ /* */
3022
+ /* */
3023
+ /* */
3024
+ /* */
3025
+ /* */
3026
+ /* */
3027
+ /* */
3028
+ /* */
3029
+ /* */
3030
+ /* */
3031
+ /* */
3032
+ /* */
3033
+ /* */
3034
+ /* */
3035
+ /* */
3036
+ /* */
3037
+ /* */
3038
+ /* */
3039
+ /* */
3040
+ /* */
3041
+ /* */
3042
+ /* */
3043
+ }
3044
+ /**
3045
+ *
3046
+ * @param details
3047
+ * @param isLogTask is less important log task
3048
+ * @returns
3049
+ */
3050
+ taskStarted(details, isLogTask = false) {
3051
+ if (Helpers.isBrowser) {
3052
+ console.info(details);
3053
+ return;
3054
+ }
3055
+ /* */
3056
+ /* */
3057
+ /* */
3058
+ /* */
3059
+ /* */
3060
+ /* */
3061
+ /* */
3062
+ /* */
3063
+ /* */
3064
+ /* */
3065
+ /* */
3066
+ /* */
3067
+ /* */
3068
+ /* */
3069
+ /* */
3070
+ /* */
3071
+ /* */
3072
+ /* */
3073
+ /* */
3074
+ /* */
3075
+ /* */
3076
+ /* */
3077
+ /* */
3078
+ /* */
3079
+ /* */
3080
+ /* */
3081
+ /* */
3082
+ /* */
3083
+ /* */
3084
+ /* */
3085
+ /* */
3086
+ /* */
3087
+ /* */
3088
+ /* */
3089
+ /* */
3090
+ /* */
3091
+ /* */
3092
+ /* */
3093
+ /* */
3094
+ /* */
3095
+ /* */
3096
+ /* */
3097
+ /* */
3098
+ /* */
3099
+ /* */
3100
+ /* */
3101
+ /* */
3102
+ }
3103
+ taskDone(details, isLessImportant = false) {
3104
+ if (Helpers.isBrowser) {
3105
+ console.info(details);
3106
+ return;
3107
+ }
3108
+ /* */
3109
+ /* */
3110
+ /* */
3111
+ /* */
3112
+ /* */
3113
+ /* */
3114
+ /* */
3115
+ /* */
3116
+ /* */
3117
+ /* */
3118
+ /* */
3119
+ /* */
3120
+ /* */
3121
+ /* */
3122
+ /* */
3123
+ /* */
3124
+ /* */
3125
+ /* */
3126
+ /* */
3127
+ /* */
3128
+ /* */
3129
+ /* */
3130
+ /* */
3131
+ /* */
3132
+ /* */
3133
+ /* */
3134
+ /* */
3135
+ /* */
3136
+ /* */
3137
+ /* */
3138
+ /* */
3139
+ /* */
3140
+ /* */
3141
+ /* */
3142
+ /* */
3143
+ /* */
3144
+ /* */
3145
+ /* */
3146
+ /* */
3147
+ /* */
3148
+ /* */
3149
+ /* */
3150
+ /* */
3151
+ /* */
3152
+ /* */
3153
+ /* */
3154
+ /* */
3155
+ /* */
3156
+ /* */
3157
+ /* */
3158
+ /* */
3159
+ /* */
3160
+ }
3161
+ get isVerboseMode() {
3162
+ return true; // TODO what it means in browser
3163
+ /* */
3164
+ /* */
3165
+ }
3166
+ /**
3167
+ * log messages only available in verbose mode
3168
+ */
3169
+ log(details, debugLevel = 0) {
3170
+ if (Helpers.isBrowser) {
3171
+ console.log(details);
3172
+ return;
3173
+ }
3174
+ /* */
3175
+ /* */
3176
+ /* */
3177
+ /* */
3178
+ /* */
3179
+ /* */
3180
+ /* */
3181
+ /* */
3182
+ /* */
3183
+ /* */
3184
+ /* */
3185
+ /* */
3186
+ /* */
3187
+ /* */
3188
+ /* */
3189
+ /* */
3190
+ /* */
3191
+ /* */
3192
+ /* */
3193
+ /* */
3194
+ /* */
3195
+ /* */
3196
+ /* */
3197
+ /* */
3198
+ /* */
3199
+ /* */
3200
+ /* */
3201
+ /* */
3202
+ /* */
3203
+ /* */
3204
+ /* */
3205
+ /* */
3206
+ /* */
3207
+ /* */
3208
+ /* */
3209
+ /* */
3210
+ /* */
3211
+ /* */
3212
+ /* */
3213
+ /* */
3214
+ /* */
3215
+ /* */
3216
+ /* */
3217
+ /* */
3218
+ /* */
3219
+ /* */
3220
+ /* */
3221
+ /* */
3222
+ /* */
3223
+ /* */
3224
+ }
3225
+ /**
3226
+ * Logs not visible in normal use of taon-cli
3227
+ */
3228
+ logSuccess(details) {
3229
+ /* */
3230
+ /* */
3231
+ /* */
3232
+ /* */
3233
+ /* */
3234
+ return (void 0);
3235
+ }
3236
+ /**
3237
+ * Logs not visible in normal use of taon-cli
3238
+ */
3239
+ logInfo(details, repeatable = false) {
3240
+ /* */
3241
+ /* */
3242
+ /* */
3243
+ /* */
3244
+ /* */
3245
+ return (void 0);
3246
+ }
3247
+ /**
3248
+ * Logs not visible in normal use of taon-cli
3249
+ */
3250
+ logError(details, noExit = false, noTrace = false) {
3251
+ /* */
3252
+ /* */
3253
+ /* */
3254
+ /* */
3255
+ /* */
3256
+ return (void 0);
3257
+ }
3258
+ /**
3259
+ * Logs not visible in normal use of taon-cli
3260
+ */
3261
+ logWarn(details, trace = false) {
3262
+ /* */
3263
+ /* */
3264
+ /* */
3265
+ /* */
3266
+ /* */
3267
+ return (void 0);
3268
+ }
3269
+ warn(details, trace = false) {
3270
+ if (Helpers.isBrowser) {
3271
+ console.warn(details);
3272
+ return;
3273
+ }
3274
+ /* */
3275
+ /* */
3276
+ /* */
3277
+ /* */
3278
+ /* */
3279
+ /* */
3280
+ /* */
3281
+ /* */
3282
+ /* */
3283
+ /* */
3284
+ /* */
3285
+ /* */
3286
+ /* */
3287
+ /* */
3288
+ /* */
3289
+ /* */
3290
+ /* */
3291
+ /* */
3292
+ /* */
3293
+ /* */
3294
+ /* */
3295
+ /* */
3296
+ /* */
3297
+ /* */
3298
+ /* */
3299
+ /* */
3300
+ /* */
3301
+ /* */
3302
+ /* */
3303
+ /* */
3304
+ /* */
3305
+ /* */
3306
+ /* */
3307
+ /* */
3308
+ /* */
3309
+ /* */
3310
+ /* */
3311
+ /* */
3312
+ /* */
3313
+ /* */
3314
+ /* */
3315
+ /* */
3316
+ /* */
3317
+ /* */
3318
+ /* */
3319
+ /* */
3320
+ /* */
3321
+ /* */
3322
+ /* */
3323
+ /* */
3324
+ /* */
3325
+ /* */
3326
+ }
3327
+ }
3328
+ ;
3329
+ ({}); // @--end-of-file-for-module=tnp-core lib/helpers-messages.ts
3330
+
3331
+ /* */
3332
+ /* */
3333
+ /* */
3334
+ /* */
3335
+ /* */
3336
+ /* */
3337
+ /* */
3338
+ /* */
3339
+ /* */
3340
+ /* */
3341
+ /* */
3342
+ /* */
3343
+ /* */
3344
+ /* */
3345
+ /* */
3346
+ /* */
3347
+ /* */
3348
+ const encoding = 'utf8';
3349
+ /* */
3350
+ /* */
3351
+ const WEBSQL_PROC_MOCK_PROCESSES_PID = {};
3352
+ const WEBSQL_PROC_MOCK_PROCESSES_PPID = {};
3353
+ class HelpersCore extends HelpersMessages {
3354
+ static get InstanceCore() {
3355
+ if (!HelpersCore._instanceCore) {
3356
+ HelpersCore._instanceCore = new HelpersCore();
3357
+ }
3358
+ return HelpersCore._instanceCore;
3359
+ }
3360
+ /* */
3361
+ /* */
3362
+ /* */
3363
+ /* */
3364
+ /* */
3365
+ /* */
3366
+ /* */
3367
+ /* */
3368
+ /* */
3369
+ /* */
3370
+ /* */
3371
+ /* */
3372
+ /* */
3373
+ /* */
3374
+ /* */
3375
+ /* */
3376
+ /* */
3377
+ /* */
3378
+ /* */
3379
+ /* */
3380
+ constructor() {
3381
+ super();
3382
+ /* */
3383
+ /* */
3384
+ this.bigMaxBuffer = 2024 * 500;
3385
+ /* */
3386
+ /* */
3387
+ /* */
3388
+ }
3389
+ /**
3390
+ * @deprecated use UtilsOs.isRunningInsideWsl()
3391
+ */
3392
+ get isWsl() {
3393
+ return UtilsOs.isRunningInWsl();
3394
+ }
3395
+ /**
3396
+ * @deprecated use UtilsOs.isRunningInDocker
3397
+ */
3398
+ isRunningInDocker() {
3399
+ return UtilsOs.isRunningInDocker();
3400
+ }
3401
+ /**
3402
+ * @deprecated use UtilsOs.isRunningInLinuxGraphicEnvironment
3403
+ */
3404
+ isRunningInLinuxGraphicsCapableEnvironment() {
3405
+ return UtilsOs.isRunningInLinuxGraphicsCapableEnvironment();
3406
+ }
3407
+ /**
3408
+ * @deprecated use UtilsTerminal.clearConsole
3409
+ */
3410
+ clearConsole() {
3411
+ return UtilsTerminal.clearConsole();
3412
+ }
3413
+ /**
3414
+ * get electron browser ipc renderer
3415
+ */
3416
+ get ipcRenderer() {
3417
+ /* */
3418
+ /* */
3419
+ if (!this.isElectron) {
3420
+ return;
3421
+ }
3422
+ return window.require('electron')
3423
+ .ipcRenderer;
3424
+ }
3425
+ /**
3426
+ * get electron web frame
3427
+ */
3428
+ get webFrame() {
3429
+ /* */
3430
+ /* */
3431
+ if (!this.isElectron) {
3432
+ return;
3433
+ }
3434
+ return window.require('electron').webFrame;
3435
+ }
3436
+ /**
3437
+ * get electron backend ipc main proces
3438
+ */
3439
+ get ipcMain() {
3440
+ /* */
3441
+ /* */
3442
+ /* */
3443
+ /* */
3444
+ /* */
3445
+ return (void 0);
3446
+ }
3447
+ getElectronWindow({ allowRunningInsecureContent = true, } = {}) {
3448
+ /* */
3449
+ /* */
3450
+ /* */
3451
+ /* */
3452
+ /* */
3453
+ /* */
3454
+ /* */
3455
+ /* */
3456
+ /* */
3457
+ /* */
3458
+ /* */
3459
+ /* */
3460
+ /* */
3461
+ /* */
3462
+ /* */
3463
+ return (void 0);
3464
+ }
3465
+ mediaTypeFromSrc(src) {
3466
+ const ext = path.extname(src);
3467
+ const media = CoreModels.mimeTypes[ext];
3468
+ return _.first(media?.split('/'));
3469
+ }
3470
+ sleep(seconds = 1) {
3471
+ /* */
3472
+ /* */
3473
+ return (void 0);
3474
+ }
3475
+ removeIfExists(absoluteFileOrFolderPath) {
3476
+ /* */
3477
+ /* */
3478
+ /* */
3479
+ /* */
3480
+ /* */
3481
+ /* */
3482
+ /* */
3483
+ /* */
3484
+ /* */
3485
+ /* */
3486
+ /* */
3487
+ /* */
3488
+ /* */
3489
+ /* */
3490
+ /* */
3491
+ /* */
3492
+ /* */
3493
+ /* */
3494
+ return (void 0);
3495
+ }
3496
+ /**
3497
+ * path.relative that return cross platform path
3498
+ */
3499
+ relative(cwd, to) {
3500
+ return crossPlatformPath(path.relative(cwd, to));
3501
+ }
3502
+ removeFileIfExists(absoluteFilePath) {
3503
+ /* */
3504
+ /* */
3505
+ /* */
3506
+ /* */
3507
+ /* */
3508
+ /* */
3509
+ /* */
3510
+ /* */
3511
+ /* */
3512
+ /* */
3513
+ /* */
3514
+ /* */
3515
+ /* */
3516
+ return (void 0);
3517
+ }
3518
+ removeFolderIfExists(absoluteFolderPath) {
3519
+ /* */
3520
+ /* */
3521
+ /* */
3522
+ /* */
3523
+ /* */
3524
+ /* */
3525
+ /* */
3526
+ /* */
3527
+ /* */
3528
+ /* */
3529
+ /* */
3530
+ /* */
3531
+ /* */
3532
+ /* */
3533
+ return (void 0);
3534
+ }
3535
+ /**
3536
+ * leave max 1 empty line
3537
+ */
3538
+ removeEmptyLineFromString(str) {
3539
+ const lines = (str || '').split('\n');
3540
+ let previousWasEmpty = false;
3541
+ return lines
3542
+ .filter(line => {
3543
+ if (line.trim() === '') {
3544
+ if (previousWasEmpty) {
3545
+ return false;
3546
+ }
3547
+ else {
3548
+ previousWasEmpty = true;
3549
+ return true;
3550
+ }
3551
+ }
3552
+ else {
3553
+ previousWasEmpty = false;
3554
+ return true;
3555
+ }
3556
+ })
3557
+ .join('\n');
3558
+ }
3559
+ /**
3560
+ * @deprecated
3561
+ */
3562
+ tryRemoveDir(dirpath, contentOnly = false, omitWarningNotExisted = false) {
3563
+ /* */
3564
+ /* */
3565
+ /* */
3566
+ /* */
3567
+ /* */
3568
+ /* */
2988
3569
  /* */
2989
3570
  /* */
2990
3571
  /* */
@@ -3374,6 +3955,34 @@ class HelpersCore extends HelpersMessages {
3374
3955
  /* */
3375
3956
  /* */
3376
3957
  /* */
3958
+ /* */
3959
+ /* */
3960
+ /* */
3961
+ /* */
3962
+ /* */
3963
+ /* */
3964
+ /* */
3965
+ /* */
3966
+ /* */
3967
+ /* */
3968
+ /* */
3969
+ /* */
3970
+ /* */
3971
+ /* */
3972
+ /* */
3973
+ /* */
3974
+ /* */
3975
+ /* */
3976
+ /* */
3977
+ /* */
3978
+ /* */
3979
+ /* */
3980
+ /* */
3981
+ /* */
3982
+ /* */
3983
+ /* */
3984
+ /* */
3985
+ /* */
3377
3986
  /**
3378
3987
  * symlink may have existed or unexisted destiantion url
3379
3988
  * @param destUrl M
@@ -3599,12 +4208,11 @@ class HelpersCore extends HelpersMessages {
3599
4208
  /* */
3600
4209
  };
3601
4210
  }
3602
- wait(second) {
3603
- return new Promise((resolve, reject) => {
3604
- setTimeout(() => {
3605
- resolve(void 0);
3606
- }, second * 1000);
3607
- });
4211
+ /**
4212
+ * @deprecated use UtilsTerminal.wait
4213
+ */
4214
+ async wait(second) {
4215
+ await UtilsTerminal.wait(second);
3608
4216
  }
3609
4217
  async timeout(seconds) {
3610
4218
  return await Helpers.wait(seconds);
@@ -4100,272 +4708,33 @@ class HelpersCore extends HelpersMessages {
4100
4708
  /* */
4101
4709
  /* */
4102
4710
  /* */
4103
- /* */
4104
- /* */
4105
- /* */
4106
- /* */
4107
- /* */
4108
- /* */
4109
- /* */
4110
- /* */
4111
- /* */
4112
- /* */
4113
- return (void 0);
4114
- },
4115
- };
4116
- }
4117
- /**
4118
- * @deprecated use UtilsTerminal.confirm
4119
- */
4120
- async questionYesNo(message, callbackTrue, callbackFalse, defaultValue = true) {
4121
- /* */
4122
- /* */
4123
- /* */
4124
- /* */
4125
- /* */
4126
- /* */
4127
- /* */
4128
- return (void 0);
4129
- }
4130
- /* */
4131
- /* */
4132
- /* */
4133
- /* */
4134
- /* */
4135
- /* */
4136
- /* */
4137
- /* */
4138
- /* */
4139
- /* */
4140
- /* */
4141
- /* */
4142
- /* */
4143
- /* */
4144
- /* */
4145
- /* */
4146
- /* */
4147
- /* */
4148
- /* */
4149
- /* */
4150
- /* */
4151
- /* */
4152
- /* */
4153
- /* */
4154
- /* */
4155
- /* */
4156
- /* */
4157
- /* */
4158
- /* */
4159
- /* */
4160
- /* */
4161
- /* */
4162
- /* */
4163
- /* */
4164
- /* */
4165
- /* */
4166
- /* */
4167
- /* */
4168
- /* */
4169
- /* */
4170
- /* */
4171
- /* */
4172
- /* */
4173
- /* */
4174
- /* */
4175
- /* */
4176
- /* */
4177
- /* */
4178
- /* */
4179
- /* */
4180
- /* */
4181
- /* */
4182
- /* */
4183
- /* */
4184
- /* */
4185
- /* */
4186
- /* */
4187
- /* */
4188
- /* */
4189
- /* */
4190
- /* */
4191
- /* */
4192
- /* */
4193
- /* */
4194
- /* */
4195
- /* */
4196
- /* */
4197
- /* */
4198
- /* */
4199
- /* */
4200
- /* */
4201
- /* */
4202
- /* */
4203
- /* */
4204
- /* */
4205
- /* */
4206
- /* */
4207
- /* */
4208
- /* */
4209
- /* */
4210
- /* */
4211
- /* */
4212
- /* */
4213
- /* */
4214
- /* */
4215
- /* */
4216
- /* */
4217
- /* */
4218
- /* */
4219
- /* */
4220
- /* */
4221
- /* */
4222
- /* */
4223
- /* */
4224
- /* */
4225
- /* */
4226
- /* */
4227
- /* */
4228
- /* */
4229
- /* */
4230
- /* */
4231
- /* */
4232
- /* */
4233
- /* */
4234
- /* */
4235
- /* */
4236
- /* */
4237
- /* */
4238
- /* */
4239
- /* */
4240
- /* */
4241
- /* */
4242
- /* */
4243
- /* */
4244
- /* */
4245
- /* */
4246
- /* */
4247
- /* */
4248
- /* */
4249
- /* */
4250
- /* */
4251
- /* */
4252
- /* */
4253
- /* */
4254
- /* */
4255
- /* */
4256
- /* */
4257
- /* */
4258
- /* */
4259
- /* */
4260
- /* */
4261
- /* */
4262
- /* */
4263
- /* */
4264
- /* */
4265
- /* */
4266
- /* */
4267
- /* */
4268
- /* */
4269
- /* */
4270
- /* */
4271
- /* */
4272
- /* */
4273
- /* */
4274
- /* */
4275
- /* */
4276
- /* */
4277
- /* */
4278
- /* */
4279
- /* */
4280
- /* */
4281
- /* */
4282
- /* */
4283
- /* */
4284
- /* */
4285
- /* */
4286
- /* */
4287
- /* */
4288
- /* */
4289
- /* */
4290
- /* */
4291
- /* */
4292
- /* */
4293
- /* */
4294
- /* */
4295
- /* */
4296
- /* */
4297
- /* */
4298
- /* */
4299
- /* */
4300
- /* */
4301
- /* */
4302
- /* */
4303
- /* */
4304
- /* */
4305
- /* */
4306
- /* */
4307
- /* */
4308
- /* */
4309
- /* */
4310
- /* */
4311
- /* */
4312
- /* */
4313
- /* */
4314
- /* */
4315
- /* */
4316
- /* */
4317
- /* */
4318
- /* */
4319
- /* */
4320
- /* */
4321
- /* */
4322
- /* */
4323
- /* */
4324
- /* */
4325
- /* */
4326
- /* */
4327
- /* */
4328
- /* */
4329
- /* */
4330
- /* */
4331
- /* */
4332
- /* */
4333
- /* */
4334
- /* */
4335
- /* */
4336
- /* */
4337
- /* */
4338
- /* */
4339
- /* */
4340
- /* */
4341
- /* */
4342
- /* */
4343
- /* */
4344
- /* */
4345
- /* */
4346
- /* */
4347
- /* */
4348
- /* */
4349
- /* */
4350
- /* */
4351
- /* */
4352
- /* */
4353
- /* */
4354
- /* */
4355
- /* */
4356
- /* */
4357
- /* */
4358
- /* */
4359
- /* */
4360
- /* */
4361
- /* */
4362
- /* */
4363
- /* */
4364
- /* */
4365
- /* */
4366
- /* */
4367
- /* */
4368
- /* */
4711
+ /* */
4712
+ /* */
4713
+ /* */
4714
+ /* */
4715
+ /* */
4716
+ /* */
4717
+ /* */
4718
+ /* */
4719
+ /* */
4720
+ /* */
4721
+ return (void 0);
4722
+ },
4723
+ };
4724
+ }
4725
+ /**
4726
+ * @deprecated use UtilsTerminal.confirm
4727
+ */
4728
+ async questionYesNo(message, callbackTrue, callbackFalse, defaultValue = true) {
4729
+ /* */
4730
+ /* */
4731
+ /* */
4732
+ /* */
4733
+ /* */
4734
+ /* */
4735
+ /* */
4736
+ return (void 0);
4737
+ }
4369
4738
  /* */
4370
4739
  /* */
4371
4740
  /* */
@@ -4663,129 +5032,118 @@ class HelpersCore extends HelpersMessages {
4663
5032
  }
4664
5033
  return [];
4665
5034
  }
4666
- /* */
4667
- /* */
4668
- /* */
4669
- /* */
4670
- /* */
4671
- /* */
4672
- /* */
4673
- /* */
4674
- /* */
4675
- /* */
4676
- /* */
4677
- /* */
4678
- /* */
4679
- /* */
4680
- /* */
4681
- /* */
4682
- /* */
4683
- /* */
4684
- /* */
4685
- /* */
4686
- /* */
4687
- /* */
4688
- /* */
4689
- /* */
4690
- /* */
4691
- /* */
4692
- /* */
4693
- /* */
4694
- /* */
4695
- /* */
4696
- /* */
4697
- /* */
4698
- /* */
4699
- /* */
4700
- /* */
4701
- /* */
4702
- /* */
4703
- /* */
4704
- /* */
4705
- /* */
4706
- /* */
4707
- /* */
4708
- /* */
4709
- /* */
4710
- /* */
4711
- /* */
4712
- /* */
4713
- /* */
4714
- /* */
4715
- /* */
4716
- /* */
4717
- /* */
4718
- /* */
4719
- /* */
4720
- /* */
4721
- /* */
4722
- /* */
4723
- /* */
4724
- /* */
4725
- /* */
4726
- /* */
4727
- /* */
4728
- /* */
4729
- /* */
4730
- /* */
4731
- /* */
4732
- /* */
4733
- /* */
4734
- /* */
4735
- /* */
4736
- /* */
4737
- /* */
4738
- /* */
4739
- /* */
4740
- /* */
4741
- /* */
4742
- /* */
4743
- /* */
4744
- /* */
4745
- /* */
4746
- /* */
4747
- /* */
4748
- /* */
4749
- /* */
4750
- /* */
4751
- /* */
4752
- /* */
4753
- /* */
4754
- /* */
4755
- /* */
4756
- /* */
4757
- /* */
4758
- /* */
4759
- /* */
4760
- /* */
4761
- /* */
4762
- /* */
4763
- /* */
4764
- /* */
4765
- /* */
4766
- /* */
4767
- /* */
4768
- /* */
4769
- /* */
4770
- /* */
4771
- /* */
4772
- /* */
4773
- /* */
4774
- /* */
4775
- /* */
4776
- /* */
4777
- /* */
4778
- /* */
4779
- /* */
4780
- /* */
4781
- /* */
4782
- /* */
4783
- /* */
4784
- /* */
4785
- /* */
4786
- /* */
4787
- /* */
4788
- /* */
5035
+ /**
5036
+ * does not make sense
5037
+ * @deprecated
5038
+ */
5039
+ isFile(pathToFileOrMaybeFolder) {
5040
+ /* */
5041
+ /* */
5042
+ /* */
5043
+ /* */
5044
+ /* */
5045
+ /* */
5046
+ return (void 0);
5047
+ }
5048
+ async tryReadFile(absoluteFilePath, // @ts-ignore
5049
+ defaultValueWhenNotExists = void 0, notTrim = false) {
5050
+ /* */
5051
+ /* */
5052
+ /* */
5053
+ /* */
5054
+ /* */
5055
+ /* */
5056
+ /* */
5057
+ /* */
5058
+ /* */
5059
+ /* */
5060
+ /* */
5061
+ /* */
5062
+ /* */
5063
+ /* */
5064
+ /* */
5065
+ /* */
5066
+ /* */
5067
+ /* */
5068
+ /* */
5069
+ /* */
5070
+ /* */
5071
+ /* */
5072
+ /* */
5073
+ /* */
5074
+ /* */
5075
+ return (void 0);
5076
+ }
5077
+ /**
5078
+ * wrapper for fs.readFileSync
5079
+ */
5080
+ readFile(absoluteFilePath, // @ts-ignore
5081
+ defaultValueWhenNotExists = void 0, notTrim = false) {
5082
+ /* */
5083
+ /* */
5084
+ /* */
5085
+ /* */
5086
+ /* */
5087
+ /* */
5088
+ /* */
5089
+ /* */
5090
+ /* */
5091
+ /* */
5092
+ /* */
5093
+ /* */
5094
+ /* */
5095
+ /* */
5096
+ /* */
5097
+ /* */
5098
+ /* */
5099
+ /* */
5100
+ /* */
5101
+ /* */
5102
+ /* */
5103
+ /* */
5104
+ /* */
5105
+ /* */
5106
+ /* */
5107
+ return (void 0);
5108
+ }
5109
+ /**
5110
+ * read json from absolute path
5111
+ * @returns json object
5112
+ */
5113
+ readJson(absoluteFilePath, defaultValue = {}, useJson5 = false) {
5114
+ /* */
5115
+ /* */
5116
+ /* */
5117
+ /* */
5118
+ /* */
5119
+ /* */
5120
+ /* */
5121
+ /* */
5122
+ /* */
5123
+ /* */
5124
+ /* */
5125
+ /* */
5126
+ /* */
5127
+ /* */
5128
+ /* */
5129
+ /* */
5130
+ /* */
5131
+ /* */
5132
+ /* */
5133
+ /* */
5134
+ /* */
5135
+ return (void 0);
5136
+ }
5137
+ readJson5(absoluteFilePath, defaultValue = {}) {
5138
+ /* */
5139
+ /* */
5140
+ return (void 0);
5141
+ }
5142
+ readJsonC(absoluteFilePath, defaultValue = {}) {
5143
+ /* */
5144
+ /* */
5145
+ return (void 0);
5146
+ }
4789
5147
  /* */
4790
5148
  /* */
4791
5149
  /* */
@@ -5169,6 +5527,12 @@ class HelpersCore extends HelpersMessages {
5169
5527
  /* */
5170
5528
  /* */
5171
5529
  /* */
5530
+ /* */
5531
+ /* */
5532
+ /* */
5533
+ /* */
5534
+ /* */
5535
+ /* */
5172
5536
  hideNodeWarnings() {
5173
5537
  /* */
5174
5538
  /* */
@@ -5346,5 +5710,5 @@ let Helpers = HelpersCore.InstanceCore;
5346
5710
  * Generated bundle index. Do not edit.
5347
5711
  */
5348
5712
 
5349
- export { $, CLI, CoreConfig, HelpersCore as CoreHelpers, CoreModels, Helpers, PROGRESS_DATA, Utils, UtilsMigrations, UtilsOs, UtilsProcess, UtilsString, UtilsTerminal, chalk, crossPlatformPath, frameworkName, frameworkNameBe, path, requiredForDev, win32Path };
5713
+ export { $, CLI, CoreConfig, HelpersCore as CoreHelpers, CoreModels, Helpers, PROGRESS_DATA, Utils, UtilsMigrations, UtilsOs, UtilsProcess, UtilsString, UtilsTerminal, chalk, child_process, chokidar, crossPlatformPath, fg, fkill, frameworkName, frameworkNameBe, fse, glob, http, https, isElevated, minimatch, mkdirp, ncp, net, os, path, ps, psList, requiredForDev, rimraf, spawn, win32Path };
5350
5714
  //# sourceMappingURL=tnp-core.mjs.map