@visulima/error-handler 2.0.0-alpha.12 → 2.0.0-alpha.13
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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## @visulima/error-handler [2.0.0-alpha.13](https://github.com/visulima/visulima/compare/@visulima/error-handler@2.0.0-alpha.12...@visulima/error-handler@2.0.0-alpha.13) (2026-04-30)
|
|
2
|
+
|
|
3
|
+
### Miscellaneous Chores
|
|
4
|
+
|
|
5
|
+
* **error-handler:** upgrade packem to 2.0.0-alpha.76 ([33bd1ff](https://github.com/visulima/visulima/commit/33bd1ffe927a6637444696b4acfd7a9052b26a8f))
|
|
6
|
+
* re-sort workspace package.json files via vis sort-package-json ([f625696](https://github.com/visulima/visulima/commit/f625696cfac974325774b3243e1a83c3d23acbd7))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Dependencies
|
|
10
|
+
|
|
11
|
+
* **@visulima/error:** upgraded to 6.0.0-alpha.14
|
|
12
|
+
|
|
1
13
|
## @visulima/error-handler [2.0.0-alpha.12](https://github.com/visulima/visulima/compare/@visulima/error-handler@2.0.0-alpha.11...@visulima/error-handler@2.0.0-alpha.12) (2026-04-22)
|
|
2
14
|
|
|
3
15
|
### Bug Fixes
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { a as ErrorHandler } from "../packem_shared/types.d-C763gSYq.js";
|
|
2
2
|
import 'node:http';
|
|
3
|
+
/**
|
|
4
|
+
* Normalizes errors according to the API Problem spec (RFC 7807).
|
|
5
|
+
* @see https://tools.ietf.org/html/rfc7807
|
|
6
|
+
*/
|
|
3
7
|
declare const problemErrorHandler: ErrorHandler;
|
|
4
8
|
export { problemErrorHandler as default };
|
|
@@ -5,5 +5,5 @@ declare const fetchHandler: (error: Error, options?: HtmlErrorHandlerOptions & {
|
|
|
5
5
|
extraHandlers?: FetchErrorHandlers;
|
|
6
6
|
onError?: (error: Error, request: Request) => void | Promise<void>;
|
|
7
7
|
showTrace?: boolean;
|
|
8
|
-
}) => (
|
|
8
|
+
}) => (request: Request) => Promise<Response>;
|
|
9
9
|
export { fetchHandler as default };
|
|
@@ -5,5 +5,5 @@ declare const nodeHandler: (error: Error, options?: HtmlErrorHandlerOptions & {
|
|
|
5
5
|
extraHandlers?: ErrorHandlers;
|
|
6
6
|
onError?: (error: Error, request: IncomingMessage, response: ServerResponse) => void | Promise<void>;
|
|
7
7
|
showTrace?: boolean;
|
|
8
|
-
}) => (
|
|
8
|
+
}) => (request: IncomingMessage, response: ServerResponse) => Promise<void>;
|
|
9
9
|
export { nodeHandler as default };
|
package/package.json
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visulima/error-handler",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.13",
|
|
4
4
|
"description": "Error handlers for use in development and production environments.",
|
|
5
5
|
"keywords": [
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"exception",
|
|
9
|
-
"error-handlers",
|
|
10
|
-
"diagnostics",
|
|
11
|
-
"debugging",
|
|
12
|
-
"stacktrace",
|
|
6
|
+
"anolilab",
|
|
7
|
+
"cli",
|
|
13
8
|
"code-frame",
|
|
14
9
|
"codeframe",
|
|
15
|
-
"
|
|
10
|
+
"connect",
|
|
16
11
|
"content-negotiation",
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
12
|
+
"debugging",
|
|
13
|
+
"devtools",
|
|
14
|
+
"diagnostics",
|
|
15
|
+
"error",
|
|
16
|
+
"error-handler",
|
|
17
|
+
"error-handlers",
|
|
18
|
+
"error-reporting",
|
|
19
|
+
"exception",
|
|
20
|
+
"express",
|
|
21
|
+
"html-error",
|
|
22
|
+
"http-errors",
|
|
20
23
|
"json-api",
|
|
24
|
+
"jsonapi",
|
|
21
25
|
"jsonp",
|
|
22
|
-
"xml",
|
|
23
|
-
"html-error",
|
|
24
|
-
"cli",
|
|
25
|
-
"node",
|
|
26
|
-
"express",
|
|
27
|
-
"connect",
|
|
28
26
|
"middleware",
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
27
|
+
"node",
|
|
28
|
+
"problem-json",
|
|
29
|
+
"rfc7807",
|
|
30
|
+
"source-code-preview",
|
|
31
|
+
"stacktrace",
|
|
32
|
+
"visulima",
|
|
32
33
|
"whoops",
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"error-handler"
|
|
34
|
+
"xml",
|
|
35
|
+
"youch"
|
|
36
36
|
],
|
|
37
37
|
"homepage": "https://visulima.com/packages/error-handler",
|
|
38
38
|
"bugs": {
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
"dependencies": {
|
|
136
136
|
"@tinyhttp/accepts": "^2.3.0",
|
|
137
137
|
"@visulima/boxen": "3.0.0-alpha.10",
|
|
138
|
-
"@visulima/error": "6.0.0-alpha.
|
|
138
|
+
"@visulima/error": "6.0.0-alpha.14",
|
|
139
139
|
"http-errors": "^2.0.1",
|
|
140
140
|
"http-status-codes": "^2.3.0",
|
|
141
141
|
"jstoxml": "^7.1.0",
|