tnp-core 19.0.64 → 19.0.66

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 (40) hide show
  1. package/browser/fesm2022/tnp-core.mjs +320 -3
  2. package/browser/fesm2022/tnp-core.mjs.map +1 -1
  3. package/browser/lib/core-models.d.ts +3 -0
  4. package/browser/lib/utils.d.ts +28 -1
  5. package/browser/package.json +1 -1
  6. package/cli.backend.js +2 -2
  7. package/lib/build-info._auto-generated_.d.ts +1 -1
  8. package/lib/build-info._auto-generated_.js +1 -1
  9. package/lib/core-models.d.ts +3 -0
  10. package/lib/core-models.js +3 -0
  11. package/lib/core-models.js.map +1 -1
  12. package/lib/env/env.angular-node-app.d.ts +2 -0
  13. package/lib/env/env.angular-node-app.js +4 -2
  14. package/lib/env/env.angular-node-app.js.map +1 -1
  15. package/lib/env/env.docs-webapp.d.ts +2 -0
  16. package/lib/env/env.docs-webapp.js +4 -2
  17. package/lib/env/env.docs-webapp.js.map +1 -1
  18. package/lib/env/env.electron-app.d.ts +2 -0
  19. package/lib/env/env.electron-app.js +4 -2
  20. package/lib/env/env.electron-app.js.map +1 -1
  21. package/lib/env/env.mobile-app.d.ts +2 -0
  22. package/lib/env/env.mobile-app.js +4 -2
  23. package/lib/env/env.mobile-app.js.map +1 -1
  24. package/lib/env/env.npm-lib-and-cli-tool.d.ts +2 -0
  25. package/lib/env/env.npm-lib-and-cli-tool.js +4 -2
  26. package/lib/env/env.npm-lib-and-cli-tool.js.map +1 -1
  27. package/lib/env/env.vscode-plugin.d.ts +2 -0
  28. package/lib/env/env.vscode-plugin.js +4 -2
  29. package/lib/env/env.vscode-plugin.js.map +1 -1
  30. package/lib/node-chalk-mock.js +2 -2
  31. package/lib/node-path-mock.js +2 -2
  32. package/lib/utils.d.ts +28 -1
  33. package/lib/utils.js +279 -15
  34. package/lib/utils.js.map +1 -1
  35. package/package.json +1 -1
  36. package/websql/fesm2022/tnp-core.mjs +320 -3
  37. package/websql/fesm2022/tnp-core.mjs.map +1 -1
  38. package/websql/lib/core-models.d.ts +3 -0
  39. package/websql/lib/utils.d.ts +28 -1
  40. package/websql/package.json +1 -1
@@ -953,6 +953,9 @@ var CoreModels;
953
953
  * @deprecated TODO I should remove it from here and from taon-typeorm somehow
954
954
  */
955
955
  CoreModels.OrignalClassKey = '$$originalClass$$';
956
+ CoreModels.localhostIp127 = '127.0.0.1';
957
+ CoreModels.SPECIAL_WORKER_READY_MESSAGE = '$$$ WORKER_READY $$$';
958
+ CoreModels.SPECIAL_APP_READY_MESSAGE = '$$$ APP_READY $$$';
956
959
  })(CoreModels || (CoreModels = {}));
957
960
 
958
961
  //#endregion
@@ -2596,6 +2599,10 @@ var UtilsOs;
2596
2599
  };
2597
2600
  //#endregion
2598
2601
  //#region utils os / is docker available
2602
+ /**
2603
+ * Check if docker is available on this system
2604
+ * and it is running (daemon active)
2605
+ */
2599
2606
  UtilsOs.isDockerAvailable = async () => {
2600
2607
  if (UtilsOs.isBrowser) {
2601
2608
  return false;
@@ -2619,6 +2626,15 @@ var UtilsOs;
2619
2626
  /* */
2620
2627
  /* */
2621
2628
  /* */
2629
+ /* */
2630
+ /* */
2631
+ /* */
2632
+ /* */
2633
+ /* */
2634
+ /* */
2635
+ /* */
2636
+ /* */
2637
+ /* */
2622
2638
  return (void 0);
2623
2639
  };
2624
2640
  //#endregion
@@ -2815,6 +2831,15 @@ var UtilsTerminal;
2815
2831
  });
2816
2832
  };
2817
2833
  //#endregion
2834
+ /**
2835
+ * Check if cli is running in verbose mode
2836
+ * @returns true if cli is running with arugment -verbose
2837
+ */
2838
+ UtilsTerminal.isVerboseModeTaon = () => {
2839
+ /* */
2840
+ /* */
2841
+ return (void 0);
2842
+ };
2818
2843
  //#region clear
2819
2844
  UtilsTerminal.clearConsole = () => {
2820
2845
  /* */
@@ -3138,8 +3163,15 @@ var UtilsTerminal;
3138
3163
  };
3139
3164
  //#endregion
3140
3165
  //#region input
3141
- UtilsTerminal.input = async ({ defaultValue, question, required, // TODO something is werid with required
3142
- }) => {
3166
+ UtilsTerminal.input = async ({ defaultValue, question, required, validate, }) => {
3167
+ /* */
3168
+ /* */
3169
+ /* */
3170
+ /* */
3171
+ /* */
3172
+ /* */
3173
+ /* */
3174
+ /* */
3143
3175
  /* */
3144
3176
  /* */
3145
3177
  /* */
@@ -3599,6 +3631,275 @@ var UtilsYaml;
3599
3631
  //#endregion
3600
3632
  })(UtilsYaml || (UtilsYaml = {}));
3601
3633
  //#endregion
3634
+ //#region utils dot file
3635
+ var UtilsDotFile;
3636
+ (function (UtilsDotFile) {
3637
+ //#region parse value from dot file util
3638
+ const parseValue = (rawValue) => {
3639
+ const val = rawValue.trim().replace(/^"|"$/g, '');
3640
+ // Try boolean
3641
+ if (val.toLowerCase() === 'true')
3642
+ return true;
3643
+ if (val.toLowerCase() === 'false')
3644
+ return false;
3645
+ // Try number
3646
+ if (!isNaN(Number(val)) && val !== '')
3647
+ return Number(val);
3648
+ return val;
3649
+ };
3650
+ //#endregion
3651
+ //#region set value to/from dot file
3652
+ UtilsDotFile.setValueToDotFile = (dotFileAbsPath, key, value) => {
3653
+ /* */
3654
+ /* */
3655
+ /* */
3656
+ /* */
3657
+ /* */
3658
+ /* */
3659
+ /* */
3660
+ /* */
3661
+ /* */
3662
+ /* */
3663
+ /* */
3664
+ /* */
3665
+ /* */
3666
+ /* */
3667
+ /* */
3668
+ /* */
3669
+ /* */
3670
+ /* */
3671
+ /* */
3672
+ /* */
3673
+ /* */
3674
+ /* */
3675
+ /* */
3676
+ /* */
3677
+ /* */
3678
+ /* */
3679
+ /* */
3680
+ /* */
3681
+ /* */
3682
+ /* */
3683
+ /* */
3684
+ /* */
3685
+ /* */
3686
+ /* */
3687
+ /* */
3688
+ return (void 0);
3689
+ };
3690
+ //#endregion
3691
+ //#region set comment to key in dot file
3692
+ UtilsDotFile.setCommentToKeyInDotFile = (dotFileAbsPath, key, comment) => {
3693
+ /* */
3694
+ /* */
3695
+ /* */
3696
+ /* */
3697
+ /* */
3698
+ /* */
3699
+ /* */
3700
+ /* */
3701
+ /* */
3702
+ /* */
3703
+ /* */
3704
+ /* */
3705
+ /* */
3706
+ /* */
3707
+ /* */
3708
+ /* */
3709
+ /* */
3710
+ /* */
3711
+ /* */
3712
+ /* */
3713
+ /* */
3714
+ /* */
3715
+ /* */
3716
+ /* */
3717
+ /* */
3718
+ /* */
3719
+ /* */
3720
+ /* */
3721
+ /* */
3722
+ /* */
3723
+ /* */
3724
+ /* */
3725
+ /* */
3726
+ /* */
3727
+ /* */
3728
+ /* */
3729
+ /* */
3730
+ /* */
3731
+ return (void 0);
3732
+ };
3733
+ //#endregion
3734
+ //#region get value from dot file
3735
+ UtilsDotFile.getValueFromDotFile = (dotFileAbsPath, key) => {
3736
+ /* */
3737
+ /* */
3738
+ /* */
3739
+ /* */
3740
+ /* */
3741
+ /* */
3742
+ /* */
3743
+ /* */
3744
+ /* */
3745
+ /* */
3746
+ /* */
3747
+ /* */
3748
+ /* */
3749
+ /* */
3750
+ /* */
3751
+ /* */
3752
+ /* */
3753
+ /* */
3754
+ /* */
3755
+ /* */
3756
+ /* */
3757
+ /* */
3758
+ /* */
3759
+ /* */
3760
+ return (void 0);
3761
+ };
3762
+ //#endregion
3763
+ //#region set values keys from object
3764
+ UtilsDotFile.setValuesKeysFromObject = (dotFileAbsPath, obj, options) => {
3765
+ /* */
3766
+ /* */
3767
+ /* */
3768
+ /* */
3769
+ /* */
3770
+ /* */
3771
+ /* */
3772
+ /* */
3773
+ /* */
3774
+ /* */
3775
+ /* */
3776
+ /* */
3777
+ /* */
3778
+ /* */
3779
+ /* */
3780
+ /* */
3781
+ /* */
3782
+ /* */
3783
+ /* */
3784
+ /* */
3785
+ /* */
3786
+ /* */
3787
+ /* */
3788
+ return (void 0);
3789
+ };
3790
+ //#endregion
3791
+ //#region get values keys as json object
3792
+ UtilsDotFile.getValuesKeysAsJsonObject = (dotFileAbsPath) => {
3793
+ /* */
3794
+ /* */
3795
+ /* */
3796
+ /* */
3797
+ /* */
3798
+ /* */
3799
+ /* */
3800
+ /* */
3801
+ /* */
3802
+ /* */
3803
+ /* */
3804
+ /* */
3805
+ /* */
3806
+ /* */
3807
+ /* */
3808
+ /* */
3809
+ /* */
3810
+ /* */
3811
+ /* */
3812
+ /* */
3813
+ /* */
3814
+ /* */
3815
+ return (void 0);
3816
+ };
3817
+ //#endregion
3818
+ //#region get comments keys as json object
3819
+ /**
3820
+ * @returns key|comment pairs as json object
3821
+ */
3822
+ UtilsDotFile.getCommentsKeysAsJsonObject = (dotFileAbsPath) => {
3823
+ /* */
3824
+ /* */
3825
+ /* */
3826
+ /* */
3827
+ /* */
3828
+ /* */
3829
+ /* */
3830
+ /* */
3831
+ /* */
3832
+ /* */
3833
+ /* */
3834
+ /* */
3835
+ /* */
3836
+ /* */
3837
+ /* */
3838
+ /* */
3839
+ /* */
3840
+ /* */
3841
+ /* */
3842
+ /* */
3843
+ /* */
3844
+ /* */
3845
+ /* */
3846
+ /* */
3847
+ /* */
3848
+ /* */
3849
+ /* */
3850
+ /* */
3851
+ /* */
3852
+ /* */
3853
+ /* */
3854
+ /* */
3855
+ /* */
3856
+ /* */
3857
+ /* */
3858
+ /* */
3859
+ /* */
3860
+ /* */
3861
+ /* */
3862
+ /* */
3863
+ /* */
3864
+ /* */
3865
+ /* */
3866
+ /* */
3867
+ /* */
3868
+ /* */
3869
+ /* */
3870
+ /* */
3871
+ /* */
3872
+ /* */
3873
+ /* */
3874
+ /* */
3875
+ /* */
3876
+ /* */
3877
+ /* */
3878
+ /* */
3879
+ /* */
3880
+ /* */
3881
+ /* */
3882
+ /* */
3883
+ /* */
3884
+ /* */
3885
+ /* */
3886
+ /* */
3887
+ /* */
3888
+ /* */
3889
+ /* */
3890
+ /* */
3891
+ /* */
3892
+ /* */
3893
+ /* */
3894
+ /* */
3895
+ /* */
3896
+ /* */
3897
+ /* */
3898
+ return (void 0);
3899
+ };
3900
+ //#endregion
3901
+ })(UtilsDotFile || (UtilsDotFile = {}));
3902
+ //#endregion
3602
3903
  //#region utils network
3603
3904
  var UtilsNetwork;
3604
3905
  (function (UtilsNetwork) {
@@ -3730,6 +4031,22 @@ var UtilsNetwork;
3730
4031
  return (void 0);
3731
4032
  };
3732
4033
  //#endregion
4034
+ //#region utils network / etc host without localhost
4035
+ UtilsNetwork.etcHostHasProperLocalhostIp4Entry = () => {
4036
+ /* */
4037
+ /* */
4038
+ /* */
4039
+ /* */
4040
+ return (void 0);
4041
+ };
4042
+ UtilsNetwork.etcHostHasProperLocalhostIp6Entry = () => {
4043
+ /* */
4044
+ /* */
4045
+ /* */
4046
+ /* */
4047
+ return (void 0);
4048
+ };
4049
+ //#endregion
3733
4050
  // Utility to escape domain for RegExp
3734
4051
  const escapeRegExp = (s) => s.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
3735
4052
  //#region utils network / simulate domain in etc hosts
@@ -7100,5 +7417,5 @@ let Helpers = HelpersCore.InstanceCore;
7100
7417
  * Generated bundle index. Do not edit.
7101
7418
  */
7102
7419
 
7103
- export { $, CLI, CoreConfig, HelpersCore as CoreHelpers, CoreModels, Helpers, PROGRESS_DATA, Utils, UtilsJson, UtilsMigrations, UtilsNetwork, UtilsOs, UtilsProcess, UtilsString, UtilsTerminal, UtilsYaml, chalk, child_process, chokidar, crossPlatformPath, fg, fkill, frameworkName, frameworkNameBe, fse, glob, http, https, isElevated, mkdirp, ncp, net, os, path, ps, psList, requiredForDev, rimraf, spawn, win32Path };
7420
+ export { $, CLI, CoreConfig, HelpersCore as CoreHelpers, CoreModels, Helpers, PROGRESS_DATA, Utils, UtilsDotFile, UtilsJson, UtilsMigrations, UtilsNetwork, UtilsOs, UtilsProcess, UtilsString, UtilsTerminal, UtilsYaml, chalk, child_process, chokidar, crossPlatformPath, fg, fkill, frameworkName, frameworkNameBe, fse, glob, http, https, isElevated, mkdirp, ncp, net, os, path, ps, psList, requiredForDev, rimraf, spawn, win32Path };
7104
7421
  //# sourceMappingURL=tnp-core.mjs.map