opticore-catch-exception-error 1.0.8 → 1.0.9

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
@@ -95,6 +95,9 @@ var CEventNameError = {
95
95
 
96
96
  // src/core/errors/base/stackTraceError.ts
97
97
  var StackTraceError = class extends Error {
98
+ name;
99
+ httpCode;
100
+ isOperational;
98
101
  /**
99
102
  *
100
103
  * @param props
@@ -221,6 +224,8 @@ var translateCatchExceptionErrorLanguageLoader = () => {
221
224
 
222
225
  // src/core/errors/events/serverListen.event.error.ts
223
226
  var ServerListenEventError = class {
227
+ static logger = new import_opticore_logger.LoggerCore();
228
+ static stackTrace;
224
229
  static __init() {
225
230
  translateCatchExceptionErrorLanguageLoader();
226
231
  return this;
@@ -730,7 +735,6 @@ var ServerListenEventError = class {
730
735
  return new StackTraceError(props, name, status12, true);
731
736
  }
732
737
  };
733
- ServerListenEventError.logger = new import_opticore_logger.LoggerCore();
734
738
  // Annotate the CommonJS export names for ESM import in node:
735
739
  0 && (module.exports = {
736
740
  CErrorName,
package/dist/index.js CHANGED
@@ -41,6 +41,9 @@ var CEventNameError = {
41
41
 
42
42
  // src/core/errors/base/stackTraceError.ts
43
43
  var StackTraceError = class extends Error {
44
+ name;
45
+ httpCode;
46
+ isOperational;
44
47
  /**
45
48
  *
46
49
  * @param props
@@ -158,9 +161,8 @@ import path from "path";
158
161
  import { TranslationLoader } from "opticore-translator";
159
162
  import { getEnvVariable } from "opticore-env-access";
160
163
  import { fileURLToPath } from "url";
161
- var import_meta = {};
162
164
  var translateCatchExceptionErrorLanguageLoader = () => {
163
- const __filename2 = fileURLToPath(import_meta.url);
165
+ const __filename2 = fileURLToPath(import.meta.url);
164
166
  const __dirname2 = path.dirname(__filename2);
165
167
  const translateMsgJsonFilePath = path.join(__dirname2, "../../../", "utils", "translations");
166
168
  TranslationLoader.loadTranslations(translateMsgJsonFilePath, getEnvVariable.defaultLocal);
@@ -168,6 +170,8 @@ var translateCatchExceptionErrorLanguageLoader = () => {
168
170
 
169
171
  // src/core/errors/events/serverListen.event.error.ts
170
172
  var ServerListenEventError = class {
173
+ static logger = new LoggerCore();
174
+ static stackTrace;
171
175
  static __init() {
172
176
  translateCatchExceptionErrorLanguageLoader();
173
177
  return this;
@@ -677,7 +681,6 @@ var ServerListenEventError = class {
677
681
  return new StackTraceError(props, name, status12, true);
678
682
  }
679
683
  };
680
- ServerListenEventError.logger = new LoggerCore();
681
684
  export {
682
685
  CErrorName,
683
686
  CEvent,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opticore-catch-exception-error",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "opticore catch exception error",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
package/tsconfig.json CHANGED
@@ -4,9 +4,9 @@
4
4
  "noImplicitAny": true,
5
5
  "esModuleInterop": true,
6
6
  "strictNullChecks": true,
7
- "module": "commonjs",
7
+ "module": "ES2022",
8
8
  "pretty": true,
9
- "target": "es2017",
9
+ "target": "es2022",
10
10
  "moduleResolution": "node",
11
11
  "declaration": true,
12
12
  "isolatedModules": true,