opticore-catch-exception-error 1.0.3 → 1.0.5
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/dist/index.cjs +2 -3
- package/dist/index.js +2 -3
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -333,7 +333,7 @@ var ServerListenEventError = class {
|
|
|
333
333
|
switch (code) {
|
|
334
334
|
case 0:
|
|
335
335
|
this.logger.success(
|
|
336
|
-
import_opticore_translator.TranslationLoader.t("completed", import_opticore_translator.CLocal, {}),
|
|
336
|
+
import_opticore_translator.TranslationLoader.t("completed", import_opticore_translator.CLocal, { code }),
|
|
337
337
|
import_opticore_translator.TranslationLoader.t("finishingProcessWell", import_opticore_translator.CLocal, { code })
|
|
338
338
|
);
|
|
339
339
|
console.log("");
|
|
@@ -714,9 +714,8 @@ ServerListenEventError.logger = new import_opticore_logger.LoggerCore();
|
|
|
714
714
|
var import_path = __toESM(require("path"), 1);
|
|
715
715
|
var import_opticore_translator2 = require("opticore-translator");
|
|
716
716
|
var import_opticore_env_access = require("opticore-env-access");
|
|
717
|
-
var import_node_process = __toESM(require("process"), 1);
|
|
718
717
|
var translateCatchExceptionErrorLanguageLoader = () => {
|
|
719
|
-
import_opticore_translator2.TranslationLoader.loadTranslations(import_path.default.join(
|
|
718
|
+
import_opticore_translator2.TranslationLoader.loadTranslations(import_path.default.join("src", "shared", "translations"), import_opticore_env_access.getEnvVariable.defaultLocal);
|
|
720
719
|
};
|
|
721
720
|
// Annotate the CommonJS export names for ESM import in node:
|
|
722
721
|
0 && (module.exports = {
|
package/dist/index.js
CHANGED
|
@@ -282,7 +282,7 @@ var ServerListenEventError = class {
|
|
|
282
282
|
switch (code) {
|
|
283
283
|
case 0:
|
|
284
284
|
this.logger.success(
|
|
285
|
-
TranslationLoader.t("completed", CLocal, {}),
|
|
285
|
+
TranslationLoader.t("completed", CLocal, { code }),
|
|
286
286
|
TranslationLoader.t("finishingProcessWell", CLocal, { code })
|
|
287
287
|
);
|
|
288
288
|
console.log("");
|
|
@@ -663,9 +663,8 @@ ServerListenEventError.logger = new LoggerCore();
|
|
|
663
663
|
import path from "path";
|
|
664
664
|
import { TranslationLoader as TranslationLoader2 } from "opticore-translator";
|
|
665
665
|
import { getEnvVariable } from "opticore-env-access";
|
|
666
|
-
import process2 from "node:process";
|
|
667
666
|
var translateCatchExceptionErrorLanguageLoader = () => {
|
|
668
|
-
TranslationLoader2.loadTranslations(path.join(
|
|
667
|
+
TranslationLoader2.loadTranslations(path.join("src", "shared", "translations"), getEnvVariable.defaultLocal);
|
|
669
668
|
};
|
|
670
669
|
export {
|
|
671
670
|
CErrorName,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opticore-catch-exception-error",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "opticore catch exception error",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"homepage": "https://github.com/guyzoum77/opticore-catch-exception-error#readme",
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"chalk": "^5.4.1",
|
|
29
|
-
"opticore-express": "^1.0.
|
|
29
|
+
"opticore-express": "^1.0.3",
|
|
30
30
|
"opticore-http-response": "^1.0.3",
|
|
31
|
-
"opticore-translator": "^1.0.
|
|
31
|
+
"opticore-translator": "^1.0.2",
|
|
32
32
|
"tsx": "^4.19.3"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|