tnp-core 16.0.14 → 16.0.17

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.
Files changed (104) hide show
  1. package/README.md +20 -20
  2. package/assets/shared/shared_folder_info.txt +1 -1
  3. package/browser/README.md +24 -24
  4. package/browser/esm2022/lib/core-config.mjs +1 -1
  5. package/browser/esm2022/lib/core-imports.mjs +16 -6
  6. package/browser/esm2022/lib/core-models.mjs +87 -2
  7. package/browser/esm2022/lib/framework-name.mjs +1 -1
  8. package/browser/esm2022/lib/helpers-isomorphic.mjs +1 -1
  9. package/browser/esm2022/lib/helpers-messages.mjs +12 -1
  10. package/browser/esm2022/lib/helpers.mjs +106 -27
  11. package/browser/esm2022/lib/index.mjs +2 -1
  12. package/browser/esm2022/lib/node-chalk-mock.mjs +42 -0
  13. package/browser/esm2022/lib/node-path-mock.mjs +1 -1
  14. package/browser/esm2022/lib/progress-data.mjs +1 -1
  15. package/browser/esm2022/lib/utils.mjs +274 -0
  16. package/browser/fesm2022/tnp-core.mjs +527 -30
  17. package/browser/fesm2022/tnp-core.mjs.map +1 -1
  18. package/browser/lib/core-imports.d.ts +7 -2
  19. package/browser/lib/core-models.d.ts +170 -1
  20. package/browser/lib/helpers-messages.d.ts +1 -0
  21. package/browser/lib/helpers.d.ts +24 -4
  22. package/browser/lib/index.d.ts +2 -1
  23. package/browser/lib/node-chalk-mock.d.ts +3 -0
  24. package/browser/lib/utils.d.ts +70 -0
  25. package/cli.backend.js +3 -3
  26. package/cli.backend.js.map +1 -1
  27. package/client/README.md +24 -24
  28. package/client/esm2022/lib/core-config.mjs +1 -1
  29. package/client/esm2022/lib/core-imports.mjs +16 -6
  30. package/client/esm2022/lib/core-models.mjs +87 -2
  31. package/client/esm2022/lib/framework-name.mjs +1 -1
  32. package/client/esm2022/lib/helpers-isomorphic.mjs +1 -1
  33. package/client/esm2022/lib/helpers-messages.mjs +12 -1
  34. package/client/esm2022/lib/helpers.mjs +106 -27
  35. package/client/esm2022/lib/index.mjs +2 -1
  36. package/client/esm2022/lib/node-chalk-mock.mjs +42 -0
  37. package/client/esm2022/lib/node-path-mock.mjs +1 -1
  38. package/client/esm2022/lib/progress-data.mjs +1 -1
  39. package/client/esm2022/lib/utils.mjs +274 -0
  40. package/client/fesm2022/tnp-core.mjs +527 -30
  41. package/client/fesm2022/tnp-core.mjs.map +1 -1
  42. package/client/lib/core-imports.d.ts +7 -2
  43. package/client/lib/core-models.d.ts +170 -1
  44. package/client/lib/helpers-messages.d.ts +1 -0
  45. package/client/lib/helpers.d.ts +24 -4
  46. package/client/lib/index.d.ts +2 -1
  47. package/client/lib/node-chalk-mock.d.ts +3 -0
  48. package/client/lib/utils.d.ts +70 -0
  49. package/client/package.json +45 -32
  50. package/index.js.map +1 -1
  51. package/lib/core-config.js.map +1 -1
  52. package/lib/core-imports.d.ts +9 -4
  53. package/lib/core-imports.js +26 -7
  54. package/lib/core-imports.js.map +1 -1
  55. package/lib/core-models.d.ts +169 -0
  56. package/lib/core-models.js +88 -0
  57. package/lib/core-models.js.map +1 -1
  58. package/lib/framework-name.js.map +1 -1
  59. package/lib/helpers-isomorphic.js.map +1 -1
  60. package/lib/helpers-messages.d.ts +1 -0
  61. package/lib/helpers-messages.js +11 -0
  62. package/lib/helpers-messages.js.map +1 -1
  63. package/lib/helpers.d.ts +57 -18
  64. package/lib/helpers.js +241 -44
  65. package/lib/helpers.js.map +1 -1
  66. package/lib/index.d.ts +2 -1
  67. package/lib/index.js +1 -0
  68. package/lib/index.js.map +1 -1
  69. package/lib/node-chalk-mock.d.ts +2 -0
  70. package/lib/node-chalk-mock.js +6 -0
  71. package/lib/node-chalk-mock.js.map +1 -0
  72. package/lib/node-path-mock.js +3 -3
  73. package/lib/node-path-mock.js.map +1 -1
  74. package/lib/progress-data.js.map +1 -1
  75. package/lib/public-api.js.map +1 -1
  76. package/lib/utils.d.ts +79 -0
  77. package/lib/utils.js +562 -0
  78. package/lib/utils.js.map +1 -0
  79. package/package.json +2 -2
  80. package/package.json_devDependencies.json +202 -202
  81. package/package.json_tnp.json5 +69 -69
  82. package/tmp-environment.json +50 -37
  83. package/websql/README.md +24 -24
  84. package/websql/esm2022/lib/core-config.mjs +1 -1
  85. package/websql/esm2022/lib/core-imports.mjs +16 -6
  86. package/websql/esm2022/lib/core-models.mjs +87 -2
  87. package/websql/esm2022/lib/framework-name.mjs +1 -1
  88. package/websql/esm2022/lib/helpers-isomorphic.mjs +1 -1
  89. package/websql/esm2022/lib/helpers-messages.mjs +12 -1
  90. package/websql/esm2022/lib/helpers.mjs +106 -27
  91. package/websql/esm2022/lib/index.mjs +2 -1
  92. package/websql/esm2022/lib/node-chalk-mock.mjs +42 -0
  93. package/websql/esm2022/lib/node-path-mock.mjs +1 -1
  94. package/websql/esm2022/lib/progress-data.mjs +1 -1
  95. package/websql/esm2022/lib/utils.mjs +274 -0
  96. package/websql/fesm2022/tnp-core.mjs +527 -30
  97. package/websql/fesm2022/tnp-core.mjs.map +1 -1
  98. package/websql/lib/core-imports.d.ts +7 -2
  99. package/websql/lib/core-models.d.ts +170 -1
  100. package/websql/lib/helpers-messages.d.ts +1 -0
  101. package/websql/lib/helpers.d.ts +24 -4
  102. package/websql/lib/index.d.ts +2 -1
  103. package/websql/lib/node-chalk-mock.d.ts +3 -0
  104. package/websql/lib/utils.d.ts +70 -0
@@ -40,4 +40,173 @@ export interface RunOptions extends ExecuteOptions {
40
40
  stdio?: any;
41
41
  cwd?: string;
42
42
  }
43
- export type PROGRESS_DATA_TYPE = 'info' | 'error' | 'warning' | 'event';
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: {
133
+ readonly ".aac": "audio/aac";
134
+ readonly ".abw": "application/x-abiword";
135
+ readonly ".arc": "application/x-freearc";
136
+ readonly ".avi": "video/x-msvideo";
137
+ readonly ".azw": "application/vnd.amazon.ebook";
138
+ readonly ".bin": "application/octet-stream";
139
+ readonly ".bmp": "image/bmp";
140
+ readonly ".bz": "application/x-bzip";
141
+ readonly ".bz2": "application/x-bzip2";
142
+ readonly ".csh": "application/x-csh";
143
+ readonly ".css": "text/css";
144
+ readonly ".csv": "text/csv";
145
+ readonly ".doc": "application/msword";
146
+ readonly ".docx": "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
147
+ readonly ".eot": "application/vnd.ms-fontobject";
148
+ readonly ".epub": "application/epub+zip";
149
+ readonly ".gz": "application/gzip";
150
+ readonly ".gif": "image/gif";
151
+ readonly ".htm": "text/html";
152
+ readonly ".html": "text/html";
153
+ readonly ".ico": "image/vnd.microsoft.icon";
154
+ readonly ".ics": "text/calendar";
155
+ readonly ".jar": "application/java-archive";
156
+ readonly ".jpeg": "image/jpeg";
157
+ readonly ".jpg": "image/jpeg";
158
+ readonly ".js": "text/javascript";
159
+ readonly ".json": "application/json";
160
+ readonly ".jsonld": "application/ld+json";
161
+ readonly ".mid": "application/midi";
162
+ readonly ".midi": "application/midi";
163
+ readonly ".mjs": "text/javascript";
164
+ readonly ".mp3": "audio/mpeg";
165
+ readonly ".mp4": "video/mp4";
166
+ readonly ".mpeg": "video/mpeg";
167
+ readonly ".mpkg": "application/vnd.apple.installer+xml";
168
+ readonly ".odp": "application/vnd.oasis.opendocument.presentation";
169
+ readonly ".ods": "application/vnd.oasis.opendocument.spreadsheet";
170
+ readonly ".odt": "application/vnd.oasis.opendocument.text";
171
+ readonly ".oga": "audio/ogg";
172
+ readonly ".ogg": "audio/ogg";
173
+ readonly ".ogv": "video/ogg";
174
+ readonly ".ogx": "application/ogg";
175
+ readonly ".opus": "audio/opus";
176
+ readonly ".otf": "font/otf";
177
+ readonly ".png": "image/png";
178
+ readonly ".pdf": "application/pdf";
179
+ readonly ".php": "application/php";
180
+ readonly ".ppt": "application/vnd.ms-powerpoint";
181
+ readonly ".pptx": "application/vnd.openxmlformats-officedocument.presentationml.presentation";
182
+ readonly ".rar": "application/vnd.rar";
183
+ readonly ".rtf": "application/rtf";
184
+ readonly ".sh": "application/x-sh";
185
+ readonly ".svg": "image/svg+xml";
186
+ readonly ".swf": "application/x-shockwave-flash";
187
+ readonly ".tar": "application/x-tar";
188
+ readonly ".tif": "image/tiff";
189
+ readonly ".tiff": "image/tiff";
190
+ readonly ".ts": "video/mp2t";
191
+ readonly ".ttf": "font/ttf";
192
+ readonly ".txt": "text/plain";
193
+ readonly ".vsd": "application/vnd.visio";
194
+ readonly ".wav": "audio/wav";
195
+ readonly ".weba": "audio/webm";
196
+ readonly ".webm": "video/webm";
197
+ readonly ".webp": "image/webp";
198
+ readonly ".woff": "font/woff";
199
+ readonly ".woff2": "font/woff2";
200
+ readonly ".xhtml": "application/xhtml+xml";
201
+ readonly ".xls": "application/vnd.ms-excel";
202
+ readonly ".xlsx": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
203
+ readonly ".xml": "application/xml";
204
+ readonly ".xul": "application/vnd.mozilla.xul+xml";
205
+ readonly ".zip": "application/zip";
206
+ readonly ".3gp": "video/3gpp";
207
+ readonly ".3g2": "video/3gpp2";
208
+ readonly ".7z": "application/x-7z-compressed";
209
+ };
210
+ type ContentType = ContentType_;
211
+ }
212
+ export {};
@@ -2,6 +2,7 @@
2
2
  import { HelpersIsomorphic } from './helpers-isomorphic';
3
3
  export declare class HelpersMessages extends HelpersIsomorphic {
4
4
  msgCacheClear(): void;
5
+ renderError(err: Error): void;
5
6
  error(details: any, noExit?: boolean, noTrace?: boolean): void;
6
7
  info(details: string, repeatable?: boolean): void;
7
8
  success(details: any | string): void;
@@ -1,6 +1,6 @@
1
1
  // @ts-nocheck
2
2
  import { HelpersMessages } from './helpers-messages';
3
- import { RunOptions } from './core-models';
3
+ import { MediaType, RunOptions } from './core-models';
4
4
  export interface RunSyncOrAsyncOptions {
5
5
  functionFn: Function;
6
6
  context?: object;
@@ -18,11 +18,27 @@ export declare class HelpersCore extends HelpersMessages {
18
18
  static get InstanceCore(): HelpersCore;
19
19
  readonly bigMaxBuffer: number;
20
20
  constructor();
21
- isBlob(maybeBlob: any): boolean;
21
+ mediaTypeFromSrc(src: string): MediaType;
22
+ /**
23
+ * check if data is nodejs/browser blob
24
+ *
25
+ * @param maybeBlob
26
+ * @returns
27
+ */
28
+ isBlob(maybeBlob: any): maybeBlob is Blob;
29
+ /**
30
+ * Check if data is nodejs buffer
31
+ *
32
+ * @param maybeNodejsBuffer
33
+ * @returns
34
+ */
22
35
  removeSlashAtEnd(s: string): string;
23
36
  removeSlashAtBegin(s: string): string;
37
+ /**
38
+ * stringify to pretty json string
39
+ */
24
40
  stringify(inputObject: any): string;
25
- runSyncOrAsync(fnOrOptions: Function | [string, object] | RunSyncOrAsyncOptions, ...firstArg: any[]): Promise<any>;
41
+ runSyncOrAsync<FUNCTION_RETURN_TYPE = any>(fnOrOptions: Function | [string, object] | RunSyncOrAsyncOptions, ...firstArg: any[]): Promise<FUNCTION_RETURN_TYPE>;
26
42
  /**
27
43
  * symlink may have existed or unexisted destiantion url
28
44
  * @param destUrl M
@@ -38,15 +54,19 @@ export declare class HelpersCore extends HelpersMessages {
38
54
  */
39
55
  isExistedSymlink(filePath: string): boolean;
40
56
  exists(folderOrFilePath: string | string[]): any;
57
+ /**
58
+ * this is HACK for running procesess inside processes
59
+ */
41
60
  _fixCommand(command: string): string;
42
61
  command(command: string): {};
43
- wait(second: number): Promise<unknown>;
62
+ wait(second: number): Promise<void>;
44
63
  killProcess(byPid: number): void;
45
64
  run(command: string, options?: RunOptions): {
46
65
  async(detach?: boolean, mockFun?: (stdoutCallback: (dataForStdout: any) => any, stdErrcCallback: (dataForStder: any) => any, shouldProcesBeDead?: () => boolean) => Promise<number> | number): any;
47
66
  };
48
67
  /**
49
68
  * Quick fix for object values
69
+ * @deprecated
50
70
  */
51
71
  values(obj: any): any[];
52
72
  }
@@ -5,5 +5,6 @@ export * from './core-models';
5
5
  import { HelpersCore as Base } from './helpers';
6
6
  export * from './core-config';
7
7
  export * from './progress-data';
8
- export { HelpersCore as CoreHelpers } from './helpers';
8
+ export * from './utils';
9
+ export { HelpersCore as CoreHelpers, CommandOutputOptions } from './helpers';
9
10
  export declare let Helpers: Base;
@@ -0,0 +1,3 @@
1
+ // @ts-nocheck
2
+ import { Chalk } from 'chalk';
3
+ export declare const chalk: Chalk;
@@ -0,0 +1,70 @@
1
+ // @ts-nocheck
2
+ import { ContentType } from "./core-models";
3
+ export declare namespace Utils {
4
+ enum DbBinaryFormatEnum {
5
+ Blob = "Blob",
6
+ File = "File",
7
+ string = "string"
8
+ }
9
+ type DbBinaryFormatForBrowser = Blob | File | string;
10
+ /**
11
+ * Binary format that can be stored in database
12
+ *
13
+ * for nodejs => Buffer
14
+ * for sql.js => string (shoulb be blob - but not supported)
15
+ *
16
+ */
17
+ type DbBinaryFormat = DbBinaryFormatForBrowser;
18
+ namespace binary {
19
+ /**
20
+ * This is for BROWSER ONLY
21
+ *
22
+ * @param buffer
23
+ * @param contentType
24
+ * @returns
25
+ */
26
+ function arrayBufferToBlob(buffer: ArrayBuffer, contentType: ContentType): Promise<Blob>;
27
+ /**
28
+ * This is for BROWSER ONLY
29
+ * @param blob
30
+ * @returns
31
+ */
32
+ function blobToArrayBuffer(blob: Blob): Promise<ArrayBuffer>;
33
+ /**
34
+ * it is revers to base64toBlob
35
+ * @param blob
36
+ * @returns
37
+ */
38
+ function blobToBase64(blob: Blob): Promise<string>;
39
+ /**
40
+ * it is revers to blobToBase64()
41
+ * @param base64Data
42
+ * @returns
43
+ */
44
+ function base64toBlob(base64Data: string, contentTypeOverride?: ContentType): Promise<Blob>;
45
+ function base64toDbBinaryFormat(text: string): Promise<DbBinaryFormat>;
46
+ function dbBinaryFormatToBase64(binaryFormat: DbBinaryFormat): Promise<string>;
47
+ function textToDbBinaryFormat(text: string): Promise<DbBinaryFormat>;
48
+ function dbBinaryFormatToText(binaryFormat: DbBinaryFormat): Promise<string>;
49
+ function fileToBlob(file: File): Promise<Blob>;
50
+ function blobToFile(blob: Blob, nameForFile?: string): Promise<File>;
51
+ function textToBlob(text: string, type?: ContentType): Promise<Blob>;
52
+ function blobToText(blob: Blob): Promise<string>;
53
+ function textToFile(text: string, fileRelativePathOrName: string): Promise<File>;
54
+ function fileToText(file: File): Promise<string>;
55
+ function jsonToBlob(jsonObj: object): Promise<Blob>;
56
+ /**
57
+ * TODO NOT TESTED
58
+ */
59
+ function blobToJson(blob: Blob): Promise<string>;
60
+ function getBlobFrom(url: string): Promise<Blob>;
61
+ }
62
+ namespace css {
63
+ /**
64
+ *
65
+ * @param pixelsCss pixels ex. 100px
66
+ * @returns
67
+ */
68
+ function numValue(pixelsCss: string): number;
69
+ }
70
+ }
@@ -102,6 +102,9 @@
102
102
  "@angular/router": "~16.0.0",
103
103
  "@angular/service-worker": "~16.0.4",
104
104
  "@babel/cli": "7.18.6",
105
+ "@commitlint/cli": "12.1.1",
106
+ "@commitlint/config-conventional": "12.1.1",
107
+ "@commitlint/prompt-cli": "12.1.1",
105
108
  "@compodoc/compodoc": "1.1.20",
106
109
  "@cypress/schematic": "2.5.0",
107
110
  "@iconify/icons-fa-solid": "1.2.2",
@@ -121,7 +124,7 @@
121
124
  "@ngrx/store": "~16.0.1",
122
125
  "@ngrx/store-devtools": "~16.0.1",
123
126
  "@ngx-formly/core": "6.1.7",
124
- "@ngx-formly/material": "6.1.7",
127
+ "@ngx-formly/material": "6.1.8",
125
128
  "@ngx-translate/core": "15.0.0",
126
129
  "@ngx-translate/http-loader": "8.0.0",
127
130
  "@sweetalert2/ngx-sweetalert2": "12.1.0",
@@ -137,7 +140,6 @@
137
140
  "@types/glob": "5.0.35",
138
141
  "@types/http-proxy": "1.16.0",
139
142
  "@types/http-proxy-middleware": "0.19.2",
140
- "@types/inquirer": "7.3.1",
141
143
  "@types/jest": "29.5.2",
142
144
  "@types/json-stringify-safe": "5.0.0",
143
145
  "@types/json5": "0.0.29",
@@ -155,11 +157,13 @@
155
157
  "@types/vinyl": "2.0.2",
156
158
  "@types/watch": "1.0.0",
157
159
  "accepts": "1.3.4",
160
+ "ajv": "8.12.0",
158
161
  "angular-material-css-vars": "5.0.2",
162
+ "angular-resize-event": "3.2.0",
159
163
  "animate.css": "4.1.1 ",
160
- "any-project-cli": "~16.0.31",
164
+ "any-project-cli": "~16.0.32",
161
165
  "axios": "1.3.5",
162
- "background-worker-process": "~16.0.48",
166
+ "background-worker-process": "~16.0.49",
163
167
  "base32": "0.0.7",
164
168
  "bcryptjs": "2.4.3",
165
169
  "better-sqlite3": "7.6.2",
@@ -176,12 +180,17 @@
176
180
  "compression": "1.7.4",
177
181
  "concurrently": "3.5.1",
178
182
  "content-type": "1.0.4",
183
+ "conventional-changelog-cli": "3.0.0",
179
184
  "cookie-parser": "1.4.3",
180
185
  "cors": "2.8.4",
181
186
  "cpr": "3.0.1",
182
187
  "cypress": "latest",
183
188
  "detect-mocha": "0.1.0",
184
189
  "diff": "3.2.0",
190
+ "electron": "25.2.0",
191
+ "electron-builder": "24.4.0",
192
+ "electron-debug": "3.2.0",
193
+ "electron-reloader": "1.2.3",
185
194
  "element-resize-detector": "1.1.15",
186
195
  "enquirer": "2.3.0",
187
196
  "enum-values": "1.2.1",
@@ -197,13 +206,13 @@
197
206
  "file-saver": "2.0.5",
198
207
  "file-type": "18.5.0",
199
208
  "firedev": "^16",
200
- "firedev-crud": "~16.0.53",
201
- "firedev-crud-deamon": "~16.0.43",
202
- "firedev-ports": "~16.0.48",
203
- "firedev-storage": "~16.0.40",
204
- "firedev-type-sql": "~16.0.1",
205
- "firedev-typeorm": "~16.0.37",
206
- "firedev-ui": "~16.0.7",
209
+ "firedev-crud": "~16.0.54",
210
+ "firedev-crud-deamon": "~16.0.44",
211
+ "firedev-ports": "~16.0.49",
212
+ "firedev-storage": "~16.0.41",
213
+ "firedev-type-sql": "~16.0.2",
214
+ "firedev-typeorm": "~16.0.39",
215
+ "firedev-ui": "~16.0.9",
207
216
  "font-awesome": "4.7.0",
208
217
  "form-data": "4.0.0",
209
218
  "fuzzy": "0.1.3",
@@ -217,10 +226,10 @@
217
226
  "image-focus": "1.2.1",
218
227
  "immer": "10.0.2",
219
228
  "immutable": "4.3.0",
220
- "incremental-compiler": "~16.0.30",
229
+ "incremental-compiler": "~16.0.31",
221
230
  "inquirer": "7.3.3",
222
231
  "inquirer-autocomplete-prompt": "1.3.0",
223
- "isomorphic-region-loader": "~16.0.41",
232
+ "isomorphic-region-loader": "~16.0.42",
224
233
  "istanbul-instrumenter-loader": "2.0.0",
225
234
  "jest": "29.5.0",
226
235
  "jest-date-mock": "1.0.8",
@@ -231,33 +240,35 @@
231
240
  "joi": "17.9.2",
232
241
  "jscodeshift": "0.6.3",
233
242
  "json-stringify-safe": "5.0.1",
234
- "json10": "~16.0.48",
235
- "json10-writer": "~16.0.44",
243
+ "json10": "~16.0.49",
244
+ "json10-writer": "~16.0.45",
236
245
  "json5-writer": "0.2.0",
237
246
  "jszip": "3.10.1",
238
247
  "karma-cli": "1.0.1",
239
248
  "lnk": "1.0.1",
240
249
  "localforage": "1.10.0",
241
250
  "lockfile": "1.0.4",
242
- "lodash-walk-object": "~16.0.48",
251
+ "lodash-walk-object": "~16.0.49",
243
252
  "lowdb": "1.0.0",
244
- "magic-renamer": "~16.0.46",
253
+ "magic-renamer": "~16.0.47",
245
254
  "material-design-icons": "3.0.1",
246
255
  "method-override": "2.3.10",
247
256
  "minimist": "1.2.0",
248
257
  "mocha": "10.2.0",
249
- "morphi": "~16.0.7",
258
+ "morphi": "~16.2.3",
250
259
  "ng-for-track-by-property": "16.0.1",
251
260
  "ng-in-viewport": "15.0.2",
252
261
  "ng-lock": "16.0.1",
253
262
  "ng-packagr": "16.0.1",
254
263
  "ng-talkback": "~16.2.1",
255
- "ng2-logger": "~16.0.4",
256
- "ng2-rest": "~16.0.12",
264
+ "ng2-logger": "~16.0.7",
265
+ "ng2-rest": "~16.0.14",
257
266
  "ngx-ace-wrapper": "14.0.0",
258
267
  "ngx-editor": "15.3.0",
259
268
  "ngx-highlightjs": "9.0.0",
260
269
  "ngx-moment": "6.0.2",
270
+ "ngx-monaco-editor": "12.0.0",
271
+ "ngx-photo-editor": "0.4.4",
261
272
  "ngx-pipes": "3.2.2",
262
273
  "ngx-progressbar": "11.0.0",
263
274
  "ngx-scrollbar": "12.0.0",
@@ -267,6 +278,7 @@
267
278
  "node-cli-tester": "~16.0.2",
268
279
  "node-localstorage": "2.1.6",
269
280
  "node-notifier": "6.0.0",
281
+ "node-polyfill-webpack-plugin": "2.0.1",
270
282
  "nodemon": "1.14.11",
271
283
  "npm-get-dependents": "1.0.1",
272
284
  "npm-run": "4.1.2",
@@ -277,7 +289,8 @@
277
289
  "passport-http-bearer": "1.0.1",
278
290
  "password-hash": "1.2.2",
279
291
  "pica": "9.0.1",
280
- "prettier": "2.5.1",
292
+ "prettier": "3.0.0",
293
+ "pretty-error": "4.0.0",
281
294
  "progress": "2.0.3",
282
295
  "prompts": "0.1.8",
283
296
  "rallax.js": "2.0.4",
@@ -292,7 +305,7 @@
292
305
  "socket.io": "2.4.1",
293
306
  "sort-package-json": "1.11.0",
294
307
  "sql.js": "1.8.0",
295
- "static-columns": "~16.0.5",
308
+ "static-columns": "~16.0.7",
296
309
  "string-similarity": "4.0.2",
297
310
  "sudo-block": "3.0.0",
298
311
  "supertest": "6.3.3",
@@ -300,12 +313,12 @@
300
313
  "systeminformation": "3.45.7",
301
314
  "task.js": "0.1.5",
302
315
  "threads": "1.7.0",
303
- "tnp-cli": "~16.0.5",
304
- "tnp-config": "~16.0.11",
305
- "tnp-core": "~16.0.13",
306
- "tnp-db": "~16.0.26",
307
- "tnp-helpers": "~16.0.7",
308
- "tnp-models": "~16.0.35",
316
+ "tnp-cli": "~16.0.7",
317
+ "tnp-config": "~16.0.18",
318
+ "tnp-core": "~16.0.15",
319
+ "tnp-db": "~16.0.27",
320
+ "tnp-helpers": "~16.0.10",
321
+ "tnp-models": "~16.0.36",
309
322
  "ts-debug": "1.3.0",
310
323
  "ts-loader": "2.3.1",
311
324
  "ts-node": "10.9.1",
@@ -314,13 +327,13 @@
314
327
  "turndown": "7.1.2",
315
328
  "typeorm": "~0.3.10",
316
329
  "typescript": "~5.0.2",
317
- "typescript-class-helpers": "~16.0.16",
330
+ "typescript-class-helpers": "~16.0.17",
318
331
  "typescript-formatter": "~7.2.2",
319
332
  "underscore": "1.9.1",
320
333
  "uuid": "8.3.2",
321
334
  "validator": "9.2.0",
322
335
  "video.js": "8.3.0",
323
- "vpn-split": "~16.0.1",
336
+ "vpn-split": "~16.0.3",
324
337
  "watch": "1.0.2",
325
338
  "yup": "1.1.1",
326
339
  "zone.js": "~0.13.0"
@@ -328,6 +341,6 @@
328
341
  "license": "MIT",
329
342
  "private": false,
330
343
  "name": "tnp-core",
331
- "version": "16.0.14",
332
- "lastBuildTagHash": "1a4cc8f46c67ab4aaff72ef759f309778b9fa45d"
344
+ "version": "16.0.17",
345
+ "lastBuildTagHash": "5861a978dbc459c434b63cf665af82ce8046d8d5"
333
346
  }
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["./src/index.ts"],"names":[],"mappings":";;;AAAA,gDAAsB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAAA,gDAAsB"}
@@ -1 +1 @@
1
- {"version":3,"file":"core-config.js","sourceRoot":"","sources":["../src/lib/core-config.ts"],"names":[],"mappings":";;;AAAa,QAAA,UAAU,GAAG;IACxB,OAAO,EAAE;QACP,oBAAoB,EAAE,sBAAsB;KAC7C;CACF,CAAA"}
1
+ {"version":3,"file":"core-config.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAAa,QAAA,UAAU,GAAG;IACxB,OAAO,EAAE;QACP,oBAAoB,EAAE,sBAAsB;KAC7C;CACF,CAAA"}
@@ -3,13 +3,14 @@ import * as _ from 'lodash';
3
3
  import * as q from 'q';
4
4
  import * as moment from 'moment';
5
5
  import * as dateformat from 'dateformat';
6
+ import { Chalk } from 'chalk';
7
+ import createCallsiteRecord from 'callsite-record';
6
8
  import * as pathBase from 'path';
7
9
  import * as os from 'os';
8
10
  import * as child_process from 'child_process';
9
11
  import * as http from 'http';
10
12
  import * as https from 'https';
11
13
  import * as net from 'net';
12
- import chalk from 'chalk';
13
14
  import * as spawn from 'cross-spawn';
14
15
  import * as glob from 'glob';
15
16
  import * as fse from 'fs-extra';
@@ -24,7 +25,11 @@ import * as fkill from 'fkill';
24
25
  import * as portfinder from 'portfinder';
25
26
  declare function isElevated(): Promise<any>;
26
27
  declare let path: pathBase.PlatformPath;
28
+ declare let chalk: Chalk;
27
29
  declare function win32Path(p: string): string;
28
- declare function crossPlatformPath(pathStringOrPathParts: string | string[]): string;
29
- export { _, q, moment, dateformat, crossPlatformPath, win32Path, path, };
30
- export { spawn, chalk, glob, isElevated, chokidar, mkdirp, ncp, json5, fse, os, child_process, http, https, rimraf, net, ps, fkill, portfinder, psList, };
30
+ /**
31
+ * This funciton will replace // to /
32
+ */
33
+ declare const crossPlatformPath: (pathStringOrPathParts: string | string[]) => string;
34
+ export { _, q, moment, dateformat, crossPlatformPath, win32Path, path, chalk, };
35
+ export { createCallsiteRecord, spawn, glob, isElevated, chokidar, mkdirp, ncp, json5, fse, os, child_process, http, https, rimraf, net, ps, fkill, portfinder, psList, };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.psList = exports.portfinder = exports.fkill = exports.ps = exports.net = exports.rimraf = exports.https = exports.http = exports.child_process = exports.os = exports.fse = exports.json5 = exports.ncp = exports.mkdirp = exports.chokidar = exports.isElevated = exports.glob = exports.chalk = exports.spawn = exports.path = exports.win32Path = exports.crossPlatformPath = exports.dateformat = exports.moment = exports.q = exports._ = void 0;
3
+ exports.psList = exports.portfinder = exports.fkill = exports.ps = exports.net = exports.rimraf = exports.https = exports.http = exports.child_process = exports.os = exports.fse = exports.json5 = exports.ncp = exports.mkdirp = exports.chokidar = exports.isElevated = exports.glob = exports.spawn = exports.createCallsiteRecord = exports.chalk = exports.path = exports.win32Path = exports.crossPlatformPath = exports.dateformat = exports.moment = exports.q = exports._ = void 0;
4
4
  var tslib_1 = require("tslib");
5
5
  var _ = require("lodash");
6
6
  exports._ = _;
@@ -11,6 +11,9 @@ exports.moment = moment;
11
11
  var dateformat = require("dateformat");
12
12
  exports.dateformat = dateformat;
13
13
  //#region @backend
14
+ // @ts-ignore
15
+ var callsite_record_1 = require("callsite-record");
16
+ exports.createCallsiteRecord = callsite_record_1.default;
14
17
  var pathBase = require("path");
15
18
  var os = require("os");
16
19
  exports.os = os;
@@ -23,7 +26,6 @@ exports.https = https;
23
26
  var net = require("net");
24
27
  exports.net = net;
25
28
  var chalk_1 = require("chalk");
26
- exports.chalk = chalk_1.default;
27
29
  var spawn = require("cross-spawn");
28
30
  exports.spawn = spawn;
29
31
  var glob = require("glob");
@@ -60,6 +62,7 @@ function isElevated() {
60
62
  exports.isElevated = isElevated;
61
63
  ;
62
64
  //#endregion
65
+ //#region mock path
63
66
  /* */
64
67
  /* */
65
68
  var path
@@ -70,6 +73,19 @@ exports.path = path;
70
73
  /* */
71
74
  /* */
72
75
  /* */
76
+ //#endregion
77
+ //#region mock chalk
78
+ /* */
79
+ /* */
80
+ var chalk
81
+ // #region @backend
82
+ = chalk_1.default;
83
+ exports.chalk = chalk;
84
+ //#endregion
85
+ /* */
86
+ /* */
87
+ /* */
88
+ //#endregion
73
89
  function win32Path(p) {
74
90
  //#region @backend
75
91
  if (process.platform !== 'win32') {
@@ -82,13 +98,16 @@ function win32Path(p) {
82
98
  return path.win32.normalize(p);
83
99
  }
84
100
  exports.win32Path = win32Path;
85
- function crossPlatformPath(pathStringOrPathParts) {
101
+ /**
102
+ * This funciton will replace // to /
103
+ */
104
+ var crossPlatformPath = function (pathStringOrPathParts) {
86
105
  if (Array.isArray(pathStringOrPathParts)) {
87
106
  pathStringOrPathParts = pathStringOrPathParts.join('/');
88
107
  }
89
108
  //#region @backend
90
109
  if (process.platform !== 'win32') {
91
- return pathStringOrPathParts;
110
+ return pathStringOrPathParts === null || pathStringOrPathParts === void 0 ? void 0 : pathStringOrPathParts.replace(/\/\//g, '/');
92
111
  }
93
112
  //#endregion
94
113
  if (typeof pathStringOrPathParts !== 'string') {
@@ -97,10 +116,10 @@ function crossPlatformPath(pathStringOrPathParts) {
97
116
  var isExtendedLengthPath = /^\\\\\?\\/.test(pathStringOrPathParts);
98
117
  var hasNonAscii = /[^\u0000-\u0080]+/.test(pathStringOrPathParts); // eslint-disable-line no-control-regex
99
118
  if (isExtendedLengthPath || hasNonAscii) {
100
- return pathStringOrPathParts;
119
+ return pathStringOrPathParts === null || pathStringOrPathParts === void 0 ? void 0 : pathStringOrPathParts.replace(/\/\//g, '/');
101
120
  }
102
- return pathStringOrPathParts.replace(/\\/g, '/');
103
- }
121
+ return pathStringOrPathParts.replace(/\\/g, '/').replace(/\/\//g, '/');
122
+ };
104
123
  exports.crossPlatformPath = crossPlatformPath;
105
124
  //#endregion
106
125
  //# sourceMappingURL=core-imports.js.map