opticore-catch-exception-error 1.0.21 → 1.0.22

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.
@@ -0,0 +1,58 @@
1
+ {
2
+ "errorHostUrl": "The host and port are not define, please define them in .env",
3
+ "listening": "listening",
4
+ "webServer": "Web server",
5
+ "webHost": "host",
6
+ "hostNotFound": "not found",
7
+ "badHost": "bad host {badHost}",
8
+ "badPort": "bad port or undefined",
9
+ "errorPort": "The port is not correct. Please define a right port with number port.",
10
+ "errorHost": "The host can't be empty or blank. Please define a string host in .env",
11
+ "serverStart": "Server start",
12
+ "serverStartError": "Server start with error {err}",
13
+ "processExitCode": "Process will exit with code: {code}",
14
+ "beforeExit": "BeforeExit",
15
+ "childProcessDiscon": "Child process disconnected",
16
+ "processDiscon": "process disconnected",
17
+ "completed": "completed with code {code}",
18
+ "finishingProcessWell": "The process is finishing well with code {code}",
19
+ "serverStopped": "[OK] The server shutting down",
20
+ "somethingWentWrong": "Something went wrong",
21
+ "genErrors": "General Errors",
22
+ "exited": "Exited",
23
+ "incorrectCmd": "Incorrect using of shell commands",
24
+ "misuseShell": "Misuse of shell builtins",
25
+ "cmdNotExecutable": "The command is found but is not executable (e.g., trying to execute a directory)",
26
+ "cmdNotFound": "Command not found",
27
+ "cmdNotFoundInSystemPath": "The command was not found in the system's PATH or is misspelled",
28
+ "argInvalid": "Invalid argument",
29
+ "scriptEndedManuallyByCtrlC": "Indicates that the script was manually terminated by the user using the Control-C (SIGINT) signal",
30
+ "scriptEnded": "Script terminated",
31
+ "processEndedBySIGKILL": "Indicates that the process was terminated by a SIGKILL signal, possibly due to an out-of-memory situation",
32
+ "accessProcessIllegally": "Indicates that the process accessed an illegal memory address (segfault)",
33
+ "defaultSegment": "Segmentation fault",
34
+ "processReceivedSigtermSignal": "Indicates that the process received a SIGTERM signal to terminate",
35
+ "processReceived": "process received a SIGTERM",
36
+ "exitCode": "An exit code that is outside the allowable range (0-255 for Unix-like systems)",
37
+ "outRange": "out of range",
38
+ "errorOccurring": "Error is occurring",
39
+ "errors": "errors",
40
+ "warning": "Warning {warning}",
41
+ "promiseRejectionHandled": "Promise rejection is handled at : {promise}",
42
+ "rejectionPromise": "rejection promise {promise}",
43
+ "uncaughtExceptionHandled": "uncaught exception handled : {error}",
44
+ "unhandledRejectionAtPromise": "Unhandled Rejection at: Promise {promise} -- reason {reason}",
45
+ "unhandledRejection": "Unhandled rejection at: Promise {promise} -- reason {reason}",
46
+ "processGotMsg": "process got message {message}",
47
+ "msgException": "message exception {}",
48
+ "promiseReason": "{promise} -- {reason}",
49
+ "multipleResolvesDetected": "Multiple resolves detected : {type}",
50
+ "okSuccess": "[ OK ] Success",
51
+ "processPIDReceivedSignal": "Process ${process.pid} received a SIGTERM signal : {signal} {promise} -- {reason}",
52
+ "allProcessStopped": "All processes are stopped",
53
+ "internalServerError": "Internal Server Error : {err}",
54
+ "resStatusNotFunc": "res.status is not a function {err}",
55
+ "respndNotFunc": "response not Function {err}",
56
+ "expressErrorHandlingMiddleware": "Express error-handling middleware {err}",
57
+ "expressError": "Express error {err}"
58
+ }
@@ -0,0 +1,58 @@
1
+ {
2
+ "errorHostUrl": "L'hôte et le port ne sont pas définis, veuillez les définir dans .env",
3
+ "listening": "écoute",
4
+ "webServer": "Serveur Web",
5
+ "webHost": "hôte",
6
+ "badHost": "mauvais hôte",
7
+ "hostNotFound": "introuvable",
8
+ "badPort": "mauvais port or non défini",
9
+ "errorPort": "Le port n'est pas correcte. Veuillez définir un port correct avec le numéro de port.",
10
+ "errorHost": "L'hôte ne peut être vide. Veuillez définir une chaîne d'hôte dans .env.",
11
+ "serverStart": "Démarrage du serveur",
12
+ "serverStartError": "Erreur de démarrage du serveur",
13
+ "processExitCode": "Le processus se terminera avec le code : {code}",
14
+ "beforeExit": "BeforeExit",
15
+ "childProcessDiscon": "Processus enfant déconnecté",
16
+ "processDiscon": "processus déconnecté",
17
+ "completed": "complété",
18
+ "finishingProcessWell": "Le processus se termine bien avec le code {code}",
19
+ "serverStopped": "[OK] Le serveur s'arrête",
20
+ "somethingWentWrong": "Quelque chose s'est mal passé",
21
+ "genErrors": "Erreur Generale",
22
+ "exited": "Sortie",
23
+ "incorrectCmd": "Utilisation incorrecte des commandes shell",
24
+ "misuseShell": "Mauvaise utilisation des fonctions intégrées du shell",
25
+ "cmdNotExecutable": "La commande est trouvée mais n'est pas exécutable (par exemple, tentative d'exécution d'un répertoire)",
26
+ "cmdNotFound": "Commande non trouvée",
27
+ "cmdNotFoundInSystemPath": "La commande n'a pas été trouvée dans le PATH du système ou est mal orthographiée",
28
+ "argInvalid": "Argument invalide",
29
+ "scriptEndedManuallyByCtrlC": "Indique que le script a été arrêté manuellement par l'utilisateur à l'aide du signal Control-C (SIGINT)",
30
+ "scriptEnded": "Script interrompu",
31
+ "processEndedBySIGKILL": "Indique que le processus a été interrompu par un signal SIGKILL, probablement en raison d'une situation de manque de mémoire",
32
+ "accessProcessIllegally": "Indique que le processus a accédé à une adresse mémoire illégale (segfault)",
33
+ "defaultSegment": "Erreur de segmentation",
34
+ "processReceivedSigtermSignal": "Indique que le processus a reçu un signal SIGTERM pour s'interrompre",
35
+ "processReceived": "le processus a reçu un SIGTERM",
36
+ "exitCode": "Code de sortie en dehors de la plage autorisée (0-255 pour les systèmes de type Unix)",
37
+ "outRange": "hors de portée",
38
+ "errorOccurring": "Une erreur se produit",
39
+ "errors": "erreurs",
40
+ "warning": "Avertissement",
41
+ "promiseRejectionHandled": "Le rejet de la promesse est traité à : {promise}",
42
+ "rejectionPromise": "promesse de rejet",
43
+ "uncaughtExceptionHandled": "exception non interceptée gérée",
44
+ "unhandledRejectionAtPromise": "Rejet non géré à : Promesse {promise} -- raison {reason}",
45
+ "unhandledRejection": "Rejet non traité",
46
+ "processGotMsg": "le processus a reçu le message {message}",
47
+ "msgException": "message d'exception",
48
+ "promiseReason": "{promise} -- {reason}",
49
+ "multipleResolvesDetected": "Résolutions multiples détectées : {type}",
50
+ "okSuccess": "[ OK ] Succès",
51
+ "processPIDReceivedSignal": "Le processus {process.pid} a reçu un signal SIGTERM",
52
+ "allProcessStopped": "Tous les processus sont interrompus",
53
+ "internalServerError": "Erreur interne du serveur : {err}",
54
+ "resStatusNotFunc": "res.status n'est pas une fonction {err}",
55
+ "respndNotFunc": "réponse non Fonction {err}",
56
+ "expressErrorHandlingMiddleware": "Middleware express de gestion des erreurs {err}",
57
+ "expressError": "Erreur express {err}"
58
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opticore-catch-exception-error",
3
- "version": "1.0.21",
3
+ "version": "1.0.22",
4
4
  "description": "opticore catch exception error",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -28,15 +28,17 @@
28
28
  "chalk": "^5.4.1",
29
29
  "opticore-express": "^1.0.3",
30
30
  "opticore-http-response": "^1.0.3",
31
- "opticore-translator": "^1.0.7"
31
+ "opticore-logger": "^1.0.17",
32
+ "opticore-server-logger": "^1.0.2",
33
+ "opticore-translator": "^1.0.10"
32
34
  },
33
35
  "devDependencies": {
34
36
  "@types/node": "^22.13.10",
35
- "ts-node": "^10.9.2",
36
37
  "reflect-metadata": "^0.2.2",
38
+ "ts-node": "^10.9.2",
37
39
  "tslib": "^2.8.1",
38
40
  "tsup": "^8.4.0",
39
- "typescript": "^5.4.5",
40
- "tsx": "^4.19.3"
41
+ "tsx": "^4.19.3",
42
+ "typescript": "^5.4.5"
41
43
  }
42
44
  }