opticore-catch-exception-error 1.0.2 → 1.0.3
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 +13 -2
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +11 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -44,7 +44,8 @@ __export(index_exports, {
|
|
|
44
44
|
StackTraceSyntaxError: () => StackTraceSyntaxError,
|
|
45
45
|
StackTraceSystemError: () => StackTraceSystemError,
|
|
46
46
|
StackTraceTypeError: () => StackTraceTypeError,
|
|
47
|
-
StackTraceURIError: () => StackTraceURIError
|
|
47
|
+
StackTraceURIError: () => StackTraceURIError,
|
|
48
|
+
translateCatchExceptionErrorLanguageLoader: () => translateCatchExceptionErrorLanguageLoader
|
|
48
49
|
});
|
|
49
50
|
module.exports = __toCommonJS(index_exports);
|
|
50
51
|
|
|
@@ -708,6 +709,15 @@ var ServerListenEventError = class {
|
|
|
708
709
|
}
|
|
709
710
|
};
|
|
710
711
|
ServerListenEventError.logger = new import_opticore_logger.LoggerCore();
|
|
712
|
+
|
|
713
|
+
// src/core/config/loaders/translateLanguage.loader.ts
|
|
714
|
+
var import_path = __toESM(require("path"), 1);
|
|
715
|
+
var import_opticore_translator2 = require("opticore-translator");
|
|
716
|
+
var import_opticore_env_access = require("opticore-env-access");
|
|
717
|
+
var import_node_process = __toESM(require("process"), 1);
|
|
718
|
+
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);
|
|
720
|
+
};
|
|
711
721
|
// Annotate the CommonJS export names for ESM import in node:
|
|
712
722
|
0 && (module.exports = {
|
|
713
723
|
CErrorName,
|
|
@@ -724,5 +734,6 @@ ServerListenEventError.logger = new import_opticore_logger.LoggerCore();
|
|
|
724
734
|
StackTraceSyntaxError,
|
|
725
735
|
StackTraceSystemError,
|
|
726
736
|
StackTraceTypeError,
|
|
727
|
-
StackTraceURIError
|
|
737
|
+
StackTraceURIError,
|
|
738
|
+
translateCatchExceptionErrorLanguageLoader
|
|
728
739
|
});
|
package/dist/index.d.cts
CHANGED
|
@@ -233,4 +233,6 @@ declare class ServerListenEventError {
|
|
|
233
233
|
private static traceError;
|
|
234
234
|
}
|
|
235
235
|
|
|
236
|
-
|
|
236
|
+
declare const translateCatchExceptionErrorLanguageLoader: () => void;
|
|
237
|
+
|
|
238
|
+
export { CErrorName, CEvent, CEventNameError, ServerListenEventError, StackTraceAssertionError, StackTraceError, StackTraceEvalError, StackTraceGeneralError, StackTraceOpenSSLError, StackTraceRangeError, StackTraceReferenceError, StackTraceSyntaxError, StackTraceSystemError, StackTraceTypeError, StackTraceURIError, translateCatchExceptionErrorLanguageLoader };
|
package/dist/index.d.ts
CHANGED
|
@@ -233,4 +233,6 @@ declare class ServerListenEventError {
|
|
|
233
233
|
private static traceError;
|
|
234
234
|
}
|
|
235
235
|
|
|
236
|
-
|
|
236
|
+
declare const translateCatchExceptionErrorLanguageLoader: () => void;
|
|
237
|
+
|
|
238
|
+
export { CErrorName, CEvent, CEventNameError, ServerListenEventError, StackTraceAssertionError, StackTraceError, StackTraceEvalError, StackTraceGeneralError, StackTraceOpenSSLError, StackTraceRangeError, StackTraceReferenceError, StackTraceSyntaxError, StackTraceSystemError, StackTraceTypeError, StackTraceURIError, translateCatchExceptionErrorLanguageLoader };
|
package/dist/index.js
CHANGED
|
@@ -658,6 +658,15 @@ var ServerListenEventError = class {
|
|
|
658
658
|
}
|
|
659
659
|
};
|
|
660
660
|
ServerListenEventError.logger = new LoggerCore();
|
|
661
|
+
|
|
662
|
+
// src/core/config/loaders/translateLanguage.loader.ts
|
|
663
|
+
import path from "path";
|
|
664
|
+
import { TranslationLoader as TranslationLoader2 } from "opticore-translator";
|
|
665
|
+
import { getEnvVariable } from "opticore-env-access";
|
|
666
|
+
import process2 from "node:process";
|
|
667
|
+
var translateCatchExceptionErrorLanguageLoader = () => {
|
|
668
|
+
TranslationLoader2.loadTranslations(path.join(process2.cwd(), "src", "utils", "translations"), getEnvVariable.defaultLocal);
|
|
669
|
+
};
|
|
661
670
|
export {
|
|
662
671
|
CErrorName,
|
|
663
672
|
CEvent,
|
|
@@ -673,5 +682,6 @@ export {
|
|
|
673
682
|
StackTraceSyntaxError,
|
|
674
683
|
StackTraceSystemError,
|
|
675
684
|
StackTraceTypeError,
|
|
676
|
-
StackTraceURIError
|
|
685
|
+
StackTraceURIError,
|
|
686
|
+
translateCatchExceptionErrorLanguageLoader
|
|
677
687
|
};
|
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.3",
|
|
4
4
|
"description": "opticore catch exception error",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"homepage": "https://github.com/guyzoum77/opticore-catch-exception-error#readme",
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"chalk": "^5.4.1",
|
|
29
|
-
"node": "^22.13.5",
|
|
30
29
|
"opticore-express": "^1.0.1",
|
|
31
30
|
"opticore-http-response": "^1.0.3",
|
|
32
|
-
"opticore-translator": "^1.0.1"
|
|
31
|
+
"opticore-translator": "^1.0.1",
|
|
32
|
+
"tsx": "^4.19.3"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@types/node": "^22.13.5",
|