@kalutskii/foundation 0.2.2 → 0.2.3

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
@@ -145,7 +145,7 @@ async function safeExecute(fn, onError) {
145
145
  }
146
146
 
147
147
  // src/hono/hono.validation.ts
148
- var FALLBACK_ERROR_MESSAGE = "Failed to read payload";
148
+ var FALLBACK_ERROR_MESSAGE = "Failed to decode request payload, please ensure it is correctly formatted.";
149
149
  var requestReaders = {
150
150
  json: async (c) => safeExecute(() => c.req.json(), () => {
151
151
  throw new HTTPException2(400, { message: FALLBACK_ERROR_MESSAGE });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kalutskii/foundation",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Typescript collection of most common utilities, schemas and functions among private projects.",
5
5
  "type": "module",
6
6
  "repository": {