@ooneex/exception 1.1.3 → 1.2.0

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.d.ts CHANGED
@@ -8,6 +8,7 @@ type ExceptionStackFrameType = {
8
8
  source: string;
9
9
  };
10
10
  interface IException {
11
+ readonly key: string | null;
11
12
  readonly date: Date;
12
13
  readonly status: StatusCodeType;
13
14
  readonly data: Readonly<Record<string, unknown>>;
@@ -18,11 +19,13 @@ interface IException {
18
19
  stackToJson: () => ExceptionStackFrameType[] | null;
19
20
  }
20
21
  declare class Exception extends Error implements IException {
22
+ readonly key: string | null;
21
23
  readonly date: Date;
22
24
  readonly status: StatusCodeType2;
23
25
  readonly data: Record<string, unknown>;
24
26
  readonly native?: Error;
25
27
  constructor(message: string | Error, options?: {
28
+ key?: string | null;
26
29
  status?: StatusCodeType2;
27
30
  data?: Record<string, unknown>;
28
31
  });
@@ -33,15 +36,15 @@ declare class Exception extends Error implements IException {
33
36
  stackToJson(): ExceptionStackFrameType[] | null;
34
37
  }
35
38
  declare class BadRequestException extends Exception {
36
- constructor(message: string, data?: Record<string, unknown>);
39
+ constructor(message: string, key: string, data?: Record<string, unknown>);
37
40
  }
38
41
  declare class MethodNotAllowedException extends Exception {
39
- constructor(message: string, data?: Record<string, unknown>);
42
+ constructor(message: string, key: string, data?: Record<string, unknown>);
40
43
  }
41
44
  declare class NotFoundException extends Exception {
42
- constructor(message: string, data?: Record<string, unknown>);
45
+ constructor(message: string, key: string, data?: Record<string, unknown>);
43
46
  }
44
47
  declare class UnauthorizedException extends Exception {
45
- constructor(message: string, data?: Record<string, unknown>);
48
+ constructor(message: string, key: string, data?: Record<string, unknown>);
46
49
  }
47
50
  export { UnauthorizedException, NotFoundException, MethodNotAllowedException, IException, ExceptionStackFrameType, Exception, BadRequestException };
package/dist/index.js CHANGED
@@ -3,12 +3,14 @@ import { HttpStatus } from "@ooneex/http-status";
3
3
 
4
4
  // src/Exception.ts
5
5
  class Exception extends Error {
6
+ key;
6
7
  date = new Date;
7
8
  status;
8
9
  data;
9
10
  native;
10
11
  constructor(message, options) {
11
12
  super(message instanceof Error ? message.message : message);
13
+ this.key = options?.key ?? null;
12
14
  this.status = options?.status || 500;
13
15
  this.data = options?.data || {};
14
16
  if (message instanceof Error) {
@@ -86,8 +88,9 @@ class Exception extends Error {
86
88
 
87
89
  // src/BadRequestException.ts
88
90
  class BadRequestException extends Exception {
89
- constructor(message, data = {}) {
91
+ constructor(message, key, data = {}) {
90
92
  super(message, {
93
+ key,
91
94
  status: HttpStatus.Code.BadRequest,
92
95
  data
93
96
  });
@@ -97,8 +100,9 @@ class BadRequestException extends Exception {
97
100
  // src/MethodNotAllowedException.ts
98
101
  import { HttpStatus as HttpStatus2 } from "@ooneex/http-status";
99
102
  class MethodNotAllowedException extends Exception {
100
- constructor(message, data = {}) {
103
+ constructor(message, key, data = {}) {
101
104
  super(message, {
105
+ key,
102
106
  status: HttpStatus2.Code.MethodNotAllowed,
103
107
  data
104
108
  });
@@ -108,8 +112,9 @@ class MethodNotAllowedException extends Exception {
108
112
  // src/NotFoundException.ts
109
113
  import { HttpStatus as HttpStatus3 } from "@ooneex/http-status";
110
114
  class NotFoundException extends Exception {
111
- constructor(message, data = {}) {
115
+ constructor(message, key, data = {}) {
112
116
  super(message, {
117
+ key,
113
118
  status: HttpStatus3.Code.NotFound,
114
119
  data
115
120
  });
@@ -119,8 +124,9 @@ class NotFoundException extends Exception {
119
124
  // src/UnauthorizedException.ts
120
125
  import { HttpStatus as HttpStatus4 } from "@ooneex/http-status";
121
126
  class UnauthorizedException extends Exception {
122
- constructor(message, data = {}) {
127
+ constructor(message, key, data = {}) {
123
128
  super(message, {
129
+ key,
124
130
  status: HttpStatus4.Code.Unauthorized,
125
131
  data
126
132
  });
@@ -135,4 +141,4 @@ export {
135
141
  BadRequestException
136
142
  };
137
143
 
138
- //# debugId=61ED8CC9C66369BB64756E2164756E21
144
+ //# debugId=847DEAA4A2C723C464756E2164756E21
package/dist/index.js.map CHANGED
@@ -2,13 +2,13 @@
2
2
  "version": 3,
3
3
  "sources": ["src/BadRequestException.ts", "src/Exception.ts", "src/MethodNotAllowedException.ts", "src/NotFoundException.ts", "src/UnauthorizedException.ts"],
4
4
  "sourcesContent": [
5
- "import { HttpStatus } from \"@ooneex/http-status\";\nimport { Exception } from \"./Exception\";\n\nexport class BadRequestException extends Exception {\n constructor(message: string, data: Record<string, unknown> = {}) {\n super(message, {\n status: HttpStatus.Code.BadRequest,\n data,\n });\n this.name = \"BadRequestException\";\n }\n}\n",
6
- "import type { StatusCodeType } from \"@ooneex/http-status\";\nimport type { ExceptionStackFrameType, IException } from \"./types\";\n\nexport class Exception extends Error implements IException {\n public readonly date: Date = new Date();\n public readonly status: StatusCodeType;\n public readonly data: Record<string, unknown>;\n public readonly native?: Error;\n\n constructor(message: string | Error, options?: { status?: StatusCodeType; data?: Record<string, unknown> }) {\n super(message instanceof Error ? (message as Error).message : message);\n\n this.status = options?.status || 500;\n this.data = options?.data || {};\n\n if (message instanceof Error) {\n this.native = message as Error;\n }\n this.name = this.constructor.name;\n this.data = Object.freeze(this.data);\n }\n\n /**\n * Converts the stack trace into a structured JSON object\n * @returns Array of stack frames or null if no stack trace is available\n */\n public stackToJson(): ExceptionStackFrameType[] | null {\n if (!this.stack) {\n return null;\n }\n\n const stackLines = this.stack.split(\"\\n\");\n const frames: ExceptionStackFrameType[] = [];\n\n // Skip the first line (error message) and process stack frames\n for (let i = 1; i < stackLines.length; i++) {\n const line = stackLines[i]?.trim();\n if (!line) continue;\n\n const frame: ExceptionStackFrameType = {\n source: line,\n };\n\n // Parse common stack trace formats\n // Format: \" at functionName (file:line:column)\"\n // Format: \" at file:line:column\"\n // Format: \" at functionName (file)\"\n\n const atMatch = line.match(/^\\s*at\\s+(.+)$/);\n if (atMatch) {\n const content = atMatch[1];\n\n // Check if it has parentheses (function name with location)\n const funcWithLocationMatch = content?.match(/^(.+?)\\s+\\((.+)\\)$/);\n if (funcWithLocationMatch) {\n const functionName = funcWithLocationMatch[1];\n const location = funcWithLocationMatch[2];\n\n if (functionName) {\n frame.functionName = functionName;\n }\n\n // Parse file:line:column\n const locationMatch = location?.match(/^(.+):(\\d+):(\\d+)$/);\n if (locationMatch) {\n const fileName = locationMatch[1];\n const lineNum = locationMatch[2];\n const colNum = locationMatch[3];\n\n if (fileName) {\n frame.fileName = fileName;\n }\n if (lineNum) {\n frame.lineNumber = Number.parseInt(lineNum, 10);\n }\n if (colNum) {\n frame.columnNumber = Number.parseInt(colNum, 10);\n }\n } else if (location) {\n frame.fileName = location;\n }\n } else {\n // Direct file:line:column format\n const directLocationMatch = content?.match(/^(.+):(\\d+):(\\d+)$/);\n if (directLocationMatch) {\n const fileName = directLocationMatch[1];\n const lineNum = directLocationMatch[2];\n const colNum = directLocationMatch[3];\n\n if (fileName) {\n frame.fileName = fileName;\n }\n if (lineNum) {\n frame.lineNumber = Number.parseInt(lineNum, 10);\n }\n if (colNum) {\n frame.columnNumber = Number.parseInt(colNum, 10);\n }\n } else if (content) {\n // Assume it's a function name or location without line numbers\n frame.functionName = content;\n }\n }\n }\n\n frames.push(frame);\n }\n\n return frames;\n }\n}\n",
7
- "import { HttpStatus } from \"@ooneex/http-status\";\nimport { Exception } from \"./Exception\";\n\nexport class MethodNotAllowedException extends Exception {\n constructor(message: string, data: Record<string, unknown> = {}) {\n super(message, {\n status: HttpStatus.Code.MethodNotAllowed,\n data,\n });\n this.name = \"MethodNotAllowedException\";\n }\n}\n",
8
- "import { HttpStatus } from \"@ooneex/http-status\";\nimport { Exception } from \"./Exception\";\n\nexport class NotFoundException extends Exception {\n constructor(message: string, data: Record<string, unknown> = {}) {\n super(message, {\n status: HttpStatus.Code.NotFound,\n data,\n });\n this.name = \"NotFoundException\";\n }\n}\n",
9
- "import { HttpStatus } from \"@ooneex/http-status\";\nimport { Exception } from \"./Exception\";\n\nexport class UnauthorizedException extends Exception {\n constructor(message: string, data: Record<string, unknown> = {}) {\n super(message, {\n status: HttpStatus.Code.Unauthorized,\n data,\n });\n this.name = \"UnauthorizedException\";\n }\n}\n"
5
+ "import { HttpStatus } from \"@ooneex/http-status\";\nimport { Exception } from \"./Exception\";\n\nexport class BadRequestException extends Exception {\n constructor(message: string, key: string, data: Record<string, unknown> = {}) {\n super(message, {\n key,\n status: HttpStatus.Code.BadRequest,\n data,\n });\n this.name = \"BadRequestException\";\n }\n}\n",
6
+ "import type { StatusCodeType } from \"@ooneex/http-status\";\nimport type { ExceptionStackFrameType, IException } from \"./types\";\n\nexport class Exception extends Error implements IException {\n public readonly key: string | null;\n public readonly date: Date = new Date();\n public readonly status: StatusCodeType;\n public readonly data: Record<string, unknown>;\n public readonly native?: Error;\n\n constructor(\n message: string | Error,\n options?: { key?: string | null; status?: StatusCodeType; data?: Record<string, unknown> },\n ) {\n super(message instanceof Error ? (message as Error).message : message);\n\n this.key = options?.key ?? null;\n this.status = options?.status || 500;\n this.data = options?.data || {};\n\n if (message instanceof Error) {\n this.native = message as Error;\n }\n this.name = this.constructor.name;\n this.data = Object.freeze(this.data);\n }\n\n /**\n * Converts the stack trace into a structured JSON object\n * @returns Array of stack frames or null if no stack trace is available\n */\n public stackToJson(): ExceptionStackFrameType[] | null {\n if (!this.stack) {\n return null;\n }\n\n const stackLines = this.stack.split(\"\\n\");\n const frames: ExceptionStackFrameType[] = [];\n\n // Skip the first line (error message) and process stack frames\n for (let i = 1; i < stackLines.length; i++) {\n const line = stackLines[i]?.trim();\n if (!line) continue;\n\n const frame: ExceptionStackFrameType = {\n source: line,\n };\n\n // Parse common stack trace formats\n // Format: \" at functionName (file:line:column)\"\n // Format: \" at file:line:column\"\n // Format: \" at functionName (file)\"\n\n const atMatch = line.match(/^\\s*at\\s+(.+)$/);\n if (atMatch) {\n const content = atMatch[1];\n\n // Check if it has parentheses (function name with location)\n const funcWithLocationMatch = content?.match(/^(.+?)\\s+\\((.+)\\)$/);\n if (funcWithLocationMatch) {\n const functionName = funcWithLocationMatch[1];\n const location = funcWithLocationMatch[2];\n\n if (functionName) {\n frame.functionName = functionName;\n }\n\n // Parse file:line:column\n const locationMatch = location?.match(/^(.+):(\\d+):(\\d+)$/);\n if (locationMatch) {\n const fileName = locationMatch[1];\n const lineNum = locationMatch[2];\n const colNum = locationMatch[3];\n\n if (fileName) {\n frame.fileName = fileName;\n }\n if (lineNum) {\n frame.lineNumber = Number.parseInt(lineNum, 10);\n }\n if (colNum) {\n frame.columnNumber = Number.parseInt(colNum, 10);\n }\n } else if (location) {\n frame.fileName = location;\n }\n } else {\n // Direct file:line:column format\n const directLocationMatch = content?.match(/^(.+):(\\d+):(\\d+)$/);\n if (directLocationMatch) {\n const fileName = directLocationMatch[1];\n const lineNum = directLocationMatch[2];\n const colNum = directLocationMatch[3];\n\n if (fileName) {\n frame.fileName = fileName;\n }\n if (lineNum) {\n frame.lineNumber = Number.parseInt(lineNum, 10);\n }\n if (colNum) {\n frame.columnNumber = Number.parseInt(colNum, 10);\n }\n } else if (content) {\n // Assume it's a function name or location without line numbers\n frame.functionName = content;\n }\n }\n }\n\n frames.push(frame);\n }\n\n return frames;\n }\n}\n",
7
+ "import { HttpStatus } from \"@ooneex/http-status\";\nimport { Exception } from \"./Exception\";\n\nexport class MethodNotAllowedException extends Exception {\n constructor(message: string, key: string, data: Record<string, unknown> = {}) {\n super(message, {\n key,\n status: HttpStatus.Code.MethodNotAllowed,\n data,\n });\n this.name = \"MethodNotAllowedException\";\n }\n}\n",
8
+ "import { HttpStatus } from \"@ooneex/http-status\";\nimport { Exception } from \"./Exception\";\n\nexport class NotFoundException extends Exception {\n constructor(message: string, key: string, data: Record<string, unknown> = {}) {\n super(message, {\n key,\n status: HttpStatus.Code.NotFound,\n data,\n });\n this.name = \"NotFoundException\";\n }\n}\n",
9
+ "import { HttpStatus } from \"@ooneex/http-status\";\nimport { Exception } from \"./Exception\";\n\nexport class UnauthorizedException extends Exception {\n constructor(message: string, key: string, data: Record<string, unknown> = {}) {\n super(message, {\n key,\n status: Http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AAEhB;",
12
+ "debugId": "847DEAA4A2C723C464756E2164756E21",
13
13
  "names": []
14
14
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ooneex/exception",
3
3
  "description": "Structured exception handling with HTTP status code mapping, typed error data, and JSON-formatted stack traces for consistent error reporting",
4
- "version": "1.1.3",
4
+ "version": "1.2.0",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist",
@@ -28,7 +28,7 @@
28
28
  "npm:publish": "bun publish --tolerate-republish --force --production --access public"
29
29
  },
30
30
  "dependencies": {
31
- "@ooneex/http-status": "1.1.2"
31
+ "@ooneex/http-status": "1.1.3"
32
32
  },
33
33
  "devDependencies": {},
34
34
  "keywords": [