tnp-core 13.1.56 → 13.1.58

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.
@@ -579,6 +579,18 @@ class HelpersCore extends HelpersMessages {
579
579
  /* */
580
580
  /* */
581
581
  /* */
582
+ /* */
583
+ /* */
584
+ /* */
585
+ /* */
586
+ /* */
587
+ /* */
588
+ /* */
589
+ /* */
590
+ /* */
591
+ /* */
592
+ /* */
593
+ /* */
582
594
  this.bigMaxBuffer = 2024 * 500;
583
595
  /* */
584
596
  /* */
@@ -825,6 +837,14 @@ class HelpersCore extends HelpersMessages {
825
837
  /* */
826
838
  /* */
827
839
  /* */
840
+ /* */
841
+ /* */
842
+ /* */
843
+ /* */
844
+ /* */
845
+ /* */
846
+ /* */
847
+ /* */
828
848
  /**
829
849
  * symlink may have existed or unexisted destiantion url
830
850
  * @param destUrl M
@@ -948,7 +968,14 @@ class HelpersCore extends HelpersMessages {
948
968
  /* */
949
969
  return (void 0);
950
970
  }
971
+ _fixCommand(command) {
972
+ if (global.skipCoreCheck && (command.startsWith('tnp ') || command.startsWith('firedev'))) {
973
+ command = `${command} --skipCoreCheck`;
974
+ }
975
+ return command;
976
+ }
951
977
  command(command) {
978
+ command = Helpers._fixCommand(command);
952
979
  return {
953
980
  /* */
954
981
  /* */
@@ -1002,7 +1029,78 @@ class HelpersCore extends HelpersMessages {
1002
1029
  /* */
1003
1030
  };
1004
1031
  }
1032
+ /* */
1033
+ /* */
1034
+ /* */
1035
+ /* */
1036
+ /* */
1037
+ /* */
1038
+ /* */
1039
+ /* */
1040
+ /* */
1041
+ /* */
1042
+ /* */
1043
+ /* */
1044
+ /* */
1045
+ /* */
1046
+ /* */
1047
+ /* */
1048
+ /* */
1049
+ /* */
1050
+ /* */
1051
+ /* */
1052
+ /* */
1053
+ /* */
1054
+ /* */
1055
+ /* */
1056
+ /* */
1057
+ /* */
1058
+ /* */
1059
+ /* */
1060
+ /* */
1061
+ /* */
1062
+ /* */
1063
+ /* */
1064
+ /* */
1065
+ /* */
1066
+ /* */
1067
+ /* */
1068
+ /* */
1069
+ /* */
1070
+ /* */
1071
+ /* */
1072
+ /* */
1073
+ /* */
1074
+ /* */
1075
+ /* */
1076
+ /* */
1077
+ /* */
1078
+ /* */
1079
+ /* */
1080
+ /* */
1081
+ /* */
1082
+ /* */
1083
+ /* */
1084
+ /* */
1085
+ /* */
1086
+ /* */
1087
+ /* */
1088
+ /* */
1089
+ /* */
1090
+ /* */
1091
+ /* */
1092
+ /* */
1093
+ /* */
1094
+ /* */
1095
+ /* */
1096
+ /* */
1097
+ /* */
1098
+ /* */
1099
+ /* */
1100
+ /* */
1101
+ /* */
1005
1102
  run(command, options) {
1103
+ command = Helpers._fixCommand(command);
1006
1104
  /* */
1007
1105
  /* */
1008
1106
  /* */
@@ -1485,6 +1583,9 @@ class HelpersCore extends HelpersMessages {
1485
1583
  /* */
1486
1584
  /* */
1487
1585
  /* */
1586
+ /* */
1587
+ /* */
1588
+ /* */
1488
1589
  /**
1489
1590
  * Quick fix for object values
1490
1591
  */
@@ -578,6 +578,18 @@ class HelpersCore extends HelpersMessages {
578
578
  /* */
579
579
  /* */
580
580
  /* */
581
+ /* */
582
+ /* */
583
+ /* */
584
+ /* */
585
+ /* */
586
+ /* */
587
+ /* */
588
+ /* */
589
+ /* */
590
+ /* */
591
+ /* */
592
+ /* */
581
593
  this.bigMaxBuffer = 2024 * 500;
582
594
  /* */
583
595
  /* */
@@ -822,6 +834,14 @@ class HelpersCore extends HelpersMessages {
822
834
  /* */
823
835
  /* */
824
836
  /* */
837
+ /* */
838
+ /* */
839
+ /* */
840
+ /* */
841
+ /* */
842
+ /* */
843
+ /* */
844
+ /* */
825
845
  /**
826
846
  * symlink may have existed or unexisted destiantion url
827
847
  * @param destUrl M
@@ -945,7 +965,14 @@ class HelpersCore extends HelpersMessages {
945
965
  /* */
946
966
  return (void 0);
947
967
  }
968
+ _fixCommand(command) {
969
+ if (global.skipCoreCheck && (command.startsWith('tnp ') || command.startsWith('firedev'))) {
970
+ command = `${command} --skipCoreCheck`;
971
+ }
972
+ return command;
973
+ }
948
974
  command(command) {
975
+ command = Helpers._fixCommand(command);
949
976
  return {
950
977
  /* */
951
978
  /* */
@@ -999,7 +1026,78 @@ class HelpersCore extends HelpersMessages {
999
1026
  /* */
1000
1027
  };
1001
1028
  }
1029
+ /* */
1030
+ /* */
1031
+ /* */
1032
+ /* */
1033
+ /* */
1034
+ /* */
1035
+ /* */
1036
+ /* */
1037
+ /* */
1038
+ /* */
1039
+ /* */
1040
+ /* */
1041
+ /* */
1042
+ /* */
1043
+ /* */
1044
+ /* */
1045
+ /* */
1046
+ /* */
1047
+ /* */
1048
+ /* */
1049
+ /* */
1050
+ /* */
1051
+ /* */
1052
+ /* */
1053
+ /* */
1054
+ /* */
1055
+ /* */
1056
+ /* */
1057
+ /* */
1058
+ /* */
1059
+ /* */
1060
+ /* */
1061
+ /* */
1062
+ /* */
1063
+ /* */
1064
+ /* */
1065
+ /* */
1066
+ /* */
1067
+ /* */
1068
+ /* */
1069
+ /* */
1070
+ /* */
1071
+ /* */
1072
+ /* */
1073
+ /* */
1074
+ /* */
1075
+ /* */
1076
+ /* */
1077
+ /* */
1078
+ /* */
1079
+ /* */
1080
+ /* */
1081
+ /* */
1082
+ /* */
1083
+ /* */
1084
+ /* */
1085
+ /* */
1086
+ /* */
1087
+ /* */
1088
+ /* */
1089
+ /* */
1090
+ /* */
1091
+ /* */
1092
+ /* */
1093
+ /* */
1094
+ /* */
1095
+ /* */
1096
+ /* */
1097
+ /* */
1098
+ /* */
1002
1099
  run(command, options) {
1100
+ command = Helpers._fixCommand(command);
1003
1101
  /* */
1004
1102
  /* */
1005
1103
  /* */
@@ -1482,6 +1580,9 @@ class HelpersCore extends HelpersMessages {
1482
1580
  /* */
1483
1581
  /* */
1484
1582
  /* */
1583
+ /* */
1584
+ /* */
1585
+ /* */
1485
1586
  /**
1486
1587
  * Quick fix for object values
1487
1588
  */
@@ -6,6 +6,13 @@ export interface RunSyncOrAsyncOptions {
6
6
  context?: object;
7
7
  arrayOfParams?: any[];
8
8
  }
9
+ export interface CommandOutputOptions {
10
+ biggerBuffer?: boolean;
11
+ showWholeCommandNotOnlyLastLine?: boolean;
12
+ showStder?: boolean;
13
+ gatherColors?: boolean;
14
+ showErrorWarning?: boolean;
15
+ }
9
16
  export declare class HelpersCore extends HelpersMessages {
10
17
  private static _instanceCore;
11
18
  static get InstanceCore(): HelpersCore;
@@ -30,6 +37,7 @@ export declare class HelpersCore extends HelpersMessages {
30
37
  */
31
38
  isExistedSymlink(filePath: string): boolean;
32
39
  exists(folderOrFilePath: string | string[]): any;
40
+ _fixCommand(command: string): string;
33
41
  command(command: string): {};
34
42
  run(command: string, options?: RunOptions): {};
35
43
  /**