tnp-core 18.0.36 → 18.0.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/shared/shared_folder_info.txt +1 -1
- package/browser/esm2022/lib/helpers.mjs +5 -30
- package/browser/esm2022/lib/utils.mjs +61 -8
- package/browser/fesm2022/tnp-core.mjs +65 -37
- package/browser/fesm2022/tnp-core.mjs.map +1 -1
- package/browser/lib/utils.d.ts +52 -43
- package/cli.backend.js +2 -2
- package/client/esm2022/lib/helpers.mjs +5 -30
- package/client/esm2022/lib/utils.mjs +61 -8
- package/client/fesm2022/tnp-core.mjs +65 -37
- package/client/fesm2022/tnp-core.mjs.map +1 -1
- package/client/lib/utils.d.ts +52 -43
- package/lib/helpers.d.ts +1 -0
- package/lib/helpers.js +31 -58
- package/lib/helpers.js.map +1 -1
- package/lib/node-chalk-mock.js +2 -2
- package/lib/node-path-mock.js +2 -2
- package/lib/utils.d.ts +52 -43
- package/lib/utils.js +69 -13
- package/lib/utils.js.map +1 -1
- package/package.json +6 -3
- package/tmp-environment.json +35 -30
- package/websql/esm2022/lib/helpers.mjs +5 -30
- package/websql/esm2022/lib/utils.mjs +61 -8
- package/websql/fesm2022/tnp-core.mjs +65 -37
- package/websql/fesm2022/tnp-core.mjs.map +1 -1
- package/websql/lib/utils.d.ts +52 -43
package/websql/lib/utils.d.ts
CHANGED
@@ -8,6 +8,8 @@ export declare namespace Utils {
|
|
8
8
|
*/
|
9
9
|
export const escapeStringForRegEx: (stringForRegExp: string) => string;
|
10
10
|
export function removeChalkSpecialChars(str: string): string;
|
11
|
+
export const fullDateTime: () => any;
|
12
|
+
export const fullDate: () => any;
|
11
13
|
interface AttrJsoncProp {
|
12
14
|
name: string;
|
13
15
|
value?: any;
|
@@ -81,56 +83,63 @@ export declare namespace Utils {
|
|
81
83
|
*/
|
82
84
|
function numValue(pixelsCss: string | number): number;
|
83
85
|
}
|
84
|
-
export
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
*/
|
99
|
-
stdout?: string | string[];
|
100
|
-
/**
|
101
|
-
* unitil this string is in output of stderr
|
102
|
-
*/
|
103
|
-
stderr?: string | string[];
|
104
|
-
/**
|
105
|
-
* by default only resolve when exit code is 0
|
106
|
-
*/
|
107
|
-
resolveAfterAnyExitCode?: boolean;
|
108
|
-
};
|
86
|
+
export {};
|
87
|
+
}
|
88
|
+
export declare namespace UtilsProcess {
|
89
|
+
interface ProcessStartOptions {
|
90
|
+
/**
|
91
|
+
* by default is process.cwd();
|
92
|
+
*/
|
93
|
+
cwd?: string;
|
94
|
+
showCommand?: boolean;
|
95
|
+
/**
|
96
|
+
* Modify output line by line
|
97
|
+
*/
|
98
|
+
outputLineReplace?: (outputLineStderOrStdout: string) => string;
|
99
|
+
resolvePromiseMsg?: {
|
109
100
|
/**
|
110
|
-
*
|
101
|
+
* unitil this string is in output of stdout
|
111
102
|
*/
|
112
|
-
|
103
|
+
stdout?: string | string[];
|
113
104
|
/**
|
114
|
-
*
|
105
|
+
* unitil this string is in output of stderr
|
115
106
|
*/
|
116
|
-
|
117
|
-
askToTryAgainOnError?: boolean;
|
118
|
-
exitOnErrorCallback?: (code: number) => void;
|
107
|
+
stderr?: string | string[];
|
119
108
|
/**
|
120
|
-
*
|
109
|
+
* by default only resolve when exit code is 0
|
121
110
|
*/
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
111
|
+
resolveAfterAnyExitCode?: boolean;
|
112
|
+
};
|
113
|
+
/**
|
114
|
+
* Prefix messages output from child_prcess
|
115
|
+
*/
|
116
|
+
prefix?: string;
|
117
|
+
/**
|
118
|
+
* Try command again after fail after n miliseconds
|
119
|
+
*/
|
120
|
+
tryAgainWhenFailAfter?: number;
|
121
|
+
askToTryAgainOnError?: boolean;
|
122
|
+
exitOnErrorCallback?: (code: number) => void;
|
123
|
+
/**
|
124
|
+
* Use big buffer for big webpack logs
|
125
|
+
*/
|
126
|
+
biggerBuffer?: boolean;
|
127
|
+
hideOutput?: {
|
128
|
+
stdout?: boolean;
|
129
|
+
stderr?: boolean;
|
130
|
+
};
|
132
131
|
}
|
133
|
-
|
132
|
+
/**
|
133
|
+
* TODO IMPLEMENT
|
134
|
+
*/
|
135
|
+
function startAsync(command: string, options?: ProcessStartOptions & {
|
136
|
+
detach?: boolean;
|
137
|
+
}): Promise<void>;
|
138
|
+
/**
|
139
|
+
* TODO IMPLEMENT
|
140
|
+
*/
|
141
|
+
function startSync(command: string, options?: ProcessStartOptions): void;
|
142
|
+
const getBashOrShellName: () => "cmd" | "powershell" | "gitbash" | "cygwin" | "unknown" | "bash" | "zsh" | "fish" | "sh";
|
134
143
|
}
|
135
144
|
export declare namespace UtilsString {
|
136
145
|
const kebabCaseNoSplitNumbers: (input: string) => string;
|