tnp-core 16.100.19 → 16.100.21
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/README.md +20 -20
- package/assets/shared/shared_folder_info.txt +1 -1
- package/browser/README.md +24 -24
- package/browser/esm2022/lib/core-config.mjs +4 -3
- package/browser/esm2022/lib/core-imports.mjs +35 -4
- package/browser/esm2022/lib/core-models.mjs +93 -80
- package/browser/esm2022/lib/framework-name.mjs +4 -3
- package/browser/esm2022/lib/helpers-isomorphic.mjs +13 -7
- package/browser/esm2022/lib/helpers-messages.mjs +13 -10
- package/browser/esm2022/lib/helpers.mjs +427 -153
- package/browser/esm2022/lib/index.mjs +1 -1
- package/browser/esm2022/lib/node-chalk-mock.mjs +1 -1
- package/browser/esm2022/lib/node-path-mock.mjs +21 -14
- package/browser/esm2022/lib/progress-data.mjs +4 -1
- package/browser/esm2022/lib/utils.mjs +17 -9
- package/browser/fesm2022/tnp-core.mjs +618 -271
- package/browser/fesm2022/tnp-core.mjs.map +1 -1
- package/browser/lib/core-imports.d.ts +1 -1
- package/browser/lib/core-models.d.ts +175 -165
- package/browser/lib/helpers.d.ts +21 -3
- package/browser/lib/utils.d.ts +1 -1
- package/cli.backend.js +3 -3
- package/client/README.md +24 -24
- package/client/esm2022/lib/core-config.mjs +4 -3
- package/client/esm2022/lib/core-imports.mjs +35 -4
- package/client/esm2022/lib/core-models.mjs +93 -80
- package/client/esm2022/lib/framework-name.mjs +4 -3
- package/client/esm2022/lib/helpers-isomorphic.mjs +13 -7
- package/client/esm2022/lib/helpers-messages.mjs +13 -10
- package/client/esm2022/lib/helpers.mjs +427 -153
- package/client/esm2022/lib/index.mjs +1 -1
- package/client/esm2022/lib/node-chalk-mock.mjs +1 -1
- package/client/esm2022/lib/node-path-mock.mjs +21 -14
- package/client/esm2022/lib/progress-data.mjs +4 -1
- package/client/esm2022/lib/utils.mjs +17 -9
- package/client/fesm2022/tnp-core.mjs +618 -271
- package/client/fesm2022/tnp-core.mjs.map +1 -1
- package/client/lib/core-imports.d.ts +1 -1
- package/client/lib/core-models.d.ts +175 -165
- package/client/lib/helpers.d.ts +21 -3
- package/client/lib/utils.d.ts +1 -1
- package/client/package.json +50 -39
- package/firedev.jsonc +69 -73
- package/lib/core-config.js +2 -2
- package/lib/core-config.js.map +1 -1
- package/lib/core-imports.d.ts +3 -5
- package/lib/core-imports.js +7 -8
- package/lib/core-imports.js.map +1 -1
- package/lib/core-models.d.ts +175 -165
- package/lib/core-models.js +92 -79
- package/lib/core-models.js.map +1 -1
- package/lib/framework-name.js +5 -4
- package/lib/framework-name.js.map +1 -1
- package/lib/helpers-isomorphic.js +12 -6
- package/lib/helpers-isomorphic.js.map +1 -1
- package/lib/helpers-messages.js +31 -18
- package/lib/helpers-messages.js.map +1 -1
- package/lib/helpers.d.ts +26 -11
- package/lib/helpers.js +268 -124
- package/lib/helpers.js.map +1 -1
- package/lib/node-chalk-mock.js +3 -3
- package/lib/node-path-mock.js +3 -3
- package/lib/progress-data.js.map +1 -1
- package/lib/utils.d.ts +1 -1
- package/lib/utils.js +12 -10
- package/lib/utils.js.map +1 -1
- package/package.json +2 -2
- package/tmp-environment.json +54 -43
- package/websql/README.md +24 -24
- package/websql/esm2022/lib/core-config.mjs +4 -3
- package/websql/esm2022/lib/core-imports.mjs +35 -4
- package/websql/esm2022/lib/core-models.mjs +93 -80
- package/websql/esm2022/lib/framework-name.mjs +4 -3
- package/websql/esm2022/lib/helpers-isomorphic.mjs +13 -7
- package/websql/esm2022/lib/helpers-messages.mjs +13 -10
- package/websql/esm2022/lib/helpers.mjs +427 -155
- package/websql/esm2022/lib/index.mjs +1 -1
- package/websql/esm2022/lib/node-chalk-mock.mjs +1 -1
- package/websql/esm2022/lib/node-path-mock.mjs +21 -14
- package/websql/esm2022/lib/progress-data.mjs +4 -1
- package/websql/esm2022/lib/utils.mjs +17 -9
- package/websql/fesm2022/tnp-core.mjs +618 -273
- package/websql/fesm2022/tnp-core.mjs.map +1 -1
- package/websql/lib/core-imports.d.ts +1 -1
- package/websql/lib/core-models.d.ts +175 -165
- package/websql/lib/helpers.d.ts +21 -3
- package/websql/lib/utils.d.ts +1 -1
@@ -13,4 +13,4 @@ declare function win32Path(p: string): any;
|
|
13
13
|
* This funciton will replace // to /
|
14
14
|
*/
|
15
15
|
declare const crossPlatformPath: (pathStringOrPathParts: string | string[]) => string;
|
16
|
-
export { _, q, moment, dateformat, crossPlatformPath, win32Path, path, chalk, json5,
|
16
|
+
export { _, q, moment, dateformat, crossPlatformPath, win32Path, path, chalk, json5, $, };
|
@@ -12,7 +12,9 @@ export declare namespace CoreModels {
|
|
12
12
|
export type HttpMethod = 'get' | 'post' | 'put' | 'delete' | 'patch' | 'head' | 'jsonp';
|
13
13
|
export type ParamType = 'Path' | 'Query' | 'Cookie' | 'Header' | 'Body';
|
14
14
|
export type TsUsage = 'import' | 'export';
|
15
|
-
export type
|
15
|
+
export type BaseProjectType = 'typescript' | 'angular' | 'angular-lib' | 'unknow' | 'unknow-npm-project';
|
16
|
+
export const BaseProjectTypeArr: string[];
|
17
|
+
export type LibType = BaseProjectType | 'isomorphic-lib' | 'container' | 'docker' | 'vscode-ext' | 'chrome-ext' | 'unknow-npm-project';
|
16
18
|
export type NewFactoryType = LibType | 'model' | 'single-file-project';
|
17
19
|
export type CoreLibCategory = LibType | 'common';
|
18
20
|
export type FileEvent = 'created' | 'changed' | 'removed' | 'rename';
|
@@ -51,6 +53,14 @@ export declare namespace CoreModels {
|
|
51
53
|
* Try command again after fail after n miliseconds
|
52
54
|
*/
|
53
55
|
tryAgainWhenFailAfter?: number;
|
56
|
+
/**
|
57
|
+
* TODO @LAST implement this
|
58
|
+
*
|
59
|
+
* Output from processe with this key
|
60
|
+
* will not be displayed twice when
|
61
|
+
* 2 processes are running at the same time
|
62
|
+
*/
|
63
|
+
similarProcessKey?: string;
|
54
64
|
/**
|
55
65
|
* Use big buffer for big webpack logs
|
56
66
|
*/
|
@@ -80,85 +90,85 @@ export declare namespace CoreModels {
|
|
80
90
|
cwd?: string;
|
81
91
|
}
|
82
92
|
export const mimeTypes: {
|
83
|
-
readonly
|
84
|
-
readonly
|
85
|
-
readonly
|
86
|
-
readonly
|
87
|
-
readonly
|
88
|
-
readonly
|
89
|
-
readonly
|
90
|
-
readonly
|
91
|
-
readonly
|
92
|
-
readonly
|
93
|
-
readonly
|
94
|
-
readonly
|
95
|
-
readonly
|
96
|
-
readonly
|
97
|
-
readonly
|
98
|
-
readonly
|
99
|
-
readonly
|
100
|
-
readonly
|
101
|
-
readonly
|
102
|
-
readonly
|
103
|
-
readonly
|
104
|
-
readonly
|
105
|
-
readonly
|
106
|
-
readonly
|
107
|
-
readonly
|
108
|
-
readonly
|
109
|
-
readonly
|
110
|
-
readonly
|
111
|
-
readonly
|
112
|
-
readonly
|
113
|
-
readonly
|
114
|
-
readonly
|
115
|
-
readonly
|
116
|
-
readonly
|
117
|
-
readonly
|
118
|
-
readonly
|
119
|
-
readonly
|
120
|
-
readonly
|
121
|
-
readonly
|
122
|
-
readonly
|
123
|
-
readonly
|
124
|
-
readonly
|
125
|
-
readonly
|
126
|
-
readonly
|
127
|
-
readonly
|
128
|
-
readonly
|
129
|
-
readonly
|
130
|
-
readonly
|
131
|
-
readonly
|
132
|
-
readonly
|
133
|
-
readonly
|
134
|
-
readonly
|
135
|
-
readonly
|
136
|
-
readonly
|
137
|
-
readonly
|
138
|
-
readonly
|
139
|
-
readonly
|
140
|
-
readonly
|
141
|
-
readonly
|
142
|
-
readonly
|
143
|
-
readonly
|
144
|
-
readonly
|
145
|
-
readonly
|
146
|
-
readonly
|
147
|
-
readonly
|
148
|
-
readonly
|
149
|
-
readonly
|
150
|
-
readonly
|
151
|
-
readonly
|
152
|
-
readonly
|
153
|
-
readonly
|
154
|
-
readonly
|
155
|
-
readonly
|
156
|
-
readonly
|
157
|
-
readonly
|
158
|
-
readonly
|
93
|
+
readonly '.aac': "audio/aac";
|
94
|
+
readonly '.abw': "application/x-abiword";
|
95
|
+
readonly '.arc': "application/x-freearc";
|
96
|
+
readonly '.avi': "video/x-msvideo";
|
97
|
+
readonly '.azw': "application/vnd.amazon.ebook";
|
98
|
+
readonly '.bin': "application/octet-stream";
|
99
|
+
readonly '.bmp': "image/bmp";
|
100
|
+
readonly '.bz': "application/x-bzip";
|
101
|
+
readonly '.bz2': "application/x-bzip2";
|
102
|
+
readonly '.csh': "application/x-csh";
|
103
|
+
readonly '.css': "text/css";
|
104
|
+
readonly '.csv': "text/csv";
|
105
|
+
readonly '.doc': "application/msword";
|
106
|
+
readonly '.docx': "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
107
|
+
readonly '.eot': "application/vnd.ms-fontobject";
|
108
|
+
readonly '.epub': "application/epub+zip";
|
109
|
+
readonly '.gz': "application/gzip";
|
110
|
+
readonly '.gif': "image/gif";
|
111
|
+
readonly '.htm': "text/html";
|
112
|
+
readonly '.html': "text/html";
|
113
|
+
readonly '.ico': "image/vnd.microsoft.icon";
|
114
|
+
readonly '.ics': "text/calendar";
|
115
|
+
readonly '.jar': "application/java-archive";
|
116
|
+
readonly '.jpeg': "image/jpeg";
|
117
|
+
readonly '.jpg': "image/jpeg";
|
118
|
+
readonly '.js': "text/javascript";
|
119
|
+
readonly '.json': "application/json";
|
120
|
+
readonly '.jsonld': "application/ld+json";
|
121
|
+
readonly '.mid': "application/midi";
|
122
|
+
readonly '.midi': "application/midi";
|
123
|
+
readonly '.mjs': "text/javascript";
|
124
|
+
readonly '.mp3': "audio/mpeg";
|
125
|
+
readonly '.mp4': "video/mp4";
|
126
|
+
readonly '.mpeg': "video/mpeg";
|
127
|
+
readonly '.mpkg': "application/vnd.apple.installer+xml";
|
128
|
+
readonly '.odp': "application/vnd.oasis.opendocument.presentation";
|
129
|
+
readonly '.ods': "application/vnd.oasis.opendocument.spreadsheet";
|
130
|
+
readonly '.odt': "application/vnd.oasis.opendocument.text";
|
131
|
+
readonly '.oga': "audio/ogg";
|
132
|
+
readonly '.ogg': "audio/ogg";
|
133
|
+
readonly '.ogv': "video/ogg";
|
134
|
+
readonly '.ogx': "application/ogg";
|
135
|
+
readonly '.opus': "audio/opus";
|
136
|
+
readonly '.otf': "font/otf";
|
137
|
+
readonly '.png': "image/png";
|
138
|
+
readonly '.pdf': "application/pdf";
|
139
|
+
readonly '.php': "application/php";
|
140
|
+
readonly '.ppt': "application/vnd.ms-powerpoint";
|
141
|
+
readonly '.pptx': "application/vnd.openxmlformats-officedocument.presentationml.presentation";
|
142
|
+
readonly '.rar': "application/vnd.rar";
|
143
|
+
readonly '.rtf': "application/rtf";
|
144
|
+
readonly '.sh': "application/x-sh";
|
145
|
+
readonly '.svg': "image/svg+xml";
|
146
|
+
readonly '.swf': "application/x-shockwave-flash";
|
147
|
+
readonly '.tar': "application/x-tar";
|
148
|
+
readonly '.tif': "image/tiff";
|
149
|
+
readonly '.tiff': "image/tiff";
|
150
|
+
readonly '.ts': "video/mp2t";
|
151
|
+
readonly '.ttf': "font/ttf";
|
152
|
+
readonly '.txt': "text/plain";
|
153
|
+
readonly '.vsd': "application/vnd.visio";
|
154
|
+
readonly '.wav': "audio/wav";
|
155
|
+
readonly '.weba': "audio/webm";
|
156
|
+
readonly '.webm': "video/webm";
|
157
|
+
readonly '.webp': "image/webp";
|
158
|
+
readonly '.woff': "font/woff";
|
159
|
+
readonly '.woff2': "font/woff2";
|
160
|
+
readonly '.xhtml': "application/xhtml+xml";
|
161
|
+
readonly '.xls': "application/vnd.ms-excel";
|
162
|
+
readonly '.xlsx': "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
|
163
|
+
readonly '.xml': "application/xml";
|
164
|
+
readonly '.xul': "application/vnd.mozilla.xul+xml";
|
165
|
+
readonly '.zip': "application/zip";
|
166
|
+
readonly '.3gp': "video/3gpp";
|
167
|
+
readonly '.3g2': "video/3gpp2";
|
168
|
+
readonly '.7z': "application/x-7z-compressed";
|
159
169
|
};
|
160
170
|
export type ContentTypeKeys = keyof typeof mimeTypes;
|
161
|
-
export type ContentType = typeof mimeTypes[ContentTypeKeys] | 'multipart/form-data';
|
171
|
+
export type ContentType = (typeof mimeTypes)[ContentTypeKeys] | 'multipart/form-data';
|
162
172
|
/**
|
163
173
|
* https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types
|
164
174
|
*/
|
@@ -166,97 +176,97 @@ export declare namespace CoreModels {
|
|
166
176
|
export const MediaTypeAllArr: MediaType[];
|
167
177
|
export type MimeType = keyof typeof mimeTypes;
|
168
178
|
export const MimeTypesObj: {
|
169
|
-
readonly
|
170
|
-
readonly
|
171
|
-
readonly
|
172
|
-
readonly
|
173
|
-
readonly
|
174
|
-
readonly
|
175
|
-
readonly
|
176
|
-
readonly
|
177
|
-
readonly
|
178
|
-
readonly
|
179
|
-
readonly
|
180
|
-
readonly
|
181
|
-
readonly
|
182
|
-
readonly
|
183
|
-
readonly
|
184
|
-
readonly
|
185
|
-
readonly
|
186
|
-
readonly
|
187
|
-
readonly
|
188
|
-
readonly
|
189
|
-
readonly
|
190
|
-
readonly
|
191
|
-
readonly
|
192
|
-
readonly
|
193
|
-
readonly
|
194
|
-
readonly
|
195
|
-
readonly
|
196
|
-
readonly
|
197
|
-
readonly
|
198
|
-
readonly
|
199
|
-
readonly
|
200
|
-
readonly
|
201
|
-
readonly
|
202
|
-
readonly
|
203
|
-
readonly
|
204
|
-
readonly
|
205
|
-
readonly
|
206
|
-
readonly
|
207
|
-
readonly
|
208
|
-
readonly
|
209
|
-
readonly
|
210
|
-
readonly
|
211
|
-
readonly
|
212
|
-
readonly
|
213
|
-
readonly
|
214
|
-
readonly
|
215
|
-
readonly
|
216
|
-
readonly
|
217
|
-
readonly
|
218
|
-
readonly
|
219
|
-
readonly
|
220
|
-
readonly
|
221
|
-
readonly
|
222
|
-
readonly
|
223
|
-
readonly
|
224
|
-
readonly
|
225
|
-
readonly
|
226
|
-
readonly
|
227
|
-
readonly
|
228
|
-
readonly
|
229
|
-
readonly
|
230
|
-
readonly
|
231
|
-
readonly
|
232
|
-
readonly
|
233
|
-
readonly
|
234
|
-
readonly
|
235
|
-
readonly
|
236
|
-
readonly
|
237
|
-
readonly
|
238
|
-
readonly
|
239
|
-
readonly
|
240
|
-
readonly
|
241
|
-
readonly
|
242
|
-
readonly
|
243
|
-
readonly
|
244
|
-
readonly
|
179
|
+
readonly '.aac': "audio/aac";
|
180
|
+
readonly '.abw': "application/x-abiword";
|
181
|
+
readonly '.arc': "application/x-freearc";
|
182
|
+
readonly '.avi': "video/x-msvideo";
|
183
|
+
readonly '.azw': "application/vnd.amazon.ebook";
|
184
|
+
readonly '.bin': "application/octet-stream";
|
185
|
+
readonly '.bmp': "image/bmp";
|
186
|
+
readonly '.bz': "application/x-bzip";
|
187
|
+
readonly '.bz2': "application/x-bzip2";
|
188
|
+
readonly '.csh': "application/x-csh";
|
189
|
+
readonly '.css': "text/css";
|
190
|
+
readonly '.csv': "text/csv";
|
191
|
+
readonly '.doc': "application/msword";
|
192
|
+
readonly '.docx': "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
193
|
+
readonly '.eot': "application/vnd.ms-fontobject";
|
194
|
+
readonly '.epub': "application/epub+zip";
|
195
|
+
readonly '.gz': "application/gzip";
|
196
|
+
readonly '.gif': "image/gif";
|
197
|
+
readonly '.htm': "text/html";
|
198
|
+
readonly '.html': "text/html";
|
199
|
+
readonly '.ico': "image/vnd.microsoft.icon";
|
200
|
+
readonly '.ics': "text/calendar";
|
201
|
+
readonly '.jar': "application/java-archive";
|
202
|
+
readonly '.jpeg': "image/jpeg";
|
203
|
+
readonly '.jpg': "image/jpeg";
|
204
|
+
readonly '.js': "text/javascript";
|
205
|
+
readonly '.json': "application/json";
|
206
|
+
readonly '.jsonld': "application/ld+json";
|
207
|
+
readonly '.mid': "application/midi";
|
208
|
+
readonly '.midi': "application/midi";
|
209
|
+
readonly '.mjs': "text/javascript";
|
210
|
+
readonly '.mp3': "audio/mpeg";
|
211
|
+
readonly '.mp4': "video/mp4";
|
212
|
+
readonly '.mpeg': "video/mpeg";
|
213
|
+
readonly '.mpkg': "application/vnd.apple.installer+xml";
|
214
|
+
readonly '.odp': "application/vnd.oasis.opendocument.presentation";
|
215
|
+
readonly '.ods': "application/vnd.oasis.opendocument.spreadsheet";
|
216
|
+
readonly '.odt': "application/vnd.oasis.opendocument.text";
|
217
|
+
readonly '.oga': "audio/ogg";
|
218
|
+
readonly '.ogg': "audio/ogg";
|
219
|
+
readonly '.ogv': "video/ogg";
|
220
|
+
readonly '.ogx': "application/ogg";
|
221
|
+
readonly '.opus': "audio/opus";
|
222
|
+
readonly '.otf': "font/otf";
|
223
|
+
readonly '.png': "image/png";
|
224
|
+
readonly '.pdf': "application/pdf";
|
225
|
+
readonly '.php': "application/php";
|
226
|
+
readonly '.ppt': "application/vnd.ms-powerpoint";
|
227
|
+
readonly '.pptx': "application/vnd.openxmlformats-officedocument.presentationml.presentation";
|
228
|
+
readonly '.rar': "application/vnd.rar";
|
229
|
+
readonly '.rtf': "application/rtf";
|
230
|
+
readonly '.sh': "application/x-sh";
|
231
|
+
readonly '.svg': "image/svg+xml";
|
232
|
+
readonly '.swf': "application/x-shockwave-flash";
|
233
|
+
readonly '.tar': "application/x-tar";
|
234
|
+
readonly '.tif': "image/tiff";
|
235
|
+
readonly '.tiff': "image/tiff";
|
236
|
+
readonly '.ts': "video/mp2t";
|
237
|
+
readonly '.ttf': "font/ttf";
|
238
|
+
readonly '.txt': "text/plain";
|
239
|
+
readonly '.vsd': "application/vnd.visio";
|
240
|
+
readonly '.wav': "audio/wav";
|
241
|
+
readonly '.weba': "audio/webm";
|
242
|
+
readonly '.webm': "video/webm";
|
243
|
+
readonly '.webp': "image/webp";
|
244
|
+
readonly '.woff': "font/woff";
|
245
|
+
readonly '.woff2': "font/woff2";
|
246
|
+
readonly '.xhtml': "application/xhtml+xml";
|
247
|
+
readonly '.xls': "application/vnd.ms-excel";
|
248
|
+
readonly '.xlsx': "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
|
249
|
+
readonly '.xml': "application/xml";
|
250
|
+
readonly '.xul': "application/vnd.mozilla.xul+xml";
|
251
|
+
readonly '.zip': "application/zip";
|
252
|
+
readonly '.3gp': "video/3gpp";
|
253
|
+
readonly '.3g2': "video/3gpp2";
|
254
|
+
readonly '.7z': "application/x-7z-compressed";
|
245
255
|
};
|
246
256
|
export interface ManifestIcon {
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
257
|
+
src: string;
|
258
|
+
sizes: string;
|
259
|
+
type: string;
|
260
|
+
purpose: string;
|
251
261
|
}
|
252
262
|
export interface PwaManifest {
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
263
|
+
name: string;
|
264
|
+
short_name: string;
|
265
|
+
theme_color: string;
|
266
|
+
background_color: string;
|
267
|
+
display: 'standalone';
|
268
|
+
scope: string;
|
269
|
+
start_url: string;
|
260
270
|
icons: ManifestIcon[];
|
261
271
|
}
|
262
272
|
export interface VSCodeSettings {
|
package/websql/lib/helpers.d.ts
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
import { HelpersMessages } from './helpers-messages';
|
3
3
|
import { CoreModels } from './core-models';
|
4
4
|
import { ipcRenderer, webFrame } from 'electron';
|
5
|
+
import type { ChildProcess } from 'child_process';
|
5
6
|
export interface RunSyncOrAsyncOptions {
|
6
7
|
functionFn: Function;
|
7
8
|
context?: object;
|
@@ -32,7 +33,7 @@ export declare class HelpersCore extends HelpersMessages {
|
|
32
33
|
* get electron backend ipc main proces
|
33
34
|
*/
|
34
35
|
get ipcMain(): any;
|
35
|
-
getElectronWindow({ allowRunningInsecureContent }?: {
|
36
|
+
getElectronWindow({ allowRunningInsecureContent, }?: {
|
36
37
|
allowRunningInsecureContent?: boolean;
|
37
38
|
}): any;
|
38
39
|
mediaTypeFromSrc(src: string): CoreModels.MediaType;
|
@@ -102,7 +103,24 @@ export declare class HelpersCore extends HelpersMessages {
|
|
102
103
|
}): Promise<any>;
|
103
104
|
killProcess(byPid: number): void;
|
104
105
|
run(command: string, options?: CoreModels.RunOptions): {
|
105
|
-
|
106
|
+
/**
|
107
|
+
* start command as synchronous nodej proces
|
108
|
+
*/
|
109
|
+
sync(): any;
|
110
|
+
/**
|
111
|
+
* start command as asynchronous nodej proces
|
112
|
+
* @param detach (default: false) - if true process will be detached
|
113
|
+
*/
|
114
|
+
async(detach?: boolean, mockFun?: (stdoutCallback: (dataForStdout: any) => any, stdErrcCallback: (dataForStder: any) => any, shouldProcesBeDead?: () => boolean) => Promise<number> | number): ChildProcess;
|
115
|
+
/**
|
116
|
+
* start command as asynchronous nodej proces inside promise
|
117
|
+
*/
|
118
|
+
asyncAsPromise(): Promise<void>;
|
119
|
+
/**
|
120
|
+
* start command as asynchronous nodej proces inside promise
|
121
|
+
* and wait until output contains some string
|
122
|
+
*/
|
123
|
+
unitlOutputContains(stdoutMsg: string | string[], stderMsg?: string | string[], timeout?: number, stdoutOutputContainsCallback?: () => any): any;
|
106
124
|
};
|
107
125
|
questionYesNo(message: string, callbackTrue?: () => any, callbackFalse?: () => any, defaultValue?: boolean,
|
108
126
|
/**
|
@@ -114,6 +132,6 @@ export declare class HelpersCore extends HelpersMessages {
|
|
114
132
|
* @deprecated
|
115
133
|
*/
|
116
134
|
values(obj: any): any[];
|
117
|
-
replaceLinesInFile(absoluteFilePath: string |
|
135
|
+
replaceLinesInFile(absoluteFilePath: string | string[], lineReplaceFn: (line: string) => string): void;
|
118
136
|
hideNodeWarnings(): void;
|
119
137
|
}
|
package/websql/lib/utils.d.ts
CHANGED