vafast 0.1.8 → 0.1.9

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 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -51853,11 +51853,7 @@ var import_cookie = __toESM(require_dist(), 1);
51853
51853
  async function parseBody(req) {
51854
51854
  const contentType = req.headers.get("content-type") || "";
51855
51855
  if (contentType.includes("application/json")) {
51856
- try {
51857
- return await req.json();
51858
- } catch {
51859
- return;
51860
- }
51856
+ return await req.json();
51861
51857
  }
51862
51858
  if (contentType.includes("application/x-www-form-urlencoded")) {
51863
51859
  const text2 = await req.text();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vafast",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "专为Bun构建的极简结构化Web框架。Go风格,函数优先。",
5
5
  "type": "module",
6
6
  "repository": {