nitropack-nightly 2.11.8-20250325-000554.f42a4fb8 → 2.11.9-20250403-221700.eae11ca4
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 +1 -1
- 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/runtime/internal/routes/openapi.mjs +9 -2
- package/dist/shared/{nitro.Do5tFpxB.d.mts → nitro.BULiwDWR.d.mts} +3 -2
- package/dist/shared/{nitro.Do5tFpxB.d.ts → nitro.BULiwDWR.d.ts} +3 -2
- package/dist/types/index.d.mts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/package.json +1 -1
package/dist/core/index.mjs
CHANGED
|
@@ -788,7 +788,7 @@ async function _loadUserConfig(configOverrides = {}, opts = {}) {
|
|
|
788
788
|
const loadedConfig = await (opts.watch ? watchConfig : loadConfig)({
|
|
789
789
|
name: "nitro",
|
|
790
790
|
cwd: configOverrides.rootDir,
|
|
791
|
-
dotenv: configOverrides.dev,
|
|
791
|
+
dotenv: opts.dotenv ?? configOverrides.dev,
|
|
792
792
|
extend: { extendKey: ["extends", "preset"] },
|
|
793
793
|
overrides: {
|
|
794
794
|
...configOverrides,
|
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
|
@@ -11,7 +11,13 @@ export default eventHandler((event) => {
|
|
|
11
11
|
title: "Nitro Server Routes",
|
|
12
12
|
...runtimeConfig.nitro?.openAPI?.meta
|
|
13
13
|
};
|
|
14
|
-
const {
|
|
14
|
+
const {
|
|
15
|
+
paths,
|
|
16
|
+
globals: { components, ...globalsRest }
|
|
17
|
+
} = getHandlersMeta();
|
|
18
|
+
const extensible = Object.fromEntries(
|
|
19
|
+
Object.entries(globalsRest).filter(([key]) => key.startsWith("x-"))
|
|
20
|
+
);
|
|
15
21
|
return {
|
|
16
22
|
openapi: "3.1.0",
|
|
17
23
|
info: {
|
|
@@ -27,7 +33,8 @@ export default eventHandler((event) => {
|
|
|
27
33
|
}
|
|
28
34
|
],
|
|
29
35
|
paths,
|
|
30
|
-
components
|
|
36
|
+
components,
|
|
37
|
+
...extensible
|
|
31
38
|
};
|
|
32
39
|
});
|
|
33
40
|
function getHandlersMeta() {
|
|
@@ -5,7 +5,7 @@ import { PresetName, PresetOptions, PresetNameInput } from 'nitropack/presets';
|
|
|
5
5
|
import { Unimport } from 'unimport';
|
|
6
6
|
import { BuiltinDriverName, Storage } from 'unstorage';
|
|
7
7
|
import { RollupCommonJSOptions } from '@rollup/plugin-commonjs';
|
|
8
|
-
import { C12InputConfig, ResolvedConfig, ConfigWatcher, WatchConfigOptions } from 'c12';
|
|
8
|
+
import { C12InputConfig, ResolvedConfig, ConfigWatcher, WatchConfigOptions, DotenvOptions } from 'c12';
|
|
9
9
|
import { FSWatcher, ChokidarOptions } from 'chokidar';
|
|
10
10
|
import { DateString, CompatibilityDateSpec, CompatibilityDates } from 'compatx';
|
|
11
11
|
import { ConnectorName } from 'db0';
|
|
@@ -661,7 +661,7 @@ type MaybeArray<T> = T | T[];
|
|
|
661
661
|
/** @exprerimental */
|
|
662
662
|
interface NitroRouteMeta {
|
|
663
663
|
openAPI?: OperationObject & {
|
|
664
|
-
$global?: Pick<OpenAPI3, "components"
|
|
664
|
+
$global?: Pick<OpenAPI3, "components"> & Extensable;
|
|
665
665
|
};
|
|
666
666
|
}
|
|
667
667
|
interface NitroEventHandler {
|
|
@@ -1165,6 +1165,7 @@ interface LoadConfigOptions {
|
|
|
1165
1165
|
watch?: boolean;
|
|
1166
1166
|
c12?: WatchConfigOptions;
|
|
1167
1167
|
compatibilityDate?: CompatibilityDateSpec;
|
|
1168
|
+
dotenv?: boolean | DotenvOptions;
|
|
1168
1169
|
}
|
|
1169
1170
|
interface AppConfig {
|
|
1170
1171
|
[key: string]: any;
|
|
@@ -5,7 +5,7 @@ import { PresetName, PresetOptions, PresetNameInput } from 'nitropack/presets';
|
|
|
5
5
|
import { Unimport } from 'unimport';
|
|
6
6
|
import { BuiltinDriverName, Storage } from 'unstorage';
|
|
7
7
|
import { RollupCommonJSOptions } from '@rollup/plugin-commonjs';
|
|
8
|
-
import { C12InputConfig, ResolvedConfig, ConfigWatcher, WatchConfigOptions } from 'c12';
|
|
8
|
+
import { C12InputConfig, ResolvedConfig, ConfigWatcher, WatchConfigOptions, DotenvOptions } from 'c12';
|
|
9
9
|
import { FSWatcher, ChokidarOptions } from 'chokidar';
|
|
10
10
|
import { DateString, CompatibilityDateSpec, CompatibilityDates } from 'compatx';
|
|
11
11
|
import { ConnectorName } from 'db0';
|
|
@@ -661,7 +661,7 @@ type MaybeArray<T> = T | T[];
|
|
|
661
661
|
/** @exprerimental */
|
|
662
662
|
interface NitroRouteMeta {
|
|
663
663
|
openAPI?: OperationObject & {
|
|
664
|
-
$global?: Pick<OpenAPI3, "components"
|
|
664
|
+
$global?: Pick<OpenAPI3, "components"> & Extensable;
|
|
665
665
|
};
|
|
666
666
|
}
|
|
667
667
|
interface NitroEventHandler {
|
|
@@ -1165,6 +1165,7 @@ interface LoadConfigOptions {
|
|
|
1165
1165
|
watch?: boolean;
|
|
1166
1166
|
c12?: WatchConfigOptions;
|
|
1167
1167
|
compatibilityDate?: CompatibilityDateSpec;
|
|
1168
|
+
dotenv?: boolean | DotenvOptions;
|
|
1168
1169
|
}
|
|
1169
1170
|
interface AppConfig {
|
|
1170
1171
|
[key: string]: any;
|
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.BULiwDWR.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.BULiwDWR.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.BULiwDWR.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.BULiwDWR.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