@nuxt/vite-server-nightly 5.0.0-29809177.3d3bbba4 → 5.0.0-29809859.f0ca99e9

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.mjs +3 -3
  2. package/package.json +5 -5
package/dist/index.mjs CHANGED
@@ -6,7 +6,7 @@ import { defu } from "defu";
6
6
  import { resolveModulePath } from "exsolve";
7
7
  import { fileURLToPath } from "node:url";
8
8
  import { NodeRequest, sendNodeResponse } from "srvx/node";
9
- import { serveStatic } from "srvx/static";
9
+ import { staticMiddleware } from "srvx/static";
10
10
  import { cp, readFile, rm, writeFile } from "node:fs/promises";
11
11
  import { joinURL, withTrailingSlash } from "ufo";
12
12
  import { link } from "clickable-path";
@@ -248,7 +248,7 @@ function setupDevServer(nuxt) {
248
248
  nuxt.hook("vite:serverCreated", (server) => {
249
249
  viteServer = server;
250
250
  });
251
- const staticMiddleware = publicDirs(nuxt).map((dir) => serveStatic({ dir }));
251
+ const staticMiddleware$1 = publicDirs(nuxt).map((dir) => staticMiddleware({ dir }));
252
252
  const shell = async (url) => {
253
253
  const html = await resolveDocument(nuxt);
254
254
  return new Response(viteServer ? await viteServer.transformIndexHtml(url, html) : html, { headers: { "content-type": "text/html;charset=utf-8" } });
@@ -260,7 +260,7 @@ function setupDevServer(nuxt) {
260
260
  res
261
261
  });
262
262
  const next = (index) => {
263
- const middleware = staticMiddleware[index];
263
+ const middleware = staticMiddleware$1[index];
264
264
  return middleware ? middleware(request, () => next(index + 1)) : shell(req.url || "/");
265
265
  };
266
266
  await sendNodeResponse(res, await next(0));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/vite-server-nightly",
3
- "version": "5.0.0-29809177.3d3bbba4",
3
+ "version": "5.0.0-29809859.f0ca99e9",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",
@@ -19,23 +19,23 @@
19
19
  "dist"
20
20
  ],
21
21
  "dependencies": {
22
- "@nuxt/kit": "npm:@nuxt/kit-nightly@5.0.0-29809177.3d3bbba4",
22
+ "@nuxt/kit": "npm:@nuxt/kit-nightly@5.0.0-29809859.f0ca99e9",
23
23
  "clickable-path": "^0.1.0",
24
24
  "defu": "^6.1.7",
25
25
  "exsolve": "^1.1.1",
26
26
  "mocked-exports": "^0.1.1",
27
27
  "pathe": "^2.0.3",
28
- "srvx": "0.11.22",
28
+ "srvx": "^1.0.3",
29
29
  "ufo": "^1.6.4"
30
30
  },
31
31
  "devDependencies": {
32
- "@nuxt/schema": "npm:@nuxt/schema-nightly@5.0.0-29809177.3d3bbba4",
32
+ "@nuxt/schema": "npm:@nuxt/schema-nightly@5.0.0-29809859.f0ca99e9",
33
33
  "tsdown": "0.22.14",
34
34
  "vite": "^8.2.2",
35
35
  "vitest": "4.1.11"
36
36
  },
37
37
  "peerDependencies": {
38
- "nuxt": "npm:nuxt-nightly@5.0.0-29809177.3d3bbba4",
38
+ "nuxt": "npm:nuxt-nightly@5.0.0-29809859.f0ca99e9",
39
39
  "vite": "^8.2.2"
40
40
  },
41
41
  "engines": {