vafast 0.1.6 → 0.1.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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -51856,7 +51856,7 @@ async function parseBody(req) {
51856
51856
  if (contentType.includes("application/json")) {
51857
51857
  try {
51858
51858
  const body = await req.json();
51859
- if (body === "" || body === null) {
51859
+ if (body === "" || body === null || typeof body === "object" && Object.keys(body).length === 0) {
51860
51860
  return;
51861
51861
  }
51862
51862
  return body;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vafast",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "专为Bun构建的极简结构化Web框架。Go风格,函数优先。",
5
5
  "type": "module",
6
6
  "repository": {