opticore-catch-exception-error 1.0.4 → 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 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("");
@@ -715,13 +715,8 @@ 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
717
  var translateCatchExceptionErrorLanguageLoader = () => {
718
- import_opticore_translator2.TranslationLoader.loadTranslations(import_path.default.join("src", "utils", "translations"), import_opticore_env_access.getEnvVariable.defaultLocal);
718
+ import_opticore_translator2.TranslationLoader.loadTranslations(import_path.default.join("src", "shared", "translations"), import_opticore_env_access.getEnvVariable.defaultLocal);
719
719
  };
720
-
721
- // src/index.ts
722
- (() => {
723
- translateCatchExceptionErrorLanguageLoader();
724
- })();
725
720
  // Annotate the CommonJS export names for ESM import in node:
726
721
  0 && (module.exports = {
727
722
  CErrorName,
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("");
@@ -664,13 +664,8 @@ import path from "path";
664
664
  import { TranslationLoader as TranslationLoader2 } from "opticore-translator";
665
665
  import { getEnvVariable } from "opticore-env-access";
666
666
  var translateCatchExceptionErrorLanguageLoader = () => {
667
- TranslationLoader2.loadTranslations(path.join("src", "utils", "translations"), getEnvVariable.defaultLocal);
667
+ TranslationLoader2.loadTranslations(path.join("src", "shared", "translations"), getEnvVariable.defaultLocal);
668
668
  };
669
-
670
- // src/index.ts
671
- (() => {
672
- translateCatchExceptionErrorLanguageLoader();
673
- })();
674
669
  export {
675
670
  CErrorName,
676
671
  CEvent,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opticore-catch-exception-error",
3
- "version": "1.0.4",
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.1",
29
+ "opticore-express": "^1.0.3",
30
30
  "opticore-http-response": "^1.0.3",
31
- "opticore-translator": "^1.0.1",
31
+ "opticore-translator": "^1.0.2",
32
32
  "tsx": "^4.19.3"
33
33
  },
34
34
  "devDependencies": {