@kalutskii/foundation 0.7.5 → 0.7.8

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. 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 > 100 ? `${body.slice(0, 50)}\u2026${body.slice(-50)}` : body;
119
+ const bodyPreview = body.length > 80 ? `${body.slice(0, 40)}\u2026${body.slice(-40)}` : body;
120
120
  const startTime = performance.now();
121
121
  await next();
122
122
  const duration = Math.round(performance.now() - startTime);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kalutskii/foundation",
3
- "version": "0.7.5",
3
+ "version": "0.7.8",
4
4
  "description": "Typescript collection of most common utilities, schemas and functions among private projects.",
5
5
  "type": "module",
6
6
  "repository": {