tnp-core 18.0.37 → 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/utils.mjs +51 -8
- package/browser/fesm2022/tnp-core.mjs +51 -8
- package/browser/fesm2022/tnp-core.mjs.map +1 -1
- package/browser/lib/utils.d.ts +50 -43
- package/cli.backend.js +2 -2
- package/client/esm2022/lib/utils.mjs +51 -8
- package/client/fesm2022/tnp-core.mjs +51 -8
- package/client/fesm2022/tnp-core.mjs.map +1 -1
- package/client/lib/utils.d.ts +50 -43
- package/lib/node-chalk-mock.js +2 -2
- package/lib/node-path-mock.js +2 -2
- package/lib/utils.d.ts +50 -43
- package/lib/utils.js +57 -13
- package/lib/utils.js.map +1 -1
- package/package.json +2 -2
- package/tmp-environment.json +30 -29
- package/websql/esm2022/lib/utils.mjs +51 -8
- package/websql/fesm2022/tnp-core.mjs +51 -8
- package/websql/fesm2022/tnp-core.mjs.map +1 -1
- package/websql/lib/utils.d.ts +50 -43
package/websql/lib/utils.d.ts
CHANGED
@@ -83,56 +83,63 @@ export declare namespace Utils {
|
|
83
83
|
*/
|
84
84
|
function numValue(pixelsCss: string | number): number;
|
85
85
|
}
|
86
|
-
export
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
*/
|
101
|
-
stdout?: string | string[];
|
102
|
-
/**
|
103
|
-
* unitil this string is in output of stderr
|
104
|
-
*/
|
105
|
-
stderr?: string | string[];
|
106
|
-
/**
|
107
|
-
* by default only resolve when exit code is 0
|
108
|
-
*/
|
109
|
-
resolveAfterAnyExitCode?: boolean;
|
110
|
-
};
|
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?: {
|
111
100
|
/**
|
112
|
-
*
|
101
|
+
* unitil this string is in output of stdout
|
113
102
|
*/
|
114
|
-
|
103
|
+
stdout?: string | string[];
|
115
104
|
/**
|
116
|
-
*
|
105
|
+
* unitil this string is in output of stderr
|
117
106
|
*/
|
118
|
-
|
119
|
-
askToTryAgainOnError?: boolean;
|
120
|
-
exitOnErrorCallback?: (code: number) => void;
|
107
|
+
stderr?: string | string[];
|
121
108
|
/**
|
122
|
-
*
|
109
|
+
* by default only resolve when exit code is 0
|
123
110
|
*/
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
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
|
+
};
|
134
131
|
}
|
135
|
-
|
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";
|
136
143
|
}
|
137
144
|
export declare namespace UtilsString {
|
138
145
|
const kebabCaseNoSplitNumbers: (input: string) => string;
|