@cripty2001/utils 0.0.45 → 0.0.47
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/Appserver/server.js
CHANGED
|
@@ -47,7 +47,6 @@ class Appserver {
|
|
|
47
47
|
return (0, msgpack_1.decode)(req.body);
|
|
48
48
|
}
|
|
49
49
|
catch (e) {
|
|
50
|
-
console.log(e);
|
|
51
50
|
throw new AppserverError('REQUEST_INVALID_BODY', 'Request body is not valid msgpack', 400);
|
|
52
51
|
}
|
|
53
52
|
})();
|
|
@@ -86,6 +85,7 @@ class Appserver {
|
|
|
86
85
|
status: e.status,
|
|
87
86
|
data: { error: e.message, code: e.code, payload: e.payload }
|
|
88
87
|
};
|
|
88
|
+
console.log("Unhandled server error:", e);
|
|
89
89
|
return {
|
|
90
90
|
status: 500,
|
|
91
91
|
data: { error: 'Internal server error', code: 'INTERNAL_SERVERERROR' }
|
|
@@ -25,7 +25,8 @@ function LoggerReactDisplay() {
|
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
27
|
const relTs = (0, react_whispr_1.useRelTime)();
|
|
28
|
-
return ((0, jsx_runtime_1.jsx)("div", { className: "fixed bottom-0 right-0 w-full z-50 p-4 rounded ", children: (0, jsx_runtime_1.jsx)("div", { className: "flex flex-col gap-2 items-center w-full justify-center", children: messages
|
|
28
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: "fixed bottom-0 right-0 w-full z-50 p-4 rounded ", children: (0, jsx_runtime_1.jsx)("div", { className: "flex flex-col gap-2 items-center w-full justify-center", children: [...messages]
|
|
29
|
+
.reverse()
|
|
29
30
|
.slice(0, 3)
|
|
30
31
|
.map((message) => ((0, jsx_runtime_1.jsxs)("div", { className: `p-2 rounded shadow-md text-white ng-black w-full max-w-prose cursor-pointer`, onClick: message.dismiss, style: {
|
|
31
32
|
backgroundColor: getColor(message.severity)
|
package/package.json
CHANGED