@kalutskii/foundation 0.7.5 → 0.7.7
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.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -116,7 +116,7 @@ var honoLoggingHandler = async (c, next) => {
|
|
|
116
116
|
// Otherwise, we read the request body as text and normalize whitespace.
|
|
117
117
|
(await c.req.raw.clone().text()).replaceAll(/\s+/g, " ").trim()
|
|
118
118
|
);
|
|
119
|
-
const bodyPreview = body.length >
|
|
119
|
+
const bodyPreview = body.length > 50 ? `${body.slice(0, 25)}\u2026${body.slice(-25)}` : body;
|
|
120
120
|
const startTime = performance.now();
|
|
121
121
|
await next();
|
|
122
122
|
const duration = Math.round(performance.now() - startTime);
|