nitro-nightly 3.0.1-alpha.1 → 3.0.1-alpha.2
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/README.md +2 -0
- package/dist/_build/common.mjs +24924 -52
- package/dist/_build/rolldown.mjs +29 -63
- package/dist/_build/rollup.mjs +22 -110
- package/dist/_build/vite.build.mjs +3 -43
- package/dist/{_dev.mjs → _chunks/dev.mjs} +45 -43
- package/dist/_chunks/{B-D1JOIz.mjs → nitro.mjs} +144 -308
- package/dist/_chunks/nitro2.mjs +101 -0
- package/dist/_chunks/utils.mjs +254 -0
- package/dist/{_chunks/Bqks5huO.mjs → _common.mjs} +24 -10
- package/dist/_libs/c12+giget+readdirp+chokidar.d.mts +214 -0
- package/dist/_libs/citty.mjs +140 -110
- package/dist/_libs/{plugin-commonjs.mjs → commondir+is-reference.mjs} +59 -250
- package/dist/_libs/compatx.d.mts +47 -0
- package/dist/_libs/confbox.mjs +388 -799
- package/dist/_libs/esbuild.d.mts +20 -0
- package/dist/_libs/estree-walker.mjs +1 -144
- package/dist/_libs/{plugin-node-resolve.mjs → hasown+resolve+deepmerge.mjs} +497 -78
- package/dist/_libs/httpxy.d.mts +79 -0
- package/dist/_libs/httpxy.mjs +6 -1
- package/dist/_libs/magic-string.d.mts +220 -0
- package/dist/_libs/mlly.d.mts +57 -0
- package/dist/_libs/nypm+giget+tinyexec.mjs +3603 -0
- package/dist/_libs/pkg-types.d.mts +23 -0
- package/dist/_libs/plugin-alias.mjs +4 -2
- package/dist/_libs/plugin-inject.mjs +5 -5
- package/dist/_libs/plugin-json.mjs +2 -2
- package/dist/_libs/pluginutils+plugin-commonjs.d.mts +241 -0
- package/dist/_libs/{vite-plugin-fullstack.mjs → pluginutils.mjs} +244 -153
- package/dist/_libs/rc9+c12+dotenv.mjs +972 -0
- package/dist/_libs/{chokidar.mjs → readdirp+chokidar.mjs} +237 -187
- package/dist/_libs/remapping.mjs +1 -1
- package/dist/_libs/{gen-mapping.mjs → resolve-uri+gen-mapping.mjs} +2 -166
- package/dist/_libs/rou3.d.mts +43 -0
- package/dist/_libs/rou3.mjs +9 -6
- package/dist/_libs/std-env.d.mts +4 -0
- package/dist/_libs/tsconfck.mjs +3 -3
- package/dist/_libs/{unimport.mjs → unimport+unplugin.mjs} +226 -1961
- package/dist/_libs/unplugin+unimport.d.mts +426 -0
- package/dist/_libs/unwasm.d.mts +29 -0
- package/dist/_presets.mjs +130 -80
- package/dist/builder.d.mts +4 -4
- package/dist/builder.mjs +6 -30
- package/dist/cli/_chunks/build.mjs +1 -1
- package/dist/cli/_chunks/dev.mjs +5 -11
- 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/node_modules/@poppinss/colors/build/index.js +130 -160
- package/dist/node_modules/@poppinss/colors/package.json +20 -18
- package/dist/node_modules/@poppinss/exception/build/index.js +36 -55
- package/dist/node_modules/@poppinss/exception/package.json +19 -16
- package/dist/node_modules/@sindresorhus/is/distribution/index.js +46 -5
- package/dist/node_modules/@sindresorhus/is/package.json +1 -1
- package/dist/node_modules/@speed-highlight/core/dist/index.js +1 -1
- package/dist/node_modules/@speed-highlight/core/dist/terminal.js +1 -1
- package/dist/node_modules/@speed-highlight/core/package.json +2 -2
- package/dist/node_modules/hookable/dist/index.mjs +5 -6
- package/dist/node_modules/hookable/package.json +13 -13
- package/dist/node_modules/ufo/dist/index.mjs +16 -9
- package/dist/node_modules/ufo/package.json +15 -14
- package/dist/node_modules/unctx/package.json +16 -16
- package/dist/node_modules/youch/build/{chunk-4XB2BYKC.js → chunk-7QV3D5YX.js} +2 -4
- package/dist/node_modules/youch/build/{chunk-PUHGL6HA.js → chunk-AUGPHE32.js} +2 -4
- package/dist/node_modules/youch/build/{chunk-F4I6KX4R.js → chunk-CM7DWJNZ.js} +2 -4
- package/dist/node_modules/youch/build/{chunk-YYEJ3AGB.js → chunk-EJH674NB.js} +2 -4
- package/dist/node_modules/youch/build/{chunk-EUJBVOYB.js → chunk-OIJ3WD7L.js} +2 -4
- package/dist/node_modules/youch/build/{chunk-HFSXRSKS.js → chunk-P36L72PL.js} +5 -3
- package/dist/node_modules/youch/build/{chunk-4YEN7HVQ.js → chunk-PE3GG3TN.js} +5 -1
- package/dist/node_modules/youch/build/{chunk-PINJDICN.js → chunk-X53OIOJH.js} +2 -4
- package/dist/node_modules/youch/build/index.js +8 -9
- package/dist/node_modules/youch/build/public/error_info/style.css +1 -0
- package/dist/node_modules/youch/build/public/error_metadata/style.css +3 -0
- package/dist/node_modules/youch/build/public/error_stack/style.css +2 -3
- package/dist/node_modules/youch/package.json +1 -1
- package/dist/presets/_nitro/runtime/nitro-dev.d.mts +1 -1
- package/dist/presets/_nitro/runtime/nitro-dev.mjs +5 -6
- package/dist/presets/_nitro/runtime/nitro-prerenderer.d.mts +1 -1
- package/dist/presets/_nitro/runtime/nitro-prerenderer.mjs +1 -1
- package/dist/presets/_nitro/runtime/service-worker.d.mts +1 -1
- package/dist/presets/_nitro/runtime/service-worker.mjs +2 -2
- package/dist/presets/aws-amplify/runtime/aws-amplify.d.mts +1 -1
- package/dist/presets/aws-amplify/runtime/aws-amplify.mjs +1 -1
- package/dist/presets/aws-lambda/runtime/_utils.d.mts +0 -5
- package/dist/presets/aws-lambda/runtime/aws-lambda-streaming.d.mts +1 -1
- package/dist/presets/aws-lambda/runtime/aws-lambda-streaming.mjs +9 -11
- package/dist/presets/aws-lambda/runtime/aws-lambda.d.mts +1 -1
- package/dist/presets/aws-lambda/runtime/aws-lambda.mjs +1 -1
- package/dist/presets/azure/runtime/azure-swa.d.mts +1 -1
- package/dist/presets/azure/runtime/azure-swa.mjs +1 -1
- package/dist/presets/bun/runtime/bun.d.mts +1 -1
- package/dist/presets/bun/runtime/bun.mjs +7 -8
- package/dist/presets/cloudflare/runtime/_module-handler.d.mts +3 -3
- package/dist/presets/cloudflare/runtime/_module-handler.mjs +19 -17
- package/dist/presets/cloudflare/runtime/cloudflare-durable.d.mts +1 -1
- package/dist/presets/cloudflare/runtime/cloudflare-durable.mjs +17 -16
- package/dist/presets/cloudflare/runtime/cloudflare-module.d.mts +1 -1
- package/dist/presets/cloudflare/runtime/cloudflare-module.mjs +8 -9
- package/dist/presets/cloudflare/runtime/cloudflare-pages.d.mts +1 -1
- package/dist/presets/cloudflare/runtime/cloudflare-pages.mjs +12 -18
- package/dist/presets/deno/runtime/deno-deploy.d.mts +1 -1
- package/dist/presets/deno/runtime/deno-deploy.mjs +4 -5
- package/dist/presets/deno/runtime/deno-server.d.mts +1 -1
- package/dist/presets/deno/runtime/deno-server.mjs +5 -6
- package/dist/presets/netlify/runtime/netlify-edge.d.mts +1 -2
- package/dist/presets/netlify/runtime/netlify-edge.mjs +3 -2
- package/dist/presets/netlify/runtime/netlify.d.mts +3 -2
- package/dist/presets/netlify/runtime/netlify.mjs +3 -1
- package/dist/presets/node/runtime/node-cluster.d.mts +1 -1
- package/dist/presets/node/runtime/node-cluster.mjs +5 -6
- package/dist/presets/node/runtime/node-middleware.d.mts +1 -1
- package/dist/presets/node/runtime/node-middleware.mjs +4 -5
- package/dist/presets/node/runtime/node-server.d.mts +1 -1
- package/dist/presets/node/runtime/node-server.mjs +5 -6
- package/dist/presets/standard/runtime/server.d.mts +1 -1
- package/dist/presets/standard/runtime/server.mjs +1 -1
- package/dist/presets/stormkit/runtime/stormkit.d.mts +1 -1
- package/dist/presets/stormkit/runtime/stormkit.mjs +1 -1
- package/dist/presets/vercel/runtime/isr.d.mts +2 -0
- package/dist/presets/vercel/runtime/isr.mjs +19 -0
- package/dist/presets/vercel/runtime/vercel.node.d.mts +1 -1
- package/dist/presets/vercel/runtime/vercel.node.mjs +16 -7
- package/dist/presets/vercel/runtime/vercel.web.d.mts +1 -1
- package/dist/presets/vercel/runtime/vercel.web.mjs +18 -13
- package/dist/presets/winterjs/runtime/winterjs.d.mts +1 -2
- package/dist/presets/winterjs/runtime/winterjs.mjs +1 -1
- package/dist/presets/zeabur/runtime/zeabur.d.mts +1 -1
- package/dist/presets/zeabur/runtime/zeabur.mjs +1 -1
- package/dist/runtime/app.d.mts +1 -1
- package/dist/runtime/app.mjs +1 -1
- package/dist/runtime/internal/app.d.mts +7 -3
- package/dist/runtime/internal/app.mjs +29 -22
- package/dist/runtime/internal/database.mjs +1 -1
- package/dist/runtime/internal/error/dev.d.mts +0 -1
- package/dist/runtime/internal/error/dev.mjs +1 -1
- package/dist/runtime/internal/route-rules.d.mts +0 -4
- package/dist/runtime/internal/routes/dev-tasks.mjs +1 -1
- package/dist/runtime/internal/routes/openapi.d.mts +0 -1
- package/dist/runtime/internal/routes/openapi.mjs +3 -3
- package/dist/runtime/internal/routes/renderer-template.dev.mjs +1 -1
- package/dist/runtime/internal/routes/renderer-template.mjs +1 -1
- package/dist/runtime/internal/routes/scalar.d.mts +0 -1
- package/dist/runtime/internal/routes/scalar.mjs +4 -4
- package/dist/runtime/internal/routes/swagger.d.mts +0 -1
- package/dist/runtime/internal/routes/swagger.mjs +3 -3
- package/dist/runtime/internal/runtime-config.mjs +8 -8
- package/dist/runtime/internal/static.mjs +1 -1
- package/dist/runtime/internal/storage.mjs +1 -1
- package/dist/runtime/internal/task.mjs +1 -1
- package/dist/runtime/internal/vite/dev-entry.mjs +3 -4
- package/dist/runtime/internal/vite/{dev-worker.mjs → node-runner.mjs} +51 -6
- package/dist/runtime/meta.d.mts +1 -1
- package/dist/runtime/meta.mjs +1 -1
- package/dist/runtime/nitro.d.mts +0 -3
- package/dist/runtime/nitro.mjs +1 -1
- package/dist/runtime/virtual/_runtime_warn.d.mts +1 -0
- package/dist/runtime/virtual/_runtime_warn.mjs +5 -0
- package/dist/runtime/virtual/database.d.mts +8 -0
- package/dist/runtime/virtual/database.mjs +2 -0
- package/dist/runtime/virtual/error-handler.d.mts +6 -0
- package/dist/runtime/virtual/error-handler.mjs +9 -0
- package/dist/runtime/virtual/feature-flags.d.mts +7 -0
- package/dist/runtime/virtual/feature-flags.mjs +7 -0
- package/dist/runtime/virtual/plugins.d.mts +3 -0
- package/dist/runtime/virtual/plugins.mjs +2 -0
- package/dist/runtime/virtual/polyfills.d.mts +3 -0
- package/dist/runtime/virtual/polyfills.mjs +2 -0
- package/dist/runtime/virtual/public-assets.d.mts +9 -0
- package/dist/runtime/virtual/public-assets.mjs +8 -0
- package/dist/runtime/virtual/renderer-template.d.mts +4 -0
- package/dist/runtime/virtual/renderer-template.mjs +7 -0
- package/dist/runtime/virtual/routing-meta.d.mts +7 -0
- package/dist/runtime/virtual/routing-meta.mjs +2 -0
- package/dist/runtime/virtual/routing.d.mts +8 -0
- package/dist/runtime/virtual/routing.mjs +11 -0
- package/dist/runtime/virtual/runtime-config.d.mts +3 -0
- package/dist/runtime/virtual/runtime-config.mjs +5 -0
- package/dist/runtime/virtual/server-assets.d.mts +6 -0
- package/dist/runtime/virtual/server-assets.mjs +12 -0
- package/dist/runtime/virtual/storage.d.mts +3 -0
- package/dist/runtime/virtual/storage.mjs +5 -0
- package/dist/runtime/virtual/tasks.d.mts +10 -0
- package/dist/runtime/virtual/tasks.mjs +3 -0
- package/dist/types/index.d.mts +292 -371
- package/dist/types/index.mjs +10 -0
- package/dist/vite.d.mts +7 -12
- package/dist/vite.mjs +734 -41
- package/lib/vite.types.d.mts +26 -0
- package/lib/vite.types.mjs +2 -0
- package/package.json +82 -53
- package/dist/_build/common2.mjs +0 -772
- package/dist/_build/vite.plugin.mjs +0 -768
- package/dist/_chunks/ANM1K1bE.mjs +0 -304
- package/dist/_chunks/BX9-zVkM.mjs +0 -59
- package/dist/_chunks/C7CbzoI1.mjs +0 -39
- package/dist/_libs/acorn.mjs +0 -5034
- package/dist/_libs/c12.mjs +0 -2858
- package/dist/_libs/commondir.mjs +0 -22
- package/dist/_libs/deepmerge.mjs +0 -86
- package/dist/_libs/dot-prop.mjs +0 -138
- package/dist/_libs/duplexer.mjs +0 -71
- package/dist/_libs/etag.mjs +0 -80
- package/dist/_libs/fdir.mjs +0 -514
- package/dist/_libs/function-bind.mjs +0 -63
- package/dist/_libs/giget.mjs +0 -19289
- package/dist/_libs/gzip-size.mjs +0 -21
- 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 -32
- package/dist/_libs/js-tokens.mjs +0 -382
- package/dist/_libs/knitwork.mjs +0 -124
- package/dist/_libs/local-pkg.mjs +0 -1686
- package/dist/_libs/magic-string.mjs +0 -939
- package/dist/_libs/mime.mjs +0 -1391
- package/dist/_libs/node-fetch-native.mjs +0 -173
- package/dist/_libs/path-parse.mjs +0 -47
- package/dist/_libs/pathe.mjs +0 -41
- package/dist/_libs/picomatch.mjs +0 -1673
- package/dist/_libs/plugin-replace.mjs +0 -104
- package/dist/_libs/pretty-bytes.mjs +0 -116
- package/dist/_libs/std-env.mjs +0 -158
- package/dist/_libs/strip-literal.mjs +0 -51
- package/dist/_libs/tinyglobby.mjs +0 -292
- package/dist/_libs/untyped.mjs +0 -271
- package/dist/_libs/unwasm.mjs +0 -5836
- package/dist/cli/_chunks/detect-acorn.mjs +0 -12
- package/dist/cli/_chunks/dist.mjs +0 -3
- package/dist/cli/_chunks/dist2.mjs +0 -3
- package/dist/cli/_chunks/dist3.mjs +0 -3
- package/dist/cli/_chunks/dist4.mjs +0 -4
- package/dist/cli/_chunks/dist5.mjs +0 -4
- package/dist/cli/_chunks/esm.mjs +0 -3
- package/dist/cli/_chunks/json5.mjs +0 -4
- package/dist/cli/_chunks/jsonc.mjs +0 -4
- package/dist/cli/_chunks/multipart-parser.mjs +0 -6
- package/dist/cli/_chunks/toml.mjs +0 -4
- package/dist/cli/_chunks/yaml.mjs +0 -4
- package/dist/node_modules/kleur/index.js +0 -110
- package/dist/node_modules/youch/build/chunk-OSUFJZHZ.js +0 -6
- package/lib/deps/ofetch.mjs +0 -1
- package/lib/deps/ofetch.mts +0 -1
- /package/dist/runtime/{vite-runtime.d.mts → vite.d.mts} +0 -0
- /package/dist/runtime/{vite-runtime.mjs → vite.mjs} +0 -0
- /package/lib/{deps/h3.d.mts → h3.d.mts} +0 -0
- /package/lib/{deps/h3.mjs → h3.mjs} +0 -0
package/dist/types/index.d.mts
CHANGED
|
@@ -1,33 +1,40 @@
|
|
|
1
|
+
import { t as commonjs } from "../_libs/pluginutils+plugin-commonjs.mjs";
|
|
2
|
+
import { a as WatchConfigOptions, i as ResolvedConfig, n as ConfigWatcher, o as ChokidarOptions, r as DotenvOptions, t as C12InputConfig } from "../_libs/c12+giget+readdirp+chokidar.mjs";
|
|
3
|
+
import { n as CompatibilityDates, r as DateString, t as CompatibilityDateSpec } from "../_libs/compatx.mjs";
|
|
4
|
+
import { t as ProxyServerOptions } from "../_libs/httpxy.mjs";
|
|
5
|
+
import { t as TSConfig } from "../_libs/pkg-types.mjs";
|
|
6
|
+
import { n as Unimport, t as UnimportPluginOptions } from "../_libs/unplugin+unimport.mjs";
|
|
7
|
+
import "../_libs/esbuild.mjs";
|
|
8
|
+
import { t as UnwasmPluginOptions } from "../_libs/unwasm.mjs";
|
|
9
|
+
import { n as RouterContext, t as RouterCompilerOptions } from "../_libs/rou3.mjs";
|
|
10
|
+
import { t as ProviderName } from "../_libs/std-env.mjs";
|
|
1
11
|
import { ConsolaInstance, LogLevel } from "consola";
|
|
2
12
|
import { Hookable, HookableCore, NestedHooks } from "hookable";
|
|
3
13
|
import { version } from "nitro/meta";
|
|
4
|
-
import { FetchOptions, FetchRequest, FetchResponse } from "ofetch";
|
|
5
14
|
import { IncomingMessage, OutgoingMessage } from "node:http";
|
|
6
15
|
import { H3Core, HTTPError, HTTPEvent, HTTPHandler, HTTPMethod, Middleware, ProxyOptions } from "h3";
|
|
7
16
|
import { Duplex } from "node:stream";
|
|
8
|
-
import { ServerRequest } from "srvx";
|
|
17
|
+
import { ServerRequest, ServerRequest as ServerRequest$1 } from "srvx";
|
|
18
|
+
import "nitro";
|
|
19
|
+
import "nitro/app";
|
|
20
|
+
import "nitro/cache";
|
|
21
|
+
import "nitro/context";
|
|
22
|
+
import "nitro/database";
|
|
23
|
+
import "nitro/h3";
|
|
24
|
+
import "nitro/runtime-config";
|
|
25
|
+
import "nitro/storage";
|
|
26
|
+
import "nitro/task";
|
|
9
27
|
import { Preset } from "unenv";
|
|
10
28
|
import { ConnectorName } from "db0";
|
|
11
|
-
import { JsxOptions, TransformOptions } from "oxc-transform";
|
|
12
29
|
import { BuiltinDriverName } from "unstorage";
|
|
13
|
-
import {
|
|
30
|
+
import { JsxOptions, TransformOptions } from "oxc-transform";
|
|
14
31
|
import { MinifyOptions } from "oxc-minify";
|
|
15
|
-
import { InputOptions, OutputOptions } from "
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { ChokidarOptions } from "chokidar";
|
|
20
|
-
import { CompatibilityDateSpec, CompatibilityDates, DateString } from "compatx";
|
|
21
|
-
import { ProxyServerOptions } from "httpxy";
|
|
32
|
+
import { InputOptions, OutputOptions } from "rolldown";
|
|
33
|
+
import { InputOptions as InputOptions$1, OutputOptions as OutputOptions$1 } from "rollup";
|
|
34
|
+
import { Nitro as Nitro$1, RunnerMessageListener as RunnerMessageListener$1 } from "nitro/types";
|
|
35
|
+
import { FetchOptions, FetchRequest, FetchResponse } from "ofetch";
|
|
22
36
|
import { ExecutionContext, ForwardableEmailMessage, MessageBatch, ScheduledController, TraceItem } from "@cloudflare/workers-types";
|
|
23
37
|
import { DurableObject } from "cloudflare:workers";
|
|
24
|
-
import { TSConfig } from "pkg-types";
|
|
25
|
-
import { UnimportPluginOptions } from "unimport/unplugin";
|
|
26
|
-
import { UnwasmPluginOptions } from "unwasm/plugin";
|
|
27
|
-
import { Unimport } from "unimport";
|
|
28
|
-
import { RouterContext } from "rou3";
|
|
29
|
-
import { RouterCompilerOptions } from "rou3/compiler";
|
|
30
|
-
import { ProviderName } from "std-env";
|
|
31
38
|
|
|
32
39
|
//#region src/types/fetch/fetch.d.ts
|
|
33
40
|
interface InternalApi {}
|
|
@@ -35,15 +42,15 @@ type RouterMethod = Lowercase<HTTPMethod>;
|
|
|
35
42
|
type NitroFetchRequest = Exclude<keyof InternalApi, `/_${string}` | `/api/_${string}`> | Exclude<FetchRequest, string> | (string & {});
|
|
36
43
|
type MiddlewareOf<Route$2 extends string, Method extends RouterMethod | "default"> = Method extends keyof InternalApi[MatchedRoutes<Route$2>] ? InternalApi[MatchedRoutes<Route$2>][Method] : never;
|
|
37
44
|
type TypedInternalResponse<Route$2, Default = unknown, Method extends RouterMethod = RouterMethod> = Default extends string | boolean | number | null | void | object ? Default : Route$2 extends string ? MiddlewareOf<Route$2, Method> extends never ? MiddlewareOf<Route$2, "default"> extends never ? Default : MiddlewareOf<Route$2, "default"> : MiddlewareOf<Route$2, Method> : Default;
|
|
38
|
-
type AvailableRouterMethod<R
|
|
39
|
-
interface NitroFetchOptions<R
|
|
45
|
+
type AvailableRouterMethod<R extends NitroFetchRequest> = R extends string ? keyof InternalApi[MatchedRoutes<R>] extends undefined ? RouterMethod : Extract<keyof InternalApi[MatchedRoutes<R>], "default"> extends undefined ? Extract<RouterMethod, keyof InternalApi[MatchedRoutes<R>]> : RouterMethod : RouterMethod;
|
|
46
|
+
interface NitroFetchOptions<R extends NitroFetchRequest, M extends AvailableRouterMethod<R> = AvailableRouterMethod<R>> extends FetchOptions {
|
|
40
47
|
method?: Uppercase<M> | M;
|
|
41
48
|
}
|
|
42
|
-
type ExtractedRouteMethod<R
|
|
43
|
-
type Base$Fetch<DefaultT = unknown, DefaultR extends NitroFetchRequest = NitroFetchRequest> = <T = DefaultT, R
|
|
49
|
+
type ExtractedRouteMethod<R extends NitroFetchRequest, O extends NitroFetchOptions<R>> = O extends undefined ? "get" : Lowercase<Exclude<O["method"], undefined>> extends RouterMethod ? Lowercase<Exclude<O["method"], undefined>> : "get";
|
|
50
|
+
type Base$Fetch<DefaultT = unknown, DefaultR extends NitroFetchRequest = NitroFetchRequest> = <T = DefaultT, R extends NitroFetchRequest = DefaultR, O extends NitroFetchOptions<R> = NitroFetchOptions<R>>(request: R, opts?: O) => Promise<TypedInternalResponse<R, T, NitroFetchOptions<R> extends O ? "get" : ExtractedRouteMethod<R, O>>>;
|
|
44
51
|
interface $Fetch<DefaultT = unknown, DefaultR extends NitroFetchRequest = NitroFetchRequest> extends Base$Fetch<DefaultT, DefaultR> {
|
|
45
|
-
raw<T = DefaultT, R
|
|
46
|
-
create<T = DefaultT, R
|
|
52
|
+
raw<T = DefaultT, R extends NitroFetchRequest = DefaultR, O extends NitroFetchOptions<R> = NitroFetchOptions<R>>(request: R, opts?: O): Promise<FetchResponse<TypedInternalResponse<R, T, NitroFetchOptions<R> extends O ? "get" : ExtractedRouteMethod<R, O>>>>;
|
|
53
|
+
create<T = DefaultT, R extends NitroFetchRequest = DefaultR>(defaults: FetchOptions): $Fetch<T, R>;
|
|
47
54
|
}
|
|
48
55
|
//#endregion
|
|
49
56
|
//#region src/types/fetch/_match.d.ts
|
|
@@ -157,7 +164,7 @@ interface NitroAppPlugin {
|
|
|
157
164
|
}): void;
|
|
158
165
|
}
|
|
159
166
|
interface NitroAsyncContext {
|
|
160
|
-
request: ServerRequest;
|
|
167
|
+
request: ServerRequest$1;
|
|
161
168
|
}
|
|
162
169
|
interface RenderResponse {
|
|
163
170
|
body: any;
|
|
@@ -221,8 +228,7 @@ interface TaskRunnerOptions {
|
|
|
221
228
|
//#endregion
|
|
222
229
|
//#region src/presets/aws-amplify/types.d.ts
|
|
223
230
|
type AmplifyImageSettings = {
|
|
224
|
-
/** Array of supported image widths */
|
|
225
|
-
sizes: number[];
|
|
231
|
+
/** Array of supported image widths */sizes: number[];
|
|
226
232
|
/**
|
|
227
233
|
* Array of allowed external domains that can use Image Optimization.
|
|
228
234
|
* Leave empty for only allowing the deployment domain to use Image Optimization.
|
|
@@ -233,25 +239,19 @@ type AmplifyImageSettings = {
|
|
|
233
239
|
* Similar to `domains` but provides more control with RegExp.
|
|
234
240
|
*/
|
|
235
241
|
remotePatterns: {
|
|
236
|
-
/** The protocol of the allowed remote pattern. Can be `http` or `https`. */
|
|
237
|
-
protocol?: "http" | "https";
|
|
242
|
+
/** The protocol of the allowed remote pattern. Can be `http` or `https`. */protocol?: "http" | "https";
|
|
238
243
|
/**
|
|
239
244
|
* The hostname of the allowed remote pattern.
|
|
240
245
|
* Can be literal or wildcard. Single `*` matches a single subdomain.
|
|
241
246
|
* Double `**` matches any number of subdomains.
|
|
242
247
|
* We will disallow blanket wildcards of `**` with nothing else.
|
|
243
248
|
*/
|
|
244
|
-
hostname: string;
|
|
245
|
-
/** The
|
|
246
|
-
port?: string;
|
|
247
|
-
/** The pathname of the allowed remote pattern. */
|
|
249
|
+
hostname: string; /** The port of the allowed remote pattern. */
|
|
250
|
+
port?: string; /** The pathname of the allowed remote pattern. */
|
|
248
251
|
pathname?: string;
|
|
249
|
-
}[];
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
/** Cache duration (in seconds) for the optimized images. */
|
|
253
|
-
minimumCacheTTL: number;
|
|
254
|
-
/** Allow SVG input image URLs. This is disabled by default for security purposes. */
|
|
252
|
+
}[]; /** Array of allowed output image formats. */
|
|
253
|
+
formats: ("image/avif" | "image/webp" | "image/gif" | "image/png" | "image/jpeg")[]; /** Cache duration (in seconds) for the optimized images. */
|
|
254
|
+
minimumCacheTTL: number; /** Allow SVG input image URLs. This is disabled by default for security purposes. */
|
|
255
255
|
dangerouslyAllowSVG: boolean;
|
|
256
256
|
};
|
|
257
257
|
interface AWSAmplifyOptions {
|
|
@@ -432,18 +432,13 @@ type ContainerApp = {
|
|
|
432
432
|
* Configuration in wrangler for Durable Object Migrations
|
|
433
433
|
*/
|
|
434
434
|
type DurableObjectMigration = {
|
|
435
|
-
/** A unique identifier for this migration. */
|
|
436
|
-
|
|
437
|
-
/** The
|
|
438
|
-
new_classes?: string[];
|
|
439
|
-
/** The new SQLite Durable Objects being defined. */
|
|
440
|
-
new_sqlite_classes?: string[];
|
|
441
|
-
/** The Durable Objects being renamed. */
|
|
435
|
+
/** A unique identifier for this migration. */tag: string; /** The new Durable Objects being defined. */
|
|
436
|
+
new_classes?: string[]; /** The new SQLite Durable Objects being defined. */
|
|
437
|
+
new_sqlite_classes?: string[]; /** The Durable Objects being renamed. */
|
|
442
438
|
renamed_classes?: {
|
|
443
439
|
from: string;
|
|
444
440
|
to: string;
|
|
445
|
-
}[];
|
|
446
|
-
/** The Durable Objects being removed. */
|
|
441
|
+
}[]; /** The Durable Objects being removed. */
|
|
447
442
|
deleted_classes?: string[];
|
|
448
443
|
};
|
|
449
444
|
/**
|
|
@@ -633,11 +628,8 @@ interface EnvironmentInheritable {
|
|
|
633
628
|
* @default {watch_dir:"./src"}
|
|
634
629
|
*/
|
|
635
630
|
build: {
|
|
636
|
-
/** The command used to build your Worker. On Linux and macOS, the command is executed in the `sh` shell and the `cmd` shell for Windows. The `&&` and `||` shell operators may be used. */
|
|
637
|
-
|
|
638
|
-
/** The directory in which the command is executed. */
|
|
639
|
-
cwd?: string;
|
|
640
|
-
/** The directory to watch for changes while using wrangler dev, defaults to the current working directory */
|
|
631
|
+
/** The command used to build your Worker. On Linux and macOS, the command is executed in the `sh` shell and the `cmd` shell for Windows. The `&&` and `||` shell operators may be used. */command?: string; /** The directory in which the command is executed. */
|
|
632
|
+
cwd?: string; /** The directory to watch for changes while using wrangler dev, defaults to the current working directory */
|
|
641
633
|
watch_dir?: string | string[];
|
|
642
634
|
};
|
|
643
635
|
/**
|
|
@@ -673,9 +665,7 @@ interface EnvironmentInheritable {
|
|
|
673
665
|
*/
|
|
674
666
|
logfwdr: {
|
|
675
667
|
bindings: {
|
|
676
|
-
/** The binding name used to refer to logfwdr */
|
|
677
|
-
name: string;
|
|
678
|
-
/** The destination for this logged message */
|
|
668
|
+
/** The binding name used to refer to logfwdr */name: string; /** The destination for this logged message */
|
|
679
669
|
destination: string;
|
|
680
670
|
}[];
|
|
681
671
|
};
|
|
@@ -736,25 +726,16 @@ interface EnvironmentInheritable {
|
|
|
736
726
|
compliance_region: "public" | "fedramp_high" | undefined;
|
|
737
727
|
}
|
|
738
728
|
type DurableObjectBindings = {
|
|
739
|
-
/** The name of the binding used to refer to the Durable Object */
|
|
740
|
-
|
|
741
|
-
/** The
|
|
742
|
-
class_name: string;
|
|
743
|
-
/** The script where the Durable Object is defined (if it's external to this Worker) */
|
|
744
|
-
script_name?: string;
|
|
745
|
-
/** The service environment of the script_name to bind to */
|
|
729
|
+
/** The name of the binding used to refer to the Durable Object */name: string; /** The exported class name of the Durable Object */
|
|
730
|
+
class_name: string; /** The script where the Durable Object is defined (if it's external to this Worker) */
|
|
731
|
+
script_name?: string; /** The service environment of the script_name to bind to */
|
|
746
732
|
environment?: string;
|
|
747
733
|
}[];
|
|
748
734
|
type WorkflowBinding = {
|
|
749
|
-
/** The name of the binding used to refer to the Workflow */
|
|
750
|
-
|
|
751
|
-
/** The
|
|
752
|
-
|
|
753
|
-
/** The exported class name of the Workflow */
|
|
754
|
-
class_name: string;
|
|
755
|
-
/** The script where the Workflow is defined (if it's external to this Worker) */
|
|
756
|
-
script_name?: string;
|
|
757
|
-
/** Whether the Workflow should be remote or not (only available under `--x-remote-bindings`) */
|
|
735
|
+
/** The name of the binding used to refer to the Workflow */binding: string; /** The name of the Workflow */
|
|
736
|
+
name: string; /** The exported class name of the Workflow */
|
|
737
|
+
class_name: string; /** The script where the Workflow is defined (if it's external to this Worker) */
|
|
738
|
+
script_name?: string; /** Whether the Workflow should be remote or not (only available under `--x-remote-bindings`) */
|
|
758
739
|
experimental_remote?: boolean;
|
|
759
740
|
};
|
|
760
741
|
/**
|
|
@@ -850,13 +831,9 @@ interface EnvironmentNonInheritable {
|
|
|
850
831
|
* @nonInheritable
|
|
851
832
|
*/
|
|
852
833
|
kv_namespaces: {
|
|
853
|
-
/** The binding name used to refer to the KV Namespace */
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
id?: string;
|
|
857
|
-
/** The ID of the KV namespace used during `wrangler dev` */
|
|
858
|
-
preview_id?: string;
|
|
859
|
-
/** Whether the KV namespace should be remote or not (only available under `--x-remote-bindings`) */
|
|
834
|
+
/** The binding name used to refer to the KV Namespace */binding: string; /** The ID of the KV namespace */
|
|
835
|
+
id?: string; /** The ID of the KV namespace used during `wrangler dev` */
|
|
836
|
+
preview_id?: string; /** Whether the KV namespace should be remote or not (only available under `--x-remote-bindings`) */
|
|
860
837
|
experimental_remote?: boolean;
|
|
861
838
|
}[];
|
|
862
839
|
/**
|
|
@@ -871,11 +848,8 @@ interface EnvironmentNonInheritable {
|
|
|
871
848
|
* @nonInheritable
|
|
872
849
|
*/
|
|
873
850
|
send_email: {
|
|
874
|
-
/** The binding name used to refer to the this binding */
|
|
875
|
-
|
|
876
|
-
/** If this binding should be restricted to a specific verified address */
|
|
877
|
-
destination_address?: string;
|
|
878
|
-
/** If this binding should be restricted to a set of verified addresses */
|
|
851
|
+
/** The binding name used to refer to the this binding */name: string; /** If this binding should be restricted to a specific verified address */
|
|
852
|
+
destination_address?: string; /** If this binding should be restricted to a set of verified addresses */
|
|
879
853
|
allowed_destination_addresses?: string[];
|
|
880
854
|
}[];
|
|
881
855
|
/**
|
|
@@ -890,36 +864,21 @@ interface EnvironmentNonInheritable {
|
|
|
890
864
|
* @nonInheritable
|
|
891
865
|
*/
|
|
892
866
|
queues: {
|
|
893
|
-
/** Producer bindings */
|
|
894
|
-
|
|
895
|
-
/** The
|
|
896
|
-
|
|
897
|
-
/** The name of this Queue. */
|
|
898
|
-
queue: string;
|
|
899
|
-
/** The number of seconds to wait before delivering a message */
|
|
900
|
-
delivery_delay?: number;
|
|
901
|
-
/** Whether the Queue producer should be remote or not (only available under `--x-remote-bindings`) */
|
|
867
|
+
/** Producer bindings */producers?: {
|
|
868
|
+
/** The binding name used to refer to the Queue in the Worker. */binding: string; /** The name of this Queue. */
|
|
869
|
+
queue: string; /** The number of seconds to wait before delivering a message */
|
|
870
|
+
delivery_delay?: number; /** Whether the Queue producer should be remote or not (only available under `--x-remote-bindings`) */
|
|
902
871
|
experimental_remote?: boolean;
|
|
903
|
-
}[];
|
|
904
|
-
/** Consumer configuration */
|
|
872
|
+
}[]; /** Consumer configuration */
|
|
905
873
|
consumers?: {
|
|
906
|
-
/** The name of the queue from which this consumer should consume. */
|
|
907
|
-
|
|
908
|
-
/** The
|
|
909
|
-
|
|
910
|
-
/** The
|
|
911
|
-
|
|
912
|
-
/** The
|
|
913
|
-
|
|
914
|
-
/** The maximum number of retries for each message. */
|
|
915
|
-
max_retries?: number;
|
|
916
|
-
/** The queue to send messages that failed to be consumed. */
|
|
917
|
-
dead_letter_queue?: string;
|
|
918
|
-
/** The maximum number of concurrent consumer Worker invocations. Leaving this unset will allow your consumer to scale to the maximum concurrency needed to keep up with the message backlog. */
|
|
919
|
-
max_concurrency?: number | null;
|
|
920
|
-
/** The number of milliseconds to wait for pulled messages to become visible again */
|
|
921
|
-
visibility_timeout_ms?: number;
|
|
922
|
-
/** The number of seconds to wait before retrying a message */
|
|
874
|
+
/** The name of the queue from which this consumer should consume. */queue: string; /** The consumer type, e.g., worker, http-pull, r2-bucket, etc. Default is worker. */
|
|
875
|
+
type?: string; /** The maximum number of messages per batch */
|
|
876
|
+
max_batch_size?: number; /** The maximum number of seconds to wait to fill a batch with messages. */
|
|
877
|
+
max_batch_timeout?: number; /** The maximum number of retries for each message. */
|
|
878
|
+
max_retries?: number; /** The queue to send messages that failed to be consumed. */
|
|
879
|
+
dead_letter_queue?: string; /** The maximum number of concurrent consumer Worker invocations. Leaving this unset will allow your consumer to scale to the maximum concurrency needed to keep up with the message backlog. */
|
|
880
|
+
max_concurrency?: number | null; /** The number of milliseconds to wait for pulled messages to become visible again */
|
|
881
|
+
visibility_timeout_ms?: number; /** The number of seconds to wait before retrying a message */
|
|
923
882
|
retry_delay?: number;
|
|
924
883
|
}[];
|
|
925
884
|
};
|
|
@@ -935,15 +894,10 @@ interface EnvironmentNonInheritable {
|
|
|
935
894
|
* @nonInheritable
|
|
936
895
|
*/
|
|
937
896
|
r2_buckets: {
|
|
938
|
-
/** The binding name used to refer to the R2 bucket in the Worker. */
|
|
939
|
-
|
|
940
|
-
/** The
|
|
941
|
-
|
|
942
|
-
/** The preview name of this R2 bucket at the edge. */
|
|
943
|
-
preview_bucket_name?: string;
|
|
944
|
-
/** The jurisdiction that the bucket exists in. Default if not present. */
|
|
945
|
-
jurisdiction?: string;
|
|
946
|
-
/** Whether the R2 bucket should be remote or not (only available under `--x-remote-bindings`) */
|
|
897
|
+
/** The binding name used to refer to the R2 bucket in the Worker. */binding: string; /** The name of this R2 bucket at the edge. */
|
|
898
|
+
bucket_name?: string; /** The preview name of this R2 bucket at the edge. */
|
|
899
|
+
preview_bucket_name?: string; /** The jurisdiction that the bucket exists in. Default if not present. */
|
|
900
|
+
jurisdiction?: string; /** Whether the R2 bucket should be remote or not (only available under `--x-remote-bindings`) */
|
|
947
901
|
experimental_remote?: boolean;
|
|
948
902
|
}[];
|
|
949
903
|
/**
|
|
@@ -958,21 +912,13 @@ interface EnvironmentNonInheritable {
|
|
|
958
912
|
* @nonInheritable
|
|
959
913
|
*/
|
|
960
914
|
d1_databases: {
|
|
961
|
-
/** The binding name used to refer to the D1 database in the Worker. */
|
|
962
|
-
|
|
963
|
-
/** The
|
|
964
|
-
|
|
965
|
-
/** The
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
preview_database_id?: string;
|
|
969
|
-
/** The name of the migrations table for this D1 database (defaults to 'd1_migrations'). */
|
|
970
|
-
migrations_table?: string;
|
|
971
|
-
/** The path to the directory of migrations for this D1 database (defaults to './migrations'). */
|
|
972
|
-
migrations_dir?: string;
|
|
973
|
-
/** Internal use only. */
|
|
974
|
-
database_internal_env?: string;
|
|
975
|
-
/** Whether the D1 database should be remote or not (only available under `--x-remote-bindings`) */
|
|
915
|
+
/** The binding name used to refer to the D1 database in the Worker. */binding: string; /** The name of this D1 database. */
|
|
916
|
+
database_name?: string; /** The UUID of this D1 database (not required). */
|
|
917
|
+
database_id?: string; /** The UUID of this D1 database for Wrangler Dev (if specified). */
|
|
918
|
+
preview_database_id?: string; /** The name of the migrations table for this D1 database (defaults to 'd1_migrations'). */
|
|
919
|
+
migrations_table?: string; /** The path to the directory of migrations for this D1 database (defaults to './migrations'). */
|
|
920
|
+
migrations_dir?: string; /** Internal use only. */
|
|
921
|
+
database_internal_env?: string; /** Whether the D1 database should be remote or not (only available under `--x-remote-bindings`) */
|
|
976
922
|
experimental_remote?: boolean;
|
|
977
923
|
}[];
|
|
978
924
|
/**
|
|
@@ -987,11 +933,8 @@ interface EnvironmentNonInheritable {
|
|
|
987
933
|
* @nonInheritable
|
|
988
934
|
*/
|
|
989
935
|
vectorize: {
|
|
990
|
-
/** The binding name used to refer to the Vectorize index in the Worker. */
|
|
991
|
-
|
|
992
|
-
/** The name of the index. */
|
|
993
|
-
index_name: string;
|
|
994
|
-
/** Whether the Vectorize index should be remote or not (only available under `--x-remote-bindings`) */
|
|
936
|
+
/** The binding name used to refer to the Vectorize index in the Worker. */binding: string; /** The name of the index. */
|
|
937
|
+
index_name: string; /** Whether the Vectorize index should be remote or not (only available under `--x-remote-bindings`) */
|
|
995
938
|
experimental_remote?: boolean;
|
|
996
939
|
}[];
|
|
997
940
|
/**
|
|
@@ -1006,11 +949,8 @@ interface EnvironmentNonInheritable {
|
|
|
1006
949
|
* @nonInheritable
|
|
1007
950
|
*/
|
|
1008
951
|
hyperdrive: {
|
|
1009
|
-
/** The binding name used to refer to the project in the Worker. */
|
|
1010
|
-
|
|
1011
|
-
/** The id of the database. */
|
|
1012
|
-
id: string;
|
|
1013
|
-
/** The local database connection string for `wrangler dev` */
|
|
952
|
+
/** The binding name used to refer to the project in the Worker. */binding: string; /** The id of the database. */
|
|
953
|
+
id: string; /** The local database connection string for `wrangler dev` */
|
|
1014
954
|
localConnectionString?: string;
|
|
1015
955
|
}[];
|
|
1016
956
|
/**
|
|
@@ -1025,17 +965,11 @@ interface EnvironmentNonInheritable {
|
|
|
1025
965
|
* @nonInheritable
|
|
1026
966
|
*/
|
|
1027
967
|
services: {
|
|
1028
|
-
/** The binding name used to refer to the bound service. */
|
|
1029
|
-
|
|
1030
|
-
/**
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
environment?: string;
|
|
1034
|
-
/** Optionally, the entrypoint (named export) of the service to bind to. */
|
|
1035
|
-
entrypoint?: string;
|
|
1036
|
-
/** Optional properties that will be made available to the service via ctx.props. */
|
|
1037
|
-
props?: Record<string, unknown>;
|
|
1038
|
-
/** Whether the service binding should be remote or not (only available under `--x-remote-bindings`) */
|
|
968
|
+
/** The binding name used to refer to the bound service. */binding: string; /** The name of the service. */
|
|
969
|
+
service: string; /** The environment of the service (e.g. production, staging, etc). */
|
|
970
|
+
environment?: string; /** Optionally, the entrypoint (named export) of the service to bind to. */
|
|
971
|
+
entrypoint?: string; /** Optional properties that will be made available to the service via ctx.props. */
|
|
972
|
+
props?: Record<string, unknown>; /** Whether the service binding should be remote or not (only available under `--x-remote-bindings`) */
|
|
1039
973
|
experimental_remote?: boolean;
|
|
1040
974
|
}[] | undefined;
|
|
1041
975
|
/**
|
|
@@ -1050,9 +984,7 @@ interface EnvironmentNonInheritable {
|
|
|
1050
984
|
* @nonInheritable
|
|
1051
985
|
*/
|
|
1052
986
|
analytics_engine_datasets: {
|
|
1053
|
-
/** The binding name used to refer to the dataset in the Worker. */
|
|
1054
|
-
binding: string;
|
|
1055
|
-
/** The name of this dataset to write to. */
|
|
987
|
+
/** The binding name used to refer to the dataset in the Worker. */binding: string; /** The name of this dataset to write to. */
|
|
1056
988
|
dataset?: string;
|
|
1057
989
|
}[];
|
|
1058
990
|
/**
|
|
@@ -1067,8 +999,7 @@ interface EnvironmentNonInheritable {
|
|
|
1067
999
|
* @nonInheritable
|
|
1068
1000
|
*/
|
|
1069
1001
|
browser: {
|
|
1070
|
-
binding: string;
|
|
1071
|
-
/** Whether the Browser binding should be remote or not (only available under `--x-remote-bindings`) */
|
|
1002
|
+
binding: string; /** Whether the Browser binding should be remote or not (only available under `--x-remote-bindings`) */
|
|
1072
1003
|
experimental_remote?: boolean;
|
|
1073
1004
|
} | undefined;
|
|
1074
1005
|
/**
|
|
@@ -1084,8 +1015,7 @@ interface EnvironmentNonInheritable {
|
|
|
1084
1015
|
*/
|
|
1085
1016
|
ai: {
|
|
1086
1017
|
binding: string;
|
|
1087
|
-
staging?: boolean;
|
|
1088
|
-
/** Whether the AI binding should be remote or not (only available under `--x-remote-bindings`) */
|
|
1018
|
+
staging?: boolean; /** Whether the AI binding should be remote or not (only available under `--x-remote-bindings`) */
|
|
1089
1019
|
experimental_remote?: boolean;
|
|
1090
1020
|
} | undefined;
|
|
1091
1021
|
/**
|
|
@@ -1100,8 +1030,7 @@ interface EnvironmentNonInheritable {
|
|
|
1100
1030
|
* @nonInheritable
|
|
1101
1031
|
*/
|
|
1102
1032
|
images: {
|
|
1103
|
-
binding: string;
|
|
1104
|
-
/** Whether the Images binding should be remote or not (only available under `--x-remote-bindings`) */
|
|
1033
|
+
binding: string; /** Whether the Images binding should be remote or not (only available under `--x-remote-bindings`) */
|
|
1105
1034
|
experimental_remote?: boolean;
|
|
1106
1035
|
} | undefined;
|
|
1107
1036
|
/**
|
|
@@ -1162,11 +1091,8 @@ interface EnvironmentNonInheritable {
|
|
|
1162
1091
|
* @nonInheritable
|
|
1163
1092
|
*/
|
|
1164
1093
|
mtls_certificates: {
|
|
1165
|
-
/** The binding name used to refer to the certificate in the Worker */
|
|
1166
|
-
|
|
1167
|
-
/** The uuid of the uploaded mTLS certificate */
|
|
1168
|
-
certificate_id: string;
|
|
1169
|
-
/** Whether the mtls fetcher should be remote or not (only available under `--x-remote-bindings`) */
|
|
1094
|
+
/** The binding name used to refer to the certificate in the Worker */binding: string; /** The uuid of the uploaded mTLS certificate */
|
|
1095
|
+
certificate_id: string; /** Whether the mtls fetcher should be remote or not (only available under `--x-remote-bindings`) */
|
|
1170
1096
|
experimental_remote?: boolean;
|
|
1171
1097
|
}[];
|
|
1172
1098
|
/**
|
|
@@ -1191,13 +1117,9 @@ interface EnvironmentNonInheritable {
|
|
|
1191
1117
|
* @nonInheritable
|
|
1192
1118
|
*/
|
|
1193
1119
|
dispatch_namespaces: {
|
|
1194
|
-
/** The binding name used to refer to the bound service. */
|
|
1195
|
-
|
|
1196
|
-
/**
|
|
1197
|
-
namespace: string;
|
|
1198
|
-
/** Details about the outbound Worker which will handle outbound requests from your namespace */
|
|
1199
|
-
outbound?: DispatchNamespaceOutbound;
|
|
1200
|
-
/** Whether the Dispatch Namespace should be remote or not (only available under `--x-remote-bindings`) */
|
|
1120
|
+
/** The binding name used to refer to the bound service. */binding: string; /** The namespace to bind to. */
|
|
1121
|
+
namespace: string; /** Details about the outbound Worker which will handle outbound requests from your namespace */
|
|
1122
|
+
outbound?: DispatchNamespaceOutbound; /** Whether the Dispatch Namespace should be remote or not (only available under `--x-remote-bindings`) */
|
|
1201
1123
|
experimental_remote?: boolean;
|
|
1202
1124
|
}[];
|
|
1203
1125
|
/**
|
|
@@ -1210,9 +1132,7 @@ interface EnvironmentNonInheritable {
|
|
|
1210
1132
|
* @nonInheritable
|
|
1211
1133
|
*/
|
|
1212
1134
|
pipelines: {
|
|
1213
|
-
/** The binding name used to refer to the bound service. */
|
|
1214
|
-
binding: string;
|
|
1215
|
-
/** Name of the Pipeline to bind */
|
|
1135
|
+
/** The binding name used to refer to the bound service. */binding: string; /** Name of the Pipeline to bind */
|
|
1216
1136
|
pipeline: string;
|
|
1217
1137
|
}[];
|
|
1218
1138
|
/**
|
|
@@ -1225,11 +1145,8 @@ interface EnvironmentNonInheritable {
|
|
|
1225
1145
|
* @nonInheritable
|
|
1226
1146
|
*/
|
|
1227
1147
|
secrets_store_secrets: {
|
|
1228
|
-
/** The binding name used to refer to the bound service. */
|
|
1229
|
-
|
|
1230
|
-
/** Id of the secret store */
|
|
1231
|
-
store_id: string;
|
|
1232
|
-
/** Name of the secret */
|
|
1148
|
+
/** The binding name used to refer to the bound service. */binding: string; /** Id of the secret store */
|
|
1149
|
+
store_id: string; /** Name of the secret */
|
|
1233
1150
|
secret_name: string;
|
|
1234
1151
|
}[];
|
|
1235
1152
|
/**
|
|
@@ -1242,9 +1159,7 @@ interface EnvironmentNonInheritable {
|
|
|
1242
1159
|
* @nonInheritable
|
|
1243
1160
|
*/
|
|
1244
1161
|
unsafe_hello_world: {
|
|
1245
|
-
/** The binding name used to refer to the bound service. */
|
|
1246
|
-
binding: string;
|
|
1247
|
-
/** Whether the timer is enabled */
|
|
1162
|
+
/** The binding name used to refer to the bound service. */binding: string; /** Whether the timer is enabled */
|
|
1248
1163
|
enable_timer?: boolean;
|
|
1249
1164
|
}[];
|
|
1250
1165
|
}
|
|
@@ -1261,9 +1176,7 @@ type Rule = {
|
|
|
1261
1176
|
*/
|
|
1262
1177
|
type ConfigModuleRuleType = "ESModule" | "CommonJS" | "CompiledWasm" | "Text" | "Data" | "PythonModule" | "PythonRequirement";
|
|
1263
1178
|
type TailConsumer = {
|
|
1264
|
-
/** The name of the service tail events will be forwarded to. */
|
|
1265
|
-
service: string;
|
|
1266
|
-
/** (Optional) The environment of the service. */
|
|
1179
|
+
/** The name of the service tail events will be forwarded to. */service: string; /** (Optional) The environment of the service. */
|
|
1267
1180
|
environment?: string;
|
|
1268
1181
|
};
|
|
1269
1182
|
interface DispatchNamespaceOutbound {
|
|
@@ -1279,13 +1192,9 @@ interface UserLimits {
|
|
|
1279
1192
|
cpu_ms: number;
|
|
1280
1193
|
}
|
|
1281
1194
|
type Assets = {
|
|
1282
|
-
/** Absolute path to assets directory */
|
|
1283
|
-
|
|
1284
|
-
/**
|
|
1285
|
-
binding?: string;
|
|
1286
|
-
/** How to handle HTML requests. */
|
|
1287
|
-
html_handling?: "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | "none";
|
|
1288
|
-
/** How to handle requests that do not match an asset. */
|
|
1195
|
+
/** Absolute path to assets directory */directory?: string; /** Name of `env` binding property in the User Worker. */
|
|
1196
|
+
binding?: string; /** How to handle HTML requests. */
|
|
1197
|
+
html_handling?: "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | "none"; /** How to handle requests that do not match an asset. */
|
|
1289
1198
|
not_found_handling?: "single-page-application" | "404-page" | "none";
|
|
1290
1199
|
/**
|
|
1291
1200
|
* Matches will be routed to the User Worker, and matches to negative rules will go to the Asset Worker.
|
|
@@ -1300,10 +1209,8 @@ interface Observability {
|
|
|
1300
1209
|
/** The sampling rate */
|
|
1301
1210
|
head_sampling_rate?: number;
|
|
1302
1211
|
logs?: {
|
|
1303
|
-
enabled?: boolean;
|
|
1304
|
-
/**
|
|
1305
|
-
head_sampling_rate?: number;
|
|
1306
|
-
/** Set to false to disable invocation logs */
|
|
1212
|
+
enabled?: boolean; /** The sampling rate */
|
|
1213
|
+
head_sampling_rate?: number; /** Set to false to disable invocation logs */
|
|
1307
1214
|
invocation_logs?: boolean;
|
|
1308
1215
|
};
|
|
1309
1216
|
}
|
|
@@ -1586,6 +1493,10 @@ interface CloudflareOptions {
|
|
|
1586
1493
|
*/
|
|
1587
1494
|
defaultRoutes?: boolean;
|
|
1588
1495
|
};
|
|
1496
|
+
/**
|
|
1497
|
+
* Custom Cloudflare exports additional classes such as WorkflowEntrypoint.
|
|
1498
|
+
*/
|
|
1499
|
+
exports?: string;
|
|
1589
1500
|
}
|
|
1590
1501
|
type DurableObjectState = ConstructorParameters<typeof DurableObject>[0];
|
|
1591
1502
|
declare module "nitro/types" {
|
|
@@ -1596,15 +1507,13 @@ declare module "nitro/types" {
|
|
|
1596
1507
|
context: ExecutionContext;
|
|
1597
1508
|
}) => void;
|
|
1598
1509
|
"cloudflare:email": (_: {
|
|
1599
|
-
message: ForwardableEmailMessage;
|
|
1600
|
-
/** @deprecated please use `message` */
|
|
1510
|
+
message: ForwardableEmailMessage; /** @deprecated please use `message` */
|
|
1601
1511
|
event: ForwardableEmailMessage;
|
|
1602
1512
|
env: unknown;
|
|
1603
1513
|
context: ExecutionContext;
|
|
1604
1514
|
}) => void;
|
|
1605
1515
|
"cloudflare:queue": (_: {
|
|
1606
|
-
batch: MessageBatch;
|
|
1607
|
-
/** @deprecated please use `batch` */
|
|
1516
|
+
batch: MessageBatch; /** @deprecated please use `batch` */
|
|
1608
1517
|
event: MessageBatch;
|
|
1609
1518
|
env: unknown;
|
|
1610
1519
|
context: ExecutionContext;
|
|
@@ -1634,26 +1543,16 @@ interface FirebaseOptions {
|
|
|
1634
1543
|
interface AppHostingOutputBundleConfig {
|
|
1635
1544
|
version: "v1";
|
|
1636
1545
|
runConfig: {
|
|
1637
|
-
/** Command to start the server (e.g. "node dist/index.js"). Assume this command is run from the root dir of the workspace. */
|
|
1638
|
-
runCommand: string;
|
|
1639
|
-
/** Environment variables set when the app is run. */
|
|
1546
|
+
/** Command to start the server (e.g. "node dist/index.js"). Assume this command is run from the root dir of the workspace. */runCommand: string; /** Environment variables set when the app is run. */
|
|
1640
1547
|
environmentVariables?: Array<{
|
|
1641
|
-
/** Name of the variable. */
|
|
1642
|
-
|
|
1643
|
-
/** Value associated with the variable. */
|
|
1644
|
-
value: string;
|
|
1645
|
-
/** Where the variable will be available, for now only RUNTIME is supported. */
|
|
1548
|
+
/** Name of the variable. */variable: string; /** Value associated with the variable. */
|
|
1549
|
+
value: string; /** Where the variable will be available, for now only RUNTIME is supported. */
|
|
1646
1550
|
availability: "RUNTIME"[];
|
|
1647
|
-
}>;
|
|
1648
|
-
/** The
|
|
1649
|
-
|
|
1650
|
-
/** The number of
|
|
1651
|
-
|
|
1652
|
-
/** The amount of memory available for a server instance. */
|
|
1653
|
-
memoryMiB?: number;
|
|
1654
|
-
/** The limit on the minimum number of function instances that may coexist at a given time. */
|
|
1655
|
-
minInstances?: number;
|
|
1656
|
-
/** The limit on the maximum number of function instances that may coexist at a given time. */
|
|
1551
|
+
}>; /** The maximum number of concurrent requests that each server instance can receive. */
|
|
1552
|
+
concurrency?: number; /** The number of CPUs used in a single server instance. */
|
|
1553
|
+
cpu?: number; /** The amount of memory available for a server instance. */
|
|
1554
|
+
memoryMiB?: number; /** The limit on the minimum number of function instances that may coexist at a given time. */
|
|
1555
|
+
minInstances?: number; /** The limit on the maximum number of function instances that may coexist at a given time. */
|
|
1657
1556
|
maxInstances?: number;
|
|
1658
1557
|
};
|
|
1659
1558
|
metadata: {
|
|
@@ -1663,25 +1562,60 @@ interface AppHostingOutputBundleConfig {
|
|
|
1663
1562
|
frameworkVersion?: string;
|
|
1664
1563
|
};
|
|
1665
1564
|
outputFiles?: {
|
|
1666
|
-
/** serverApp holds a list of directories + files relative to the app root dir that frameworks need to deploy to the App Hosting server. */
|
|
1667
|
-
serverApp: {
|
|
1565
|
+
/** serverApp holds a list of directories + files relative to the app root dir that frameworks need to deploy to the App Hosting server. */serverApp: {
|
|
1668
1566
|
include: string[];
|
|
1669
1567
|
};
|
|
1670
1568
|
};
|
|
1671
1569
|
}
|
|
1672
1570
|
//#endregion
|
|
1673
1571
|
//#region src/presets/netlify/types.d.ts
|
|
1674
|
-
/**
|
|
1675
|
-
* Netlify options
|
|
1676
|
-
*/
|
|
1677
1572
|
interface NetlifyOptions {
|
|
1678
|
-
images
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1573
|
+
/** @deprecated Use `config.images` */
|
|
1574
|
+
images?: NetlifyImagesConfig;
|
|
1575
|
+
config?: NetlifyConfigJson;
|
|
1576
|
+
}
|
|
1577
|
+
interface NetlifyConfigJson {
|
|
1578
|
+
edge_functions?: NetlifyEdgeFunctionDeclaration[];
|
|
1579
|
+
functions?: NetlifyFunctionsConfig | NetlifyFunctionsConfigByPattern;
|
|
1580
|
+
headers?: NetlifyHeaderRule[];
|
|
1581
|
+
images?: NetlifyImagesConfig;
|
|
1582
|
+
redirects?: NetlifyRedirectRule[];
|
|
1583
|
+
"redirects!"?: NetlifyRedirectRule[];
|
|
1584
|
+
}
|
|
1585
|
+
interface NetlifyEdgeFunctionDeclaration {
|
|
1586
|
+
function: string;
|
|
1587
|
+
path?: string;
|
|
1588
|
+
pattern?: string;
|
|
1589
|
+
excludedPath?: string;
|
|
1590
|
+
excludedPattern?: string;
|
|
1591
|
+
cache?: string;
|
|
1592
|
+
[key: string]: unknown;
|
|
1593
|
+
}
|
|
1594
|
+
interface NetlifyFunctionsConfig extends NetlifyFunctionInlineConfig {
|
|
1595
|
+
directory?: string;
|
|
1596
|
+
}
|
|
1597
|
+
type NetlifyFunctionsConfigByPattern = Record<string, NetlifyFunctionInlineConfig>;
|
|
1598
|
+
interface NetlifyFunctionInlineConfig {
|
|
1599
|
+
included_files?: string[];
|
|
1600
|
+
[key: string]: unknown;
|
|
1601
|
+
}
|
|
1602
|
+
interface NetlifyHeaderRule {
|
|
1603
|
+
for: string;
|
|
1604
|
+
values: Record<string, string>;
|
|
1605
|
+
[key: string]: unknown;
|
|
1606
|
+
}
|
|
1607
|
+
interface NetlifyImagesConfig {
|
|
1608
|
+
remote_images?: string[];
|
|
1609
|
+
[key: string]: unknown;
|
|
1610
|
+
}
|
|
1611
|
+
interface NetlifyRedirectRule {
|
|
1612
|
+
from: string;
|
|
1613
|
+
to: string;
|
|
1614
|
+
status?: number;
|
|
1615
|
+
force?: boolean;
|
|
1616
|
+
conditions?: Record<string, string[]>;
|
|
1617
|
+
query?: Record<string, string>;
|
|
1618
|
+
[key: string]: unknown;
|
|
1685
1619
|
}
|
|
1686
1620
|
//#endregion
|
|
1687
1621
|
//#region src/presets/vercel/types.d.ts
|
|
@@ -1779,7 +1713,14 @@ interface VercelServerlessFunctionConfig {
|
|
|
1779
1713
|
[key: string]: unknown;
|
|
1780
1714
|
}
|
|
1781
1715
|
interface VercelOptions {
|
|
1782
|
-
config
|
|
1716
|
+
config?: VercelBuildConfigV3;
|
|
1717
|
+
/**
|
|
1718
|
+
* If you have enabled skew protection in the Vercel dashboard, it will
|
|
1719
|
+
* be enabled by default.
|
|
1720
|
+
*
|
|
1721
|
+
* You can disable the Nitro integration by setting this option to `false`.
|
|
1722
|
+
*/
|
|
1723
|
+
skewProtection?: boolean;
|
|
1783
1724
|
/**
|
|
1784
1725
|
* If you are using `vercel-edge`, you can specify the region(s) for your edge function.
|
|
1785
1726
|
* @see https://vercel.com/docs/concepts/functions/edge-functions#edge-function-regions
|
|
@@ -1809,43 +1750,6 @@ interface PresetOptions {
|
|
|
1809
1750
|
type PresetName = "alwaysdata" | "aws-amplify" | "aws-lambda" | "azure-swa" | "base-worker" | "bun" | "cleavr" | "cloudflare-dev" | "cloudflare-durable" | "cloudflare-module" | "cloudflare-pages" | "cloudflare-pages-static" | "deno" | "deno-deploy" | "deno-server" | "digital-ocean" | "firebase-app-hosting" | "flight-control" | "genezio" | "github-pages" | "gitlab-pages" | "heroku" | "iis-handler" | "iis-node" | "koyeb" | "netlify" | "netlify-edge" | "netlify-static" | "nitro-dev" | "nitro-prerender" | "node" | "node-cluster" | "node-middleware" | "node-server" | "platform-sh" | "render-com" | "standard" | "static" | "stormkit" | "vercel" | "vercel-static" | "winterjs" | "zeabur" | "zeabur-static" | "zerops" | "zerops-static";
|
|
1810
1751
|
type PresetNameInput = "alwaysdata" | "aws-amplify" | "awsAmplify" | "aws_amplify" | "aws-lambda" | "awsLambda" | "aws_lambda" | "azure-swa" | "azureSwa" | "azure_swa" | "base-worker" | "baseWorker" | "base_worker" | "bun" | "cleavr" | "cloudflare-dev" | "cloudflareDev" | "cloudflare_dev" | "cloudflare-durable" | "cloudflareDurable" | "cloudflare_durable" | "cloudflare-module" | "cloudflareModule" | "cloudflare_module" | "cloudflare-pages" | "cloudflarePages" | "cloudflare_pages" | "cloudflare-pages-static" | "cloudflarePagesStatic" | "cloudflare_pages_static" | "deno" | "deno-deploy" | "denoDeploy" | "deno_deploy" | "deno-server" | "denoServer" | "deno_server" | "digital-ocean" | "digitalOcean" | "digital_ocean" | "firebase-app-hosting" | "firebaseAppHosting" | "firebase_app_hosting" | "flight-control" | "flightControl" | "flight_control" | "genezio" | "github-pages" | "githubPages" | "github_pages" | "gitlab-pages" | "gitlabPages" | "gitlab_pages" | "heroku" | "iis-handler" | "iisHandler" | "iis_handler" | "iis-node" | "iisNode" | "iis_node" | "koyeb" | "netlify" | "netlify-edge" | "netlifyEdge" | "netlify_edge" | "netlify-static" | "netlifyStatic" | "netlify_static" | "nitro-dev" | "nitroDev" | "nitro_dev" | "nitro-prerender" | "nitroPrerender" | "nitro_prerender" | "node" | "node-cluster" | "nodeCluster" | "node_cluster" | "node-middleware" | "nodeMiddleware" | "node_middleware" | "node-server" | "nodeServer" | "node_server" | "platform-sh" | "platformSh" | "platform_sh" | "render-com" | "renderCom" | "render_com" | "standard" | "static" | "stormkit" | "vercel" | "vercel-static" | "vercelStatic" | "vercel_static" | "winterjs" | "zeabur" | "zeabur-static" | "zeaburStatic" | "zeabur_static" | "zerops" | "zerops-static" | "zeropsStatic" | "zerops_static" | (string & {});
|
|
1811
1752
|
//#endregion
|
|
1812
|
-
//#region src/types/_utils.d.ts
|
|
1813
|
-
type Enumerate<N extends number, Acc extends number[] = []> = Acc["length"] extends N ? Acc[number] : Enumerate<N, [...Acc, Acc["length"]]>;
|
|
1814
|
-
type IntRange<F$1 extends number, T extends number> = Exclude<Enumerate<T>, Enumerate<F$1>>;
|
|
1815
|
-
type ExcludeFunctions<G extends Record<string, any>> = Pick<G, { [P in keyof G]: NonNullable<G[P]> extends Function ? never : P }[keyof G]>;
|
|
1816
|
-
type DeepPartial<T> = T extends ((...args: never) => any) ? T : T extends Record<string, any> ? { [P in keyof T]?: DeepPartial<T[P]> } : T;
|
|
1817
|
-
//#endregion
|
|
1818
|
-
//#region src/types/dev.d.ts
|
|
1819
|
-
type FetchHandler = (req: Request) => Promise<Response>;
|
|
1820
|
-
type DevMessageListener = (data: unknown) => void;
|
|
1821
|
-
type UpgradeHandler = (req: IncomingMessage, socket: OutgoingMessage<IncomingMessage> | Duplex, head: any) => void;
|
|
1822
|
-
interface DevRPCHooks {
|
|
1823
|
-
sendMessage: (message: unknown) => void;
|
|
1824
|
-
onMessage: (listener: DevMessageListener) => void;
|
|
1825
|
-
offMessage: (listener: DevMessageListener) => void;
|
|
1826
|
-
}
|
|
1827
|
-
type WorkerAddress = {
|
|
1828
|
-
host: string;
|
|
1829
|
-
port: number;
|
|
1830
|
-
socketPath?: string;
|
|
1831
|
-
};
|
|
1832
|
-
interface WorkerHooks {
|
|
1833
|
-
onClose?: (worker: DevWorker, cause?: unknown) => void;
|
|
1834
|
-
onReady?: (worker: DevWorker, address?: WorkerAddress) => void;
|
|
1835
|
-
}
|
|
1836
|
-
interface DevWorker extends WorkerHooks, DevRPCHooks {
|
|
1837
|
-
readonly ready: boolean;
|
|
1838
|
-
readonly closed: boolean;
|
|
1839
|
-
fetch: FetchHandler;
|
|
1840
|
-
upgrade: UpgradeHandler;
|
|
1841
|
-
close(): Promise<void>;
|
|
1842
|
-
}
|
|
1843
|
-
interface NitroDevServerOptions {
|
|
1844
|
-
port: number;
|
|
1845
|
-
hostname: string;
|
|
1846
|
-
watch: string[];
|
|
1847
|
-
}
|
|
1848
|
-
//#endregion
|
|
1849
1753
|
//#region src/types/openapi-ts.d.ts
|
|
1850
1754
|
/**
|
|
1851
1755
|
Source: (inlined because of install size concernes)
|
|
@@ -2174,8 +2078,7 @@ interface EncodingObject extends Extensable {
|
|
|
2174
2078
|
type ResponsesObject = {
|
|
2175
2079
|
[responseCode: string]: ResponseObject | ReferenceObject;
|
|
2176
2080
|
} & {
|
|
2177
|
-
/** The documentation of responses other than the ones declared for specific HTTP response codes. Use this field to cover undeclared responses. */
|
|
2178
|
-
default?: ResponseObject | ReferenceObject;
|
|
2081
|
+
/** The documentation of responses other than the ones declared for specific HTTP response codes. Use this field to cover undeclared responses. */default?: ResponseObject | ReferenceObject;
|
|
2179
2082
|
};
|
|
2180
2083
|
/**
|
|
2181
2084
|
* [4.8.17] Response Object
|
|
@@ -2273,13 +2176,9 @@ interface ReferenceObject extends Extensable {
|
|
|
2273
2176
|
* The Schema Object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. This object is a superset of the JSON Schema Specification Draft 2020-12.
|
|
2274
2177
|
*/
|
|
2275
2178
|
type SchemaObject = {
|
|
2276
|
-
/** The Schema Object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. This object is a superset of the JSON Schema Specification Draft 2020-12. */
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
xml?: XMLObject;
|
|
2280
|
-
/** Additional external documentation for this schema. */
|
|
2281
|
-
externalDocs?: ExternalDocumentationObject;
|
|
2282
|
-
/** @deprecated */
|
|
2179
|
+
/** The Schema Object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. This object is a superset of the JSON Schema Specification Draft 2020-12. */discriminator?: DiscriminatorObject; /** MAY be used only on properties schemas. It has no effect on root schemas. Adds additional metadata to describe the XML representation of this property. */
|
|
2180
|
+
xml?: XMLObject; /** Additional external documentation for this schema. */
|
|
2181
|
+
externalDocs?: ExternalDocumentationObject; /** @deprecated */
|
|
2283
2182
|
example?: any;
|
|
2284
2183
|
title?: string;
|
|
2285
2184
|
description?: string;
|
|
@@ -2287,12 +2186,10 @@ type SchemaObject = {
|
|
|
2287
2186
|
deprecated?: boolean;
|
|
2288
2187
|
readOnly?: boolean;
|
|
2289
2188
|
writeOnly?: boolean;
|
|
2290
|
-
enum?: unknown[];
|
|
2291
|
-
/** Use of this keyword is functionally equivalent to an "enum" (Section 6.1.2) with a single value. */
|
|
2189
|
+
enum?: unknown[]; /** Use of this keyword is functionally equivalent to an "enum" (Section 6.1.2) with a single value. */
|
|
2292
2190
|
const?: unknown;
|
|
2293
2191
|
default?: unknown;
|
|
2294
|
-
format?: string;
|
|
2295
|
-
/** @deprecated in 3.1 (still valid for 3.0) */
|
|
2192
|
+
format?: string; /** @deprecated in 3.1 (still valid for 3.0) */
|
|
2296
2193
|
nullable?: boolean;
|
|
2297
2194
|
oneOf?: (SchemaObject | ReferenceObject)[];
|
|
2298
2195
|
allOf?: (SchemaObject | ReferenceObject)[];
|
|
@@ -2378,35 +2275,23 @@ interface XMLObject extends Extensable {
|
|
|
2378
2275
|
* Defines a security scheme that can be used by the operations.
|
|
2379
2276
|
*/
|
|
2380
2277
|
type SecuritySchemeObject = {
|
|
2381
|
-
/** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */
|
|
2382
|
-
description?: string;
|
|
2278
|
+
/** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */description?: string;
|
|
2383
2279
|
[key: `x-${string}`]: any;
|
|
2384
2280
|
} & ({
|
|
2385
|
-
/** REQUIRED. The type of the security scheme. */
|
|
2386
|
-
|
|
2387
|
-
/** REQUIRED. The name of the header, query or cookie parameter to be used. */
|
|
2388
|
-
name: string;
|
|
2389
|
-
/** REQUIRED. The location of the API key. */
|
|
2281
|
+
/** REQUIRED. The type of the security scheme. */type: "apiKey"; /** REQUIRED. The name of the header, query or cookie parameter to be used. */
|
|
2282
|
+
name: string; /** REQUIRED. The location of the API key. */
|
|
2390
2283
|
in: "query" | "header" | "cookie";
|
|
2391
2284
|
} | {
|
|
2392
|
-
/** REQUIRED. The type of the security scheme. */
|
|
2393
|
-
|
|
2394
|
-
/** REQUIRED. The name of the HTTP Authorization scheme to be used in the Authorization header as defined in [RFC7235]. The values used SHOULD be registered in the IANA Authentication Scheme registry. */
|
|
2395
|
-
scheme: string;
|
|
2396
|
-
/** A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes. */
|
|
2285
|
+
/** REQUIRED. The type of the security scheme. */type: "http"; /** REQUIRED. The name of the HTTP Authorization scheme to be used in the Authorization header as defined in [RFC7235]. The values used SHOULD be registered in the IANA Authentication Scheme registry. */
|
|
2286
|
+
scheme: string; /** A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes. */
|
|
2397
2287
|
bearer?: string;
|
|
2398
2288
|
} | {
|
|
2399
|
-
/** REQUIRED. The type of the security scheme. */
|
|
2400
|
-
type: "mutualTLS";
|
|
2289
|
+
/** REQUIRED. The type of the security scheme. */type: "mutualTLS";
|
|
2401
2290
|
} | {
|
|
2402
|
-
/** REQUIRED. Tye type of the security scheme. */
|
|
2403
|
-
type: "oauth2";
|
|
2404
|
-
/** REQUIRED. An object containing configuration information for the flow types supported. */
|
|
2291
|
+
/** REQUIRED. Tye type of the security scheme. */type: "oauth2"; /** REQUIRED. An object containing configuration information for the flow types supported. */
|
|
2405
2292
|
flows: OAuthFlowsObject;
|
|
2406
2293
|
} | {
|
|
2407
|
-
/** REQUIRED. Tye type of the security scheme. */
|
|
2408
|
-
type: "openIdConnect";
|
|
2409
|
-
/** REQUIRED. OpenId Connect URL to discover OAuth2 configuration values. This MUST be in the form of a URL. The OpenID Connect standard requires the use of TLS. */
|
|
2294
|
+
/** REQUIRED. Tye type of the security scheme. */type: "openIdConnect"; /** REQUIRED. OpenId Connect URL to discover OAuth2 configuration values. This MUST be in the form of a URL. The OpenID Connect standard requires the use of TLS. */
|
|
2410
2295
|
openIdConnectUrl: string;
|
|
2411
2296
|
});
|
|
2412
2297
|
/**
|
|
@@ -2511,10 +2396,9 @@ type NitroErrorHandler = (error: HTTPError, event: HTTPEvent, _: {
|
|
|
2511
2396
|
}>;
|
|
2512
2397
|
}) => MaybePromise<Response | void>;
|
|
2513
2398
|
//#endregion
|
|
2514
|
-
//#region src/
|
|
2515
|
-
interface
|
|
2399
|
+
//#region src/runner/node.d.ts
|
|
2400
|
+
interface EnvRunnerData {
|
|
2516
2401
|
name?: string;
|
|
2517
|
-
globals?: Record<string, unknown>;
|
|
2518
2402
|
[key: string]: unknown;
|
|
2519
2403
|
}
|
|
2520
2404
|
//#endregion
|
|
@@ -2544,7 +2428,7 @@ interface Route<T = unknown> {
|
|
|
2544
2428
|
declare class Router<T> {
|
|
2545
2429
|
_routes?: Route<T>[];
|
|
2546
2430
|
_router?: RouterContext<T>;
|
|
2547
|
-
_compiled?: string
|
|
2431
|
+
_compiled?: Record<string, string>;
|
|
2548
2432
|
_baseURL: string;
|
|
2549
2433
|
constructor(baseURL?: string);
|
|
2550
2434
|
get routes(): Route<T>[];
|
|
@@ -2557,6 +2441,11 @@ declare class Router<T> {
|
|
|
2557
2441
|
matchAll(method: string, path: string): T[];
|
|
2558
2442
|
}
|
|
2559
2443
|
//#endregion
|
|
2444
|
+
//#region src/types/_utils.d.ts
|
|
2445
|
+
type Enumerate<N extends number, Acc extends number[] = []> = Acc["length"] extends N ? Acc[number] : Enumerate<N, [...Acc, Acc["length"]]>;
|
|
2446
|
+
type IntRange<F extends number, T extends number> = Exclude<Enumerate<T>, Enumerate<F>>;
|
|
2447
|
+
type ExcludeFunctions<G extends Record<string, any>> = Pick<G, { [P in keyof G]: NonNullable<G[P]> extends Function ? never : P }[keyof G]>;
|
|
2448
|
+
//#endregion
|
|
2560
2449
|
//#region src/types/route-rules.d.ts
|
|
2561
2450
|
type HTTPstatus = IntRange<100, 600>;
|
|
2562
2451
|
interface NitroRouteConfig {
|
|
@@ -2585,9 +2474,9 @@ interface NitroRouteRules extends Omit<NitroRouteConfig, "redirect" | "cors" | "
|
|
|
2585
2474
|
} & ProxyOptions;
|
|
2586
2475
|
[key: string]: any;
|
|
2587
2476
|
}
|
|
2588
|
-
type MatchedRouteRule<K
|
|
2589
|
-
name: K
|
|
2590
|
-
options: Exclude<NitroRouteRules[K
|
|
2477
|
+
type MatchedRouteRule<K extends keyof NitroRouteRules = "custom"> = {
|
|
2478
|
+
name: K;
|
|
2479
|
+
options: Exclude<NitroRouteRules[K], false>;
|
|
2591
2480
|
route: string;
|
|
2592
2481
|
params?: Record<string, string>;
|
|
2593
2482
|
handler?: (opts: unknown) => Middleware;
|
|
@@ -2626,7 +2515,9 @@ type MaybeArray<T> = T | T[];
|
|
|
2626
2515
|
interface Nitro {
|
|
2627
2516
|
options: NitroOptions;
|
|
2628
2517
|
scannedHandlers: NitroEventHandler[];
|
|
2629
|
-
vfs:
|
|
2518
|
+
vfs: Map<string, {
|
|
2519
|
+
render: () => string | Promise<string>;
|
|
2520
|
+
}>;
|
|
2630
2521
|
hooks: Hookable<NitroHooks>;
|
|
2631
2522
|
unimport?: Unimport;
|
|
2632
2523
|
logger: ConsolaInstance;
|
|
@@ -2686,29 +2577,19 @@ interface NitroBuildInfo {
|
|
|
2686
2577
|
config?: Partial<PresetOptions>;
|
|
2687
2578
|
}
|
|
2688
2579
|
//#endregion
|
|
2689
|
-
//#region src/types/
|
|
2690
|
-
type RollupConfig = InputOptions & {
|
|
2580
|
+
//#region src/types/build.d.ts
|
|
2581
|
+
type RollupConfig = InputOptions$1 & {
|
|
2582
|
+
output: OutputOptions$1;
|
|
2583
|
+
};
|
|
2584
|
+
type RolldownConfig = InputOptions & {
|
|
2691
2585
|
output: OutputOptions;
|
|
2692
2586
|
};
|
|
2693
|
-
type VirtualModule = string | (() => string | Promise<string>);
|
|
2694
|
-
interface RollupVirtualOptions {
|
|
2695
|
-
[id: string]: VirtualModule;
|
|
2696
|
-
}
|
|
2697
2587
|
interface OXCOptions {
|
|
2698
2588
|
minify?: MinifyOptions;
|
|
2699
2589
|
transform?: Omit<TransformOptions, "jsx"> & {
|
|
2700
2590
|
jsx?: JsxOptions;
|
|
2701
2591
|
};
|
|
2702
2592
|
}
|
|
2703
|
-
interface ServerAssetOptions {
|
|
2704
|
-
inline: boolean;
|
|
2705
|
-
dirs: {
|
|
2706
|
-
[assetdir: string]: {
|
|
2707
|
-
dir: string;
|
|
2708
|
-
meta?: boolean;
|
|
2709
|
-
};
|
|
2710
|
-
};
|
|
2711
|
-
}
|
|
2712
2593
|
//#endregion
|
|
2713
2594
|
//#region src/types/hooks.d.ts
|
|
2714
2595
|
type HookResult = void | Promise<void>;
|
|
@@ -2719,7 +2600,7 @@ interface NitroHooks {
|
|
|
2719
2600
|
compiled: (nitro: Nitro) => HookResult;
|
|
2720
2601
|
"dev:reload": (payload?: {
|
|
2721
2602
|
entry?: string;
|
|
2722
|
-
workerData?:
|
|
2603
|
+
workerData?: EnvRunnerData;
|
|
2723
2604
|
}) => HookResult;
|
|
2724
2605
|
"dev:start": () => HookResult;
|
|
2725
2606
|
"dev:error": (cause?: unknown) => HookResult;
|
|
@@ -2810,6 +2691,7 @@ interface NitroPresetMeta {
|
|
|
2810
2691
|
}
|
|
2811
2692
|
//#endregion
|
|
2812
2693
|
//#region src/types/config.d.ts
|
|
2694
|
+
type RollupCommonJSOptions = NonNullable<Parameters<typeof commonjs.default>[0]>;
|
|
2813
2695
|
/**
|
|
2814
2696
|
* Nitro normalized options (nitro.options)
|
|
2815
2697
|
*/
|
|
@@ -2851,24 +2733,26 @@ interface NitroOptions extends PresetOptions {
|
|
|
2851
2733
|
ssrRoutes: string[];
|
|
2852
2734
|
serveStatic: boolean | "node" | "deno" | "inline";
|
|
2853
2735
|
noPublicDir: boolean;
|
|
2736
|
+
manifest?: {
|
|
2737
|
+
deploymentId?: string;
|
|
2738
|
+
};
|
|
2854
2739
|
features: {
|
|
2855
2740
|
/**
|
|
2856
2741
|
* Enable runtime hooks for request and response.
|
|
2857
2742
|
*
|
|
2858
2743
|
* By default this feature will be enabled if there is at least one nitro plugin.
|
|
2859
2744
|
*/
|
|
2860
|
-
runtimeHooks
|
|
2745
|
+
runtimeHooks?: boolean;
|
|
2861
2746
|
/**
|
|
2862
2747
|
* Enable WebSocket support
|
|
2863
2748
|
*/
|
|
2864
|
-
websocket
|
|
2749
|
+
websocket?: boolean;
|
|
2865
2750
|
};
|
|
2866
2751
|
/**
|
|
2867
|
-
* @experimental Requires `experimental.wasm` to work
|
|
2868
2752
|
*
|
|
2869
2753
|
* @see https://github.com/unjs/unwasm
|
|
2870
2754
|
*/
|
|
2871
|
-
wasm?: UnwasmPluginOptions;
|
|
2755
|
+
wasm?: false | UnwasmPluginOptions;
|
|
2872
2756
|
openAPI?: NitroOpenAPIConfig;
|
|
2873
2757
|
experimental: {
|
|
2874
2758
|
openAPI?: boolean;
|
|
@@ -2880,12 +2764,6 @@ interface NitroOptions extends PresetOptions {
|
|
|
2880
2764
|
* Enable native async context support for useRequest()
|
|
2881
2765
|
*/
|
|
2882
2766
|
asyncContext?: boolean;
|
|
2883
|
-
/**
|
|
2884
|
-
* Enable Experimental WebAssembly Support
|
|
2885
|
-
*
|
|
2886
|
-
* @see https://github.com/unjs/unwasm
|
|
2887
|
-
*/
|
|
2888
|
-
wasm?: boolean;
|
|
2889
2767
|
/**
|
|
2890
2768
|
* Disable Experimental Sourcemap Minification
|
|
2891
2769
|
*/
|
|
@@ -2924,17 +2802,17 @@ interface NitroOptions extends PresetOptions {
|
|
|
2924
2802
|
tsconfigPaths?: boolean;
|
|
2925
2803
|
};
|
|
2926
2804
|
future: {
|
|
2927
|
-
nativeSWR
|
|
2805
|
+
nativeSWR?: boolean;
|
|
2928
2806
|
};
|
|
2929
2807
|
serverAssets: ServerAssetDir[];
|
|
2930
2808
|
publicAssets: PublicAssetDir[];
|
|
2931
|
-
imports: UnimportPluginOptions | false;
|
|
2809
|
+
imports: Partial<UnimportPluginOptions> | false;
|
|
2932
2810
|
modules?: NitroModuleInput[];
|
|
2933
2811
|
plugins: string[];
|
|
2934
2812
|
tasks: {
|
|
2935
2813
|
[name: string]: {
|
|
2936
|
-
handler
|
|
2937
|
-
description
|
|
2814
|
+
handler?: string;
|
|
2815
|
+
description?: string;
|
|
2938
2816
|
};
|
|
2939
2817
|
};
|
|
2940
2818
|
scheduledTasks: {
|
|
@@ -2944,48 +2822,57 @@ interface NitroOptions extends PresetOptions {
|
|
|
2944
2822
|
compressPublicAssets: boolean | CompressOptions;
|
|
2945
2823
|
ignore: string[];
|
|
2946
2824
|
dev: boolean;
|
|
2947
|
-
devServer:
|
|
2825
|
+
devServer: {
|
|
2826
|
+
port?: number;
|
|
2827
|
+
hostname?: string;
|
|
2828
|
+
watch?: string[];
|
|
2829
|
+
};
|
|
2948
2830
|
watchOptions: ChokidarOptions;
|
|
2949
2831
|
devProxy: Record<string, string | ProxyServerOptions>;
|
|
2950
2832
|
logging: {
|
|
2951
|
-
compressedSizes
|
|
2952
|
-
buildSuccess
|
|
2833
|
+
compressedSizes?: boolean;
|
|
2834
|
+
buildSuccess?: boolean;
|
|
2953
2835
|
};
|
|
2954
2836
|
baseURL: string;
|
|
2955
2837
|
apiBaseURL: string;
|
|
2956
|
-
|
|
2838
|
+
serverEntry: false | {
|
|
2839
|
+
handler: string;
|
|
2840
|
+
format?: EventHandlerFormat;
|
|
2841
|
+
};
|
|
2957
2842
|
handlers: NitroEventHandler[];
|
|
2958
2843
|
devHandlers: NitroDevEventHandler[];
|
|
2959
2844
|
routeRules: {
|
|
2960
2845
|
[path: string]: NitroRouteRules;
|
|
2961
2846
|
};
|
|
2847
|
+
routes: Record<string, string | Omit<NitroEventHandler, "route" | "middleware">>;
|
|
2962
2848
|
errorHandler: string | string[];
|
|
2963
2849
|
devErrorHandler: NitroErrorHandler;
|
|
2964
2850
|
prerender: {
|
|
2965
2851
|
/**
|
|
2966
2852
|
* Prerender HTML routes within subfolders (`/test` would produce `/test/index.html`)
|
|
2967
2853
|
*/
|
|
2968
|
-
autoSubfolderIndex
|
|
2969
|
-
concurrency
|
|
2970
|
-
interval
|
|
2971
|
-
crawlLinks
|
|
2972
|
-
failOnError
|
|
2973
|
-
ignore
|
|
2974
|
-
ignoreUnprefixedPublicAssets
|
|
2975
|
-
routes
|
|
2854
|
+
autoSubfolderIndex?: boolean;
|
|
2855
|
+
concurrency?: number;
|
|
2856
|
+
interval?: number;
|
|
2857
|
+
crawlLinks?: boolean;
|
|
2858
|
+
failOnError?: boolean;
|
|
2859
|
+
ignore?: Array<string | RegExp | ((path: string) => undefined | null | boolean)>;
|
|
2860
|
+
ignoreUnprefixedPublicAssets?: boolean;
|
|
2861
|
+
routes?: string[];
|
|
2976
2862
|
/**
|
|
2977
2863
|
* Amount of retries. Pass Infinity to retry indefinitely.
|
|
2978
2864
|
* @default 3
|
|
2979
2865
|
*/
|
|
2980
|
-
retry
|
|
2866
|
+
retry?: number;
|
|
2981
2867
|
/**
|
|
2982
2868
|
* Delay between each retry in ms.
|
|
2983
2869
|
* @default 500
|
|
2984
2870
|
*/
|
|
2985
|
-
retryDelay
|
|
2871
|
+
retryDelay?: number;
|
|
2986
2872
|
};
|
|
2987
|
-
builder?: "rollup" | "rolldown" | "vite"
|
|
2873
|
+
builder?: "rollup" | "rolldown" | "vite";
|
|
2988
2874
|
rollupConfig?: RollupConfig;
|
|
2875
|
+
rolldownConfig?: RolldownConfig;
|
|
2989
2876
|
entry: string;
|
|
2990
2877
|
unenv: Preset[];
|
|
2991
2878
|
alias: Record<string, string>;
|
|
@@ -2995,11 +2882,11 @@ interface NitroOptions extends PresetOptions {
|
|
|
2995
2882
|
node: boolean;
|
|
2996
2883
|
moduleSideEffects: string[];
|
|
2997
2884
|
oxc?: OXCOptions;
|
|
2998
|
-
noExternals: boolean;
|
|
2999
|
-
externals: NodeExternalsOptions;
|
|
3000
2885
|
replace: Record<string, string | ((id: string) => string)>;
|
|
3001
2886
|
commonJS?: RollupCommonJSOptions;
|
|
3002
2887
|
exportConditions?: string[];
|
|
2888
|
+
noExternals?: boolean | (string | RegExp)[];
|
|
2889
|
+
traceDeps?: (string | RegExp)[];
|
|
3003
2890
|
typescript: {
|
|
3004
2891
|
strict?: boolean;
|
|
3005
2892
|
generateRuntimeConfigTypes?: boolean;
|
|
@@ -3016,13 +2903,12 @@ interface NitroOptions extends PresetOptions {
|
|
|
3016
2903
|
*
|
|
3017
2904
|
* Default is `tsconfig.json` (`node_modules/.nitro/types/tsconfig.json`)
|
|
3018
2905
|
*/
|
|
3019
|
-
tsconfigPath
|
|
2906
|
+
tsconfigPath?: string;
|
|
3020
2907
|
};
|
|
3021
2908
|
hooks: NestedHooks<NitroHooks>;
|
|
3022
|
-
nodeModulesDirs: string[];
|
|
3023
2909
|
commands: {
|
|
3024
|
-
preview
|
|
3025
|
-
deploy
|
|
2910
|
+
preview?: string;
|
|
2911
|
+
deploy?: string;
|
|
3026
2912
|
};
|
|
3027
2913
|
framework: NitroFrameworkInfo;
|
|
3028
2914
|
iis?: {
|
|
@@ -3033,7 +2919,7 @@ interface NitroOptions extends PresetOptions {
|
|
|
3033
2919
|
/**
|
|
3034
2920
|
* Nitro input config (nitro.config)
|
|
3035
2921
|
*/
|
|
3036
|
-
interface NitroConfig extends
|
|
2922
|
+
interface NitroConfig extends Partial<Omit<NitroOptions, "routeRules" | "rollupConfig" | "preset" | "compatibilityDate" | "unenv" | "serverDir" | "_config" | "_c12" | "serverEntry" | "renderer" | "output">>, C12InputConfig<NitroConfig> {
|
|
3037
2923
|
preset?: PresetNameInput;
|
|
3038
2924
|
extends?: string | string[] | NitroPreset;
|
|
3039
2925
|
routeRules?: {
|
|
@@ -3043,6 +2929,9 @@ interface NitroConfig extends DeepPartial<Omit<NitroOptions, "routeRules" | "rol
|
|
|
3043
2929
|
compatibilityDate?: CompatibilityDateSpec;
|
|
3044
2930
|
unenv?: Preset | Preset[];
|
|
3045
2931
|
serverDir?: boolean | "./" | "./server" | (string & {});
|
|
2932
|
+
serverEntry?: string | NitroOptions["serverEntry"];
|
|
2933
|
+
renderer?: false | NitroOptions["renderer"];
|
|
2934
|
+
output?: Partial<NitroOptions["output"]>;
|
|
3046
2935
|
}
|
|
3047
2936
|
interface LoadConfigOptions {
|
|
3048
2937
|
watch?: boolean;
|
|
@@ -3055,6 +2944,12 @@ interface PublicAssetDir {
|
|
|
3055
2944
|
fallthrough?: boolean;
|
|
3056
2945
|
maxAge: number;
|
|
3057
2946
|
dir: string;
|
|
2947
|
+
/**
|
|
2948
|
+
* Pass false to disable ignore patterns when scanning the directory, or
|
|
2949
|
+
* pass an array of glob patterns to ignore (which will override global
|
|
2950
|
+
* nitro.ignore patterns).
|
|
2951
|
+
*/
|
|
2952
|
+
ignore?: false | string[];
|
|
3058
2953
|
}
|
|
3059
2954
|
interface CompressOptions {
|
|
3060
2955
|
gzip?: boolean;
|
|
@@ -3087,8 +2982,7 @@ interface NitroRuntimeConfigApp {
|
|
|
3087
2982
|
[key: string]: any;
|
|
3088
2983
|
}
|
|
3089
2984
|
interface NitroRuntimeConfig {
|
|
3090
|
-
|
|
3091
|
-
nitro: {
|
|
2985
|
+
nitro?: {
|
|
3092
2986
|
envPrefix?: string;
|
|
3093
2987
|
envExpansion?: boolean;
|
|
3094
2988
|
routeRules?: {
|
|
@@ -3099,6 +2993,32 @@ interface NitroRuntimeConfig {
|
|
|
3099
2993
|
[key: string]: any;
|
|
3100
2994
|
}
|
|
3101
2995
|
//#endregion
|
|
2996
|
+
//#region src/types/runner.d.ts
|
|
2997
|
+
type FetchHandler = (req: Request) => Promise<Response>;
|
|
2998
|
+
type RunnerMessageListener = (data: unknown) => void;
|
|
2999
|
+
type UpgradeHandler = (req: IncomingMessage, socket: OutgoingMessage<IncomingMessage> | Duplex, head: any) => void;
|
|
3000
|
+
interface RunnerRPCHooks {
|
|
3001
|
+
sendMessage: (message: unknown) => void;
|
|
3002
|
+
onMessage: (listener: RunnerMessageListener) => void;
|
|
3003
|
+
offMessage: (listener: RunnerMessageListener) => void;
|
|
3004
|
+
}
|
|
3005
|
+
type WorkerAddress = {
|
|
3006
|
+
host: string;
|
|
3007
|
+
port: number;
|
|
3008
|
+
socketPath?: string;
|
|
3009
|
+
};
|
|
3010
|
+
interface WorkerHooks {
|
|
3011
|
+
onClose?: (worker: EnvRunner, cause?: unknown) => void;
|
|
3012
|
+
onReady?: (worker: EnvRunner, address?: WorkerAddress) => void;
|
|
3013
|
+
}
|
|
3014
|
+
interface EnvRunner extends WorkerHooks, RunnerRPCHooks {
|
|
3015
|
+
readonly ready: boolean;
|
|
3016
|
+
readonly closed: boolean;
|
|
3017
|
+
fetch: FetchHandler;
|
|
3018
|
+
upgrade?: UpgradeHandler;
|
|
3019
|
+
close(): Promise<void>;
|
|
3020
|
+
}
|
|
3021
|
+
//#endregion
|
|
3102
3022
|
//#region src/types/global.d.ts
|
|
3103
3023
|
interface NitroImportMeta {
|
|
3104
3024
|
dev?: boolean;
|
|
@@ -3111,6 +3031,7 @@ interface NitroImportMeta {
|
|
|
3111
3031
|
runtimeConfig?: Record<string, any>;
|
|
3112
3032
|
_asyncContext?: boolean;
|
|
3113
3033
|
_tasks?: boolean;
|
|
3034
|
+
_websocket?: boolean;
|
|
3114
3035
|
}
|
|
3115
3036
|
declare global {
|
|
3116
3037
|
interface ImportMeta extends NitroImportMeta {}
|
|
@@ -3135,4 +3056,4 @@ declare module "srvx" {
|
|
|
3135
3056
|
}
|
|
3136
3057
|
}
|
|
3137
3058
|
//#endregion
|
|
3138
|
-
export { $Fetch, AssetMeta, AvailableRouterMethod, Base$Fetch, CacheEntry, CacheOptions, CachedEventHandlerOptions, CaptureError, CapturedErrorContext, CompressOptions, DatabaseConnectionConfig, DatabaseConnectionConfigs, DatabaseConnectionName,
|
|
3059
|
+
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, OXCOptions, PrerenderGenerateRoute, PrerenderRoute, PublicAsset, PublicAssetDir, RenderContext, RenderHandler, RenderResponse, ResponseCacheEntry, RolldownConfig, RollupConfig, RunnerMessageListener, RunnerRPCHooks, Serialize, SerializeObject, SerializeTuple, ServerAssetDir, type ServerRequest, Simplify, StorageMounts, Task, TaskContext, TaskEvent, TaskMeta, TaskPayload, TaskResult, TaskRunnerOptions, TypedInternalResponse, UpgradeHandler, WorkerAddress, WorkerHooks };
|