tnp-core 16.100.20 → 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 -81
- 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 +288 -25
- 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 +479 -144
- 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 +172 -164
- package/browser/lib/helpers.d.ts +4 -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 -81
- 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 +288 -25
- 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 +479 -144
- 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 +172 -164
- package/client/lib/helpers.d.ts +4 -3
- package/client/lib/utils.d.ts +1 -1
- package/client/package.json +41 -30
- 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 +172 -164
- package/lib/core-models.js +92 -80
- 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 +11 -10
- package/lib/helpers.js +247 -116
- 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 +45 -34
- 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 -81
- 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 +288 -27
- 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 +479 -146
- 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 +172 -164
- package/websql/lib/helpers.d.ts +4 -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, $, };
|
@@ -53,6 +53,14 @@ export declare namespace CoreModels {
|
|
53
53
|
* Try command again after fail after n miliseconds
|
54
54
|
*/
|
55
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;
|
56
64
|
/**
|
57
65
|
* Use big buffer for big webpack logs
|
58
66
|
*/
|
@@ -82,85 +90,85 @@ export declare namespace CoreModels {
|
|
82
90
|
cwd?: string;
|
83
91
|
}
|
84
92
|
export const mimeTypes: {
|
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
|
159
|
-
readonly
|
160
|
-
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";
|
161
169
|
};
|
162
170
|
export type ContentTypeKeys = keyof typeof mimeTypes;
|
163
|
-
export type ContentType = typeof mimeTypes[ContentTypeKeys] | 'multipart/form-data';
|
171
|
+
export type ContentType = (typeof mimeTypes)[ContentTypeKeys] | 'multipart/form-data';
|
164
172
|
/**
|
165
173
|
* https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types
|
166
174
|
*/
|
@@ -168,97 +176,97 @@ export declare namespace CoreModels {
|
|
168
176
|
export const MediaTypeAllArr: MediaType[];
|
169
177
|
export type MimeType = keyof typeof mimeTypes;
|
170
178
|
export const MimeTypesObj: {
|
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
|
245
|
-
readonly
|
246
|
-
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";
|
247
255
|
};
|
248
256
|
export interface ManifestIcon {
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
257
|
+
src: string;
|
258
|
+
sizes: string;
|
259
|
+
type: string;
|
260
|
+
purpose: string;
|
253
261
|
}
|
254
262
|
export interface PwaManifest {
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
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;
|
262
270
|
icons: ManifestIcon[];
|
263
271
|
}
|
264
272
|
export interface VSCodeSettings {
|
package/browser/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;
|
@@ -110,7 +111,7 @@ export declare class HelpersCore extends HelpersMessages {
|
|
110
111
|
* start command as asynchronous nodej proces
|
111
112
|
* @param detach (default: false) - if true process will be detached
|
112
113
|
*/
|
113
|
-
async(detach?: boolean, mockFun?: (stdoutCallback: (dataForStdout: any) => any, stdErrcCallback: (dataForStder: any) => any, shouldProcesBeDead?: () => boolean) => Promise<number> | number):
|
114
|
+
async(detach?: boolean, mockFun?: (stdoutCallback: (dataForStdout: any) => any, stdErrcCallback: (dataForStder: any) => any, shouldProcesBeDead?: () => boolean) => Promise<number> | number): ChildProcess;
|
114
115
|
/**
|
115
116
|
* start command as asynchronous nodej proces inside promise
|
116
117
|
*/
|
@@ -131,6 +132,6 @@ export declare class HelpersCore extends HelpersMessages {
|
|
131
132
|
* @deprecated
|
132
133
|
*/
|
133
134
|
values(obj: any): any[];
|
134
|
-
replaceLinesInFile(absoluteFilePath: string |
|
135
|
+
replaceLinesInFile(absoluteFilePath: string | string[], lineReplaceFn: (line: string) => string): void;
|
135
136
|
hideNodeWarnings(): void;
|
136
137
|
}
|
package/browser/lib/utils.d.ts
CHANGED
package/cli.backend.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
4
|
-
function
|
5
|
-
exports.
|
3
|
+
exports.dummy1717257766871 = void 0;
|
4
|
+
function dummy1717257766871() { }
|
5
|
+
exports.dummy1717257766871 = dummy1717257766871;
|
6
6
|
//# sourceMappingURL=cli.backend.js.map
|
package/client/README.md
CHANGED
@@ -1,24 +1,24 @@
|
|
1
|
-
# MyLib
|
2
|
-
|
3
|
-
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.2.0.
|
4
|
-
|
5
|
-
## Code scaffolding
|
6
|
-
|
7
|
-
Run `ng generate component component-name --project my-lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project my-lib`.
|
8
|
-
> Note: Don't forget to add `--project my-lib` or else it will be added to the default project in your `angular.json` file.
|
9
|
-
|
10
|
-
## Build
|
11
|
-
|
12
|
-
Run `ng build my-lib` to build the project. The build artifacts will be stored in the `dist/` directory.
|
13
|
-
|
14
|
-
## Publishing
|
15
|
-
|
16
|
-
After building your library with `ng build my-lib`, go to the dist folder `cd dist/my-lib` and run `npm publish`.
|
17
|
-
|
18
|
-
## Running unit tests
|
19
|
-
|
20
|
-
Run `ng test my-lib` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
21
|
-
|
22
|
-
## Further help
|
23
|
-
|
24
|
-
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
|
1
|
+
# MyLib
|
2
|
+
|
3
|
+
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.2.0.
|
4
|
+
|
5
|
+
## Code scaffolding
|
6
|
+
|
7
|
+
Run `ng generate component component-name --project my-lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project my-lib`.
|
8
|
+
> Note: Don't forget to add `--project my-lib` or else it will be added to the default project in your `angular.json` file.
|
9
|
+
|
10
|
+
## Build
|
11
|
+
|
12
|
+
Run `ng build my-lib` to build the project. The build artifacts will be stored in the `dist/` directory.
|
13
|
+
|
14
|
+
## Publishing
|
15
|
+
|
16
|
+
After building your library with `ng build my-lib`, go to the dist folder `cd dist/my-lib` and run `npm publish`.
|
17
|
+
|
18
|
+
## Running unit tests
|
19
|
+
|
20
|
+
Run `ng test my-lib` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
21
|
+
|
22
|
+
## Further help
|
23
|
+
|
24
|
+
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
|
@@ -1,7 +1,8 @@
|
|
1
1
|
export const CoreConfig = {
|
2
2
|
message: {
|
3
|
-
globalSystemToolMode: 'globalSystemToolMode'
|
4
|
-
}
|
3
|
+
globalSystemToolMode: 'globalSystemToolMode',
|
4
|
+
},
|
5
5
|
};
|
6
|
+
;
|
6
7
|
({}); // @--end-of-file-for-module=tnp-core lib/core-config.ts
|
7
|
-
//# sourceMappingURL=data:application/json;base64,
|
8
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29yZS1jb25maWcuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi90bXAtbGlicy1mb3ItZGlzdC90bnAtY29yZS9wcm9qZWN0cy90bnAtY29yZS9zcmMvbGliL2NvcmUtY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVBLE1BQU0sQ0FBQyxNQUFNLFVBQVUsR0FBRztJQUN4QixPQUFPLEVBQUU7UUFDUCxvQkFBb0IsRUFBRSxzQkFBc0I7S0FDN0M7Q0FDRixDQUFDO0FBRUQsQ0FBQztBQUFBLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQyx3REFBd0QiLCJzb3VyY2VzQ29udGVudCI6WyJcblxuZXhwb3J0IGNvbnN0IENvcmVDb25maWcgPSB7XG4gIG1lc3NhZ2U6IHtcbiAgICBnbG9iYWxTeXN0ZW1Ub29sTW9kZTogJ2dsb2JhbFN5c3RlbVRvb2xNb2RlJyxcbiAgfSxcbn07XG5cbiA7KHt9KTsgLy8gQC0tZW5kLW9mLWZpbGUtZm9yLW1vZHVsZT10bnAtY29yZSBsaWIvY29yZS1jb25maWcudHMiXX0=
|
@@ -36,13 +36,13 @@ $ = jQuery;
|
|
36
36
|
/* */
|
37
37
|
/* */
|
38
38
|
import { path as pathMock } from './node-path-mock';
|
39
|
-
let path;
|
39
|
+
let path = void 0;
|
40
40
|
/* */
|
41
41
|
/* */
|
42
42
|
// @ts-ignore
|
43
43
|
path = pathMock;
|
44
44
|
import { chalk as chalkMock } from './node-chalk-mock';
|
45
|
-
let chalk;
|
45
|
+
let chalk = void 0;
|
46
46
|
/* */
|
47
47
|
/* */
|
48
48
|
// @ts-ignore
|
@@ -82,6 +82,37 @@ const crossPlatformPath = (pathStringOrPathParts) => {
|
|
82
82
|
}
|
83
83
|
return pathStringOrPathParts.replace(/\\/g, '/').replace(/\/\//g, '/');
|
84
84
|
};
|
85
|
-
export { _, q, moment, dateformat, crossPlatformPath, win32Path, path, chalk, json5,
|
85
|
+
export { _, q, moment, dateformat, crossPlatformPath, win32Path, path, chalk, json5, $, }; /* */
|
86
|
+
/* */
|
87
|
+
/* */
|
88
|
+
/* */
|
89
|
+
/* */
|
90
|
+
/* */
|
91
|
+
/* */
|
92
|
+
/* */
|
93
|
+
/* */
|
94
|
+
/* */
|
95
|
+
/* */
|
96
|
+
/* */
|
97
|
+
/* */
|
98
|
+
/* */
|
99
|
+
/* */
|
100
|
+
/* */
|
101
|
+
/* */
|
102
|
+
/* */
|
103
|
+
/* */
|
104
|
+
/* */
|
105
|
+
/* */
|
106
|
+
/* */
|
107
|
+
/* */
|
108
|
+
/* */
|
109
|
+
/* */
|
110
|
+
/* */
|
111
|
+
/* */
|
112
|
+
/* */
|
113
|
+
/* */
|
114
|
+
/* */
|
115
|
+
/* */
|
116
|
+
;
|
86
117
|
({}); // @--end-of-file-for-module=tnp-core lib/core-imports.ts
|
87
|
-
//# sourceMappingURL=data:application/json;base64,
|
118
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29yZS1pbXBvcnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vdG1wLWxpYnMtZm9yLWRpc3QvdG5wLWNvcmUvcHJvamVjdHMvdG5wLWNvcmUvc3JjL2xpYi9jb3JlLWltcG9ydHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUEsT0FBTyxLQUFLLENBQUMsTUFBTSxRQUFRLENBQUM7QUFDNUIsT0FBTyxLQUFLLENBQUMsTUFBTSxHQUFHLENBQUM7QUFDdkIsT0FBTyxLQUFLLE1BQU0sTUFBTSxRQUFRLENBQUM7QUFDakMsT0FBTyxLQUFLLFVBQVUsTUFBTSxZQUFZLENBQUM7QUFFekMsT0FBTyxLQUFLLEtBQUssTUFBTSxPQUFPLENBQUM7QUFFL0IsT0FBTyxNQUFNLE1BQU0sUUFBUSxDQUFDO0FBRzVCLEtBQUs7QUFDTCxLQUFLO0FBQ0wsS0FBSztBQUNMLEtBQUs7QUFDTCxLQUFLO0FBQ0wsS0FBSztBQUNMLEtBQUs7QUFDTCxLQUFLO0FBQ0wsS0FBSztBQUNMLEtBQUs7QUFDTCxLQUFLO0FBQ0wsS0FBSztBQUNMLEtBQUs7QUFDTCxLQUFLO0FBQ0wsS0FBSztBQUNMLEtBQUs7QUFDTCxLQUFLO0FBQ0wsS0FBSztBQUNMLEtBQUs7QUFDTCxLQUFLO0FBQ0wsS0FBSztBQUNMLEtBQUs7QUFDTCxLQUFLO0FBQ0wsS0FBSztBQUNMLEtBQUs7QUFDTCxLQUFLO0FBQ0wsS0FBS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