nitro-nightly 3.1.0-20251025-134041-8550b883 → 3.1.0-20251026-124439-6ad28278

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.
@@ -1,4 +1,5 @@
1
1
  import { n as nitro } from './plugin.mjs';
2
+ import { isTest } from 'std-env';
2
3
  import './index.mjs';
3
4
  import 'consola';
4
5
  import 'hookable';
@@ -22,7 +23,6 @@ import 'os';
22
23
  import 'crypto';
23
24
  import './app.mjs';
24
25
  import 'node:worker_threads';
25
- import 'std-env';
26
26
  import 'fs/promises';
27
27
  import 'events';
28
28
  import 'node:stream';
@@ -77,7 +77,8 @@ async function viteBuild(nitro$1) {
77
77
  const { createBuilder } = await import('vite');
78
78
  const builder = await createBuilder({
79
79
  base: nitro$1.options.rootDir,
80
- plugins: [await nitro({ _nitro: nitro$1 })]
80
+ plugins: [await nitro({ _nitro: nitro$1 })],
81
+ logLevel: isTest ? "warn" : void 0
81
82
  });
82
83
  await builder.buildApp();
83
84
  }
@@ -10358,7 +10358,7 @@ function routing(nitro) {
10358
10358
  `
10359
10359
  import * as __routeRules__ from "nitro/runtime/internal/route-rules";
10360
10360
  ${nitro.options.serverEntry ? `import __serverEntry__ from ${JSON.stringify(nitro.options.serverEntry)};` : ""}
10361
- import {${h3Imports.join(", ")}} from "h3";
10361
+ import {${h3Imports.join(", ")}} from "nitro/deps/h3";
10362
10362
 
10363
10363
  export const findRouteRules = ${nitro.routing.routeRules.compileToString({ serialize: serializeRouteRule, matchAll: true })}
10364
10364
 
@@ -10884,7 +10884,7 @@ function rendererTemplate(nitro) {
10884
10884
  return (
10885
10885
  /* js */
10886
10886
  `
10887
- import { HTTPResponse } from "h3";
10887
+ import { HTTPResponse } from "nitro/deps/h3";
10888
10888
  export const rendererTemplate = () => new HTTPResponse(${JSON.stringify(html)}, { headers: { "content-type": "text/html; charset=utf-8" } });
10889
10889
  `
10890
10890
  );
@@ -1,13 +1,13 @@
1
1
  import { fileURLToPath } from "node:url";
2
2
 
3
- export const pkgDir = fileURLToPath(new URL("..", import.meta.url));
3
+ export const pkgDir = fileURLToPath(new URL("../", import.meta.url));
4
4
 
5
5
  export const runtimeDir = fileURLToPath(
6
- new URL("../dist/runtime/", import.meta.url)
6
+ new URL("../../dist/runtime/", import.meta.url)
7
7
  );
8
8
 
9
9
  export const presetsDir = fileURLToPath(
10
- new URL("../dist/presets/", import.meta.url)
10
+ new URL("../../dist/presets/", import.meta.url)
11
11
  );
12
12
 
13
13
  export const runtimeDependencies = [
@@ -35,4 +35,7 @@ export const runtimeDependencies = [
35
35
  "crossws",
36
36
  "croner",
37
37
  "rendu",
38
+ "nitro/runtime",
39
+ "nitro/deps/h3",
40
+ "nitro/deps/ofetch",
38
41
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nitro-nightly",
3
- "version": "3.1.0-20251025-134041-8550b883",
3
+ "version": "3.1.0-20251026-124439-6ad28278",
4
4
  "description": "Build and Deploy Universal JavaScript Servers",
5
5
  "homepage": "https://nitro.build",
6
6
  "repository": "nitrojs/nitro",
@@ -14,7 +14,7 @@
14
14
  "./meta": "./lib/meta.mjs",
15
15
  "./runtime": "./dist/runtime/index.mjs",
16
16
  "./runtime/internal": "./dist/runtime/internal/index.mjs",
17
- "./runtime/meta": "./lib/runtime-meta.mjs",
17
+ "./runtime/meta": "./lib/runtime/meta.mjs",
18
18
  "./vite": "./dist/vite.mjs",
19
19
  "./h3": "./lib/deps/h3.mjs",
20
20
  "./deps/h3": "./lib/deps/h3.mjs",
File without changes