opticore-catch-exception-error 1.0.3 → 1.0.4

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
@@ -714,10 +714,14 @@ 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(import_node_process.default.cwd(), "src", "utils", "translations"), import_opticore_env_access.getEnvVariable.defaultLocal);
718
+ import_opticore_translator2.TranslationLoader.loadTranslations(import_path.default.join("src", "utils", "translations"), import_opticore_env_access.getEnvVariable.defaultLocal);
720
719
  };
720
+
721
+ // src/index.ts
722
+ (() => {
723
+ translateCatchExceptionErrorLanguageLoader();
724
+ })();
721
725
  // Annotate the CommonJS export names for ESM import in node:
722
726
  0 && (module.exports = {
723
727
  CErrorName,
package/dist/index.js CHANGED
@@ -663,10 +663,14 @@ 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(process2.cwd(), "src", "utils", "translations"), getEnvVariable.defaultLocal);
667
+ TranslationLoader2.loadTranslations(path.join("src", "utils", "translations"), getEnvVariable.defaultLocal);
669
668
  };
669
+
670
+ // src/index.ts
671
+ (() => {
672
+ translateCatchExceptionErrorLanguageLoader();
673
+ })();
670
674
  export {
671
675
  CErrorName,
672
676
  CEvent,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opticore-catch-exception-error",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "opticore catch exception error",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",