@qzsy/vinext 0.1.87 → 0.1.88

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.
@@ -19,8 +19,8 @@ import "./app-page-response.js";
19
19
  import { parseNextHttpErrorDigest } from "./next-error-digest.js";
20
20
  import { matchPrerenderRouteParamsPayload, readTrustedPrerenderRouteParams, serializePrerenderRouteParamsHeader } from "./prerender-route-params.js";
21
21
  import { getRenderedConcreteUrlPathsForRoute } from "./pregenerated-concrete-paths.js";
22
- import { pickRootParams, setRootParams } from "../shims/root-params.js";
23
22
  import { flattenErrorCauses } from "../utils/error-cause.js";
23
+ import { pickRootParams, setRootParams } from "../shims/root-params.js";
24
24
  import { createServerActionNotFoundResponse, getServerActionNotFoundMessage } from "./server-action-not-found.js";
25
25
  import { buildPageCacheTags } from "./implicit-tags.js";
26
26
  import { buildPostMwRequestContext } from "./app-post-middleware-context.js";
@@ -388,7 +388,9 @@ async function bufferRequestBodyForHeaderClone(request) {
388
388
  if (request.body === null) return request;
389
389
  if ((request.headers.get("content-type") ?? "").startsWith("multipart/form-data")) return request;
390
390
  try {
391
- const bytes = await request.arrayBuffer();
391
+ const bytes = await request.clone().arrayBuffer();
392
+ const contentLength = Number(request.headers.get("content-length") ?? "0");
393
+ if (bytes.byteLength === 0 && contentLength > 0) return request;
392
394
  const init = {
393
395
  method: request.method,
394
396
  headers: request.headers,
@@ -16,6 +16,6 @@ declare const Form: import("react").ForwardRefExoticComponent<{
16
16
  * In pages dir, prefetch is not supported and the prop has no effect.
17
17
  */
18
18
  prefetch?: false | null;
19
- } & Omit<FormHTMLAttributes<HTMLFormElement>, "method" | "encType" | "target"> & import("react").RefAttributes<HTMLFormElement>>;
19
+ } & Omit<FormHTMLAttributes<HTMLFormElement>, "target" | "method" | "encType"> & import("react").RefAttributes<HTMLFormElement>>;
20
20
  //#endregion
21
21
  export { createFormSubmitDestinationUrl, Form as default, useActionState };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qzsy/vinext",
3
- "version": "0.1.87",
3
+ "version": "0.1.88",
4
4
  "description": "Run Next.js apps on Vite. Drop-in replacement for the next CLI.",
5
5
  "license": "MIT",
6
6
  "repository": {