nitro-nightly 3.0.1-20251203-231615-3a2d2662 → 3.0.1-20251204-201435-0c3150df
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 +1 -1
- package/dist/_build/rolldown.mjs +9 -10
- package/dist/_build/rollup.mjs +13 -20
- package/dist/_build/vite.build.mjs +12 -14
- package/dist/_build/vite.plugin.mjs +20 -23
- package/dist/_chunks/{Ddt06bL8.mjs → CycPUgTQ.mjs} +1 -1
- package/dist/_chunks/{BY3yPF44.mjs → DT-wSyHv.mjs} +1 -1
- package/dist/_chunks/{CytQIojr.mjs → DzjzT3Xu.mjs} +1 -1
- package/dist/{_dev.mjs → _chunks/dcDd0pkY.mjs} +22 -23
- package/dist/_chunks/{CvxEFBdh.mjs → vCTaGRPD.mjs} +2 -2
- package/dist/_libs/@pi0/vite-plugin-fullstack.mjs +1923 -0
- package/dist/_libs/@rollup/plugin-commonjs.mjs +3859 -0
- package/dist/_libs/{plugin-inject.mjs → @rollup/plugin-inject.mjs} +2 -3
- package/dist/_libs/{plugin-node-resolve.mjs → @rollup/plugin-node-resolve.mjs} +424 -5
- package/dist/_libs/{plugin-replace.mjs → @rollup/plugin-replace.mjs} +1 -1
- package/dist/_libs/estree-walker.mjs +1 -144
- package/dist/_libs/tinyglobby.mjs +1 -2
- package/dist/_libs/unimport.mjs +3 -4
- package/dist/_libs/unwasm.mjs +1 -1
- package/dist/_presets.mjs +2 -2
- package/dist/builder.d.mts +4 -4
- package/dist/builder.mjs +7 -7
- package/dist/cli/_chunks/detect-acorn.mjs +2 -2
- package/dist/cli/_chunks/dev.mjs +2 -2
- package/dist/runtime/internal/vite/{dev-worker.mjs → node-runner.mjs} +30 -5
- package/dist/types/index.d.mts +36 -38
- package/dist/vite.mjs +12 -14
- package/package.json +3 -3
- package/dist/_libs/commondir.mjs +0 -22
- package/dist/_libs/deepmerge.mjs +0 -86
- package/dist/_libs/fdir.mjs +0 -514
- package/dist/_libs/function-bind.mjs +0 -63
- package/dist/_libs/hasown.mjs +0 -14
- package/dist/_libs/is-core-module.mjs +0 -220
- package/dist/_libs/is-module.mjs +0 -13
- package/dist/_libs/is-reference.mjs +0 -33
- package/dist/_libs/js-tokens.mjs +0 -382
- package/dist/_libs/magic-string.mjs +0 -939
- package/dist/_libs/path-parse.mjs +0 -47
- package/dist/_libs/picomatch.mjs +0 -1673
- package/dist/_libs/plugin-commonjs.mjs +0 -1491
- package/dist/_libs/strip-literal.mjs +0 -51
- package/dist/_libs/vite-plugin-fullstack.mjs +0 -561
- /package/dist/_chunks/{DJvLZH4H.mjs → Df3_4Pam.mjs} +0 -0
- /package/dist/_libs/{gen-mapping.mjs → @jridgewell/gen-mapping.mjs} +0 -0
- /package/dist/_libs/{remapping.mjs → @jridgewell/remapping.mjs} +0 -0
- /package/dist/_libs/{plugin-alias.mjs → @rollup/plugin-alias.mjs} +0 -0
- /package/dist/_libs/{plugin-json.mjs → @rollup/plugin-json.mjs} +0 -0
package/dist/builder.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import { t as NitroDevApp } from "./_dev.mjs";
|
|
|
2
2
|
import { IncomingMessage, OutgoingMessage } from "node:http";
|
|
3
3
|
import { Duplex } from "node:stream";
|
|
4
4
|
import { Server, ServerOptions } from "srvx";
|
|
5
|
-
import {
|
|
5
|
+
import { LoadConfigOptions, Nitro, NitroBuildInfo, NitroConfig, NitroOptions, RunnerMessageListener, RunnerRPCHooks, TaskEvent, TaskRunnerOptions } from "nitro/types";
|
|
6
6
|
|
|
7
7
|
//#region src/nitro.d.ts
|
|
8
8
|
declare function createNitro(config?: NitroConfig, opts?: LoadConfigOptions): Promise<Nitro>;
|
|
@@ -33,7 +33,7 @@ declare function getBuildInfo(root: string): Promise<{
|
|
|
33
33
|
//#endregion
|
|
34
34
|
//#region src/dev/server.d.ts
|
|
35
35
|
declare function createDevServer(nitro: Nitro): NitroDevServer;
|
|
36
|
-
declare class NitroDevServer extends NitroDevApp implements
|
|
36
|
+
declare class NitroDevServer extends NitroDevApp implements RunnerRPCHooks {
|
|
37
37
|
#private;
|
|
38
38
|
constructor(nitro: Nitro);
|
|
39
39
|
upgrade(req: IncomingMessage, socket: OutgoingMessage<IncomingMessage> | Duplex, head: any): Promise<any>;
|
|
@@ -41,8 +41,8 @@ declare class NitroDevServer extends NitroDevApp implements DevRPCHooks {
|
|
|
41
41
|
close(): Promise<void>;
|
|
42
42
|
reload(): void;
|
|
43
43
|
sendMessage(message: unknown): void;
|
|
44
|
-
onMessage(listener:
|
|
45
|
-
offMessage(listener:
|
|
44
|
+
onMessage(listener: RunnerMessageListener): void;
|
|
45
|
+
offMessage(listener: RunnerMessageListener): void;
|
|
46
46
|
}
|
|
47
47
|
//#endregion
|
|
48
48
|
//#region src/prerender/prerender.d.ts
|
package/dist/builder.mjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import "./_chunks/QkUO_zA6.mjs";
|
|
2
2
|
import "./_libs/c12.mjs";
|
|
3
|
-
import "./_libs/gen-mapping.mjs";
|
|
3
|
+
import "./_libs/@jridgewell/gen-mapping.mjs";
|
|
4
|
+
import "./_libs/@pi0/vite-plugin-fullstack.mjs";
|
|
4
5
|
import "./_libs/acorn.mjs";
|
|
5
|
-
import "./_libs/js-tokens.mjs";
|
|
6
6
|
import "./_libs/unimport.mjs";
|
|
7
|
-
import "./_libs/
|
|
8
|
-
import { a as copyPublicAssets, c as loadOptions, i as prepare, n as runTask, o as build, r as prerender, s as createNitro, t as listTasks } from "./_chunks/
|
|
7
|
+
import "./_libs/@rollup/plugin-commonjs.mjs";
|
|
8
|
+
import { a as copyPublicAssets, c as loadOptions, i as prepare, n as runTask, o as build, r as prerender, s as createNitro, t as listTasks } from "./_chunks/vCTaGRPD.mjs";
|
|
9
9
|
import "./_libs/tsconfck.mjs";
|
|
10
|
-
import "./_chunks/
|
|
11
|
-
import { n as writeTypes } from "./_chunks/
|
|
10
|
+
import "./_chunks/Df3_4Pam.mjs";
|
|
11
|
+
import { n as writeTypes } from "./_chunks/CycPUgTQ.mjs";
|
|
12
12
|
import "./_libs/mime.mjs";
|
|
13
13
|
import { t as getBuildInfo } from "./_build/common.mjs";
|
|
14
|
-
import { n as createDevServer } from "./
|
|
14
|
+
import { n as createDevServer } from "./_chunks/dcDd0pkY.mjs";
|
|
15
15
|
|
|
16
16
|
export { build, copyPublicAssets, createDevServer, createNitro, getBuildInfo, listTasks, loadOptions, prepare, prerender, runTask, writeTypes };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "../../_chunks/QkUO_zA6.mjs";
|
|
2
2
|
import "../../_libs/c12.mjs";
|
|
3
|
-
import "../../_libs/gen-mapping.mjs";
|
|
3
|
+
import "../../_libs/@jridgewell/gen-mapping.mjs";
|
|
4
|
+
import "../../_libs/@pi0/vite-plugin-fullstack.mjs";
|
|
4
5
|
import "../../_libs/acorn.mjs";
|
|
5
|
-
import "../../_libs/js-tokens.mjs";
|
|
6
6
|
import { n as detectImportsAcorn, r as traveseScopes, t as createVirtualImportsAcronWalker } from "../../_libs/unimport.mjs";
|
|
7
7
|
|
|
8
8
|
export { detectImportsAcorn };
|
package/dist/cli/_chunks/dev.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { k as resolve } from "../../_libs/c12.mjs";
|
|
2
|
-
import "../../_chunks/
|
|
2
|
+
import "../../_chunks/Df3_4Pam.mjs";
|
|
3
3
|
import "../../_libs/mime.mjs";
|
|
4
4
|
import "../../_build/common.mjs";
|
|
5
|
-
import { t as NitroDevServer } from "../../
|
|
5
|
+
import { t as NitroDevServer } from "../../_chunks/dcDd0pkY.mjs";
|
|
6
6
|
import { t as defineCommand } from "../../_libs/citty.mjs";
|
|
7
7
|
import { t as commonArgs } from "./common.mjs";
|
|
8
8
|
import { consola } from "consola";
|
|
@@ -155,11 +155,6 @@ parentPort.on("message", (payload) => {
|
|
|
155
155
|
|
|
156
156
|
async function reload() {
|
|
157
157
|
try {
|
|
158
|
-
// Apply globals
|
|
159
|
-
for (const [key, value] of Object.entries(workerData.globals || {})) {
|
|
160
|
-
globalThis[key] = value;
|
|
161
|
-
}
|
|
162
|
-
// Reload all envs
|
|
163
158
|
await Promise.all(Object.values(envs).map((env) => env?.reload()));
|
|
164
159
|
} catch (error) {
|
|
165
160
|
console.error(error);
|
|
@@ -195,6 +190,10 @@ if (workerData.server) {
|
|
|
195
190
|
parentPort.on("message", async (message) => {
|
|
196
191
|
if (message?.type === "full-reload") {
|
|
197
192
|
await reload();
|
|
193
|
+
} else if (message?.event === "shutdown") {
|
|
194
|
+
server.close(() => {
|
|
195
|
+
parentPort.postMessage({ event: "exit" });
|
|
196
|
+
});
|
|
198
197
|
}
|
|
199
198
|
});
|
|
200
199
|
await listen(server);
|
|
@@ -228,6 +227,32 @@ function httpError(status, message) {
|
|
|
228
227
|
}
|
|
229
228
|
|
|
230
229
|
async function renderError(req, error) {
|
|
230
|
+
if (req.headers.get("accept")?.includes("application/json")) {
|
|
231
|
+
return new Response(
|
|
232
|
+
JSON.stringify(
|
|
233
|
+
{
|
|
234
|
+
status: error.status || 500,
|
|
235
|
+
name: error.name || "Error",
|
|
236
|
+
message: error.message,
|
|
237
|
+
stack: (error.stack || "")
|
|
238
|
+
.split("\n")
|
|
239
|
+
.splice(1)
|
|
240
|
+
.map((l) => l.trim()),
|
|
241
|
+
},
|
|
242
|
+
null,
|
|
243
|
+
2
|
|
244
|
+
),
|
|
245
|
+
{
|
|
246
|
+
status: error.status || 500,
|
|
247
|
+
headers: {
|
|
248
|
+
"Content-Type": "application/json",
|
|
249
|
+
"Cache-Control": "no-store, max-age=0, must-revalidate",
|
|
250
|
+
Pragma: "no-cache",
|
|
251
|
+
Expires: "0",
|
|
252
|
+
},
|
|
253
|
+
}
|
|
254
|
+
);
|
|
255
|
+
}
|
|
231
256
|
const { Youch } = await import("youch");
|
|
232
257
|
const youch = new Youch();
|
|
233
258
|
return new Response(await youch.toHTML(error), {
|
package/dist/types/index.d.mts
CHANGED
|
@@ -12,7 +12,7 @@ import { BuiltinDriverName } from "unstorage";
|
|
|
12
12
|
import { JsxOptions, TransformOptions } from "oxc-transform";
|
|
13
13
|
import { MinifyOptions } from "oxc-minify";
|
|
14
14
|
import { InputOptions, OutputOptions } from "rollup";
|
|
15
|
-
import {
|
|
15
|
+
import { Nitro as Nitro$1, RunnerMessageListener as RunnerMessageListener$1 } from "nitro/types";
|
|
16
16
|
import { RollupCommonJSOptions } from "@rollup/plugin-commonjs";
|
|
17
17
|
import { C12InputConfig, ConfigWatcher, DotenvOptions, ResolvedConfig, WatchConfigOptions } from "c12";
|
|
18
18
|
import { ChokidarOptions } from "chokidar";
|
|
@@ -1858,37 +1858,6 @@ type IntRange<F$1 extends number, T extends number> = Exclude<Enumerate<T>, Enum
|
|
|
1858
1858
|
type ExcludeFunctions<G extends Record<string, any>> = Pick<G, { [P in keyof G]: NonNullable<G[P]> extends Function ? never : P }[keyof G]>;
|
|
1859
1859
|
type DeepPartial<T> = T extends ((...args: never) => any) ? T : T extends Record<string, any> ? { [P in keyof T]?: DeepPartial<T[P]> } : T;
|
|
1860
1860
|
//#endregion
|
|
1861
|
-
//#region src/types/dev.d.ts
|
|
1862
|
-
type FetchHandler = (req: Request) => Promise<Response>;
|
|
1863
|
-
type DevMessageListener = (data: unknown) => void;
|
|
1864
|
-
type UpgradeHandler = (req: IncomingMessage, socket: OutgoingMessage<IncomingMessage> | Duplex, head: any) => void;
|
|
1865
|
-
interface DevRPCHooks {
|
|
1866
|
-
sendMessage: (message: unknown) => void;
|
|
1867
|
-
onMessage: (listener: DevMessageListener) => void;
|
|
1868
|
-
offMessage: (listener: DevMessageListener) => void;
|
|
1869
|
-
}
|
|
1870
|
-
type WorkerAddress = {
|
|
1871
|
-
host: string;
|
|
1872
|
-
port: number;
|
|
1873
|
-
socketPath?: string;
|
|
1874
|
-
};
|
|
1875
|
-
interface WorkerHooks {
|
|
1876
|
-
onClose?: (worker: DevWorker, cause?: unknown) => void;
|
|
1877
|
-
onReady?: (worker: DevWorker, address?: WorkerAddress) => void;
|
|
1878
|
-
}
|
|
1879
|
-
interface DevWorker extends WorkerHooks, DevRPCHooks {
|
|
1880
|
-
readonly ready: boolean;
|
|
1881
|
-
readonly closed: boolean;
|
|
1882
|
-
fetch: FetchHandler;
|
|
1883
|
-
upgrade: UpgradeHandler;
|
|
1884
|
-
close(): Promise<void>;
|
|
1885
|
-
}
|
|
1886
|
-
interface NitroDevServerOptions {
|
|
1887
|
-
port: number;
|
|
1888
|
-
hostname: string;
|
|
1889
|
-
watch: string[];
|
|
1890
|
-
}
|
|
1891
|
-
//#endregion
|
|
1892
1861
|
//#region src/types/openapi-ts.d.ts
|
|
1893
1862
|
/**
|
|
1894
1863
|
Source: (inlined because of install size concernes)
|
|
@@ -2554,10 +2523,9 @@ type NitroErrorHandler = (error: HTTPError, event: HTTPEvent, _: {
|
|
|
2554
2523
|
}>;
|
|
2555
2524
|
}) => MaybePromise<Response | void>;
|
|
2556
2525
|
//#endregion
|
|
2557
|
-
//#region src/
|
|
2558
|
-
interface
|
|
2526
|
+
//#region src/runner/node.d.ts
|
|
2527
|
+
interface EnvRunnerData {
|
|
2559
2528
|
name?: string;
|
|
2560
|
-
globals?: Record<string, unknown>;
|
|
2561
2529
|
[key: string]: unknown;
|
|
2562
2530
|
}
|
|
2563
2531
|
//#endregion
|
|
@@ -2764,7 +2732,7 @@ interface NitroHooks {
|
|
|
2764
2732
|
compiled: (nitro: Nitro) => HookResult;
|
|
2765
2733
|
"dev:reload": (payload?: {
|
|
2766
2734
|
entry?: string;
|
|
2767
|
-
workerData?:
|
|
2735
|
+
workerData?: EnvRunnerData;
|
|
2768
2736
|
}) => HookResult;
|
|
2769
2737
|
"dev:start": () => HookResult;
|
|
2770
2738
|
"dev:error": (cause?: unknown) => HookResult;
|
|
@@ -2985,7 +2953,11 @@ interface NitroOptions extends PresetOptions {
|
|
|
2985
2953
|
compressPublicAssets: boolean | CompressOptions;
|
|
2986
2954
|
ignore: string[];
|
|
2987
2955
|
dev: boolean;
|
|
2988
|
-
devServer:
|
|
2956
|
+
devServer: {
|
|
2957
|
+
port: number;
|
|
2958
|
+
hostname: string;
|
|
2959
|
+
watch: string[];
|
|
2960
|
+
};
|
|
2989
2961
|
watchOptions: ChokidarOptions;
|
|
2990
2962
|
devProxy: Record<string, string | ProxyServerOptions>;
|
|
2991
2963
|
logging: {
|
|
@@ -3145,6 +3117,32 @@ interface NitroRuntimeConfig {
|
|
|
3145
3117
|
[key: string]: any;
|
|
3146
3118
|
}
|
|
3147
3119
|
//#endregion
|
|
3120
|
+
//#region src/types/runner.d.ts
|
|
3121
|
+
type FetchHandler = (req: Request) => Promise<Response>;
|
|
3122
|
+
type RunnerMessageListener = (data: unknown) => void;
|
|
3123
|
+
type UpgradeHandler = (req: IncomingMessage, socket: OutgoingMessage<IncomingMessage> | Duplex, head: any) => void;
|
|
3124
|
+
interface RunnerRPCHooks {
|
|
3125
|
+
sendMessage: (message: unknown) => void;
|
|
3126
|
+
onMessage: (listener: RunnerMessageListener) => void;
|
|
3127
|
+
offMessage: (listener: RunnerMessageListener) => void;
|
|
3128
|
+
}
|
|
3129
|
+
type WorkerAddress = {
|
|
3130
|
+
host: string;
|
|
3131
|
+
port: number;
|
|
3132
|
+
socketPath?: string;
|
|
3133
|
+
};
|
|
3134
|
+
interface WorkerHooks {
|
|
3135
|
+
onClose?: (worker: EnvRunner, cause?: unknown) => void;
|
|
3136
|
+
onReady?: (worker: EnvRunner, address?: WorkerAddress) => void;
|
|
3137
|
+
}
|
|
3138
|
+
interface EnvRunner extends WorkerHooks, RunnerRPCHooks {
|
|
3139
|
+
readonly ready: boolean;
|
|
3140
|
+
readonly closed: boolean;
|
|
3141
|
+
fetch: FetchHandler;
|
|
3142
|
+
upgrade?: UpgradeHandler;
|
|
3143
|
+
close(): Promise<void>;
|
|
3144
|
+
}
|
|
3145
|
+
//#endregion
|
|
3148
3146
|
//#region src/types/global.d.ts
|
|
3149
3147
|
interface NitroImportMeta {
|
|
3150
3148
|
dev?: boolean;
|
|
@@ -3181,4 +3179,4 @@ declare module "srvx" {
|
|
|
3181
3179
|
}
|
|
3182
3180
|
}
|
|
3183
3181
|
//#endregion
|
|
3184
|
-
export { $Fetch, AssetMeta, AvailableRouterMethod, Base$Fetch, CacheEntry, CacheOptions, CachedEventHandlerOptions, CaptureError, CapturedErrorContext, CompressOptions, DatabaseConnectionConfig, DatabaseConnectionConfigs, DatabaseConnectionName,
|
|
3182
|
+
export { $Fetch, AssetMeta, AvailableRouterMethod, Base$Fetch, CacheEntry, CacheOptions, CachedEventHandlerOptions, CaptureError, CapturedErrorContext, CompressOptions, DatabaseConnectionConfig, DatabaseConnectionConfigs, DatabaseConnectionName, EnvRunner, EventHandlerFormat, ExtractedRouteMethod, FetchHandler, H3Event$Fetch, H3EventFetch, HTTPstatus, InternalApi, LoadConfigOptions, MatchedRouteRule, MatchedRouteRules, MatchedRoutes, MiddlewareOf, Nitro, NitroApp, NitroAppPlugin, NitroAsyncContext, NitroBuildInfo, NitroConfig, NitroDevEventHandler, NitroDynamicConfig, NitroErrorHandler, NitroEventHandler, NitroFetchOptions, NitroFetchRequest, NitroFrameworkInfo, NitroHooks, NitroImportMeta, NitroModule, NitroModuleInput, type NitroOpenAPIConfig, NitroOptions, NitroPreset, NitroPresetMeta, NitroRouteConfig, NitroRouteMeta, NitroRouteRules, NitroRuntimeConfig, NitroRuntimeConfigApp, NitroRuntimeHooks, NitroTypes, type NodeExternalsOptions, OXCOptions, PrerenderGenerateRoute, PrerenderRoute, PublicAsset, PublicAssetDir, RenderContext, RenderHandler, RenderResponse, ResponseCacheEntry, RollupConfig, RollupVirtualOptions, RunnerMessageListener, RunnerRPCHooks, Serialize, SerializeObject, SerializeTuple, ServerAssetDir, ServerAssetOptions, type ServerRequest, Simplify, StorageMounts, Task, TaskContext, TaskEvent, TaskMeta, TaskPayload, TaskResult, TaskRunnerOptions, TypedInternalResponse, UpgradeHandler, VirtualModule, WorkerAddress, WorkerHooks };
|
package/dist/vite.mjs
CHANGED
|
@@ -1,25 +1,23 @@
|
|
|
1
1
|
import "./_chunks/QkUO_zA6.mjs";
|
|
2
2
|
import "./_libs/c12.mjs";
|
|
3
|
-
import "./_libs/gen-mapping.mjs";
|
|
3
|
+
import "./_libs/@jridgewell/gen-mapping.mjs";
|
|
4
|
+
import "./_libs/@pi0/vite-plugin-fullstack.mjs";
|
|
4
5
|
import "./_libs/acorn.mjs";
|
|
5
|
-
import "./_libs/js-tokens.mjs";
|
|
6
6
|
import "./_libs/unimport.mjs";
|
|
7
|
-
import "./_libs/
|
|
8
|
-
import "./_chunks/
|
|
7
|
+
import "./_libs/@rollup/plugin-commonjs.mjs";
|
|
8
|
+
import "./_chunks/vCTaGRPD.mjs";
|
|
9
9
|
import "./_libs/tsconfck.mjs";
|
|
10
|
-
import "./_chunks/
|
|
11
|
-
import "./_chunks/
|
|
10
|
+
import "./_chunks/Df3_4Pam.mjs";
|
|
11
|
+
import "./_chunks/CycPUgTQ.mjs";
|
|
12
12
|
import "./_libs/mime.mjs";
|
|
13
13
|
import "./_build/common.mjs";
|
|
14
|
-
import "./
|
|
15
|
-
import "./_libs/plugin-alias.mjs";
|
|
16
|
-
import "./_libs/plugin-
|
|
17
|
-
import "./
|
|
18
|
-
import "./_chunks/BY3yPF44.mjs";
|
|
14
|
+
import "./_chunks/dcDd0pkY.mjs";
|
|
15
|
+
import "./_libs/@rollup/plugin-alias.mjs";
|
|
16
|
+
import "./_libs/@rollup/plugin-inject.mjs";
|
|
17
|
+
import "./_chunks/DT-wSyHv.mjs";
|
|
19
18
|
import "./_libs/etag.mjs";
|
|
20
|
-
import "./_libs/remapping.mjs";
|
|
21
|
-
import "./_libs/plugin-replace.mjs";
|
|
19
|
+
import "./_libs/@jridgewell/remapping.mjs";
|
|
20
|
+
import "./_libs/@rollup/plugin-replace.mjs";
|
|
22
21
|
import { t as nitro } from "./_build/vite.plugin.mjs";
|
|
23
|
-
import "./_libs/vite-plugin-fullstack.mjs";
|
|
24
22
|
|
|
25
23
|
export { nitro };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nitro-nightly",
|
|
3
|
-
"version": "3.0.1-
|
|
3
|
+
"version": "3.0.1-20251204-201435-0c3150df",
|
|
4
4
|
"description": "Build and Deploy Universal JavaScript Servers",
|
|
5
5
|
"homepage": "https://nitro.build",
|
|
6
6
|
"repository": "nitrojs/nitro",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"@rollup/plugin-json": "^6.1.0",
|
|
87
87
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
88
88
|
"@rollup/plugin-replace": "^6.0.3",
|
|
89
|
-
"@scalar/api-reference": "^1.40.
|
|
89
|
+
"@scalar/api-reference": "^1.40.1",
|
|
90
90
|
"@types/aws-lambda": "^8.10.159",
|
|
91
91
|
"@types/estree": "^1.0.8",
|
|
92
92
|
"@types/etag": "^1.8.4",
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
"mlly": "^1.8.0",
|
|
131
131
|
"nf3": "^0.1.12",
|
|
132
132
|
"nypm": "^0.6.2",
|
|
133
|
-
"obuild": "^0.4.
|
|
133
|
+
"obuild": "^0.4.7",
|
|
134
134
|
"pathe": "^2.0.3",
|
|
135
135
|
"perfect-debounce": "^2.0.0",
|
|
136
136
|
"pkg-types": "^2.3.0",
|
package/dist/_libs/commondir.mjs
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { n as __require, t as __commonJSMin } from "../_chunks/QkUO_zA6.mjs";
|
|
2
|
-
|
|
3
|
-
//#region node_modules/.pnpm/commondir@1.0.1/node_modules/commondir/index.js
|
|
4
|
-
var require_commondir = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5
|
-
var path = __require("path");
|
|
6
|
-
module.exports = function(basedir, relfiles) {
|
|
7
|
-
if (relfiles) var files = relfiles.map(function(r) {
|
|
8
|
-
return path.resolve(basedir, r);
|
|
9
|
-
});
|
|
10
|
-
else var files = basedir;
|
|
11
|
-
var res = files.slice(1).reduce(function(ps, file) {
|
|
12
|
-
if (!file.match(/^([A-Za-z]:)?\/|\\/)) throw new Error("relative path without a basedir");
|
|
13
|
-
var xs = file.split(/\/+|\\+/);
|
|
14
|
-
for (var i = 0; ps[i] === xs[i] && i < Math.min(ps.length, xs.length); i++);
|
|
15
|
-
return ps.slice(0, i);
|
|
16
|
-
}, files[0].split(/\/+|\\+/));
|
|
17
|
-
return res.length > 1 ? res.join("/") : "/";
|
|
18
|
-
};
|
|
19
|
-
}));
|
|
20
|
-
|
|
21
|
-
//#endregion
|
|
22
|
-
export { require_commondir as t };
|
package/dist/_libs/deepmerge.mjs
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { t as __commonJSMin } from "../_chunks/QkUO_zA6.mjs";
|
|
2
|
-
|
|
3
|
-
//#region node_modules/.pnpm/deepmerge@4.3.1/node_modules/deepmerge/dist/cjs.js
|
|
4
|
-
var require_cjs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5
|
-
var isMergeableObject = function isMergeableObject$1(value) {
|
|
6
|
-
return isNonNullObject(value) && !isSpecial(value);
|
|
7
|
-
};
|
|
8
|
-
function isNonNullObject(value) {
|
|
9
|
-
return !!value && typeof value === "object";
|
|
10
|
-
}
|
|
11
|
-
function isSpecial(value) {
|
|
12
|
-
var stringValue = Object.prototype.toString.call(value);
|
|
13
|
-
return stringValue === "[object RegExp]" || stringValue === "[object Date]" || isReactElement(value);
|
|
14
|
-
}
|
|
15
|
-
var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for ? Symbol.for("react.element") : 60103;
|
|
16
|
-
function isReactElement(value) {
|
|
17
|
-
return value.$$typeof === REACT_ELEMENT_TYPE;
|
|
18
|
-
}
|
|
19
|
-
function emptyTarget(val) {
|
|
20
|
-
return Array.isArray(val) ? [] : {};
|
|
21
|
-
}
|
|
22
|
-
function cloneUnlessOtherwiseSpecified(value, options) {
|
|
23
|
-
return options.clone !== false && options.isMergeableObject(value) ? deepmerge(emptyTarget(value), value, options) : value;
|
|
24
|
-
}
|
|
25
|
-
function defaultArrayMerge(target, source, options) {
|
|
26
|
-
return target.concat(source).map(function(element) {
|
|
27
|
-
return cloneUnlessOtherwiseSpecified(element, options);
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
function getMergeFunction(key, options) {
|
|
31
|
-
if (!options.customMerge) return deepmerge;
|
|
32
|
-
var customMerge = options.customMerge(key);
|
|
33
|
-
return typeof customMerge === "function" ? customMerge : deepmerge;
|
|
34
|
-
}
|
|
35
|
-
function getEnumerableOwnPropertySymbols(target) {
|
|
36
|
-
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(target).filter(function(symbol) {
|
|
37
|
-
return Object.propertyIsEnumerable.call(target, symbol);
|
|
38
|
-
}) : [];
|
|
39
|
-
}
|
|
40
|
-
function getKeys(target) {
|
|
41
|
-
return Object.keys(target).concat(getEnumerableOwnPropertySymbols(target));
|
|
42
|
-
}
|
|
43
|
-
function propertyIsOnObject(object, property) {
|
|
44
|
-
try {
|
|
45
|
-
return property in object;
|
|
46
|
-
} catch (_) {
|
|
47
|
-
return false;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
function propertyIsUnsafe(target, key) {
|
|
51
|
-
return propertyIsOnObject(target, key) && !(Object.hasOwnProperty.call(target, key) && Object.propertyIsEnumerable.call(target, key));
|
|
52
|
-
}
|
|
53
|
-
function mergeObject(target, source, options) {
|
|
54
|
-
var destination = {};
|
|
55
|
-
if (options.isMergeableObject(target)) getKeys(target).forEach(function(key) {
|
|
56
|
-
destination[key] = cloneUnlessOtherwiseSpecified(target[key], options);
|
|
57
|
-
});
|
|
58
|
-
getKeys(source).forEach(function(key) {
|
|
59
|
-
if (propertyIsUnsafe(target, key)) return;
|
|
60
|
-
if (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) destination[key] = getMergeFunction(key, options)(target[key], source[key], options);
|
|
61
|
-
else destination[key] = cloneUnlessOtherwiseSpecified(source[key], options);
|
|
62
|
-
});
|
|
63
|
-
return destination;
|
|
64
|
-
}
|
|
65
|
-
function deepmerge(target, source, options) {
|
|
66
|
-
options = options || {};
|
|
67
|
-
options.arrayMerge = options.arrayMerge || defaultArrayMerge;
|
|
68
|
-
options.isMergeableObject = options.isMergeableObject || isMergeableObject;
|
|
69
|
-
options.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified;
|
|
70
|
-
var sourceIsArray = Array.isArray(source);
|
|
71
|
-
if (!(sourceIsArray === Array.isArray(target))) return cloneUnlessOtherwiseSpecified(source, options);
|
|
72
|
-
else if (sourceIsArray) return options.arrayMerge(target, source, options);
|
|
73
|
-
else return mergeObject(target, source, options);
|
|
74
|
-
}
|
|
75
|
-
deepmerge.all = function deepmergeAll(array, options) {
|
|
76
|
-
if (!Array.isArray(array)) throw new Error("first argument should be an array");
|
|
77
|
-
return array.reduce(function(prev, next) {
|
|
78
|
-
return deepmerge(prev, next, options);
|
|
79
|
-
}, {});
|
|
80
|
-
};
|
|
81
|
-
var deepmerge_1 = deepmerge;
|
|
82
|
-
module.exports = deepmerge_1;
|
|
83
|
-
}));
|
|
84
|
-
|
|
85
|
-
//#endregion
|
|
86
|
-
export { require_cjs as t };
|