nitro-nightly 3.0.1-20260120-020848-6786d069 → 3.0.1-20260120-133205-cbfce96c
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.
- package/dist/_build/common.mjs +24931 -0
- package/dist/_build/rolldown.mjs +6 -11
- package/dist/_build/rollup.mjs +201 -0
- package/dist/_build/vite.build.mjs +1 -1
- package/dist/_chunks/dev.mjs +4 -6
- package/dist/_chunks/nitro.mjs +1183 -24
- package/dist/_chunks/nitro2.mjs +91 -248
- package/dist/_chunks/utils.mjs +254 -0
- package/dist/_common.mjs +45 -0
- package/dist/_libs/@hiogawa/vite-plugin-fullstack.mjs +652 -0
- package/dist/_libs/@jridgewell/gen-mapping.mjs +448 -0
- package/dist/_libs/@jridgewell/remapping.mjs +117 -0
- package/dist/_libs/@rollup/plugin-alias.mjs +64 -0
- package/dist/_libs/@rollup/plugin-commonjs.d.mts +241 -0
- package/dist/_libs/@rollup/plugin-commonjs.mjs +1300 -0
- package/dist/_libs/{plugin-alias+plugin-inject.mjs → @rollup/plugin-inject.mjs} +2 -65
- package/dist/_libs/@rollup/plugin-json.mjs +36 -0
- package/dist/_libs/@rollup/plugin-node-resolve.mjs +1972 -0
- package/dist/_libs/c12.d.mts +214 -0
- package/dist/_libs/{c12+dotenv+rc9.mjs → c12.mjs} +105 -12
- package/dist/_libs/{chokidar+readdirp.mjs → chokidar.mjs} +8 -1
- package/dist/_libs/compatx.d.mts +47 -0
- package/dist/_libs/confbox.mjs +2488 -70
- package/dist/_libs/esbuild.d.mts +20 -0
- package/dist/_libs/escape-string-regexp.mjs +8 -0
- package/dist/_libs/estree-walker.mjs +187 -0
- package/dist/_libs/giget.mjs +3550 -0
- package/dist/_libs/httpxy.d.mts +79 -0
- package/dist/_libs/httpxy.mjs +6 -1
- package/dist/_libs/klona.mjs +38 -0
- package/dist/_libs/magic-string.d.mts +220 -0
- package/dist/_libs/mlly.d.mts +57 -0
- package/dist/_libs/pkg-types.d.mts +23 -0
- package/dist/_libs/rou3.d.mts +43 -0
- package/dist/_libs/rou3.mjs +322 -0
- package/dist/_libs/std-env.d.mts +4 -0
- package/dist/_libs/tsconfck.mjs +832 -0
- package/dist/_libs/ultrahtml.mjs +138 -0
- package/dist/_libs/unimport.d.mts +426 -0
- package/dist/_libs/unimport.mjs +1781 -5
- package/dist/_libs/unwasm.d.mts +29 -0
- package/dist/_presets.mjs +3 -8
- package/dist/builder.mjs +6 -8
- package/dist/cli/_chunks/build.mjs +1 -1
- package/dist/cli/_chunks/dev.mjs +2 -3
- package/dist/cli/_chunks/list.mjs +1 -1
- package/dist/cli/_chunks/prepare.mjs +1 -1
- package/dist/cli/_chunks/run.mjs +1 -1
- package/dist/cli/_chunks/task.mjs +16 -0
- package/dist/cli/index.mjs +1 -1
- package/dist/presets/aws-lambda/runtime/_utils.d.mts +0 -5
- package/dist/presets/netlify/runtime/netlify-edge.d.mts +0 -1
- package/dist/presets/winterjs/runtime/winterjs.d.mts +0 -1
- package/dist/runtime/internal/error/dev.d.mts +0 -1
- package/dist/runtime/internal/route-rules.d.mts +0 -4
- package/dist/runtime/internal/routes/openapi.d.mts +0 -1
- package/dist/runtime/internal/routes/scalar.d.mts +0 -1
- package/dist/runtime/internal/routes/swagger.d.mts +0 -1
- package/dist/runtime/internal/runtime-config.d.mts +0 -1
- package/dist/runtime/nitro.d.mts +0 -3
- package/dist/runtime/virtual/renderer-template.d.mts +0 -1
- package/dist/types/index.d.mts +36 -1405
- package/dist/vite.mjs +18 -641
- package/package.json +2 -2
- package/dist/_chunks/nitro3.mjs +0 -2696
- package/dist/_chunks/nitro4.mjs +0 -176
- package/dist/_chunks/nitro5.mjs +0 -733
- package/dist/_chunks/nitro6.mjs +0 -1458
- package/dist/_chunks/nitro7.mjs +0 -7561
- package/dist/_chunks/nitro8.mjs +0 -3524
- package/dist/_chunks/nitro9.mjs +0 -1729
- package/dist/_libs/_.mjs +0 -3
- package/dist/_libs/_2.mjs +0 -3
- package/dist/_libs/_3.mjs +0 -4
- package/dist/_libs/_4.mjs +0 -6
- package/dist/_libs/_5.mjs +0 -3
- package/dist/_libs/_6.mjs +0 -3
- package/dist/_libs/acorn+confbox+js-tokens+magic-string+mlly+pkg-types+sourcemap-codec+strip-literal+unimport.mjs +0 -8900
- package/dist/_libs/confbox+exsolve+pkg-types.mjs +0 -1249
- package/dist/_libs/confbox2.mjs +0 -786
- package/dist/_libs/confbox3.mjs +0 -404
- package/dist/_libs/confbox4.mjs +0 -3
- package/dist/_libs/estree-walker+unimport.mjs +0 -378
- package/dist/_libs/fdir+picomatch+tinyglobby.mjs +0 -2471
- package/dist/_libs/gen-mapping+remapping+resolve-uri+trace-mapping+unimport+unplugin+unplugin-utils+webpack-virtual-modules.mjs +0 -2150
- package/dist/_libs/giget+node-fetch-native.mjs +0 -2692
- package/dist/_libs/local-pkg+quansync+unimport.mjs +0 -1526
- package/dist/_libs/nypm+tinyexec.mjs +0 -858
- package/dist/_libs/pathe.mjs +0 -164
- package/dist/_libs/perfect-debounce.mjs +0 -89
- package/dist/_libs/std-env.mjs +0 -158
- package/dist/_libs/vite-plugin-fullstack.mjs +0 -26
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Plugin } from "rollup";
|
|
2
|
+
|
|
3
|
+
//#region node_modules/.pnpm/unwasm@0.5.3/node_modules/unwasm/dist/plugin/index.d.mts
|
|
4
|
+
//#region src/plugin/shared.d.ts
|
|
5
|
+
interface UnwasmPluginOptions {
|
|
6
|
+
/**
|
|
7
|
+
* Directly import the `.wasm` files instead of bundling as base64 string.
|
|
8
|
+
*
|
|
9
|
+
* @default false
|
|
10
|
+
*/
|
|
11
|
+
esmImport?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Avoid using top level await and always use a proxy.
|
|
14
|
+
*
|
|
15
|
+
* Useful for compatibility with environments that don't support top level await.
|
|
16
|
+
*
|
|
17
|
+
* @default false
|
|
18
|
+
*/
|
|
19
|
+
lazy?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Suppress all warnings from the plugin.
|
|
22
|
+
*
|
|
23
|
+
* @default false
|
|
24
|
+
*/
|
|
25
|
+
silent?: boolean;
|
|
26
|
+
} //#endregion
|
|
27
|
+
//#region src/plugin/index.d.ts
|
|
28
|
+
//#endregion
|
|
29
|
+
export { UnwasmPluginOptions as t };
|
package/dist/_presets.mjs
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { a as join$1,
|
|
3
|
-
import {
|
|
4
|
-
import { t as h } from "./_libs/confbox3.mjs";
|
|
1
|
+
import "./_common.mjs";
|
|
2
|
+
import { $ as resolveModulePath, G as findFile, I as prettyPath$1, J as readGitConfig, K as findNearestFile, N as glob, R as writeFile$2, U as p, V as a, X as h, Y as readPackageJSON, at as join$1, ct as resolve$1, nt as dirname$1, st as relative$1, z as K } from "./_build/common.mjs";
|
|
3
|
+
import { i as gr, n as Q } from "./_libs/confbox.mjs";
|
|
5
4
|
import { r as resolveCompatibilityDatesFromEnv, t as formatCompatibilityDate } from "./_libs/compatx.mjs";
|
|
6
|
-
import { i as a, n as K, o as p } from "./_libs/std-env.mjs";
|
|
7
|
-
import { i as writeFile$2, n as prettyPath$1 } from "./_chunks/nitro4.mjs";
|
|
8
|
-
import { t as glob } from "./_libs/fdir+picomatch+tinyglobby.mjs";
|
|
9
|
-
import { n as gr, t as Q } from "./_chunks/nitro9.mjs";
|
|
10
5
|
import { builtinModules } from "node:module";
|
|
11
6
|
import consola$1 from "consola";
|
|
12
7
|
import { existsSync, promises } from "node:fs";
|
package/dist/builder.mjs
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./
|
|
3
|
-
import
|
|
4
|
-
import "./_chunks/
|
|
5
|
-
import "./_libs/
|
|
6
|
-
import
|
|
7
|
-
import { t as getBuildInfo } from "./_chunks/nitro6.mjs";
|
|
8
|
-
import "./_libs/acorn+confbox+js-tokens+magic-string+mlly+pkg-types+sourcemap-codec+strip-literal+unimport.mjs";
|
|
1
|
+
import "./_common.mjs";
|
|
2
|
+
import { D as prepare, M as build, O as copyPublicAssets, _ as writeTypes, m as getBuildInfo } from "./_build/common.mjs";
|
|
3
|
+
import "./_libs/c12.mjs";
|
|
4
|
+
import { a as loadOptions, i as createNitro, n as runTask, r as prerender, t as listTasks } from "./_chunks/nitro.mjs";
|
|
5
|
+
import "./_libs/tsconfck.mjs";
|
|
6
|
+
import "./_chunks/nitro2.mjs";
|
|
9
7
|
import { n as createDevServer } from "./_chunks/dev.mjs";
|
|
10
8
|
|
|
11
9
|
export { build, copyPublicAssets, createDevServer, createNitro, getBuildInfo, listTasks, loadOptions, prepare, prerender, runTask, writeTypes };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ct as resolve } from "../../_build/common.mjs";
|
|
2
2
|
import { t as defineCommand } from "../../_libs/citty.mjs";
|
|
3
3
|
import { t as commonArgs } from "./common.mjs";
|
|
4
4
|
import { build, copyPublicAssets, createNitro, prepare, prerender } from "nitro/builder";
|
package/dist/cli/_chunks/dev.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../../
|
|
3
|
-
import "../../_chunks/nitro6.mjs";
|
|
1
|
+
import { ct as resolve } from "../../_build/common.mjs";
|
|
2
|
+
import "../../_libs/c12.mjs";
|
|
4
3
|
import { t as NitroDevServer } from "../../_chunks/dev.mjs";
|
|
5
4
|
import { t as defineCommand } from "../../_libs/citty.mjs";
|
|
6
5
|
import { t as commonArgs } from "./common.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ct as resolve } from "../../_build/common.mjs";
|
|
2
2
|
import { t as defineCommand } from "../../_libs/citty.mjs";
|
|
3
3
|
import { t as commonArgs } from "./common.mjs";
|
|
4
4
|
import { createNitro, writeTypes } from "nitro/builder";
|
package/dist/cli/_chunks/run.mjs
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { t as defineCommand } from "../../_libs/citty.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/cli/commands/task/index.ts
|
|
4
|
+
var task_default = defineCommand({
|
|
5
|
+
meta: {
|
|
6
|
+
name: "task",
|
|
7
|
+
description: "Operate in nitro tasks (experimental)"
|
|
8
|
+
},
|
|
9
|
+
subCommands: {
|
|
10
|
+
list: () => import("./list.mjs").then((r) => r.default),
|
|
11
|
+
run: () => import("./run.mjs").then((r) => r.default)
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
export { task_default as default };
|
package/dist/cli/index.mjs
CHANGED
|
@@ -13,7 +13,7 @@ runMain(defineCommand({
|
|
|
13
13
|
dev: () => import("./_chunks/dev.mjs").then((r) => r.default),
|
|
14
14
|
build: () => import("./_chunks/build.mjs").then((r) => r.default),
|
|
15
15
|
prepare: () => import("./_chunks/prepare.mjs").then((r) => r.default),
|
|
16
|
-
task: () => import("
|
|
16
|
+
task: () => import("./_chunks/task.mjs").then((r) => r.default)
|
|
17
17
|
}
|
|
18
18
|
}));
|
|
19
19
|
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import type { APIGatewayProxyEvent, APIGatewayProxyEventV2 } from "aws-lambda";
|
|
2
2
|
import type { ServerRequest } from "srvx";
|
|
3
|
-
// Incoming (AWS => Web)
|
|
4
3
|
export declare function awsRequest(event: APIGatewayProxyEvent | APIGatewayProxyEventV2, context: unknown): ServerRequest;
|
|
5
|
-
// Outgoing (Web => AWS)
|
|
6
4
|
export declare function awsResponseHeaders(response: Response);
|
|
7
|
-
// AWS Lambda proxy integrations requires base64 encoded buffers
|
|
8
|
-
// binaryMediaTypes should be */*
|
|
9
|
-
// see https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-payload-encodings.html
|
|
10
5
|
export declare function awsResponseBody(response: Response): Promise<{
|
|
11
6
|
body: string;
|
|
12
7
|
isBase64Encoded?: boolean;
|
package/dist/runtime/nitro.d.mts
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
// Config
|
|
2
1
|
import type { NitroConfig } from "nitro/types";
|
|
3
2
|
import type { ServerRequestContext } from "srvx";
|
|
4
3
|
import { type H3EventContext } from "h3";
|
|
5
4
|
export declare function defineConfig(config: Omit<NitroConfig, "rootDir">): Omit<NitroConfig, "rootDir">;
|
|
6
|
-
// Type (only) helpers
|
|
7
5
|
export { defineNitroPlugin as definePlugin } from "./internal/plugin.mjs";
|
|
8
6
|
export { defineRouteMeta } from "./internal/meta.mjs";
|
|
9
7
|
export { defineNitroErrorHandler as defineErrorHandler } from "./internal/error/utils.mjs";
|
|
10
|
-
// Runtime
|
|
11
8
|
export declare function serverFetch(resource: string | URL | Request, init?: RequestInit, context?: ServerRequestContext | H3EventContext): Promise<Response>;
|
|
12
9
|
export declare function fetch(resource: string | URL | Request, init?: RequestInit, context?: ServerRequestContext | H3EventContext): Promise<Response>;
|