@futdevpro/nts-dynamo 1.9.25 → 1.9.26
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/build/_models/control-models/endpoint-params.control-model.d.ts.map +1 -1
- package/build/_models/control-models/endpoint-params.control-model.js +8 -10
- package/build/_models/control-models/endpoint-params.control-model.js.map +1 -1
- package/build/_modules/socket/_services/app-extended.server.d.ts.map +1 -1
- package/build/_modules/socket/_services/app-extended.server.js +27 -10
- package/build/_modules/socket/_services/app-extended.server.js.map +1 -1
- package/build/_modules/socket/_services/socket-client.service.d.ts.map +1 -1
- package/build/_modules/socket/_services/socket-client.service.js +8 -3
- package/build/_modules/socket/_services/socket-client.service.js.map +1 -1
- package/build/_modules/socket/index.d.ts +1 -0
- package/build/_modules/socket/index.d.ts.map +1 -1
- package/build/_modules/socket/index.js +1 -0
- package/build/_modules/socket/index.js.map +1 -1
- package/build/_services/core/api.service.d.ts.map +1 -1
- package/build/_services/core/api.service.js +12 -12
- package/build/_services/core/api.service.js.map +1 -1
- package/build/_services/core/global.service.d.ts.map +1 -1
- package/build/_services/core/global.service.js +6 -10
- package/build/_services/core/global.service.js.map +1 -1
- package/build/_services/server/app.server.d.ts.map +1 -1
- package/build/_services/server/app.server.js +45 -9
- package/build/_services/server/app.server.js.map +1 -1
- package/package.json +2 -2
- package/src/_models/control-models/endpoint-params.control-model.ts +16 -19
- package/src/_modules/socket/_services/app-extended.server.ts +38 -24
- package/src/_modules/socket/_services/socket-client.service.ts +13 -8
- package/src/_modules/socket/index.ts +2 -0
- package/src/_services/core/api.service.ts +12 -18
- package/src/_services/core/global.service.ts +16 -21
- package/src/_services/server/app.server.ts +68 -25
|
@@ -251,7 +251,7 @@ export abstract class DyNTS_App extends DyNTS_SingletonService {
|
|
|
251
251
|
|
|
252
252
|
defaultErrorUserMsg =
|
|
253
253
|
`We encountered a Server Error, ` +
|
|
254
|
-
`\nplease contact the responsible development team
|
|
254
|
+
`\nplease contact the responsible development team.` +
|
|
255
255
|
`\n(Internal Server error)`;
|
|
256
256
|
|
|
257
257
|
get logSetup(): boolean {
|
|
@@ -269,9 +269,11 @@ export abstract class DyNTS_App extends DyNTS_SingletonService {
|
|
|
269
269
|
super();
|
|
270
270
|
|
|
271
271
|
process.on('unhandledRejection', (reason: object, p_passWhatIsThis: any): void => {
|
|
272
|
-
DyFM_Log.
|
|
273
|
-
'Unhandled Rejection
|
|
274
|
-
'\
|
|
272
|
+
DyFM_Log.H_error(
|
|
273
|
+
'Unhandled Rejection: ', p_passWhatIsThis.toString().split('at')[0],
|
|
274
|
+
'\n Rejection reason:', reason.toString().split('at')[0],
|
|
275
|
+
'\n\n Stack:',
|
|
276
|
+
(reason as any).stack.toString().split('\n at').shift().join('\n at')
|
|
275
277
|
);
|
|
276
278
|
|
|
277
279
|
try {
|
|
@@ -294,18 +296,17 @@ export abstract class DyNTS_App extends DyNTS_SingletonService {
|
|
|
294
296
|
});
|
|
295
297
|
|
|
296
298
|
this.asyncConstruct(extended).catch((error: any): void => {
|
|
297
|
-
if (
|
|
299
|
+
if (
|
|
300
|
+
DyNTS_global_settings.log_settings.highDetailedLogs ||
|
|
301
|
+
!(error instanceof DyFM_Error)
|
|
302
|
+
) {
|
|
298
303
|
DyFM_Log.H_error(
|
|
299
|
-
`Application: ${this.params?.name} start failed
|
|
300
|
-
`\
|
|
304
|
+
`Application: "${this.params?.name}" start failed. (constructor asyncConstruct.catch)`,
|
|
305
|
+
`\n ERROR:`, error
|
|
301
306
|
);
|
|
302
307
|
} else {
|
|
303
|
-
|
|
304
|
-
`Application: ${this.params?.name} start failed
|
|
305
|
-
`\nErrorMessage: ${(error as DyFM_Error)._message}`,
|
|
306
|
-
`\nErrorCode: ${(error as DyFM_Error)._errorCode}`,
|
|
307
|
-
`\nUserMessage: ${(error as DyFM_Error).__userMessage}`,
|
|
308
|
-
`\nStack: ${(error as DyFM_Error).error.stack}`,
|
|
308
|
+
error.logSimple(
|
|
309
|
+
`Application: "${this.params?.name}" start failed. (constructor asyncConstruct.catch)`
|
|
309
310
|
);
|
|
310
311
|
}
|
|
311
312
|
});
|
|
@@ -430,10 +431,24 @@ export abstract class DyNTS_App extends DyNTS_SingletonService {
|
|
|
430
431
|
const start: number = +new Date();
|
|
431
432
|
|
|
432
433
|
if (this.constructErrors.length) {
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
434
|
+
if (DyNTS_global_settings.log_settings.highDetailedLogs) {
|
|
435
|
+
DyFM_Log.H_error(
|
|
436
|
+
`${this._params.name} start failed. (ready check 1)`,
|
|
437
|
+
`\n construct ERRORS:`, this.constructErrors
|
|
438
|
+
);
|
|
439
|
+
} else {
|
|
440
|
+
DyFM_Log.H_error(
|
|
441
|
+
`${this._params.name} start failed. (ready check 1)`,
|
|
442
|
+
`\n construct ERRORS:`,
|
|
443
|
+
this.constructErrors.map((error: any): any => {
|
|
444
|
+
if (error instanceof DyFM_Error) {
|
|
445
|
+
return error.getErrorSimplified();
|
|
446
|
+
} else {
|
|
447
|
+
return error;
|
|
448
|
+
}
|
|
449
|
+
}),
|
|
450
|
+
);
|
|
451
|
+
}
|
|
437
452
|
|
|
438
453
|
throw new DyFM_Error({
|
|
439
454
|
...this._getDefaultErrorSettings(
|
|
@@ -466,10 +481,24 @@ export abstract class DyNTS_App extends DyNTS_SingletonService {
|
|
|
466
481
|
}
|
|
467
482
|
|
|
468
483
|
if (timeout < +new Date() - start) {
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
484
|
+
if (DyNTS_global_settings.log_settings.highDetailedLogs) {
|
|
485
|
+
DyFM_Log.H_error(
|
|
486
|
+
`${this._params.name} start failed. TIMEOUT`,
|
|
487
|
+
`\n construct ERRORS:`, this.constructErrors
|
|
488
|
+
);
|
|
489
|
+
} else {
|
|
490
|
+
DyFM_Log.H_error(
|
|
491
|
+
`${this._params.name} start failed. TIMEOUT`,
|
|
492
|
+
`\n construct ERRORS:`,
|
|
493
|
+
this.constructErrors.map((error: any): any => {
|
|
494
|
+
if (error instanceof DyFM_Error) {
|
|
495
|
+
return error.getErrorSimplified();
|
|
496
|
+
} else {
|
|
497
|
+
return error;
|
|
498
|
+
}
|
|
499
|
+
}),
|
|
500
|
+
);
|
|
501
|
+
}
|
|
473
502
|
|
|
474
503
|
throw new DyFM_Error({
|
|
475
504
|
...this._getDefaultErrorSettings(
|
|
@@ -491,10 +520,24 @@ export abstract class DyNTS_App extends DyNTS_SingletonService {
|
|
|
491
520
|
}
|
|
492
521
|
|
|
493
522
|
if (this.constructErrors.length) {
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
523
|
+
if (DyNTS_global_settings.log_settings.highDetailedLogs) {
|
|
524
|
+
DyFM_Log.H_error(
|
|
525
|
+
`${this._params.name} start failed. (ready check 2)`,
|
|
526
|
+
`\n construct ERRORS:`, this.constructErrors
|
|
527
|
+
);
|
|
528
|
+
} else {
|
|
529
|
+
DyFM_Log.H_error(
|
|
530
|
+
`${this._params.name} start failed. (ready check 2)`,
|
|
531
|
+
`\n construct ERRORS:`,
|
|
532
|
+
this.constructErrors.map((error: any): any => {
|
|
533
|
+
if (error instanceof DyFM_Error) {
|
|
534
|
+
return error.getErrorSimplified();
|
|
535
|
+
} else {
|
|
536
|
+
return error;
|
|
537
|
+
}
|
|
538
|
+
}),
|
|
539
|
+
);
|
|
540
|
+
}
|
|
498
541
|
|
|
499
542
|
throw new DyFM_Error({
|
|
500
543
|
...this._getDefaultErrorSettings(
|