nitropack-nightly 2.11.0-20250301-081015.fcba06e1 → 2.11.0-20250303-164427.854613f0
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/core/index.mjs +51 -5
- package/dist/kit/index.d.mts +1 -1
- package/dist/kit/index.d.ts +1 -1
- package/dist/meta/index.d.mts +1 -1
- package/dist/meta/index.d.ts +1 -1
- package/dist/meta/index.mjs +1 -1
- package/dist/rollup/index.mjs +12 -44
- package/dist/runtime/internal/utils.d.ts +1 -1
- package/dist/shared/{nitro.Bp0y4NyZ.d.mts → nitro.Cr6V34LF.d.mts} +3 -2
- package/dist/shared/{nitro.Bp0y4NyZ.d.ts → nitro.Cr6V34LF.d.ts} +3 -2
- package/dist/types/index.d.mts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/package.json +16 -16
package/dist/core/index.mjs
CHANGED
|
@@ -115,7 +115,6 @@ const NitroDefaults = {
|
|
|
115
115
|
routes: []
|
|
116
116
|
},
|
|
117
117
|
// Rollup
|
|
118
|
-
unenv: {},
|
|
119
118
|
analyze: false,
|
|
120
119
|
moduleSideEffects: [
|
|
121
120
|
"unenv/polyfill/",
|
|
@@ -708,6 +707,51 @@ async function resolveErrorOptions(options) {
|
|
|
708
707
|
);
|
|
709
708
|
}
|
|
710
709
|
|
|
710
|
+
const common = {
|
|
711
|
+
meta: {
|
|
712
|
+
name: "nitro-common"
|
|
713
|
+
},
|
|
714
|
+
alias: {
|
|
715
|
+
"node-mock-http/_polyfill/events": "node:events",
|
|
716
|
+
"node-mock-http/_polyfill/buffer": "node:buffer",
|
|
717
|
+
"buffer/": "node:buffer",
|
|
718
|
+
"buffer/index": "node:buffer",
|
|
719
|
+
"buffer/index.js": "node:buffer"
|
|
720
|
+
}
|
|
721
|
+
};
|
|
722
|
+
const nodeless = {
|
|
723
|
+
meta: {
|
|
724
|
+
name: "nitro-nodeless"
|
|
725
|
+
},
|
|
726
|
+
inject: {
|
|
727
|
+
global: "unenv/polyfill/globalthis",
|
|
728
|
+
process: "node:process",
|
|
729
|
+
Buffer: ["node:buffer", "Buffer"],
|
|
730
|
+
clearImmediate: ["node:timers", "clearImmediate"],
|
|
731
|
+
setImmediate: ["node:timers", "setImmediate"],
|
|
732
|
+
performance: "unenv/polyfill/performance",
|
|
733
|
+
PerformanceObserver: ["node:perf_hooks", "PerformanceObserver"],
|
|
734
|
+
BroadcastChannel: "node:node:worker_threads"
|
|
735
|
+
},
|
|
736
|
+
polyfill: [
|
|
737
|
+
"unenv/polyfill/globalthis-global",
|
|
738
|
+
"unenv/polyfill/process",
|
|
739
|
+
"unenv/polyfill/buffer",
|
|
740
|
+
"unenv/polyfill/timers"
|
|
741
|
+
]
|
|
742
|
+
};
|
|
743
|
+
async function resolveUnenv(options) {
|
|
744
|
+
options.unenv ??= [];
|
|
745
|
+
if (!Array.isArray(options.unenv)) {
|
|
746
|
+
options.unenv = [options.unenv];
|
|
747
|
+
}
|
|
748
|
+
options.unenv = options.unenv.filter(Boolean);
|
|
749
|
+
if (!options.node) {
|
|
750
|
+
options.unenv.unshift(nodeless);
|
|
751
|
+
}
|
|
752
|
+
options.unenv.unshift(common);
|
|
753
|
+
}
|
|
754
|
+
|
|
711
755
|
const configResolvers = [
|
|
712
756
|
resolveCompatibilityOptions,
|
|
713
757
|
resolvePathOptions,
|
|
@@ -721,7 +765,8 @@ const configResolvers = [
|
|
|
721
765
|
resolveURLOptions,
|
|
722
766
|
resolveAssetsOptions,
|
|
723
767
|
resolveStorageOptions,
|
|
724
|
-
resolveErrorOptions
|
|
768
|
+
resolveErrorOptions,
|
|
769
|
+
resolveUnenv
|
|
725
770
|
];
|
|
726
771
|
async function loadOptions(configOverrides = {}, opts = {}) {
|
|
727
772
|
const options = await _loadUserConfig(configOverrides, opts);
|
|
@@ -2154,8 +2199,8 @@ class NodeDevWorker {
|
|
|
2154
2199
|
handleEvent(event) {
|
|
2155
2200
|
if (!this.#address || !this.#proxy) {
|
|
2156
2201
|
throw createError({
|
|
2157
|
-
|
|
2158
|
-
|
|
2202
|
+
status: 503,
|
|
2203
|
+
statusText: "Dev worker is unavailable"
|
|
2159
2204
|
});
|
|
2160
2205
|
}
|
|
2161
2206
|
return this.#proxy.handleEvent(event, { target: this.#address });
|
|
@@ -2741,7 +2786,7 @@ $1`
|
|
|
2741
2786
|
return new Response(
|
|
2742
2787
|
JSON.stringify(
|
|
2743
2788
|
{
|
|
2744
|
-
error: "
|
|
2789
|
+
error: "Dev server is unavailable.",
|
|
2745
2790
|
hint: "Please reload the page and check the console for errors if the issue persists."
|
|
2746
2791
|
},
|
|
2747
2792
|
null,
|
|
@@ -2749,6 +2794,7 @@ $1`
|
|
|
2749
2794
|
),
|
|
2750
2795
|
{
|
|
2751
2796
|
status: 503,
|
|
2797
|
+
statusText: "Dev server is unavailable",
|
|
2752
2798
|
headers: {
|
|
2753
2799
|
"Content-Type": "application/json",
|
|
2754
2800
|
"Cache-Control": "no-store",
|
package/dist/kit/index.d.mts
CHANGED
package/dist/kit/index.d.ts
CHANGED
package/dist/meta/index.d.mts
CHANGED
package/dist/meta/index.d.ts
CHANGED
package/dist/meta/index.mjs
CHANGED
package/dist/rollup/index.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { builtinModules, createRequire } from 'node:module';
|
|
2
2
|
import { pathToFileURL, fileURLToPath } from 'node:url';
|
|
3
|
+
import { isAbsolute as isAbsolute$1 } from 'node:path';
|
|
3
4
|
import alias from '@rollup/plugin-alias';
|
|
4
5
|
import commonjs from '@rollup/plugin-commonjs';
|
|
5
6
|
import inject from '@rollup/plugin-inject';
|
|
@@ -36,35 +37,6 @@ import { withTrailingSlash } from 'ufo';
|
|
|
36
37
|
import _replace from '@rollup/plugin-replace';
|
|
37
38
|
import { normalizeKey, builtinDrivers } from 'unstorage';
|
|
38
39
|
|
|
39
|
-
const common = {
|
|
40
|
-
alias: {
|
|
41
|
-
"node-mock-http/_polyfill/events": "node:events",
|
|
42
|
-
"node-mock-http/_polyfill/buffer": "node:buffer",
|
|
43
|
-
"buffer/": "node:buffer",
|
|
44
|
-
"buffer/index": "node:buffer",
|
|
45
|
-
"buffer/index.js": "node:buffer"
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
const node = {};
|
|
49
|
-
const nodeless = {
|
|
50
|
-
inject: {
|
|
51
|
-
global: "unenv/polyfill/globalthis",
|
|
52
|
-
process: "node:process",
|
|
53
|
-
Buffer: ["node:buffer", "Buffer"],
|
|
54
|
-
clearImmediate: ["node:timers", "clearImmediate"],
|
|
55
|
-
setImmediate: ["node:timers", "setImmediate"],
|
|
56
|
-
performance: "unenv/polyfill/performance",
|
|
57
|
-
PerformanceObserver: ["node:perf_hooks", "PerformanceObserver"],
|
|
58
|
-
BroadcastChannel: "node:node:worker_threads"
|
|
59
|
-
},
|
|
60
|
-
polyfill: [
|
|
61
|
-
"unenv/polyfill/globalthis-global",
|
|
62
|
-
"unenv/polyfill/process",
|
|
63
|
-
"unenv/polyfill/buffer",
|
|
64
|
-
"unenv/polyfill/timers"
|
|
65
|
-
]
|
|
66
|
-
};
|
|
67
|
-
|
|
68
40
|
const PREFIX = "\0virtual:";
|
|
69
41
|
function virtual(modules, cache = {}) {
|
|
70
42
|
const _modules = /* @__PURE__ */ new Map();
|
|
@@ -366,14 +338,14 @@ function printWarnings(id, result, plugin) {
|
|
|
366
338
|
|
|
367
339
|
function externals$1(opts) {
|
|
368
340
|
const trackedExternals = /* @__PURE__ */ new Set();
|
|
369
|
-
const tryResolve = (id) => {
|
|
341
|
+
const tryResolve = (id, importer) => {
|
|
370
342
|
if (id.startsWith("\0")) {
|
|
371
343
|
return id;
|
|
372
344
|
}
|
|
373
345
|
const res = resolveModuleURL(id, {
|
|
374
346
|
try: true,
|
|
375
347
|
conditions: opts.exportConditions,
|
|
376
|
-
from: opts.moduleDirectories,
|
|
348
|
+
from: importer && isAbsolute(importer) ? [pathToFileURL(importer), ...opts.moduleDirectories] : opts.moduleDirectories,
|
|
377
349
|
suffixes: ["", "/index"],
|
|
378
350
|
extensions: [".mjs", ".cjs", ".js", ".mts", ".cts", ".ts", ".json"]
|
|
379
351
|
});
|
|
@@ -411,7 +383,7 @@ function externals$1(opts) {
|
|
|
411
383
|
return null;
|
|
412
384
|
}
|
|
413
385
|
if (!isAbsolute(resolved.id) || !existsSync(resolved.id) || await isDirectory(resolved.id)) {
|
|
414
|
-
resolved.id = tryResolve(resolved.id) || resolved.id;
|
|
386
|
+
resolved.id = tryResolve(resolved.id, importer) || resolved.id;
|
|
415
387
|
}
|
|
416
388
|
if (!await isValidNodeImport(resolved.id).catch(() => false)) {
|
|
417
389
|
return null;
|
|
@@ -429,7 +401,7 @@ function externals$1(opts) {
|
|
|
429
401
|
}
|
|
430
402
|
if (pkgName !== originalId) {
|
|
431
403
|
if (!isAbsolute(originalId)) {
|
|
432
|
-
const fullPath = tryResolve(originalId);
|
|
404
|
+
const fullPath = tryResolve(originalId, importer);
|
|
433
405
|
if (fullPath) {
|
|
434
406
|
trackedExternals.add(fullPath);
|
|
435
407
|
return {
|
|
@@ -438,10 +410,10 @@ function externals$1(opts) {
|
|
|
438
410
|
};
|
|
439
411
|
}
|
|
440
412
|
}
|
|
441
|
-
const packageEntry = tryResolve(pkgName);
|
|
413
|
+
const packageEntry = tryResolve(pkgName, importer);
|
|
442
414
|
if (packageEntry !== id) {
|
|
443
415
|
const guessedSubpath = await lookupNodeModuleSubpath(id).catch(() => null);
|
|
444
|
-
const resolvedGuess = guessedSubpath && tryResolve(join(pkgName, guessedSubpath));
|
|
416
|
+
const resolvedGuess = guessedSubpath && tryResolve(join(pkgName, guessedSubpath), importer);
|
|
445
417
|
if (resolvedGuess === id) {
|
|
446
418
|
trackedExternals.add(resolvedGuess);
|
|
447
419
|
return {
|
|
@@ -1740,11 +1712,7 @@ const getRollupConfig = (nitro) => {
|
|
|
1740
1712
|
nodeCompat: isNodeless,
|
|
1741
1713
|
npmShims: true,
|
|
1742
1714
|
resolve: true,
|
|
1743
|
-
presets:
|
|
1744
|
-
common,
|
|
1745
|
-
isNodeless ? nodeless : node,
|
|
1746
|
-
nitro.options.unenv
|
|
1747
|
-
],
|
|
1715
|
+
presets: nitro.options.unenv,
|
|
1748
1716
|
overrides: {
|
|
1749
1717
|
alias: nitro.options.alias
|
|
1750
1718
|
}
|
|
@@ -2007,15 +1975,15 @@ export const plugins = [
|
|
|
2007
1975
|
if (nitro.options.noExternals) {
|
|
2008
1976
|
rollupConfig.plugins.push({
|
|
2009
1977
|
name: "no-externals",
|
|
2010
|
-
async resolveId(id,
|
|
1978
|
+
async resolveId(id, importer, resolveOpts) {
|
|
2011
1979
|
if (nitro.options.node && (id.startsWith("node:") || builtinModules.includes(id))) {
|
|
2012
1980
|
return { id, external: true };
|
|
2013
1981
|
}
|
|
2014
|
-
const resolved = await this.resolve(id,
|
|
1982
|
+
const resolved = await this.resolve(id, importer, resolveOpts);
|
|
2015
1983
|
if (!resolved) {
|
|
2016
1984
|
const _resolved = resolveModulePath(id, {
|
|
2017
1985
|
try: true,
|
|
2018
|
-
from: nitro.options.nodeModulesDirs,
|
|
1986
|
+
from: importer && isAbsolute$1(importer) ? [pathToFileURL(importer), ...nitro.options.nodeModulesDirs] : nitro.options.nodeModulesDirs,
|
|
2019
1987
|
suffixes: ["", "/index"],
|
|
2020
1988
|
extensions: [".mjs", ".cjs", ".js", ".mts", ".cts", ".ts", ".json"],
|
|
2021
1989
|
conditions: [
|
|
@@ -2033,7 +2001,7 @@ export const plugins = [
|
|
|
2033
2001
|
if (!resolved || resolved.external && !id.endsWith(".wasm")) {
|
|
2034
2002
|
throw new Error(
|
|
2035
2003
|
`Cannot resolve ${JSON.stringify(id)} from ${JSON.stringify(
|
|
2036
|
-
|
|
2004
|
+
importer
|
|
2037
2005
|
)} and externals are not allowed!`
|
|
2038
2006
|
);
|
|
2039
2007
|
}
|
|
@@ -6,4 +6,4 @@ export declare function joinHeaders(value: number | string | string[]): string;
|
|
|
6
6
|
export declare function normalizeFetchResponse(response: Response): Response;
|
|
7
7
|
export declare function normalizeCookieHeader(header?: number | string | string[]): string[];
|
|
8
8
|
export declare function normalizeCookieHeaders(headers: Headers): Headers;
|
|
9
|
-
export declare function toBuffer(data: ReadableStream | Readable | Uint8Array): Promise<Buffer<ArrayBufferLike>> | Buffer<
|
|
9
|
+
export declare function toBuffer(data: ReadableStream | Readable | Uint8Array): Promise<Buffer<ArrayBufferLike>> | Buffer<ArrayBuffer>;
|
|
@@ -498,7 +498,7 @@ interface NitroOptions extends PresetOptions {
|
|
|
498
498
|
};
|
|
499
499
|
rollupConfig?: RollupConfig;
|
|
500
500
|
entry: string;
|
|
501
|
-
unenv: Preset;
|
|
501
|
+
unenv: Preset[];
|
|
502
502
|
alias: Record<string, string>;
|
|
503
503
|
minify: boolean;
|
|
504
504
|
inlineDynamicImports: boolean;
|
|
@@ -538,7 +538,7 @@ interface NitroOptions extends PresetOptions {
|
|
|
538
538
|
/**
|
|
539
539
|
* Nitro input config (nitro.config)
|
|
540
540
|
*/
|
|
541
|
-
interface NitroConfig extends DeepPartial<Omit<NitroOptions, "routeRules" | "rollupConfig" | "preset" | "compatibilityDate">>, C12InputConfig<NitroConfig> {
|
|
541
|
+
interface NitroConfig extends DeepPartial<Omit<NitroOptions, "routeRules" | "rollupConfig" | "preset" | "compatibilityDate" | "unenv">>, C12InputConfig<NitroConfig> {
|
|
542
542
|
preset?: PresetNameInput;
|
|
543
543
|
extends?: string | string[] | NitroPreset;
|
|
544
544
|
routeRules?: {
|
|
@@ -546,6 +546,7 @@ interface NitroConfig extends DeepPartial<Omit<NitroOptions, "routeRules" | "rol
|
|
|
546
546
|
};
|
|
547
547
|
rollupConfig?: Partial<RollupConfig>;
|
|
548
548
|
compatibilityDate?: CompatibilityDateSpec;
|
|
549
|
+
unenv?: Preset | Preset[];
|
|
549
550
|
}
|
|
550
551
|
interface LoadConfigOptions {
|
|
551
552
|
watch?: boolean;
|
|
@@ -498,7 +498,7 @@ interface NitroOptions extends PresetOptions {
|
|
|
498
498
|
};
|
|
499
499
|
rollupConfig?: RollupConfig;
|
|
500
500
|
entry: string;
|
|
501
|
-
unenv: Preset;
|
|
501
|
+
unenv: Preset[];
|
|
502
502
|
alias: Record<string, string>;
|
|
503
503
|
minify: boolean;
|
|
504
504
|
inlineDynamicImports: boolean;
|
|
@@ -538,7 +538,7 @@ interface NitroOptions extends PresetOptions {
|
|
|
538
538
|
/**
|
|
539
539
|
* Nitro input config (nitro.config)
|
|
540
540
|
*/
|
|
541
|
-
interface NitroConfig extends DeepPartial<Omit<NitroOptions, "routeRules" | "rollupConfig" | "preset" | "compatibilityDate">>, C12InputConfig<NitroConfig> {
|
|
541
|
+
interface NitroConfig extends DeepPartial<Omit<NitroOptions, "routeRules" | "rollupConfig" | "preset" | "compatibilityDate" | "unenv">>, C12InputConfig<NitroConfig> {
|
|
542
542
|
preset?: PresetNameInput;
|
|
543
543
|
extends?: string | string[] | NitroPreset;
|
|
544
544
|
routeRules?: {
|
|
@@ -546,6 +546,7 @@ interface NitroConfig extends DeepPartial<Omit<NitroOptions, "routeRules" | "rol
|
|
|
546
546
|
};
|
|
547
547
|
rollupConfig?: Partial<RollupConfig>;
|
|
548
548
|
compatibilityDate?: CompatibilityDateSpec;
|
|
549
|
+
unenv?: Preset | Preset[];
|
|
549
550
|
}
|
|
550
551
|
interface LoadConfigOptions {
|
|
551
552
|
watch?: boolean;
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { App, Router, H3Event, RouterMethod } from 'h3';
|
|
2
2
|
import { FetchRequest, FetchOptions, FetchResponse } from 'ofetch';
|
|
3
|
-
import { a as NitroOptions, b as NitroConfig, N as NitroModule } from '../shared/nitro.
|
|
4
|
-
export { A as AppConfig, C as CacheEntry, c as CacheOptions, d as CachedEventHandlerOptions, e as CompressOptions, g as DatabaseConnectionConfig, h as DatabaseConnectionConfigs, D as DatabaseConnectionName, l as DevServerOptions, I as EsbuildOptions, O as HTTPStatusCode, L as LoadConfigOptions, u as Nitro, y as NitroBuildInfo, q as NitroDevEventHandler, n as NitroDevServer, v as NitroDynamicConfig, r as NitroErrorHandler, p as NitroEventHandler, x as NitroFrameworkInfo, s as NitroHooks, t as NitroModuleInput, k as NitroOpenAPIConfig, E as NitroPreset, F as NitroPresetMeta, Q as NitroRouteConfig, o as NitroRouteMeta, T as NitroRouteRules, j as NitroRuntimeConfig, i as NitroRuntimeConfigApp, w as NitroTypes, m as NitroWorker, J as NodeExternalsOptions, B as PrerenderGenerateRoute, z as PrerenderRoute, P as PublicAssetDir, M as RawOptions, R as ResponseCacheEntry, G as RollupConfig, H as RollupVirtualOptions, S as ServerAssetDir, K as ServerAssetOptions, f as StorageMounts, V as VirtualModule } from '../shared/nitro.
|
|
3
|
+
import { a as NitroOptions, b as NitroConfig, N as NitroModule } from '../shared/nitro.Cr6V34LF.mjs';
|
|
4
|
+
export { A as AppConfig, C as CacheEntry, c as CacheOptions, d as CachedEventHandlerOptions, e as CompressOptions, g as DatabaseConnectionConfig, h as DatabaseConnectionConfigs, D as DatabaseConnectionName, l as DevServerOptions, I as EsbuildOptions, O as HTTPStatusCode, L as LoadConfigOptions, u as Nitro, y as NitroBuildInfo, q as NitroDevEventHandler, n as NitroDevServer, v as NitroDynamicConfig, r as NitroErrorHandler, p as NitroEventHandler, x as NitroFrameworkInfo, s as NitroHooks, t as NitroModuleInput, k as NitroOpenAPIConfig, E as NitroPreset, F as NitroPresetMeta, Q as NitroRouteConfig, o as NitroRouteMeta, T as NitroRouteRules, j as NitroRuntimeConfig, i as NitroRuntimeConfigApp, w as NitroTypes, m as NitroWorker, J as NodeExternalsOptions, B as PrerenderGenerateRoute, z as PrerenderRoute, P as PublicAssetDir, M as RawOptions, R as ResponseCacheEntry, G as RollupConfig, H as RollupVirtualOptions, S as ServerAssetDir, K as ServerAssetOptions, f as StorageMounts, V as VirtualModule } from '../shared/nitro.Cr6V34LF.mjs';
|
|
5
5
|
import { Hookable } from 'hookable';
|
|
6
6
|
import { NitroRuntimeHooks as NitroRuntimeHooks$1 } from 'nitropack';
|
|
7
7
|
import { AbstractRequest, AbstractResponse } from 'node-mock-http';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { App, Router, H3Event, RouterMethod } from 'h3';
|
|
2
2
|
import { FetchRequest, FetchOptions, FetchResponse } from 'ofetch';
|
|
3
|
-
import { a as NitroOptions, b as NitroConfig, N as NitroModule } from '../shared/nitro.
|
|
4
|
-
export { A as AppConfig, C as CacheEntry, c as CacheOptions, d as CachedEventHandlerOptions, e as CompressOptions, g as DatabaseConnectionConfig, h as DatabaseConnectionConfigs, D as DatabaseConnectionName, l as DevServerOptions, I as EsbuildOptions, O as HTTPStatusCode, L as LoadConfigOptions, u as Nitro, y as NitroBuildInfo, q as NitroDevEventHandler, n as NitroDevServer, v as NitroDynamicConfig, r as NitroErrorHandler, p as NitroEventHandler, x as NitroFrameworkInfo, s as NitroHooks, t as NitroModuleInput, k as NitroOpenAPIConfig, E as NitroPreset, F as NitroPresetMeta, Q as NitroRouteConfig, o as NitroRouteMeta, T as NitroRouteRules, j as NitroRuntimeConfig, i as NitroRuntimeConfigApp, w as NitroTypes, m as NitroWorker, J as NodeExternalsOptions, B as PrerenderGenerateRoute, z as PrerenderRoute, P as PublicAssetDir, M as RawOptions, R as ResponseCacheEntry, G as RollupConfig, H as RollupVirtualOptions, S as ServerAssetDir, K as ServerAssetOptions, f as StorageMounts, V as VirtualModule } from '../shared/nitro.
|
|
3
|
+
import { a as NitroOptions, b as NitroConfig, N as NitroModule } from '../shared/nitro.Cr6V34LF.js';
|
|
4
|
+
export { A as AppConfig, C as CacheEntry, c as CacheOptions, d as CachedEventHandlerOptions, e as CompressOptions, g as DatabaseConnectionConfig, h as DatabaseConnectionConfigs, D as DatabaseConnectionName, l as DevServerOptions, I as EsbuildOptions, O as HTTPStatusCode, L as LoadConfigOptions, u as Nitro, y as NitroBuildInfo, q as NitroDevEventHandler, n as NitroDevServer, v as NitroDynamicConfig, r as NitroErrorHandler, p as NitroEventHandler, x as NitroFrameworkInfo, s as NitroHooks, t as NitroModuleInput, k as NitroOpenAPIConfig, E as NitroPreset, F as NitroPresetMeta, Q as NitroRouteConfig, o as NitroRouteMeta, T as NitroRouteRules, j as NitroRuntimeConfig, i as NitroRuntimeConfigApp, w as NitroTypes, m as NitroWorker, J as NodeExternalsOptions, B as PrerenderGenerateRoute, z as PrerenderRoute, P as PublicAssetDir, M as RawOptions, R as ResponseCacheEntry, G as RollupConfig, H as RollupVirtualOptions, S as ServerAssetDir, K as ServerAssetOptions, f as StorageMounts, V as VirtualModule } from '../shared/nitro.Cr6V34LF.js';
|
|
5
5
|
import { Hookable } from 'hookable';
|
|
6
6
|
import { NitroRuntimeHooks as NitroRuntimeHooks$1 } from 'nitropack';
|
|
7
7
|
import { AbstractRequest, AbstractResponse } from 'node-mock-http';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nitropack-nightly",
|
|
3
|
-
"version": "2.11.0-
|
|
3
|
+
"version": "2.11.0-20250303-164427.854613f0",
|
|
4
4
|
"description": "Build and Deploy Universal JavaScript Servers",
|
|
5
5
|
"repository": "nitrojs/nitro",
|
|
6
6
|
"license": "MIT",
|
|
@@ -114,9 +114,9 @@
|
|
|
114
114
|
"chokidar": "^4.0.3",
|
|
115
115
|
"citty": "^0.1.6",
|
|
116
116
|
"compatx": "^0.1.8",
|
|
117
|
-
"confbox": "^0.1
|
|
117
|
+
"confbox": "^0.2.1",
|
|
118
118
|
"consola": "^3.4.0",
|
|
119
|
-
"cookie-es": "^
|
|
119
|
+
"cookie-es": "^2.0.0",
|
|
120
120
|
"croner": "^9.0.0",
|
|
121
121
|
"crossws": "^0.3.4",
|
|
122
122
|
"db0": "^0.3.1",
|
|
@@ -145,21 +145,21 @@
|
|
|
145
145
|
"node-fetch-native": "^1.6.6",
|
|
146
146
|
"node-mock-http": "^1.0.0",
|
|
147
147
|
"ofetch": "^1.4.1",
|
|
148
|
-
"ohash": "^2.0.
|
|
148
|
+
"ohash": "^2.0.10",
|
|
149
149
|
"openapi-typescript": "^7.6.1",
|
|
150
150
|
"pathe": "^2.0.3",
|
|
151
151
|
"perfect-debounce": "^1.0.0",
|
|
152
|
-
"pkg-types": "^2.
|
|
152
|
+
"pkg-types": "^2.1.0",
|
|
153
153
|
"pretty-bytes": "^6.1.1",
|
|
154
154
|
"radix3": "^1.1.2",
|
|
155
|
-
"rollup": "^4.34.
|
|
155
|
+
"rollup": "^4.34.9",
|
|
156
156
|
"rollup-plugin-visualizer": "^5.14.0",
|
|
157
157
|
"scule": "^1.3.0",
|
|
158
158
|
"semver": "^7.7.1",
|
|
159
159
|
"serve-placeholder": "^2.0.2",
|
|
160
160
|
"serve-static": "^1.16.2",
|
|
161
161
|
"source-map": "^0.7.4",
|
|
162
|
-
"std-env": "^3.8.
|
|
162
|
+
"std-env": "^3.8.1",
|
|
163
163
|
"ufo": "^1.5.4",
|
|
164
164
|
"ultrahtml": "^1.5.3",
|
|
165
165
|
"uncrypto": "^0.1.3",
|
|
@@ -179,7 +179,7 @@
|
|
|
179
179
|
"@cloudflare/workers-types": "^4.20250224.0",
|
|
180
180
|
"@deno/types": "^0.0.1",
|
|
181
181
|
"@netlify/edge-functions": "^2.11.1",
|
|
182
|
-
"@scalar/api-reference": "^1.25.
|
|
182
|
+
"@scalar/api-reference": "^1.25.125",
|
|
183
183
|
"@types/archiver": "^6.0.3",
|
|
184
184
|
"@types/aws-lambda": "^8.10.147",
|
|
185
185
|
"@types/estree": "^1.0.6",
|
|
@@ -191,21 +191,21 @@
|
|
|
191
191
|
"@types/xml2js": "^0.4.14",
|
|
192
192
|
"@vitest/coverage-v8": "^3.0.7",
|
|
193
193
|
"automd": "^0.4.0",
|
|
194
|
-
"changelogen": "^0.6.
|
|
194
|
+
"changelogen": "^0.6.1",
|
|
195
195
|
"edge-runtime": "^4.0.1",
|
|
196
196
|
"eslint": "^9.21.0",
|
|
197
197
|
"eslint-config-unjs": "^0.4.2",
|
|
198
198
|
"execa": "^9.5.2",
|
|
199
|
-
"expect-type": "^1.
|
|
199
|
+
"expect-type": "^1.2.0",
|
|
200
200
|
"firebase-admin": "^12.7.0",
|
|
201
201
|
"firebase-functions": "^4.9.0",
|
|
202
202
|
"get-port-please": "^3.1.2",
|
|
203
|
-
"miniflare": "^3.20250214.
|
|
204
|
-
"ohash-v1": "npm:ohash@^1.1.
|
|
205
|
-
"prettier": "^3.5.
|
|
206
|
-
"typescript": "^5.
|
|
207
|
-
"unbuild": "^3.
|
|
208
|
-
"undici": "^7.
|
|
203
|
+
"miniflare": "^3.20250214.1",
|
|
204
|
+
"ohash-v1": "npm:ohash@^1.1.5",
|
|
205
|
+
"prettier": "^3.5.3",
|
|
206
|
+
"typescript": "^5.8.2",
|
|
207
|
+
"unbuild": "^3.5.0",
|
|
208
|
+
"undici": "^7.4.0",
|
|
209
209
|
"vitest": "^3.0.7",
|
|
210
210
|
"xml2js": "^0.6.2"
|
|
211
211
|
},
|