tnp-core 16.5.22 → 16.6.0
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-imports.mjs +1 -3
- package/browser/esm2022/lib/core-models.mjs +88 -87
- package/browser/esm2022/lib/helpers-messages.mjs +11 -10
- package/browser/esm2022/lib/helpers.mjs +26 -27
- package/browser/esm2022/lib/progress-data.mjs +1 -1
- package/browser/esm2022/lib/utils.mjs +3 -3
- package/browser/fesm2022/tnp-core.mjs +123 -124
- package/browser/fesm2022/tnp-core.mjs.map +1 -1
- package/browser/lib/core-models.d.ts +250 -125
- package/browser/lib/helpers.d.ts +4 -4
- package/browser/lib/progress-data.d.ts +3 -3
- package/browser/lib/utils.d.ts +4 -4
- package/cli.backend.js +3 -3
- package/client/README.md +24 -24
- package/client/esm2022/lib/core-imports.mjs +1 -3
- package/client/esm2022/lib/core-models.mjs +88 -87
- package/client/esm2022/lib/helpers-messages.mjs +11 -10
- package/client/esm2022/lib/helpers.mjs +26 -27
- package/client/esm2022/lib/progress-data.mjs +1 -1
- package/client/esm2022/lib/utils.mjs +3 -3
- package/client/fesm2022/tnp-core.mjs +123 -124
- package/client/fesm2022/tnp-core.mjs.map +1 -1
- package/client/lib/core-models.d.ts +250 -125
- package/client/lib/helpers.d.ts +4 -4
- package/client/lib/progress-data.d.ts +3 -3
- package/client/lib/utils.d.ts +4 -4
- package/client/package.json +36 -33
- package/lib/core-imports.d.ts +1 -2
- package/lib/core-imports.js +1 -4
- package/lib/core-imports.js.map +1 -1
- package/lib/core-models.d.ts +250 -124
- package/lib/core-models.js +92 -88
- package/lib/core-models.js.map +1 -1
- package/lib/helpers-messages.js +13 -37
- package/lib/helpers-messages.js.map +1 -1
- package/lib/helpers.d.ts +8 -8
- package/lib/helpers.js +18 -22
- 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.d.ts +3 -3
- package/lib/progress-data.js.map +1 -1
- package/lib/utils.d.ts +6 -6
- package/lib/utils.js +1 -1
- package/lib/utils.js.map +1 -1
- package/package.json +6 -3
- package/package.json_devDependencies.json +202 -202
- package/package.json_tnp.json5 +73 -70
- package/tmp-environment.json +40 -44
- package/websql/README.md +24 -24
- package/websql/esm2022/lib/core-imports.mjs +1 -3
- package/websql/esm2022/lib/core-models.mjs +88 -87
- package/websql/esm2022/lib/helpers-messages.mjs +11 -10
- package/websql/esm2022/lib/helpers.mjs +26 -27
- package/websql/esm2022/lib/progress-data.mjs +1 -1
- package/websql/esm2022/lib/utils.mjs +3 -3
- package/websql/fesm2022/tnp-core.mjs +123 -124
- package/websql/fesm2022/tnp-core.mjs.map +1 -1
- package/websql/lib/core-models.d.ts +250 -125
- package/websql/lib/helpers.d.ts +4 -4
- package/websql/lib/progress-data.d.ts +3 -3
- package/websql/lib/utils.d.ts +4 -4
@@ -1,135 +1,169 @@
|
|
1
1
|
// @ts-nocheck
|
2
|
-
export
|
3
|
-
|
4
|
-
|
2
|
+
export declare namespace CoreModels {
|
3
|
+
export type PROGRESS_DATA_TYPE = 'info' | 'error' | 'warning' | 'event';
|
4
|
+
export type EnvironmentName = 'local' | 'static' | 'dev' | 'stage' | 'prod' | 'online' | 'test' | 'qa' | 'custom';
|
5
|
+
export type PUSHTYPE = 'feat' | 'chore' | 'feature' | 'refactor' | 'perf' | 'styles' | 'ci' | 'build' | 'fix' | 'bugfix' | 'release' | 'docs';
|
6
|
+
export type UIFramework = 'bootstrap' | 'material' | 'ionic';
|
7
|
+
export type FrameworkVersion = 'v1' | 'v2' | 'v3' | 'v4' | 'v5' | 'v6' | 'v7' | 'v8' | 'v9';
|
8
|
+
export type CutableFileExt = 'scss' | 'css' | 'sass' | 'html' | 'ts';
|
9
|
+
export type ImageFileExtension = 'jpg' | 'jpeg' | 'png' | 'svg';
|
10
|
+
export type FileExtension = 'ts' | 'js' | 'json' | 'html' | ImageFileExtension | 'txt' | CutableFileExt;
|
11
|
+
export type HttpMethod = 'get' | 'post' | 'put' | 'delete' | 'patch' | 'head' | 'jsonp';
|
12
|
+
export type ParamType = 'Path' | 'Query' | 'Cookie' | 'Header' | 'Body';
|
13
|
+
export type TsUsage = 'import' | 'export';
|
14
|
+
export type LibType = 'unknow' | 'isomorphic-lib' | 'container' | 'docker' | 'vscode-ext' | 'chrome-ext' | 'unknow-npm-project';
|
15
|
+
export type NewFactoryType = LibType | 'model' | 'single-file-project';
|
16
|
+
export type CoreLibCategory = LibType | 'common';
|
17
|
+
export type FileEvent = 'created' | 'changed' | 'removed' | 'rename';
|
5
18
|
/**
|
6
|
-
*
|
19
|
+
* @deprecated
|
7
20
|
*/
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
21
|
+
export type OutFolder = 'dist' | 'browser';
|
22
|
+
export type DatabaseType = 'better-sqlite3' | 'mysql';
|
23
|
+
export interface UploadedBackendFile {
|
24
|
+
data: any;
|
25
|
+
encoding: string;
|
26
|
+
md5: string;
|
27
|
+
tempFilePath: string;
|
28
|
+
mimetype: ContentType;
|
29
|
+
mv: (path: any, callback: any) => any;
|
30
|
+
name: string;
|
31
|
+
truncated: boolean;
|
32
|
+
}
|
19
33
|
/**
|
20
|
-
*
|
34
|
+
* @deprecated
|
21
35
|
*/
|
22
|
-
|
23
|
-
|
24
|
-
|
36
|
+
export interface ExecuteOptions {
|
37
|
+
/** Extract string from line */
|
38
|
+
extractFromLine?: (string | Function)[];
|
39
|
+
/**
|
40
|
+
* Modify output line by line
|
41
|
+
*/
|
42
|
+
outputLineReplace?: (outputLine: string) => string;
|
43
|
+
resolvePromiseMsg?: {
|
44
|
+
stdout?: string | string[];
|
45
|
+
stderr?: string | string[];
|
46
|
+
};
|
47
|
+
prefix?: string;
|
48
|
+
detach?: boolean;
|
49
|
+
/**
|
50
|
+
* Try command again after fail after n miliseconds
|
51
|
+
*/
|
52
|
+
tryAgainWhenFailAfter?: number;
|
53
|
+
/**
|
54
|
+
* Use big buffer for big webpack logs
|
55
|
+
*/
|
56
|
+
biggerBuffer?: boolean;
|
57
|
+
exitOnError?: boolean;
|
58
|
+
exitOnErrorCallback?: (code: number) => void;
|
59
|
+
/**
|
60
|
+
* From displaying in console
|
61
|
+
*/
|
62
|
+
hideOutput?: {
|
63
|
+
stdout?: boolean;
|
64
|
+
stderr?: boolean;
|
65
|
+
};
|
66
|
+
}
|
25
67
|
/**
|
26
|
-
*
|
68
|
+
* @deprecated
|
27
69
|
*/
|
28
|
-
|
29
|
-
|
30
|
-
|
70
|
+
export interface RunOptions extends ExecuteOptions {
|
71
|
+
showCommand?: boolean;
|
72
|
+
/**
|
73
|
+
* Show process output
|
74
|
+
*/
|
75
|
+
output?: boolean;
|
76
|
+
silence?: boolean;
|
77
|
+
stdio?: any;
|
78
|
+
cwd?: string;
|
79
|
+
}
|
80
|
+
export const mimeTypes: {
|
81
|
+
readonly ".aac": "audio/aac";
|
82
|
+
readonly ".abw": "application/x-abiword";
|
83
|
+
readonly ".arc": "application/x-freearc";
|
84
|
+
readonly ".avi": "video/x-msvideo";
|
85
|
+
readonly ".azw": "application/vnd.amazon.ebook";
|
86
|
+
readonly ".bin": "application/octet-stream";
|
87
|
+
readonly ".bmp": "image/bmp";
|
88
|
+
readonly ".bz": "application/x-bzip";
|
89
|
+
readonly ".bz2": "application/x-bzip2";
|
90
|
+
readonly ".csh": "application/x-csh";
|
91
|
+
readonly ".css": "text/css";
|
92
|
+
readonly ".csv": "text/csv";
|
93
|
+
readonly ".doc": "application/msword";
|
94
|
+
readonly ".docx": "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
95
|
+
readonly ".eot": "application/vnd.ms-fontobject";
|
96
|
+
readonly ".epub": "application/epub+zip";
|
97
|
+
readonly ".gz": "application/gzip";
|
98
|
+
readonly ".gif": "image/gif";
|
99
|
+
readonly ".htm": "text/html";
|
100
|
+
readonly ".html": "text/html";
|
101
|
+
readonly ".ico": "image/vnd.microsoft.icon";
|
102
|
+
readonly ".ics": "text/calendar";
|
103
|
+
readonly ".jar": "application/java-archive";
|
104
|
+
readonly ".jpeg": "image/jpeg";
|
105
|
+
readonly ".jpg": "image/jpeg";
|
106
|
+
readonly ".js": "text/javascript";
|
107
|
+
readonly ".json": "application/json";
|
108
|
+
readonly ".jsonld": "application/ld+json";
|
109
|
+
readonly ".mid": "application/midi";
|
110
|
+
readonly ".midi": "application/midi";
|
111
|
+
readonly ".mjs": "text/javascript";
|
112
|
+
readonly ".mp3": "audio/mpeg";
|
113
|
+
readonly ".mp4": "video/mp4";
|
114
|
+
readonly ".mpeg": "video/mpeg";
|
115
|
+
readonly ".mpkg": "application/vnd.apple.installer+xml";
|
116
|
+
readonly ".odp": "application/vnd.oasis.opendocument.presentation";
|
117
|
+
readonly ".ods": "application/vnd.oasis.opendocument.spreadsheet";
|
118
|
+
readonly ".odt": "application/vnd.oasis.opendocument.text";
|
119
|
+
readonly ".oga": "audio/ogg";
|
120
|
+
readonly ".ogg": "audio/ogg";
|
121
|
+
readonly ".ogv": "video/ogg";
|
122
|
+
readonly ".ogx": "application/ogg";
|
123
|
+
readonly ".opus": "audio/opus";
|
124
|
+
readonly ".otf": "font/otf";
|
125
|
+
readonly ".png": "image/png";
|
126
|
+
readonly ".pdf": "application/pdf";
|
127
|
+
readonly ".php": "application/php";
|
128
|
+
readonly ".ppt": "application/vnd.ms-powerpoint";
|
129
|
+
readonly ".pptx": "application/vnd.openxmlformats-officedocument.presentationml.presentation";
|
130
|
+
readonly ".rar": "application/vnd.rar";
|
131
|
+
readonly ".rtf": "application/rtf";
|
132
|
+
readonly ".sh": "application/x-sh";
|
133
|
+
readonly ".svg": "image/svg+xml";
|
134
|
+
readonly ".swf": "application/x-shockwave-flash";
|
135
|
+
readonly ".tar": "application/x-tar";
|
136
|
+
readonly ".tif": "image/tiff";
|
137
|
+
readonly ".tiff": "image/tiff";
|
138
|
+
readonly ".ts": "video/mp2t";
|
139
|
+
readonly ".ttf": "font/ttf";
|
140
|
+
readonly ".txt": "text/plain";
|
141
|
+
readonly ".vsd": "application/vnd.visio";
|
142
|
+
readonly ".wav": "audio/wav";
|
143
|
+
readonly ".weba": "audio/webm";
|
144
|
+
readonly ".webm": "video/webm";
|
145
|
+
readonly ".webp": "image/webp";
|
146
|
+
readonly ".woff": "font/woff";
|
147
|
+
readonly ".woff2": "font/woff2";
|
148
|
+
readonly ".xhtml": "application/xhtml+xml";
|
149
|
+
readonly ".xls": "application/vnd.ms-excel";
|
150
|
+
readonly ".xlsx": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
|
151
|
+
readonly ".xml": "application/xml";
|
152
|
+
readonly ".xul": "application/vnd.mozilla.xul+xml";
|
153
|
+
readonly ".zip": "application/zip";
|
154
|
+
readonly ".3gp": "video/3gpp";
|
155
|
+
readonly ".3g2": "video/3gpp2";
|
156
|
+
readonly ".7z": "application/x-7z-compressed";
|
31
157
|
};
|
32
|
-
|
33
|
-
export
|
34
|
-
showCommand?: boolean;
|
158
|
+
export type ContentTypeKeys = keyof typeof mimeTypes;
|
159
|
+
export type ContentType = typeof mimeTypes[ContentTypeKeys] | 'multipart/form-data';
|
35
160
|
/**
|
36
|
-
*
|
161
|
+
* https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types
|
37
162
|
*/
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
}
|
43
|
-
export type PROGRESS_DATA_TYPE = 'info' | 'error' | 'warning' | 'event';
|
44
|
-
export declare const mimeTypes: {
|
45
|
-
readonly ".aac": "audio/aac";
|
46
|
-
readonly ".abw": "application/x-abiword";
|
47
|
-
readonly ".arc": "application/x-freearc";
|
48
|
-
readonly ".avi": "video/x-msvideo";
|
49
|
-
readonly ".azw": "application/vnd.amazon.ebook";
|
50
|
-
readonly ".bin": "application/octet-stream";
|
51
|
-
readonly ".bmp": "image/bmp";
|
52
|
-
readonly ".bz": "application/x-bzip";
|
53
|
-
readonly ".bz2": "application/x-bzip2";
|
54
|
-
readonly ".csh": "application/x-csh";
|
55
|
-
readonly ".css": "text/css";
|
56
|
-
readonly ".csv": "text/csv";
|
57
|
-
readonly ".doc": "application/msword";
|
58
|
-
readonly ".docx": "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
59
|
-
readonly ".eot": "application/vnd.ms-fontobject";
|
60
|
-
readonly ".epub": "application/epub+zip";
|
61
|
-
readonly ".gz": "application/gzip";
|
62
|
-
readonly ".gif": "image/gif";
|
63
|
-
readonly ".htm": "text/html";
|
64
|
-
readonly ".html": "text/html";
|
65
|
-
readonly ".ico": "image/vnd.microsoft.icon";
|
66
|
-
readonly ".ics": "text/calendar";
|
67
|
-
readonly ".jar": "application/java-archive";
|
68
|
-
readonly ".jpeg": "image/jpeg";
|
69
|
-
readonly ".jpg": "image/jpeg";
|
70
|
-
readonly ".js": "text/javascript";
|
71
|
-
readonly ".json": "application/json";
|
72
|
-
readonly ".jsonld": "application/ld+json";
|
73
|
-
readonly ".mid": "application/midi";
|
74
|
-
readonly ".midi": "application/midi";
|
75
|
-
readonly ".mjs": "text/javascript";
|
76
|
-
readonly ".mp3": "audio/mpeg";
|
77
|
-
readonly ".mp4": "video/mp4";
|
78
|
-
readonly ".mpeg": "video/mpeg";
|
79
|
-
readonly ".mpkg": "application/vnd.apple.installer+xml";
|
80
|
-
readonly ".odp": "application/vnd.oasis.opendocument.presentation";
|
81
|
-
readonly ".ods": "application/vnd.oasis.opendocument.spreadsheet";
|
82
|
-
readonly ".odt": "application/vnd.oasis.opendocument.text";
|
83
|
-
readonly ".oga": "audio/ogg";
|
84
|
-
readonly ".ogg": "audio/ogg";
|
85
|
-
readonly ".ogv": "video/ogg";
|
86
|
-
readonly ".ogx": "application/ogg";
|
87
|
-
readonly ".opus": "audio/opus";
|
88
|
-
readonly ".otf": "font/otf";
|
89
|
-
readonly ".png": "image/png";
|
90
|
-
readonly ".pdf": "application/pdf";
|
91
|
-
readonly ".php": "application/php";
|
92
|
-
readonly ".ppt": "application/vnd.ms-powerpoint";
|
93
|
-
readonly ".pptx": "application/vnd.openxmlformats-officedocument.presentationml.presentation";
|
94
|
-
readonly ".rar": "application/vnd.rar";
|
95
|
-
readonly ".rtf": "application/rtf";
|
96
|
-
readonly ".sh": "application/x-sh";
|
97
|
-
readonly ".svg": "image/svg+xml";
|
98
|
-
readonly ".swf": "application/x-shockwave-flash";
|
99
|
-
readonly ".tar": "application/x-tar";
|
100
|
-
readonly ".tif": "image/tiff";
|
101
|
-
readonly ".tiff": "image/tiff";
|
102
|
-
readonly ".ts": "video/mp2t";
|
103
|
-
readonly ".ttf": "font/ttf";
|
104
|
-
readonly ".txt": "text/plain";
|
105
|
-
readonly ".vsd": "application/vnd.visio";
|
106
|
-
readonly ".wav": "audio/wav";
|
107
|
-
readonly ".weba": "audio/webm";
|
108
|
-
readonly ".webm": "video/webm";
|
109
|
-
readonly ".webp": "image/webp";
|
110
|
-
readonly ".woff": "font/woff";
|
111
|
-
readonly ".woff2": "font/woff2";
|
112
|
-
readonly ".xhtml": "application/xhtml+xml";
|
113
|
-
readonly ".xls": "application/vnd.ms-excel";
|
114
|
-
readonly ".xlsx": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
|
115
|
-
readonly ".xml": "application/xml";
|
116
|
-
readonly ".xul": "application/vnd.mozilla.xul+xml";
|
117
|
-
readonly ".zip": "application/zip";
|
118
|
-
readonly ".3gp": "video/3gpp";
|
119
|
-
readonly ".3g2": "video/3gpp2";
|
120
|
-
readonly ".7z": "application/x-7z-compressed";
|
121
|
-
};
|
122
|
-
export type ContentTypeKeys = keyof typeof mimeTypes;
|
123
|
-
export type ContentType = typeof mimeTypes[ContentTypeKeys] | 'multipart/form-data';
|
124
|
-
/**
|
125
|
-
* https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types
|
126
|
-
*/
|
127
|
-
export type MediaType = 'text' | 'image' | 'audio' | 'font' | 'video' | 'application' | 'multipart' | 'message' | 'model';
|
128
|
-
export declare const MediaTypeAllArr: MediaType[];
|
129
|
-
type ContentType_ = ContentType;
|
130
|
-
export declare namespace Files {
|
131
|
-
type MimeType = keyof typeof mimeTypes;
|
132
|
-
const MimeTypesObj: {
|
163
|
+
export type MediaType = 'text' | 'image' | 'audio' | 'font' | 'video' | 'application' | 'multipart' | 'message' | 'model';
|
164
|
+
export const MediaTypeAllArr: MediaType[];
|
165
|
+
export type MimeType = keyof typeof mimeTypes;
|
166
|
+
export const MimeTypesObj: {
|
133
167
|
readonly ".aac": "audio/aac";
|
134
168
|
readonly ".abw": "application/x-abiword";
|
135
169
|
readonly ".arc": "application/x-freearc";
|
@@ -207,6 +241,97 @@ export declare namespace Files {
|
|
207
241
|
readonly ".3g2": "video/3gpp2";
|
208
242
|
readonly ".7z": "application/x-7z-compressed";
|
209
243
|
};
|
210
|
-
|
211
|
-
|
212
|
-
|
244
|
+
export interface ManifestIcon {
|
245
|
+
"src": string;
|
246
|
+
"sizes": string;
|
247
|
+
"type": string;
|
248
|
+
"purpose": string;
|
249
|
+
}
|
250
|
+
export interface PwaManifest {
|
251
|
+
"name": string;
|
252
|
+
"short_name": string;
|
253
|
+
"theme_color": string;
|
254
|
+
"background_color": string;
|
255
|
+
"display": "standalone";
|
256
|
+
"scope": string;
|
257
|
+
"start_url": string;
|
258
|
+
icons: ManifestIcon[];
|
259
|
+
}
|
260
|
+
export interface VSCodeSettings {
|
261
|
+
'files.exclude': {
|
262
|
+
[files: string]: boolean;
|
263
|
+
};
|
264
|
+
'workbench.colorTheme': 'Default Light+' | 'Kimbie Dark';
|
265
|
+
'workbench.colorCustomizations': {
|
266
|
+
'activityBar.background'?: string;
|
267
|
+
'activityBar.foreground'?: string;
|
268
|
+
'statusBar.background'?: string;
|
269
|
+
};
|
270
|
+
}
|
271
|
+
/**
|
272
|
+
* @deprecated
|
273
|
+
*/
|
274
|
+
export interface Position {
|
275
|
+
x: number;
|
276
|
+
y: number;
|
277
|
+
}
|
278
|
+
/**
|
279
|
+
* @deprecated
|
280
|
+
*/
|
281
|
+
export interface Size {
|
282
|
+
w: number;
|
283
|
+
h: number;
|
284
|
+
}
|
285
|
+
interface GlobalNpmDependency {
|
286
|
+
name: string;
|
287
|
+
installName?: string;
|
288
|
+
version?: string | number;
|
289
|
+
}
|
290
|
+
interface GlobalCommandLineProgramDependency {
|
291
|
+
name: string;
|
292
|
+
website: string;
|
293
|
+
version?: string;
|
294
|
+
}
|
295
|
+
export interface GlobalDependencies {
|
296
|
+
npm?: GlobalNpmDependency[];
|
297
|
+
programs?: GlobalCommandLineProgramDependency[];
|
298
|
+
}
|
299
|
+
interface AngularCompilerOptions {
|
300
|
+
fullTemplateTypeCheck: boolean;
|
301
|
+
strictInjectionParameters: boolean;
|
302
|
+
compilationMode: string;
|
303
|
+
preserveSymlinks: boolean;
|
304
|
+
enableIvy: boolean;
|
305
|
+
}
|
306
|
+
interface CompilerOptions {
|
307
|
+
baseUrl: string;
|
308
|
+
outDir: string;
|
309
|
+
sourceMap: boolean;
|
310
|
+
declaration: boolean;
|
311
|
+
strictNullChecks: boolean;
|
312
|
+
downlevelIteration: boolean;
|
313
|
+
experimentalDecorators: boolean;
|
314
|
+
emitDecoratorMetadata: boolean;
|
315
|
+
esModuleInterop: boolean;
|
316
|
+
module: string;
|
317
|
+
moduleResolution: string;
|
318
|
+
importHelpers: boolean;
|
319
|
+
skipLibCheck: boolean;
|
320
|
+
target: string;
|
321
|
+
typeRoots: string[];
|
322
|
+
types: string[];
|
323
|
+
lib: string[];
|
324
|
+
paths: {
|
325
|
+
[fullPackageName: string]: string[];
|
326
|
+
};
|
327
|
+
useDefineForClassFields: boolean;
|
328
|
+
}
|
329
|
+
export interface TsConfigJson {
|
330
|
+
extends: string;
|
331
|
+
exclude: string[];
|
332
|
+
compileOnSave: boolean;
|
333
|
+
compilerOptions: CompilerOptions;
|
334
|
+
angularCompilerOptions: AngularCompilerOptions;
|
335
|
+
}
|
336
|
+
export {};
|
337
|
+
}
|
package/client/lib/helpers.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
// @ts-nocheck
|
2
2
|
import { HelpersMessages } from './helpers-messages';
|
3
|
-
import {
|
3
|
+
import { CoreModels } from './core-models';
|
4
4
|
export interface RunSyncOrAsyncOptions {
|
5
5
|
functionFn: Function;
|
6
6
|
context?: object;
|
@@ -18,7 +18,7 @@ export declare class HelpersCore extends HelpersMessages {
|
|
18
18
|
static get InstanceCore(): HelpersCore;
|
19
19
|
readonly bigMaxBuffer: number;
|
20
20
|
constructor();
|
21
|
-
mediaTypeFromSrc(src: string): MediaType;
|
21
|
+
mediaTypeFromSrc(src: string): CoreModels.MediaType;
|
22
22
|
/**
|
23
23
|
* check if function is class
|
24
24
|
*/
|
@@ -42,7 +42,7 @@ export declare class HelpersCore extends HelpersMessages {
|
|
42
42
|
* stringify to pretty json string
|
43
43
|
*/
|
44
44
|
stringify(inputObject: any): string;
|
45
|
-
runSyncOrAsync<FUNCTION_RETURN_TYPE = any>(fnOrOptions:
|
45
|
+
runSyncOrAsync<FUNCTION_RETURN_TYPE = any>(fnOrOptions: RunSyncOrAsyncOptions): Promise<FUNCTION_RETURN_TYPE>;
|
46
46
|
/**
|
47
47
|
* symlink may have existed or unexisted destiantion url
|
48
48
|
* @param destUrl M
|
@@ -65,7 +65,7 @@ export declare class HelpersCore extends HelpersMessages {
|
|
65
65
|
command(command: string): {};
|
66
66
|
wait(second: number): Promise<void>;
|
67
67
|
killProcess(byPid: number): void;
|
68
|
-
run(command: string, options?: RunOptions): {
|
68
|
+
run(command: string, options?: CoreModels.RunOptions): {
|
69
69
|
async(detach?: boolean, mockFun?: (stdoutCallback: (dataForStdout: any) => any, stdErrcCallback: (dataForStder: any) => any, shouldProcesBeDead?: () => boolean) => Promise<number> | number): any;
|
70
70
|
};
|
71
71
|
/**
|
@@ -1,12 +1,12 @@
|
|
1
1
|
// @ts-nocheck
|
2
|
-
import {
|
2
|
+
import { CoreModels } from './core-models';
|
3
3
|
export interface IPROGRESS_DATA {
|
4
4
|
/**
|
5
5
|
* How man percent of
|
6
6
|
*/
|
7
7
|
value?: number;
|
8
8
|
msg?: string;
|
9
|
-
type?: PROGRESS_DATA_TYPE;
|
9
|
+
type?: CoreModels.PROGRESS_DATA_TYPE;
|
10
10
|
date?: Date;
|
11
11
|
}
|
12
12
|
export declare class PROGRESS_DATA implements IPROGRESS_DATA {
|
@@ -14,6 +14,6 @@ export declare class PROGRESS_DATA implements IPROGRESS_DATA {
|
|
14
14
|
static resolveFrom(chunk: string, callbackOnFounded?: (json: PROGRESS_DATA) => any, checkSplit?: boolean): PROGRESS_DATA[];
|
15
15
|
value?: number;
|
16
16
|
msg?: string;
|
17
|
-
type: PROGRESS_DATA_TYPE;
|
17
|
+
type: CoreModels.PROGRESS_DATA_TYPE;
|
18
18
|
date?: Date;
|
19
19
|
}
|
package/client/lib/utils.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
// @ts-nocheck
|
2
|
-
import {
|
2
|
+
import { CoreModels } from "./core-models";
|
3
3
|
export declare namespace Utils {
|
4
4
|
enum DbBinaryFormatEnum {
|
5
5
|
Blob = "Blob",
|
@@ -23,7 +23,7 @@ export declare namespace Utils {
|
|
23
23
|
* @param contentType
|
24
24
|
* @returns
|
25
25
|
*/
|
26
|
-
function arrayBufferToBlob(buffer: ArrayBuffer, contentType: ContentType): Promise<Blob>;
|
26
|
+
function arrayBufferToBlob(buffer: ArrayBuffer, contentType: CoreModels.ContentType): Promise<Blob>;
|
27
27
|
/**
|
28
28
|
* This is for BROWSER ONLY
|
29
29
|
* @param blob
|
@@ -41,14 +41,14 @@ export declare namespace Utils {
|
|
41
41
|
* @param base64Data
|
42
42
|
* @returns
|
43
43
|
*/
|
44
|
-
function base64toBlob(base64Data: string, contentTypeOverride?: ContentType): Promise<Blob>;
|
44
|
+
function base64toBlob(base64Data: string, contentTypeOverride?: CoreModels.ContentType): Promise<Blob>;
|
45
45
|
function base64toDbBinaryFormat(text: string): Promise<DbBinaryFormat>;
|
46
46
|
function dbBinaryFormatToBase64(binaryFormat: DbBinaryFormat): Promise<string>;
|
47
47
|
function textToDbBinaryFormat(text: string): Promise<DbBinaryFormat>;
|
48
48
|
function dbBinaryFormatToText(binaryFormat: DbBinaryFormat): Promise<string>;
|
49
49
|
function fileToBlob(file: File): Promise<Blob>;
|
50
50
|
function blobToFile(blob: Blob, nameForFile?: string): Promise<File>;
|
51
|
-
function textToBlob(text: string, type?: ContentType): Promise<Blob>;
|
51
|
+
function textToBlob(text: string, type?: CoreModels.ContentType): Promise<Blob>;
|
52
52
|
function blobToText(blob: Blob): Promise<string>;
|
53
53
|
function textToFile(text: string, fileRelativePathOrName: string): Promise<File>;
|
54
54
|
function fileToText(file: File): Promise<string>;
|
package/client/package.json
CHANGED
@@ -43,7 +43,10 @@
|
|
43
43
|
"nodts": false,
|
44
44
|
"obscure": false,
|
45
45
|
"ugly": false,
|
46
|
-
"includeNodeModules": false
|
46
|
+
"includeNodeModules": false,
|
47
|
+
"cliBuildNoDts": false,
|
48
|
+
"cliBuildObscure": false,
|
49
|
+
"cliBuildIncludeNodeModules": false
|
47
50
|
},
|
48
51
|
"smartContainerTarget": "",
|
49
52
|
"type": "isomorphic-lib",
|
@@ -163,8 +166,8 @@
|
|
163
166
|
"angular-material-css-vars": "5.0.2",
|
164
167
|
"angular-resize-event": "3.2.0",
|
165
168
|
"animate.css": "4.1.1 ",
|
166
|
-
"any-project-cli": "~16.5.
|
167
|
-
"background-worker-process": "~16.5.
|
169
|
+
"any-project-cli": "~16.5.14",
|
170
|
+
"background-worker-process": "~16.5.15",
|
168
171
|
"base32": "0.0.7",
|
169
172
|
"bcryptjs": "2.4.3",
|
170
173
|
"better-sqlite3": "7.6.2",
|
@@ -206,13 +209,13 @@
|
|
206
209
|
"file-saver": "2.0.5",
|
207
210
|
"file-type": "18.5.0",
|
208
211
|
"firedev": "^16",
|
209
|
-
"firedev-crud": "~16.5.
|
210
|
-
"firedev-crud-deamon": "~16.5.
|
211
|
-
"firedev-ports": "~16.5.
|
212
|
-
"firedev-storage": "~16.5.
|
213
|
-
"firedev-type-sql": "~16.5.
|
214
|
-
"firedev-typeorm": "~16.5.
|
215
|
-
"firedev-ui": "~16.5.
|
212
|
+
"firedev-crud": "~16.5.15",
|
213
|
+
"firedev-crud-deamon": "~16.5.14",
|
214
|
+
"firedev-ports": "~16.5.15",
|
215
|
+
"firedev-storage": "~16.5.13",
|
216
|
+
"firedev-type-sql": "~16.5.13",
|
217
|
+
"firedev-typeorm": "~16.5.15",
|
218
|
+
"firedev-ui": "~16.5.14",
|
216
219
|
"font-awesome": "4.7.0",
|
217
220
|
"form-data": "4.0.0",
|
218
221
|
"fuzzy": "0.1.3",
|
@@ -226,10 +229,10 @@
|
|
226
229
|
"image-focus": "1.2.1",
|
227
230
|
"immer": "10.0.2",
|
228
231
|
"immutable": "4.3.0",
|
229
|
-
"incremental-compiler": "~16.5.
|
232
|
+
"incremental-compiler": "~16.5.24",
|
230
233
|
"inquirer": "7.3.3",
|
231
234
|
"inquirer-autocomplete-prompt": "1.3.0",
|
232
|
-
"isomorphic-region-loader": "~16.5.
|
235
|
+
"isomorphic-region-loader": "~16.5.14",
|
233
236
|
"istanbul-instrumenter-loader": "2.0.0",
|
234
237
|
"jest": "29.5.0",
|
235
238
|
"jest-date-mock": "1.0.8",
|
@@ -240,29 +243,29 @@
|
|
240
243
|
"joi": "17.9.2",
|
241
244
|
"jscodeshift": "0.6.3",
|
242
245
|
"json-stringify-safe": "5.0.1",
|
243
|
-
"json10": "~16.5.
|
244
|
-
"json10-writer": "~16.5.
|
246
|
+
"json10": "~16.5.13",
|
247
|
+
"json10-writer": "~16.5.14",
|
245
248
|
"json5-writer": "0.2.0",
|
246
249
|
"jszip": "3.10.1",
|
247
250
|
"karma-cli": "1.0.1",
|
248
251
|
"lnk": "1.0.1",
|
249
252
|
"localforage": "1.10.0",
|
250
253
|
"lockfile": "1.0.4",
|
251
|
-
"lodash-walk-object": "~16.5.
|
254
|
+
"lodash-walk-object": "~16.5.13",
|
252
255
|
"lowdb": "1.0.0",
|
253
|
-
"magic-renamer": "~16.5.
|
256
|
+
"magic-renamer": "~16.5.13",
|
254
257
|
"material-design-icons": "3.0.1",
|
255
258
|
"method-override": "2.3.10",
|
256
259
|
"minimist": "1.2.0",
|
257
260
|
"mocha": "10.2.0",
|
258
|
-
"morphi": "~16.5.
|
261
|
+
"morphi": "~16.5.13",
|
259
262
|
"ng-for-track-by-property": "16.0.1",
|
260
263
|
"ng-in-viewport": "15.0.2",
|
261
264
|
"ng-lock": "16.0.1",
|
262
265
|
"ng-packagr": "16.0.1",
|
263
|
-
"ng-talkback": "~16.5.
|
264
|
-
"ng2-logger": "~16.5.
|
265
|
-
"ng2-rest": "~16.5.
|
266
|
+
"ng-talkback": "~16.5.14",
|
267
|
+
"ng2-logger": "~16.5.16",
|
268
|
+
"ng2-rest": "~16.5.13",
|
266
269
|
"ngx-ace-wrapper": "14.0.0",
|
267
270
|
"ngx-editor": "15.3.0",
|
268
271
|
"ngx-highlightjs": "9.0.0",
|
@@ -275,7 +278,7 @@
|
|
275
278
|
"ngx-scrolltop": "6.0.0",
|
276
279
|
"ngx-store": "3.1.1",
|
277
280
|
"ngx-typed-js": "2.1.1",
|
278
|
-
"node-cli-tester": "~16.5.
|
281
|
+
"node-cli-tester": "~16.5.14",
|
279
282
|
"node-localstorage": "2.1.6",
|
280
283
|
"node-notifier": "6.0.0",
|
281
284
|
"node-polyfill-webpack-plugin": "2.0.1",
|
@@ -298,7 +301,7 @@
|
|
298
301
|
"prompts": "0.1.8",
|
299
302
|
"rallax.js": "2.0.4",
|
300
303
|
"randomcolor": "0.5.3",
|
301
|
-
"record-replay-req-res-scenario": "~16.5.
|
304
|
+
"record-replay-req-res-scenario": "~16.5.14",
|
302
305
|
"reflect-metadata": "0.1.10",
|
303
306
|
"rxjs": "~7.8.0",
|
304
307
|
"semver": "6.3.0",
|
@@ -308,7 +311,7 @@
|
|
308
311
|
"socket.io": "2.4.1",
|
309
312
|
"sort-package-json": "1.11.0",
|
310
313
|
"sql.js": "1.8.0",
|
311
|
-
"static-columns": "~16.5.
|
314
|
+
"static-columns": "~16.5.17",
|
312
315
|
"string-similarity": "4.0.2",
|
313
316
|
"sudo-block": "3.0.0",
|
314
317
|
"supertest": "6.3.3",
|
@@ -316,12 +319,12 @@
|
|
316
319
|
"systeminformation": "3.45.7",
|
317
320
|
"task.js": "0.1.5",
|
318
321
|
"threads": "1.7.0",
|
319
|
-
"tnp-cli": "~16.5.
|
320
|
-
"tnp-config": "~16.5.
|
321
|
-
"tnp-core": "~16.5.
|
322
|
-
"tnp-db": "~16.5.
|
323
|
-
"tnp-helpers": "~16.5.
|
324
|
-
"tnp-models": "~16.5.
|
322
|
+
"tnp-cli": "~16.5.13",
|
323
|
+
"tnp-config": "~16.5.15",
|
324
|
+
"tnp-core": "~16.5.23",
|
325
|
+
"tnp-db": "~16.5.13",
|
326
|
+
"tnp-helpers": "~16.5.16",
|
327
|
+
"tnp-models": "~16.5.14",
|
325
328
|
"ts-debug": "1.3.0",
|
326
329
|
"ts-loader": "2.3.1",
|
327
330
|
"ts-node": "10.9.1",
|
@@ -330,13 +333,13 @@
|
|
330
333
|
"turndown": "7.1.2",
|
331
334
|
"typeorm": "~0.3.10",
|
332
335
|
"typescript": "~5.0.2",
|
333
|
-
"typescript-class-helpers": "~16.5.
|
336
|
+
"typescript-class-helpers": "~16.5.15",
|
334
337
|
"typescript-formatter": "~7.2.2",
|
335
338
|
"underscore": "1.9.1",
|
336
339
|
"uuid": "8.3.2",
|
337
340
|
"validator": "9.2.0",
|
338
341
|
"video.js": "8.3.0",
|
339
|
-
"vpn-split": "~16.5.
|
342
|
+
"vpn-split": "~16.5.15",
|
340
343
|
"watch": "1.0.2",
|
341
344
|
"yup": "1.1.1",
|
342
345
|
"zone.js": "~0.13.0"
|
@@ -344,6 +347,6 @@
|
|
344
347
|
"license": "MIT",
|
345
348
|
"private": false,
|
346
349
|
"name": "tnp-core",
|
347
|
-
"version": "16.
|
348
|
-
"lastBuildTagHash": "
|
350
|
+
"version": "16.6.0",
|
351
|
+
"lastBuildTagHash": "f76dd86356c017bf8a51b08d736f4c4f6e3fac68"
|
349
352
|
}
|
package/lib/core-imports.d.ts
CHANGED
@@ -5,7 +5,6 @@ import * as moment from 'moment';
|
|
5
5
|
import * as dateformat from 'dateformat';
|
6
6
|
import { Chalk } from 'chalk';
|
7
7
|
import * as json5 from 'json5';
|
8
|
-
import createCallsiteRecord from 'callsite-record';
|
9
8
|
import * as pathBase from 'path';
|
10
9
|
import * as os from 'os';
|
11
10
|
import * as child_process from 'child_process';
|
@@ -33,4 +32,4 @@ declare function win32Path(p: string): string;
|
|
33
32
|
*/
|
34
33
|
declare const crossPlatformPath: (pathStringOrPathParts: string | string[]) => string;
|
35
34
|
export { _, q, moment, dateformat, crossPlatformPath, win32Path, path, chalk, json5, $ };
|
36
|
-
export {
|
35
|
+
export { spawn, glob, isElevated, chokidar, mkdirp, ncp, fse, os, child_process, http, https, rimraf, net, ps, fkill, portfinder, psList, };
|