@nuxt/nitro-server-nightly 5.0.0-29800113.c26bf4be → 5.0.0-29800169.7eacddbc

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.
@@ -73,6 +73,9 @@ declare module "@nuxt/schema" {
73
73
  interface NitroTypes {
74
74
  instance: Nitro;
75
75
  }
76
+ interface ServerTypes {
77
+ event: H3Event;
78
+ }
76
79
  interface NuxtHooks {
77
80
  /**
78
81
  * Called when the dev middleware is being registered on the Nitro dev server.
@@ -188,6 +191,9 @@ declare module "nuxt/schema" {
188
191
  interface NitroTypes {
189
192
  instance: Nitro;
190
193
  }
194
+ interface ServerTypes {
195
+ event: H3Event;
196
+ }
191
197
  interface NuxtHooks {
192
198
  /**
193
199
  * Called when the dev middleware is being registered on the Nitro dev server.
package/dist/index.mjs CHANGED
@@ -25,7 +25,7 @@ import remapping from "@ampproject/remapping";
25
25
  import { addRoute, createRouter } from "rou3";
26
26
  import { compileRouterToString } from "rou3/compiler";
27
27
  //#region package.json
28
- var version = "5.0.0-29800113.c26bf4be";
28
+ var version = "5.0.0-29800169.7eacddbc";
29
29
  //#endregion
30
30
  //#region src/utils.ts
31
31
  function toArray(value) {
@@ -797,6 +797,11 @@ async function bundle(nuxt) {
797
797
  }
798
798
  nuxt.options.nitro.plugins ||= [];
799
799
  nuxt.options.nitro.plugins = nuxt.options.nitro.plugins.map((plugin) => plugin ? resolveAlias(plugin, nuxt.options.alias) : plugin);
800
+ for (const asset of [...nuxt.options.nitro.publicAssets || [], ...nuxt.options.nitro.serverAssets || []]) if (asset?.dir) asset.dir = resolveAlias(asset.dir, nuxt.options.alias);
801
+ for (const asset of nuxt.options.nitro.publicAssets || []) if (asset?.dir && !existsSync(resolve(nuxt.options.rootDir, asset.dir))) bundlerDiagnostics.NUXT_B7023({
802
+ dir: asset.dir,
803
+ baseURL: joinURL("/", asset.baseURL || "/", "**")
804
+ });
800
805
  if (nuxt.options.dev && nuxt.options.features.devLogs) {
801
806
  addPlugin(resolve(nuxt.options.appDir, "plugins/dev-server-logs"));
802
807
  nuxt.options.nitro.plugins.push(resolve(distDir, "runtime/plugins/dev-server-logs"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/nitro-server-nightly",
3
- "version": "5.0.0-29800113.c26bf4be",
3
+ "version": "5.0.0-29800169.7eacddbc",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",
@@ -32,7 +32,7 @@
32
32
  ],
33
33
  "dependencies": {
34
34
  "@ampproject/remapping": "^2.3.0",
35
- "@nuxt/kit": "npm:@nuxt/kit-nightly@5.0.0-29800113.c26bf4be",
35
+ "@nuxt/kit": "npm:@nuxt/kit-nightly@5.0.0-29800169.7eacddbc",
36
36
  "@unhead/vue": "^3.4.0",
37
37
  "@vue/shared": "^3.5.42",
38
38
  "consola": "^3.4.2",
@@ -66,7 +66,7 @@
66
66
  "@babel/plugin-proposal-decorators": "^7.25.0 || ^8.0.0",
67
67
  "@babel/plugin-syntax-typescript": "^7.25.0 || ^8.0.0",
68
68
  "@rollup/plugin-babel": "^6.0.0 || ^7.0.0",
69
- "nuxt": "npm:nuxt-nightly@5.0.0-29800113.c26bf4be"
69
+ "nuxt": "npm:nuxt-nightly@5.0.0-29800169.7eacddbc"
70
70
  },
71
71
  "peerDependenciesMeta": {
72
72
  "@babel/plugin-proposal-decorators": {
@@ -82,10 +82,10 @@
82
82
  "devDependencies": {
83
83
  "@babel/plugin-proposal-decorators": "8.0.2",
84
84
  "@babel/plugin-syntax-typescript": "8.0.3",
85
- "@nuxt/schema": "npm:@nuxt/schema-nightly@5.0.0-29800113.c26bf4be",
85
+ "@nuxt/schema": "npm:@nuxt/schema-nightly@5.0.0-29800169.7eacddbc",
86
86
  "@rollup/plugin-babel": "7.1.0",
87
87
  "hookable": "^6.1.1",
88
- "nuxt": "npm:nuxt-nightly@5.0.0-29800113.c26bf4be",
88
+ "nuxt": "npm:nuxt-nightly@5.0.0-29800169.7eacddbc",
89
89
  "tsdown": "0.22.14",
90
90
  "vitest": "4.1.11"
91
91
  },