nitro-nightly 3.0.1-20260120-020848-6786d069 → 3.0.1-20260120-133205-cbfce96c

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/dist/_build/common.mjs +24931 -0
  2. package/dist/_build/rolldown.mjs +6 -11
  3. package/dist/_build/rollup.mjs +201 -0
  4. package/dist/_build/vite.build.mjs +1 -1
  5. package/dist/_chunks/dev.mjs +4 -6
  6. package/dist/_chunks/nitro.mjs +1183 -24
  7. package/dist/_chunks/nitro2.mjs +91 -248
  8. package/dist/_chunks/utils.mjs +254 -0
  9. package/dist/_common.mjs +45 -0
  10. package/dist/_libs/@hiogawa/vite-plugin-fullstack.mjs +652 -0
  11. package/dist/_libs/@jridgewell/gen-mapping.mjs +448 -0
  12. package/dist/_libs/@jridgewell/remapping.mjs +117 -0
  13. package/dist/_libs/@rollup/plugin-alias.mjs +64 -0
  14. package/dist/_libs/@rollup/plugin-commonjs.d.mts +241 -0
  15. package/dist/_libs/@rollup/plugin-commonjs.mjs +1300 -0
  16. package/dist/_libs/{plugin-alias+plugin-inject.mjs → @rollup/plugin-inject.mjs} +2 -65
  17. package/dist/_libs/@rollup/plugin-json.mjs +36 -0
  18. package/dist/_libs/@rollup/plugin-node-resolve.mjs +1972 -0
  19. package/dist/_libs/c12.d.mts +214 -0
  20. package/dist/_libs/{c12+dotenv+rc9.mjs → c12.mjs} +105 -12
  21. package/dist/_libs/{chokidar+readdirp.mjs → chokidar.mjs} +8 -1
  22. package/dist/_libs/compatx.d.mts +47 -0
  23. package/dist/_libs/confbox.mjs +2488 -70
  24. package/dist/_libs/esbuild.d.mts +20 -0
  25. package/dist/_libs/escape-string-regexp.mjs +8 -0
  26. package/dist/_libs/estree-walker.mjs +187 -0
  27. package/dist/_libs/giget.mjs +3550 -0
  28. package/dist/_libs/httpxy.d.mts +79 -0
  29. package/dist/_libs/httpxy.mjs +6 -1
  30. package/dist/_libs/klona.mjs +38 -0
  31. package/dist/_libs/magic-string.d.mts +220 -0
  32. package/dist/_libs/mlly.d.mts +57 -0
  33. package/dist/_libs/pkg-types.d.mts +23 -0
  34. package/dist/_libs/rou3.d.mts +43 -0
  35. package/dist/_libs/rou3.mjs +322 -0
  36. package/dist/_libs/std-env.d.mts +4 -0
  37. package/dist/_libs/tsconfck.mjs +832 -0
  38. package/dist/_libs/ultrahtml.mjs +138 -0
  39. package/dist/_libs/unimport.d.mts +426 -0
  40. package/dist/_libs/unimport.mjs +1781 -5
  41. package/dist/_libs/unwasm.d.mts +29 -0
  42. package/dist/_presets.mjs +3 -8
  43. package/dist/builder.mjs +6 -8
  44. package/dist/cli/_chunks/build.mjs +1 -1
  45. package/dist/cli/_chunks/dev.mjs +2 -3
  46. package/dist/cli/_chunks/list.mjs +1 -1
  47. package/dist/cli/_chunks/prepare.mjs +1 -1
  48. package/dist/cli/_chunks/run.mjs +1 -1
  49. package/dist/cli/_chunks/task.mjs +16 -0
  50. package/dist/cli/index.mjs +1 -1
  51. package/dist/presets/aws-lambda/runtime/_utils.d.mts +0 -5
  52. package/dist/presets/netlify/runtime/netlify-edge.d.mts +0 -1
  53. package/dist/presets/winterjs/runtime/winterjs.d.mts +0 -1
  54. package/dist/runtime/internal/error/dev.d.mts +0 -1
  55. package/dist/runtime/internal/route-rules.d.mts +0 -4
  56. package/dist/runtime/internal/routes/openapi.d.mts +0 -1
  57. package/dist/runtime/internal/routes/scalar.d.mts +0 -1
  58. package/dist/runtime/internal/routes/swagger.d.mts +0 -1
  59. package/dist/runtime/internal/runtime-config.d.mts +0 -1
  60. package/dist/runtime/nitro.d.mts +0 -3
  61. package/dist/runtime/virtual/renderer-template.d.mts +0 -1
  62. package/dist/types/index.d.mts +36 -1405
  63. package/dist/vite.mjs +18 -641
  64. package/package.json +2 -2
  65. package/dist/_chunks/nitro3.mjs +0 -2696
  66. package/dist/_chunks/nitro4.mjs +0 -176
  67. package/dist/_chunks/nitro5.mjs +0 -733
  68. package/dist/_chunks/nitro6.mjs +0 -1458
  69. package/dist/_chunks/nitro7.mjs +0 -7561
  70. package/dist/_chunks/nitro8.mjs +0 -3524
  71. package/dist/_chunks/nitro9.mjs +0 -1729
  72. package/dist/_libs/_.mjs +0 -3
  73. package/dist/_libs/_2.mjs +0 -3
  74. package/dist/_libs/_3.mjs +0 -4
  75. package/dist/_libs/_4.mjs +0 -6
  76. package/dist/_libs/_5.mjs +0 -3
  77. package/dist/_libs/_6.mjs +0 -3
  78. package/dist/_libs/acorn+confbox+js-tokens+magic-string+mlly+pkg-types+sourcemap-codec+strip-literal+unimport.mjs +0 -8900
  79. package/dist/_libs/confbox+exsolve+pkg-types.mjs +0 -1249
  80. package/dist/_libs/confbox2.mjs +0 -786
  81. package/dist/_libs/confbox3.mjs +0 -404
  82. package/dist/_libs/confbox4.mjs +0 -3
  83. package/dist/_libs/estree-walker+unimport.mjs +0 -378
  84. package/dist/_libs/fdir+picomatch+tinyglobby.mjs +0 -2471
  85. package/dist/_libs/gen-mapping+remapping+resolve-uri+trace-mapping+unimport+unplugin+unplugin-utils+webpack-virtual-modules.mjs +0 -2150
  86. package/dist/_libs/giget+node-fetch-native.mjs +0 -2692
  87. package/dist/_libs/local-pkg+quansync+unimport.mjs +0 -1526
  88. package/dist/_libs/nypm+tinyexec.mjs +0 -858
  89. package/dist/_libs/pathe.mjs +0 -164
  90. package/dist/_libs/perfect-debounce.mjs +0 -89
  91. package/dist/_libs/std-env.mjs +0 -158
  92. package/dist/_libs/vite-plugin-fullstack.mjs +0 -26
@@ -1,13 +1,19 @@
1
+ import { t as commonjs } from "../_libs/@rollup/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.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/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
- import { Stats } from "node:fs";
4
- import { Jiti, JitiOptions } from "jiti";
5
13
  import { version } from "nitro/meta";
6
- import http, { IncomingMessage, OutgoingMessage } from "node:http";
7
- import { EventEmitter } from "node:events";
14
+ import { IncomingMessage, OutgoingMessage } from "node:http";
8
15
  import { H3Core, HTTPError, HTTPEvent, HTTPHandler, HTTPMethod, Middleware, ProxyOptions } from "h3";
9
- import * as stream from "node:stream";
10
- import { Duplex, Readable } from "node:stream";
16
+ import { Duplex } from "node:stream";
11
17
  import { ServerRequest, ServerRequest as ServerRequest$1 } from "srvx";
12
18
  import "nitro";
13
19
  import "nitro/app";
@@ -22,36 +28,28 @@ import { Preset } from "unenv";
22
28
  import { ConnectorName } from "db0";
23
29
  import { BuiltinDriverName } from "unstorage";
24
30
  import { JsxOptions, TransformOptions } from "oxc-transform";
25
- import "vite";
26
31
  import { MinifyOptions } from "oxc-minify";
27
- import { diff } from "ohash/utils";
28
- import "rolldown";
29
- import { InputOptions, OutputOptions, Plugin as Plugin$1 } from "rollup";
30
- import { CompilerOptions, TypeAcquisition } from "typescript";
32
+ import { InputOptions, OutputOptions } from "rollup";
31
33
  import { Nitro as Nitro$1, RunnerMessageListener as RunnerMessageListener$1 } from "nitro/types";
32
34
  import { FetchOptions, FetchRequest, FetchResponse } from "ofetch";
33
35
  import { ExecutionContext, ForwardableEmailMessage, MessageBatch, ScheduledController, TraceItem } from "@cloudflare/workers-types";
34
36
  import { DurableObject } from "cloudflare:workers";
35
- import "webpack";
36
- import "@farmfe/core";
37
- import "@rspack/core";
38
- import "unloader";
39
37
 
40
38
  //#region src/types/fetch/fetch.d.ts
41
39
  interface InternalApi {}
42
40
  type RouterMethod = Lowercase<HTTPMethod>;
43
- type NitroFetchRequest = Exclude<keyof InternalApi, `/_${string}` | `/api/_${string}`> | Exclude<FetchRequest, string> | (string & {});
41
+ type NitroFetchRequest = Exclude<keyof InternalApi, `/_${string}` | `/api/_${string}`> | Exclude<FetchRequest, string> | string & {};
44
42
  type MiddlewareOf<Route$2 extends string, Method extends RouterMethod | "default"> = Method extends keyof InternalApi[MatchedRoutes<Route$2>] ? InternalApi[MatchedRoutes<Route$2>][Method] : never;
45
43
  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;
46
- type AvailableRouterMethod<R$1 extends NitroFetchRequest> = R$1 extends string ? keyof InternalApi[MatchedRoutes<R$1>] extends undefined ? RouterMethod : Extract<keyof InternalApi[MatchedRoutes<R$1>], "default"> extends undefined ? Extract<RouterMethod, keyof InternalApi[MatchedRoutes<R$1>]> : RouterMethod : RouterMethod;
47
- interface NitroFetchOptions<R$1 extends NitroFetchRequest, M extends AvailableRouterMethod<R$1> = AvailableRouterMethod<R$1>> extends FetchOptions {
44
+ 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;
45
+ interface NitroFetchOptions<R extends NitroFetchRequest, M extends AvailableRouterMethod<R> = AvailableRouterMethod<R>> extends FetchOptions {
48
46
  method?: Uppercase<M> | M;
49
47
  }
50
- type ExtractedRouteMethod<R$1 extends NitroFetchRequest, O extends NitroFetchOptions<R$1>> = O extends undefined ? "get" : Lowercase<Exclude<O["method"], undefined>> extends RouterMethod ? Lowercase<Exclude<O["method"], undefined>> : "get";
51
- type Base$Fetch<DefaultT = unknown, DefaultR extends NitroFetchRequest = NitroFetchRequest> = <T = DefaultT, R$1 extends NitroFetchRequest = DefaultR, O extends NitroFetchOptions<R$1> = NitroFetchOptions<R$1>>(request: R$1, opts?: O) => Promise<TypedInternalResponse<R$1, T, NitroFetchOptions<R$1> extends O ? "get" : ExtractedRouteMethod<R$1, O>>>;
48
+ 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";
49
+ 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>>>;
52
50
  interface $Fetch<DefaultT = unknown, DefaultR extends NitroFetchRequest = NitroFetchRequest> extends Base$Fetch<DefaultT, DefaultR> {
53
- raw<T = DefaultT, R$1 extends NitroFetchRequest = DefaultR, O extends NitroFetchOptions<R$1> = NitroFetchOptions<R$1>>(request: R$1, opts?: O): Promise<FetchResponse<TypedInternalResponse<R$1, T, NitroFetchOptions<R$1> extends O ? "get" : ExtractedRouteMethod<R$1, O>>>>;
54
- create<T = DefaultT, R$1 extends NitroFetchRequest = DefaultR>(defaults: FetchOptions): $Fetch<T, R$1>;
51
+ 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>>>>;
52
+ create<T = DefaultT, R extends NitroFetchRequest = DefaultR>(defaults: FetchOptions): $Fetch<T, R>;
55
53
  }
56
54
  //#endregion
57
55
  //#region src/types/fetch/_match.d.ts
@@ -192,7 +190,7 @@ interface NitroRuntimeHooks {
192
190
  }
193
191
  //#endregion
194
192
  //#region src/types/runtime/task.d.ts
195
- type MaybePromise$2<T> = T | Promise<T>;
193
+ type MaybePromise$1<T> = T | Promise<T>;
196
194
  /** @experimental */
197
195
  interface TaskContext {}
198
196
  /** @experimental */
@@ -217,7 +215,7 @@ interface TaskResult<RT = unknown> {
217
215
  /** @experimental */
218
216
  interface Task<RT = unknown> {
219
217
  meta?: TaskMeta;
220
- run(event: TaskEvent): MaybePromise$2<{
218
+ run(event: TaskEvent): MaybePromise$1<{
221
219
  result?: RT;
222
220
  }>;
223
221
  }
@@ -227,571 +225,6 @@ interface TaskRunnerOptions {
227
225
  buildDir?: string;
228
226
  }
229
227
  //#endregion
230
- //#region node_modules/.pnpm/@rollup+pluginutils@5.3.0_rollup@4.55.2/node_modules/@rollup/pluginutils/types/index.d.ts
231
- /**
232
- * A valid `picomatch` glob pattern, or array of patterns.
233
- */
234
- type FilterPattern$1 = ReadonlyArray<string | RegExp> | string | RegExp | null;
235
- //#endregion
236
- //#region node_modules/.pnpm/@rollup+plugin-commonjs@29.0.0_rollup@4.55.2/node_modules/@rollup/plugin-commonjs/types/index.d.ts
237
- type RequireReturnsDefaultOption = boolean | 'auto' | 'preferred' | 'namespace';
238
- type DefaultIsModuleExportsOption = boolean | 'auto';
239
- interface RollupCommonJSOptions$1 {
240
- /**
241
- * A picomatch pattern, or array of patterns, which specifies the files in
242
- * the build the plugin should operate on. By default, all files with
243
- * extension `".cjs"` or those in `extensions` are included, but you can
244
- * narrow this list by only including specific files. These files will be
245
- * analyzed and transpiled if either the analysis does not find ES module
246
- * specific statements or `transformMixedEsModules` is `true`.
247
- * @default undefined
248
- */
249
- include?: FilterPattern$1;
250
- /**
251
- * A picomatch pattern, or array of patterns, which specifies the files in
252
- * the build the plugin should _ignore_. By default, all files with
253
- * extensions other than those in `extensions` or `".cjs"` are ignored, but you
254
- * can exclude additional files. See also the `include` option.
255
- * @default undefined
256
- */
257
- exclude?: FilterPattern$1;
258
- /**
259
- * For extensionless imports, search for extensions other than .js in the
260
- * order specified. Note that you need to make sure that non-JavaScript files
261
- * are transpiled by another plugin first.
262
- * @default [ '.js' ]
263
- */
264
- extensions?: ReadonlyArray<string>;
265
- /**
266
- * If true then uses of `global` won't be dealt with by this plugin
267
- * @default false
268
- */
269
- ignoreGlobal?: boolean;
270
- /**
271
- * If false, skips source map generation for CommonJS modules. This will
272
- * improve performance.
273
- * @default true
274
- */
275
- sourceMap?: boolean;
276
- /**
277
- * Some `require` calls cannot be resolved statically to be translated to
278
- * imports.
279
- * When this option is set to `false`, the generated code will either
280
- * directly throw an error when such a call is encountered or, when
281
- * `dynamicRequireTargets` is used, when such a call cannot be resolved with a
282
- * configured dynamic require target.
283
- * Setting this option to `true` will instead leave the `require` call in the
284
- * code or use it as a fallback for `dynamicRequireTargets`.
285
- * @default false
286
- */
287
- ignoreDynamicRequires?: boolean;
288
- /**
289
- * Instructs the plugin whether to enable mixed module transformations. This
290
- * is useful in scenarios with modules that contain a mix of ES `import`
291
- * statements and CommonJS `require` expressions. Set to `true` if `require`
292
- * calls should be transformed to imports in mixed modules, or `false` if the
293
- * `require` expressions should survive the transformation. The latter can be
294
- * important if the code contains environment detection, or you are coding
295
- * for an environment with special treatment for `require` calls such as
296
- * ElectronJS. See also the `ignore` option.
297
- * @default false
298
- */
299
- transformMixedEsModules?: boolean;
300
- /**
301
- * By default, this plugin will try to hoist `require` statements as imports
302
- * to the top of each file. While this works well for many code bases and
303
- * allows for very efficient ESM output, it does not perfectly capture
304
- * CommonJS semantics as the order of side effects like log statements may
305
- * change. But it is especially problematic when there are circular `require`
306
- * calls between CommonJS modules as those often rely on the lazy execution of
307
- * nested `require` calls.
308
- *
309
- * Setting this option to `true` will wrap all CommonJS files in functions
310
- * which are executed when they are required for the first time, preserving
311
- * NodeJS semantics. Note that this can have an impact on the size and
312
- * performance of the generated code.
313
- *
314
- * The default value of `"auto"` will only wrap CommonJS files when they are
315
- * part of a CommonJS dependency cycle, e.g. an index file that is required by
316
- * many of its dependencies. All other CommonJS files are hoisted. This is the
317
- * recommended setting for most code bases.
318
- *
319
- * `false` will entirely prevent wrapping and hoist all files. This may still
320
- * work depending on the nature of cyclic dependencies but will often cause
321
- * problems.
322
- *
323
- * You can also provide a picomatch pattern, or array of patterns, to only
324
- * specify a subset of files which should be wrapped in functions for proper
325
- * `require` semantics.
326
- *
327
- * `"debug"` works like `"auto"` but after bundling, it will display a warning
328
- * containing a list of ids that have been wrapped which can be used as
329
- * picomatch pattern for fine-tuning.
330
- * @default "auto"
331
- */
332
- strictRequires?: boolean | FilterPattern$1;
333
- /**
334
- * Sometimes you have to leave require statements unconverted. Pass an array
335
- * containing the IDs or a `id => boolean` function.
336
- * @default []
337
- */
338
- ignore?: ReadonlyArray<string> | ((id: string) => boolean);
339
- /**
340
- * In most cases, where `require` calls are inside a `try-catch` clause,
341
- * they should be left unconverted as it requires an optional dependency
342
- * that may or may not be installed beside the rolled up package.
343
- * Due to the conversion of `require` to a static `import` - the call is
344
- * hoisted to the top of the file, outside the `try-catch` clause.
345
- *
346
- * - `true`: Default. All `require` calls inside a `try` will be left unconverted.
347
- * - `false`: All `require` calls inside a `try` will be converted as if the
348
- * `try-catch` clause is not there.
349
- * - `remove`: Remove all `require` calls from inside any `try` block.
350
- * - `string[]`: Pass an array containing the IDs to left unconverted.
351
- * - `((id: string) => boolean|'remove')`: Pass a function that controls
352
- * individual IDs.
353
- *
354
- * @default true
355
- */
356
- ignoreTryCatch?: boolean | 'remove' | ReadonlyArray<string> | ((id: string) => boolean | 'remove');
357
- /**
358
- * Controls how to render imports from external dependencies. By default,
359
- * this plugin assumes that all external dependencies are CommonJS. This
360
- * means they are rendered as default imports to be compatible with e.g.
361
- * NodeJS where ES modules can only import a default export from a CommonJS
362
- * dependency.
363
- *
364
- * If you set `esmExternals` to `true`, this plugin assumes that all
365
- * external dependencies are ES modules and respect the
366
- * `requireReturnsDefault` option. If that option is not set, they will be
367
- * rendered as namespace imports.
368
- *
369
- * You can also supply an array of ids to be treated as ES modules, or a
370
- * function that will be passed each external id to determine whether it is
371
- * an ES module.
372
- * @default false
373
- */
374
- esmExternals?: boolean | ReadonlyArray<string> | ((id: string) => boolean);
375
- /**
376
- * Controls what is returned when requiring an ES module from a CommonJS file.
377
- * When using the `esmExternals` option, this will also apply to external
378
- * modules. By default, this plugin will render those imports as namespace
379
- * imports i.e.
380
- *
381
- * ```js
382
- * // input
383
- * const foo = require('foo');
384
- *
385
- * // output
386
- * import * as foo from 'foo';
387
- * ```
388
- *
389
- * However, there are some situations where this may not be desired.
390
- * For these situations, you can change Rollup's behaviour either globally or
391
- * per module. To change it globally, set the `requireReturnsDefault` option
392
- * to one of the following values:
393
- *
394
- * - `false`: This is the default, requiring an ES module returns its
395
- * namespace. This is the only option that will also add a marker
396
- * `__esModule: true` to the namespace to support interop patterns in
397
- * CommonJS modules that are transpiled ES modules.
398
- * - `"namespace"`: Like `false`, requiring an ES module returns its
399
- * namespace, but the plugin does not add the `__esModule` marker and thus
400
- * creates more efficient code. For external dependencies when using
401
- * `esmExternals: true`, no additional interop code is generated.
402
- * - `"auto"`: This is complementary to how `output.exports: "auto"` works in
403
- * Rollup: If a module has a default export and no named exports, requiring
404
- * that module returns the default export. In all other cases, the namespace
405
- * is returned. For external dependencies when using `esmExternals: true`, a
406
- * corresponding interop helper is added.
407
- * - `"preferred"`: If a module has a default export, requiring that module
408
- * always returns the default export, no matter whether additional named
409
- * exports exist. This is similar to how previous versions of this plugin
410
- * worked. Again for external dependencies when using `esmExternals: true`,
411
- * an interop helper is added.
412
- * - `true`: This will always try to return the default export on require
413
- * without checking if it actually exists. This can throw at build time if
414
- * there is no default export. This is how external dependencies are handled
415
- * when `esmExternals` is not used. The advantage over the other options is
416
- * that, like `false`, this does not add an interop helper for external
417
- * dependencies, keeping the code lean.
418
- *
419
- * To change this for individual modules, you can supply a function for
420
- * `requireReturnsDefault` instead. This function will then be called once for
421
- * each required ES module or external dependency with the corresponding id
422
- * and allows you to return different values for different modules.
423
- * @default false
424
- */
425
- requireReturnsDefault?: RequireReturnsDefaultOption | ((id: string) => RequireReturnsDefaultOption);
426
- /**
427
- * @default "auto"
428
- */
429
- defaultIsModuleExports?: DefaultIsModuleExportsOption | ((id: string) => DefaultIsModuleExportsOption);
430
- /**
431
- * Some modules contain dynamic `require` calls, or require modules that
432
- * contain circular dependencies, which are not handled well by static
433
- * imports. Including those modules as `dynamicRequireTargets` will simulate a
434
- * CommonJS (NodeJS-like) environment for them with support for dynamic
435
- * dependencies. It also enables `strictRequires` for those modules.
436
- *
437
- * Note: In extreme cases, this feature may result in some paths being
438
- * rendered as absolute in the final bundle. The plugin tries to avoid
439
- * exposing paths from the local machine, but if you are `dynamicRequirePaths`
440
- * with paths that are far away from your project's folder, that may require
441
- * replacing strings like `"/Users/John/Desktop/foo-project/"` -> `"/"`.
442
- */
443
- dynamicRequireTargets?: string | ReadonlyArray<string>;
444
- /**
445
- * To avoid long paths when using the `dynamicRequireTargets` option, you can use this option to specify a directory
446
- * that is a common parent for all files that use dynamic require statements. Using a directory higher up such as `/`
447
- * may lead to unnecessarily long paths in the generated code and may expose directory names on your machine like your
448
- * home directory name. By default, it uses the current working directory.
449
- */
450
- dynamicRequireRoot?: string;
451
- /**
452
- * When enabled, external Node built-ins (e.g., `node:fs`) required from wrapped CommonJS modules
453
- * will use `createRequire(import.meta.url)` instead of being hoisted as ESM imports. This prevents
454
- * eager loading of Node built-ins at module initialization time.
455
- *
456
- * Note: This option adds a dependency on `node:module` in the output, which may not be available
457
- * in some environments like edge runtimes (Cloudflare Workers, Vercel Edge Runtime).
458
- *
459
- * @default false
460
- */
461
- requireNodeBuiltins?: boolean;
462
- }
463
- /**
464
- * Convert CommonJS modules to ES6, so they can be included in a Rollup bundle
465
- */
466
- declare function commonjs(options?: RollupCommonJSOptions$1): Plugin$1;
467
- //#endregion
468
- //#region node_modules/.pnpm/chokidar@5.0.0/node_modules/chokidar/index.d.ts
469
- type AWF = {
470
- stabilityThreshold: number;
471
- pollInterval: number;
472
- };
473
- type BasicOpts = {
474
- persistent: boolean;
475
- ignoreInitial: boolean;
476
- followSymlinks: boolean;
477
- cwd?: string;
478
- usePolling: boolean;
479
- interval: number;
480
- binaryInterval: number;
481
- alwaysStat?: boolean;
482
- depth?: number;
483
- ignorePermissionErrors: boolean;
484
- atomic: boolean | number;
485
- };
486
- type ChokidarOptions = Partial<BasicOpts & {
487
- ignored: Matcher | Matcher[];
488
- awaitWriteFinish: boolean | Partial<AWF>;
489
- }>;
490
- type MatchFunction = (val: string, stats?: Stats) => boolean;
491
- interface MatcherObject {
492
- path: string;
493
- recursive?: boolean;
494
- }
495
- type Matcher = string | RegExp | MatchFunction | MatcherObject;
496
- //#endregion
497
- //#region node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.d.mts
498
- interface TemplateInfo {
499
- name: string;
500
- tar: string;
501
- version?: string;
502
- subdir?: string;
503
- url?: string;
504
- defaultDir?: string;
505
- headers?: Record<string, string | undefined>;
506
- source?: never;
507
- dir?: never;
508
- [key: string]: any;
509
- }
510
- type TemplateProvider = (input: string, options: {
511
- auth?: string;
512
- }) => TemplateInfo | Promise<TemplateInfo> | null;
513
- interface DownloadTemplateOptions {
514
- provider?: string;
515
- force?: boolean;
516
- forceClean?: boolean;
517
- offline?: boolean;
518
- preferOffline?: boolean;
519
- providers?: Record<string, TemplateProvider>;
520
- dir?: string;
521
- registry?: false | string;
522
- cwd?: string;
523
- auth?: string;
524
- install?: boolean;
525
- silent?: boolean;
526
- }
527
- //#endregion
528
- //#region node_modules/.pnpm/c12@3.3.3_magicast@0.5.1/node_modules/c12/dist/index.d.mts
529
- //#region src/dotenv.d.ts
530
- interface DotenvOptions {
531
- /**
532
- * The project root directory (either absolute or relative to the current working directory).
533
- *
534
- * Defaults to `options.cwd` in `loadConfig` context, or `process.cwd()` when used as standalone.
535
- */
536
- cwd?: string;
537
- /**
538
- * What file or files to look in for environment variables (either absolute or relative
539
- * to the current working directory). For example, `.env`.
540
- * With the array type, the order enforce the env loading priority (last one overrides).
541
- */
542
- fileName?: string | string[];
543
- /**
544
- * Whether to interpolate variables within .env.
545
- *
546
- * @example
547
- * ```env
548
- * BASE_DIR="/test"
549
- * # resolves to "/test/further"
550
- * ANOTHER_DIR="${BASE_DIR}/further"
551
- * ```
552
- */
553
- interpolate?: boolean;
554
- /**
555
- * An object describing environment variables (key, value pairs).
556
- */
557
- env?: NodeJS.ProcessEnv;
558
- }
559
- declare global {
560
- var __c12_dotenv_vars__: Map<Record<string, any>, Set<string>>;
561
- } //#endregion
562
- //#region src/types.d.ts
563
- interface ConfigLayerMeta {
564
- name?: string;
565
- [key: string]: any;
566
- }
567
- type UserInputConfig = Record<string, any>;
568
- interface C12InputConfig<T extends UserInputConfig = UserInputConfig, MT extends ConfigLayerMeta = ConfigLayerMeta> {
569
- $test?: T;
570
- $development?: T;
571
- $production?: T;
572
- $env?: Record<string, T>;
573
- $meta?: MT;
574
- }
575
- interface SourceOptions<T extends UserInputConfig = UserInputConfig, MT extends ConfigLayerMeta = ConfigLayerMeta> {
576
- /** Custom meta for layer */
577
- meta?: MT;
578
- /** Layer config overrides */
579
- overrides?: T;
580
- [key: string]: any;
581
- /**
582
- * Options for cloning remote sources
583
- *
584
- * @see https://giget.unjs.io
585
- */
586
- giget?: DownloadTemplateOptions;
587
- /**
588
- * Install dependencies after cloning
589
- *
590
- * @see https://nypm.unjs.io
591
- */
592
- install?: boolean;
593
- /**
594
- * Token for cloning private sources
595
- *
596
- * @see https://giget.unjs.io#providing-token-for-private-repositories
597
- */
598
- auth?: string;
599
- }
600
- interface ConfigLayer<T extends UserInputConfig = UserInputConfig, MT extends ConfigLayerMeta = ConfigLayerMeta> {
601
- config: T | null;
602
- source?: string;
603
- sourceOptions?: SourceOptions<T, MT>;
604
- meta?: MT;
605
- cwd?: string;
606
- configFile?: string;
607
- }
608
- interface ResolvedConfig<T extends UserInputConfig = UserInputConfig, MT extends ConfigLayerMeta = ConfigLayerMeta> extends ConfigLayer<T, MT> {
609
- config: T;
610
- layers?: ConfigLayer<T, MT>[];
611
- cwd?: string;
612
- _configFile?: string;
613
- }
614
- type ConfigSource = "overrides" | "main" | "rc" | "packageJson" | "defaultConfig";
615
- interface ConfigFunctionContext {
616
- [key: string]: any;
617
- }
618
- interface ResolvableConfigContext<T extends UserInputConfig = UserInputConfig> {
619
- configs: Record<ConfigSource, T | null | undefined>;
620
- rawConfigs: Record<ConfigSource, ResolvableConfig<T> | null | undefined>;
621
- }
622
- type MaybePromise$1<T> = T | Promise<T>;
623
- type ResolvableConfig<T extends UserInputConfig = UserInputConfig> = MaybePromise$1<T | null | undefined> | ((ctx: ResolvableConfigContext<T>) => MaybePromise$1<T | null | undefined>);
624
- interface LoadConfigOptions$2<T extends UserInputConfig = UserInputConfig, MT extends ConfigLayerMeta = ConfigLayerMeta> {
625
- name?: string;
626
- cwd?: string;
627
- configFile?: string;
628
- rcFile?: false | string;
629
- globalRc?: boolean;
630
- dotenv?: boolean | DotenvOptions;
631
- envName?: string | false;
632
- packageJson?: boolean | string | string[];
633
- defaults?: T;
634
- defaultConfig?: ResolvableConfig<T>;
635
- overrides?: ResolvableConfig<T>;
636
- omit$Keys?: boolean;
637
- /** Context passed to config functions */
638
- context?: ConfigFunctionContext;
639
- resolve?: (id: string, options: LoadConfigOptions$2<T, MT>) => null | undefined | ResolvedConfig<T, MT> | Promise<ResolvedConfig<T, MT> | undefined | null>;
640
- jiti?: Jiti;
641
- jitiOptions?: JitiOptions;
642
- giget?: false | DownloadTemplateOptions;
643
- merger?: (...sources: Array<T | null | undefined>) => T;
644
- extend?: false | {
645
- extendKey?: string | string[];
646
- };
647
- configFileRequired?: boolean;
648
- }
649
- //#endregion
650
- //#region src/watch.d.ts
651
- type DiffEntries = ReturnType<typeof diff>;
652
- type ConfigWatcher<T extends UserInputConfig = UserInputConfig, MT extends ConfigLayerMeta = ConfigLayerMeta> = ResolvedConfig<T, MT> & {
653
- watchingFiles: string[];
654
- unwatch: () => Promise<void>;
655
- };
656
- interface WatchConfigOptions<T extends UserInputConfig = UserInputConfig, MT extends ConfigLayerMeta = ConfigLayerMeta> extends LoadConfigOptions$2<T, MT> {
657
- chokidarOptions?: ChokidarOptions;
658
- debounce?: false | number;
659
- onWatch?: (event: {
660
- type: "created" | "updated" | "removed";
661
- path: string;
662
- }) => void | Promise<void>;
663
- acceptHMR?: (context: {
664
- getDiff: () => DiffEntries;
665
- newConfig: ResolvedConfig<T, MT>;
666
- oldConfig: ResolvedConfig<T, MT>;
667
- }) => void | boolean | Promise<void | boolean>;
668
- onUpdate?: (context: {
669
- getDiff: () => ReturnType<typeof diff>;
670
- newConfig: ResolvedConfig<T, MT>;
671
- oldConfig: ResolvedConfig<T, MT>;
672
- }) => void | Promise<void>;
673
- }
674
- //#endregion
675
- //#region node_modules/.pnpm/compatx@0.2.0/node_modules/compatx/dist/index.d.mts
676
- /**
677
- * Known platform names
678
- */
679
- declare const platforms: readonly ["aws", "azure", "cloudflare", "deno", "firebase", "netlify", "vercel"];
680
- /**
681
- * Known platform name
682
- */
683
- type PlatformName = (typeof platforms)[number] | (string & {});
684
- /**
685
- * Normalize the compatibility dates from input config and defaults.
686
- */
687
- type Year = `${number}${number}${number}${number}`;
688
- type Month = `${"0" | "1"}${number}`;
689
- type Day = `${"0" | "1" | "2" | "3"}${number}`;
690
- /**
691
- * Typed date string in `YYYY-MM-DD` format
692
- *
693
- * Empty string is used to represent an "unspecified" date.
694
- *
695
- * "latest" is used to represent the latest date available (date of today).
696
- */
697
- type DateString = "" | "latest" | `${Year}-${Month}-${Day}`;
698
- /**
699
- * Last known compatibility dates for platforms
700
- *
701
- * @example
702
- * {
703
- * "default": "2024-01-01",
704
- * "cloudflare": "2024-03-01",
705
- * }
706
- */
707
- type CompatibilityDates = {
708
- /**
709
- * Default compatibility date for all unspecified platforms (required)
710
- */
711
- default: DateString;
712
- } & Partial<Record<PlatformName, DateString>>;
713
- /**
714
- * Last known compatibility date for the used platform
715
- */
716
- type CompatibilityDateSpec = DateString | Partial<CompatibilityDates>;
717
- /**
718
- * Get compatibility updates applicable for the user given platform and date range.
719
- */
720
- //#endregion
721
- //#region node_modules/.pnpm/httpxy@0.1.7/node_modules/httpxy/dist/index.d.ts
722
- interface ProxyTargetDetailed {
723
- host: string;
724
- port: number;
725
- protocol?: string;
726
- hostname?: string;
727
- socketPath?: string;
728
- key?: string;
729
- passphrase?: string;
730
- pfx?: Buffer | string;
731
- cert?: string;
732
- ca?: string;
733
- ciphers?: string;
734
- secureProtocol?: string;
735
- }
736
- type ProxyTarget = ProxyTargetUrl | ProxyTargetDetailed;
737
- type ProxyTargetUrl = string | Partial<URL>;
738
- interface ProxyServerOptions {
739
- /** URL string to be parsed with the url module. */
740
- target?: ProxyTarget;
741
- /** URL string to be parsed with the url module. */
742
- forward?: ProxyTargetUrl;
743
- /** Object to be passed to http(s).request. */
744
- agent?: any;
745
- /** Object to be passed to https.createServer(). */
746
- ssl?: any;
747
- /** If you want to proxy websockets. */
748
- ws?: boolean;
749
- /** Adds x- forward headers. */
750
- xfwd?: boolean;
751
- /** Verify SSL certificate. */
752
- secure?: boolean;
753
- /** Explicitly specify if we are proxying to another proxy. */
754
- toProxy?: boolean;
755
- /** Specify whether you want to prepend the target's path to the proxy path. */
756
- prependPath?: boolean;
757
- /** Specify whether you want to ignore the proxy path of the incoming request. */
758
- ignorePath?: boolean;
759
- /** Local interface string to bind for outgoing connections. */
760
- localAddress?: string;
761
- /** Changes the origin of the host header to the target URL. */
762
- changeOrigin?: boolean;
763
- /** specify whether you want to keep letter case of response header key */
764
- preserveHeaderKeyCase?: boolean;
765
- /** Basic authentication i.e. 'user:password' to compute an Authorization header. */
766
- auth?: string;
767
- /** Rewrites the location hostname on (301 / 302 / 307 / 308) redirects, Default: null. */
768
- hostRewrite?: string;
769
- /** Rewrites the location host/ port on (301 / 302 / 307 / 308) redirects based on requested host/ port.Default: false. */
770
- autoRewrite?: boolean;
771
- /** Rewrites the location protocol on (301 / 302 / 307 / 308) redirects to 'http' or 'https'.Default: null. */
772
- protocolRewrite?: string;
773
- /** Rewrites domain of set-cookie headers. */
774
- cookieDomainRewrite?: false | string | {
775
- [oldDomain: string]: string;
776
- };
777
- /** Rewrites path of set-cookie headers. Default: false */
778
- cookiePathRewrite?: false | string | {
779
- [oldPath: string]: string;
780
- };
781
- /** Object with extra headers to be added to target requests. */
782
- headers?: {
783
- [header: string]: string;
784
- };
785
- /** Timeout (in milliseconds) when proxy receives no response from target. Default: 120000 (2 minutes) */
786
- proxyTimeout?: number;
787
- /** Timeout (in milliseconds) for incoming requests */
788
- timeout?: number;
789
- /** If set to true, none of the webOutgoing passes are called and it's your responsibility to appropriately return the response by listening and acting on the proxyRes event */
790
- selfHandleResponse?: boolean;
791
- /** Buffer */
792
- buffer?: stream.Stream;
793
- }
794
- //#endregion
795
228
  //#region src/presets/aws-amplify/types.d.ts
796
229
  type AmplifyImageSettings = {
797
230
  /** Array of supported image widths */sizes: number[];
@@ -2275,7 +1708,7 @@ interface VercelServerlessFunctionConfig {
2275
1708
  /**
2276
1709
  * The runtime to use. Defaults to the auto-detected Node.js version.
2277
1710
  */
2278
- runtime?: "nodejs20.x" | "nodejs22.x" | "bun1.x" | (string & {});
1711
+ runtime?: "nodejs20.x" | "nodejs22.x" | "bun1.x" | string & {};
2279
1712
  [key: string]: unknown;
2280
1713
  }
2281
1714
  interface VercelOptions {
@@ -2314,764 +1747,7 @@ interface PresetOptions {
2314
1747
  vercel?: VercelOptions;
2315
1748
  }
2316
1749
  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";
2317
- 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 & {});
2318
- //#endregion
2319
- //#region node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.d.mts
2320
- type StripEnums<T extends Record<string, any>> = { [K in keyof T]: T[K] extends boolean ? T[K] : T[K] extends string ? T[K] : T[K] extends object ? T[K] : T[K] extends Array<any> ? T[K] : T[K] extends undefined ? undefined : any };
2321
- interface TSConfig {
2322
- compilerOptions?: StripEnums<CompilerOptions>;
2323
- exclude?: string[];
2324
- compileOnSave?: boolean;
2325
- extends?: string | string[];
2326
- files?: string[];
2327
- include?: string[];
2328
- typeAcquisition?: TypeAcquisition;
2329
- references?: {
2330
- path: string;
2331
- }[];
2332
- }
2333
- /**
2334
- * Defines a TSConfig structure.
2335
- * @param tsconfig - The contents of `tsconfig.json` as an object. See {@link TSConfig}.
2336
- * @returns the same `tsconfig.json` object.
2337
- */
2338
- //#endregion
2339
- //#region node_modules/.pnpm/esbuild@0.27.2/node_modules/esbuild/lib/main.d.ts
2340
- // Note: These declarations exist to avoid type errors when you omit "dom" from
2341
- // "lib" in your "tsconfig.json" file. TypeScript confusingly declares the
2342
- // global "WebAssembly" type in "lib.dom.d.ts" even though it has nothing to do
2343
- // with the browser DOM and is present in many non-browser JavaScript runtimes
2344
- // (e.g. node and deno). Declaring it here allows esbuild's API to be used in
2345
- // these scenarios.
2346
- //
2347
- // There's an open issue about getting this problem corrected (although these
2348
- // declarations will need to remain even if this is fixed for backward
2349
- // compatibility with older TypeScript versions):
2350
- //
2351
- // https://github.com/microsoft/TypeScript-DOM-lib-generator/issues/826
2352
- //
2353
- declare global {
2354
- namespace WebAssembly {
2355
- interface Module {}
2356
- }
2357
- interface URL {}
2358
- }
2359
- //#endregion
2360
- //#region node_modules/.pnpm/unplugin-utils@0.3.1/node_modules/unplugin-utils/dist/index.d.ts
2361
- //#region src/filter.d.ts
2362
- /**
2363
- * A valid `picomatch` glob pattern, or array of patterns.
2364
- */
2365
- type FilterPattern = ReadonlyArray<string | RegExp> | string | RegExp | null;
2366
- /**
2367
- * Constructs a filter function which can be used to determine whether or not
2368
- * certain modules should be operated upon.
2369
- * @param include If `include` is omitted or has zero length, filter will return `true` by default.
2370
- * @param exclude ID must not match any of the `exclude` patterns.
2371
- * @param options Additional options.
2372
- * @param options.resolve Optionally resolves the patterns against a directory other than `process.cwd()`.
2373
- * If a `string` is specified, then the value will be used as the base directory.
2374
- * Relative paths will be resolved against `process.cwd()` first.
2375
- * If `false`, then the patterns will not be resolved against any directory.
2376
- * This can be useful if you want to create a filter for virtual module names.
2377
- */
2378
- //#endregion
2379
- //#region node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.d.mts
2380
- interface SourceMapOptions {
2381
- /**
2382
- * Whether the mapping should be high-resolution.
2383
- * Hi-res mappings map every single character, meaning (for example) your devtools will always
2384
- * be able to pinpoint the exact location of function calls and so on.
2385
- * With lo-res mappings, devtools may only be able to identify the correct
2386
- * line - but they're quicker to generate and less bulky.
2387
- * You can also set `"boundary"` to generate a semi-hi-res mappings segmented per word boundary
2388
- * instead of per character, suitable for string semantics that are separated by words.
2389
- * If sourcemap locations have been specified with s.addSourceMapLocation(), they will be used here.
2390
- */
2391
- hires?: boolean | 'boundary';
2392
- /**
2393
- * The filename where you plan to write the sourcemap.
2394
- */
2395
- file?: string;
2396
- /**
2397
- * The filename of the file containing the original source.
2398
- */
2399
- source?: string;
2400
- /**
2401
- * Whether to include the original content in the map's sourcesContent array.
2402
- */
2403
- includeContent?: boolean;
2404
- }
2405
- type SourceMapSegment = [number] | [number, number, number, number] | [number, number, number, number, number];
2406
- interface DecodedSourceMap {
2407
- file: string;
2408
- sources: string[];
2409
- sourcesContent?: string[];
2410
- names: string[];
2411
- mappings: SourceMapSegment[][];
2412
- x_google_ignoreList?: number[];
2413
- }
2414
- declare class SourceMap {
2415
- constructor(properties: DecodedSourceMap);
2416
- version: number;
2417
- file: string;
2418
- sources: string[];
2419
- sourcesContent?: string[];
2420
- names: string[];
2421
- mappings: string;
2422
- x_google_ignoreList?: number[];
2423
- debugId?: string;
2424
- /**
2425
- * Returns the equivalent of `JSON.stringify(map)`
2426
- */
2427
- toString(): string;
2428
- /**
2429
- * Returns a DataURI containing the sourcemap. Useful for doing this sort of thing:
2430
- * `generateMap(options?: SourceMapOptions): SourceMap;`
2431
- */
2432
- toUrl(): string;
2433
- }
2434
- type ExclusionRange = [number, number];
2435
- interface MagicStringOptions {
2436
- filename?: string;
2437
- indentExclusionRanges?: ExclusionRange | Array<ExclusionRange>;
2438
- offset?: number;
2439
- }
2440
- interface IndentOptions {
2441
- exclude?: ExclusionRange | Array<ExclusionRange>;
2442
- indentStart?: boolean;
2443
- }
2444
- interface OverwriteOptions {
2445
- storeName?: boolean;
2446
- contentOnly?: boolean;
2447
- }
2448
- interface UpdateOptions {
2449
- storeName?: boolean;
2450
- overwrite?: boolean;
2451
- }
2452
- declare class MagicString {
2453
- constructor(str: string, options?: MagicStringOptions);
2454
- /**
2455
- * Adds the specified character index (with respect to the original string) to sourcemap mappings, if `hires` is false.
2456
- */
2457
- addSourcemapLocation(char: number): void;
2458
- /**
2459
- * Appends the specified content to the end of the string.
2460
- */
2461
- append(content: string): this;
2462
- /**
2463
- * Appends the specified content at the index in the original string.
2464
- * If a range *ending* with index is subsequently moved, the insert will be moved with it.
2465
- * See also `s.prependLeft(...)`.
2466
- */
2467
- appendLeft(index: number, content: string): this;
2468
- /**
2469
- * Appends the specified content at the index in the original string.
2470
- * If a range *starting* with index is subsequently moved, the insert will be moved with it.
2471
- * See also `s.prependRight(...)`.
2472
- */
2473
- appendRight(index: number, content: string): this;
2474
- /**
2475
- * Does what you'd expect.
2476
- */
2477
- clone(): this;
2478
- /**
2479
- * Generates a version 3 sourcemap.
2480
- */
2481
- generateMap(options?: SourceMapOptions): SourceMap;
2482
- /**
2483
- * Generates a sourcemap object with raw mappings in array form, rather than encoded as a string.
2484
- * Useful if you need to manipulate the sourcemap further, but most of the time you will use `generateMap` instead.
2485
- */
2486
- generateDecodedMap(options?: SourceMapOptions): DecodedSourceMap;
2487
- getIndentString(): string;
2488
- /**
2489
- * Prefixes each line of the string with prefix.
2490
- * If prefix is not supplied, the indentation will be guessed from the original content, falling back to a single tab character.
2491
- */
2492
- indent(options?: IndentOptions): this;
2493
- /**
2494
- * Prefixes each line of the string with prefix.
2495
- * If prefix is not supplied, the indentation will be guessed from the original content, falling back to a single tab character.
2496
- *
2497
- * The options argument can have an exclude property, which is an array of [start, end] character ranges.
2498
- * These ranges will be excluded from the indentation - useful for (e.g.) multiline strings.
2499
- */
2500
- indent(indentStr?: string, options?: IndentOptions): this;
2501
- indentExclusionRanges: ExclusionRange | Array<ExclusionRange>;
2502
- /**
2503
- * Moves the characters from `start` and `end` to `index`.
2504
- */
2505
- move(start: number, end: number, index: number): this;
2506
- /**
2507
- * Replaces the characters from `start` to `end` with `content`, along with the appended/prepended content in
2508
- * that range. The same restrictions as `s.remove()` apply.
2509
- *
2510
- * The fourth argument is optional. It can have a storeName property — if true, the original name will be stored
2511
- * for later inclusion in a sourcemap's names array — and a contentOnly property which determines whether only
2512
- * the content is overwritten, or anything that was appended/prepended to the range as well.
2513
- *
2514
- * It may be preferred to use `s.update(...)` instead if you wish to avoid overwriting the appended/prepended content.
2515
- */
2516
- overwrite(start: number, end: number, content: string, options?: boolean | OverwriteOptions): this;
2517
- /**
2518
- * Replaces the characters from `start` to `end` with `content`. The same restrictions as `s.remove()` apply.
2519
- *
2520
- * The fourth argument is optional. It can have a storeName property — if true, the original name will be stored
2521
- * for later inclusion in a sourcemap's names array — and an overwrite property which determines whether only
2522
- * the content is overwritten, or anything that was appended/prepended to the range as well.
2523
- */
2524
- update(start: number, end: number, content: string, options?: boolean | UpdateOptions): this;
2525
- /**
2526
- * Prepends the string with the specified content.
2527
- */
2528
- prepend(content: string): this;
2529
- /**
2530
- * Same as `s.appendLeft(...)`, except that the inserted content will go *before* any previous appends or prepends at index
2531
- */
2532
- prependLeft(index: number, content: string): this;
2533
- /**
2534
- * Same as `s.appendRight(...)`, except that the inserted content will go *before* any previous appends or prepends at `index`
2535
- */
2536
- prependRight(index: number, content: string): this;
2537
- /**
2538
- * Removes the characters from `start` to `end` (of the original string, **not** the generated string).
2539
- * Removing the same content twice, or making removals that partially overlap, will cause an error.
2540
- */
2541
- remove(start: number, end: number): this;
2542
- /**
2543
- * Reset the modified characters from `start` to `end` (of the original string, **not** the generated string).
2544
- */
2545
- reset(start: number, end: number): this;
2546
- /**
2547
- * Returns the content of the generated string that corresponds to the slice between `start` and `end` of the original string.
2548
- * Throws error if the indices are for characters that were already removed.
2549
- */
2550
- slice(start: number, end: number): string;
2551
- /**
2552
- * Returns a clone of `s`, with all content before the `start` and `end` characters of the original string removed.
2553
- */
2554
- snip(start: number, end: number): this;
2555
- /**
2556
- * Trims content matching `charType` (defaults to `\s`, i.e. whitespace) from the start and end.
2557
- */
2558
- trim(charType?: string): this;
2559
- /**
2560
- * Trims content matching `charType` (defaults to `\s`, i.e. whitespace) from the start.
2561
- */
2562
- trimStart(charType?: string): this;
2563
- /**
2564
- * Trims content matching `charType` (defaults to `\s`, i.e. whitespace) from the end.
2565
- */
2566
- trimEnd(charType?: string): this;
2567
- /**
2568
- * Removes empty lines from the start and end.
2569
- */
2570
- trimLines(): this;
2571
- /**
2572
- * String replacement with RegExp or string.
2573
- */
2574
- replace(regex: RegExp | string, replacement: string | ((substring: string, ...args: any[]) => string)): this;
2575
- /**
2576
- * Same as `s.replace`, but replace all matched strings instead of just one.
2577
- */
2578
- replaceAll(regex: RegExp | string, replacement: string | ((substring: string, ...args: any[]) => string)): this;
2579
- lastChar(): string;
2580
- lastLine(): string;
2581
- /**
2582
- * Returns true if the resulting source is empty (disregarding white space).
2583
- */
2584
- isEmpty(): boolean;
2585
- length(): number;
2586
- /**
2587
- * Indicates if the string has been changed.
2588
- */
2589
- hasChanged(): boolean;
2590
- original: string;
2591
- /**
2592
- * Returns the generated string.
2593
- */
2594
- toString(): string;
2595
- offset: number;
2596
- }
2597
- //#endregion
2598
- //#region node_modules/.pnpm/mlly@1.8.0/node_modules/mlly/dist/index.d.ts
2599
- /**
2600
- * Represents a general structure for ECMAScript module exports.
2601
- */
2602
- interface ESMExport {
2603
- /**
2604
- * Optional explicit type for complex scenarios, often used internally.
2605
- * @optional
2606
- */
2607
- _type?: "declaration" | "named" | "default" | "star";
2608
- /**
2609
- * The type of export (declaration, named, default or star).
2610
- */
2611
- type: "declaration" | "named" | "default" | "star";
2612
- /**
2613
- * The specific type of declaration being exported, if applicable.
2614
- * @optional
2615
- */
2616
- declarationType?: "let" | "var" | "const" | "enum" | "const enum" | "class" | "function" | "async function";
2617
- /**
2618
- * The full code snippet of the export statement.
2619
- */
2620
- code: string;
2621
- /**
2622
- * The starting position (index) of the export declaration in the source code.
2623
- */
2624
- start: number;
2625
- /**
2626
- * The end position (index) of the export declaration in the source code.
2627
- */
2628
- end: number;
2629
- /**
2630
- * The name of the variable, function or class being exported, if given explicitly.
2631
- * @optional
2632
- */
2633
- name?: string;
2634
- /**
2635
- * The name used for default exports when a specific identifier isn't given.
2636
- * @optional
2637
- */
2638
- defaultName?: string;
2639
- /**
2640
- * An array of names to export, applicable to named and destructured exports.
2641
- */
2642
- names: string[];
2643
- /**
2644
- * The module specifier, if any, from which exports are being re-exported.
2645
- * @optional
2646
- */
2647
- specifier?: string;
2648
- }
2649
- /**
2650
- * Represents a declaration export within an ECMAScript module.
2651
- * Extends {@link ESMExport}.
2652
- */
2653
- //#endregion
2654
- //#region node_modules/.pnpm/unimport@5.6.0/node_modules/unimport/dist/shared/unimport.C0UbTDPO.d.mts
2655
- declare const builtinPresets: {
2656
- '@vue/composition-api': InlinePreset;
2657
- '@vueuse/core': () => Preset$1;
2658
- '@vueuse/head': InlinePreset;
2659
- pinia: InlinePreset;
2660
- preact: InlinePreset;
2661
- quasar: InlinePreset;
2662
- react: InlinePreset;
2663
- 'react-router': InlinePreset;
2664
- 'react-router-dom': InlinePreset;
2665
- svelte: InlinePreset;
2666
- 'svelte/animate': InlinePreset;
2667
- 'svelte/easing': InlinePreset;
2668
- 'svelte/motion': InlinePreset;
2669
- 'svelte/store': InlinePreset;
2670
- 'svelte/transition': InlinePreset;
2671
- 'vee-validate': InlinePreset;
2672
- vitepress: InlinePreset;
2673
- 'vue-demi': InlinePreset;
2674
- 'vue-i18n': InlinePreset;
2675
- 'vue-router': InlinePreset;
2676
- 'vue-router-composables': InlinePreset;
2677
- vue: InlinePreset;
2678
- 'vue/macros': InlinePreset;
2679
- vuex: InlinePreset;
2680
- vitest: InlinePreset;
2681
- 'uni-app': InlinePreset;
2682
- 'solid-js': InlinePreset;
2683
- 'solid-app-router': InlinePreset;
2684
- rxjs: InlinePreset;
2685
- 'date-fns': InlinePreset;
2686
- };
2687
- type BuiltinPresetName = keyof typeof builtinPresets;
2688
- type ModuleId = string;
2689
- type ImportName = string;
2690
- interface ImportCommon {
2691
- /** Module specifier to import from */
2692
- from: ModuleId;
2693
- /**
2694
- * Priority of the import, if multiple imports have the same name, the one with the highest priority will be used
2695
- * @default 1
2696
- */
2697
- priority?: number;
2698
- /** If this import is disabled */
2699
- disabled?: boolean;
2700
- /** Won't output import in declaration file if true */
2701
- dtsDisabled?: boolean;
2702
- /** Import declaration type like const / var / enum */
2703
- declarationType?: ESMExport['declarationType'];
2704
- /**
2705
- * Metadata of the import
2706
- */
2707
- meta?: {
2708
- /** Short description of the import */description?: string; /** URL to the documentation */
2709
- docsUrl?: string; /** Additional metadata */
2710
- [key: string]: any;
2711
- };
2712
- /**
2713
- * If this import is a pure type import
2714
- */
2715
- type?: boolean;
2716
- /**
2717
- * Using this as the from when generating type declarations
2718
- */
2719
- typeFrom?: ModuleId;
2720
- }
2721
- interface Import extends ImportCommon {
2722
- /** Import name to be detected */
2723
- name: ImportName;
2724
- /** Import as this name */
2725
- as?: ImportName;
2726
- /**
2727
- * With properties
2728
- *
2729
- * Ignored for CJS imports.
2730
- */
2731
- with?: Record<string, string>;
2732
- }
2733
- type PresetImport = Omit<Import, 'from'> | ImportName | [name: ImportName, as?: ImportName, from?: ModuleId];
2734
- interface InlinePreset extends ImportCommon {
2735
- imports: (PresetImport | InlinePreset)[];
2736
- }
2737
- /**
2738
- * Auto extract exports from a package for auto import
2739
- */
2740
- interface PackagePreset {
2741
- /**
2742
- * Name of the package
2743
- */
2744
- package: string;
2745
- /**
2746
- * Path of the importer
2747
- * @default process.cwd()
2748
- */
2749
- url?: string;
2750
- /**
2751
- * RegExp, string, or custom function to exclude names of the extracted imports
2752
- */
2753
- ignore?: (string | RegExp | ((name: string) => boolean))[];
2754
- /**
2755
- * Use local cache if exits
2756
- * @default true
2757
- */
2758
- cache?: boolean;
2759
- }
2760
- type Preset$1 = InlinePreset | PackagePreset;
2761
- interface UnimportContext {
2762
- readonly version: string;
2763
- options: Partial<UnimportOptions>;
2764
- staticImports: Import[];
2765
- dynamicImports: Import[];
2766
- addons: Addon[];
2767
- getImports: () => Promise<Import[]>;
2768
- getImportMap: () => Promise<Map<string, Import>>;
2769
- getMetadata: () => UnimportMeta | undefined;
2770
- modifyDynamicImports: (fn: (imports: Import[]) => Thenable<void | Import[]>) => Promise<void>;
2771
- clearDynamicImports: () => void;
2772
- replaceImports: (imports: UnimportOptions['imports']) => Promise<Import[]>;
2773
- invalidate: () => void;
2774
- resolveId: (id: string, parentId?: string) => Thenable<string | null | undefined | void>;
2775
- }
2776
- interface DetectImportResult {
2777
- s: MagicString;
2778
- strippedCode: string;
2779
- isCJSContext: boolean;
2780
- matchedImports: Import[];
2781
- firstOccurrence: number;
2782
- }
2783
- interface Unimport {
2784
- readonly version: string;
2785
- init: () => Promise<void>;
2786
- clearDynamicImports: UnimportContext['clearDynamicImports'];
2787
- getImportMap: UnimportContext['getImportMap'];
2788
- getImports: UnimportContext['getImports'];
2789
- getInternalContext: () => UnimportContext;
2790
- getMetadata: UnimportContext['getMetadata'];
2791
- modifyDynamicImports: UnimportContext['modifyDynamicImports'];
2792
- generateTypeDeclarations: (options?: TypeDeclarationOptions) => Promise<string>;
2793
- /**
2794
- * Get un-imported usages from code
2795
- */
2796
- detectImports: (code: string | MagicString) => Promise<DetectImportResult>;
2797
- /**
2798
- * Insert missing imports statements to code
2799
- */
2800
- injectImports: (code: string | MagicString, id?: string, options?: InjectImportsOptions) => Promise<ImportInjectionResult>;
2801
- scanImportsFromDir: (dir?: (string | ScanDir)[], options?: ScanDirExportsOptions) => Promise<Import[]>;
2802
- scanImportsFromFile: (file: string, includeTypes?: boolean) => Promise<Import[]>;
2803
- /**
2804
- * @deprecated
2805
- */
2806
- toExports: (filepath?: string, includeTypes?: boolean) => Promise<string>;
2807
- }
2808
- interface InjectionUsageRecord {
2809
- import: Import;
2810
- count: number;
2811
- moduleIds: string[];
2812
- }
2813
- interface UnimportMeta {
2814
- injectionUsage: Record<string, InjectionUsageRecord>;
2815
- }
2816
- interface AddonsOptions {
2817
- addons?: Addon[];
2818
- /**
2819
- * Enable auto import inside for Vue's <template>
2820
- *
2821
- * @default false
2822
- */
2823
- vueTemplate?: boolean;
2824
- /**
2825
- * Enable auto import directives for Vue's SFC.
2826
- *
2827
- * Library authors should include `meta.vueDirective: true` in the import metadata.
2828
- *
2829
- * When using a local directives folder, provide the `isDirective`
2830
- * callback to check if the import is a Vue directive.
2831
- */
2832
- vueDirectives?: true | AddonVueDirectivesOptions;
2833
- }
2834
- interface AddonVueDirectivesOptions {
2835
- /**
2836
- * Checks if the import is a Vue directive.
2837
- *
2838
- * **NOTES**:
2839
- * - imports from a library should include `meta.vueDirective: true`.
2840
- * - this callback is only invoked for local directives (only when meta.vueDirective is not set).
2841
- *
2842
- * @param from The path of the import normalized.
2843
- * @param importEntry The import entry.
2844
- */
2845
- isDirective?: (from: string, importEntry: Import) => boolean;
2846
- }
2847
- interface UnimportOptions extends Pick<InjectImportsOptions, 'injectAtEnd' | 'mergeExisting' | 'parser'> {
2848
- /**
2849
- * Auto import items
2850
- */
2851
- imports: Import[];
2852
- /**
2853
- * Auto import preset
2854
- */
2855
- presets: (Preset$1 | BuiltinPresetName)[];
2856
- /**
2857
- * Custom warning function
2858
- * @default console.warn
2859
- */
2860
- warn: (msg: string) => void;
2861
- /**
2862
- * Custom debug log function
2863
- * @default console.log
2864
- */
2865
- debugLog: (msg: string) => void;
2866
- /**
2867
- * Unimport Addons.
2868
- * To use built-in addons, use:
2869
- * ```js
2870
- * addons: {
2871
- * addons: [<custom-addons-here>] // if you want to use also custom addons
2872
- * vueTemplate: true,
2873
- * vueDirectives: [<the-directives-here>]
2874
- * }
2875
- * ```
2876
- *
2877
- * Built-in addons:
2878
- * - vueDirectives: enable auto import directives for Vue's SFC
2879
- * - vueTemplate: enable auto import inside for Vue's <template>
2880
- *
2881
- * @default {}
2882
- */
2883
- addons: AddonsOptions | Addon[];
2884
- /**
2885
- * Name of virtual modules that exposed all the registed auto-imports
2886
- * @default []
2887
- */
2888
- virtualImports: string[];
2889
- /**
2890
- * Directories to scan for auto import
2891
- * @default []
2892
- */
2893
- dirs?: (string | ScanDir)[];
2894
- /**
2895
- * Options for scanning directories for auto import
2896
- */
2897
- dirsScanOptions?: ScanDirExportsOptions;
2898
- /**
2899
- * Custom resolver to auto import id
2900
- */
2901
- resolveId?: (id: string, importee?: string) => Thenable<string | void>;
2902
- /**
2903
- * Custom magic comments to be opt-out for auto import, per file/module
2904
- *
2905
- * @default ['@unimport-disable', '@imports-disable']
2906
- */
2907
- commentsDisable?: string[];
2908
- /**
2909
- * Custom magic comments to debug auto import, printed to console
2910
- *
2911
- * @default ['@unimport-debug', '@imports-debug']
2912
- */
2913
- commentsDebug?: string[];
2914
- /**
2915
- * Collect meta data for each auto import. Accessible via `ctx.meta`
2916
- */
2917
- collectMeta?: boolean;
2918
- }
2919
- type PathFromResolver = (_import: Import) => string | undefined;
2920
- interface ScanDirExportsOptions {
2921
- /**
2922
- * Glob patterns for matching files
2923
- *
2924
- * @default ['*.{ts,js,mjs,cjs,mts,cts,tsx,jsx}']
2925
- */
2926
- filePatterns?: string[];
2927
- /**
2928
- * Custom function to filter scanned files
2929
- */
2930
- fileFilter?: (file: string) => boolean;
2931
- /**
2932
- * Register type exports
2933
- *
2934
- * @default true
2935
- */
2936
- types?: boolean;
2937
- /**
2938
- * Current working directory
2939
- *
2940
- * @default process.cwd()
2941
- */
2942
- cwd?: string;
2943
- }
2944
- interface ScanDir {
2945
- /**
2946
- * Path pattern of the directory
2947
- */
2948
- glob: string;
2949
- /**
2950
- * Register type exports
2951
- *
2952
- * @default true
2953
- */
2954
- types?: boolean;
2955
- }
2956
- interface TypeDeclarationOptions {
2957
- /**
2958
- * Custom resolver for path of the import
2959
- */
2960
- resolvePath?: PathFromResolver;
2961
- /**
2962
- * Append `export {}` to the end of the file
2963
- *
2964
- * @default true
2965
- */
2966
- exportHelper?: boolean;
2967
- /**
2968
- * Auto-import for type exports
2969
- *
2970
- * @default true
2971
- */
2972
- typeReExports?: boolean;
2973
- }
2974
- interface InjectImportsOptions {
2975
- /**
2976
- * Merge the existing imports
2977
- *
2978
- * @default false
2979
- */
2980
- mergeExisting?: boolean;
2981
- /**
2982
- * If the module should be auto imported
2983
- *
2984
- * @default true
2985
- */
2986
- autoImport?: boolean;
2987
- /**
2988
- * If the module should be transformed for virtual modules.
2989
- * Only available when `virtualImports` is set.
2990
- *
2991
- * @default true
2992
- */
2993
- transformVirtualImports?: boolean;
2994
- /**
2995
- * Parser to use for parsing the code
2996
- *
2997
- * Note that `acorn` only takes valid JS Code, should usually only be used after transformationa and transpilation
2998
- *
2999
- * @default 'regex'
3000
- */
3001
- parser?: 'acorn' | 'regex';
3002
- /**
3003
- * Inject the imports at the end of other imports
3004
- *
3005
- * @default false
3006
- */
3007
- injectAtEnd?: boolean;
3008
- }
3009
- type Thenable<T> = Promise<T> | T;
3010
- interface Addon {
3011
- name?: string;
3012
- transform?: (this: UnimportContext, code: MagicString, id: string | undefined) => Thenable<MagicString>;
3013
- declaration?: (this: UnimportContext, dts: string, options: TypeDeclarationOptions) => Thenable<string>;
3014
- matchImports?: (this: UnimportContext, identifiers: Set<string>, matched: Import[]) => Thenable<Import[] | void>;
3015
- /**
3016
- * Extend or modify the imports list before injecting
3017
- */
3018
- extendImports?: (this: UnimportContext, imports: Import[]) => Import[] | void;
3019
- /**
3020
- * Resolve imports before injecting
3021
- */
3022
- injectImportsResolved?: (this: UnimportContext, imports: Import[], code: MagicString, id?: string) => Import[] | void;
3023
- /**
3024
- * Modify the injection code before injecting
3025
- */
3026
- injectImportsStringified?: (this: UnimportContext, injection: string, imports: Import[], code: MagicString, id?: string) => string | void;
3027
- }
3028
- interface MagicStringResult {
3029
- s: MagicString;
3030
- code: string;
3031
- }
3032
- interface ImportInjectionResult extends MagicStringResult {
3033
- imports: Import[];
3034
- }
3035
- //#endregion
3036
- //#region node_modules/.pnpm/unimport@5.6.0/node_modules/unimport/dist/unplugin.d.mts
3037
- interface UnimportPluginOptions extends UnimportOptions {
3038
- include: FilterPattern;
3039
- exclude: FilterPattern;
3040
- dts: boolean | string;
3041
- /**
3042
- * Enable implicit auto import.
3043
- * Generate global TypeScript definitions.
3044
- *
3045
- * @default true
3046
- */
3047
- autoImport?: boolean;
3048
- }
3049
- //#endregion
3050
- //#region node_modules/.pnpm/unwasm@0.5.3/node_modules/unwasm/dist/plugin/index.d.mts
3051
- //#region src/plugin/shared.d.ts
3052
- interface UnwasmPluginOptions {
3053
- /**
3054
- * Directly import the `.wasm` files instead of bundling as base64 string.
3055
- *
3056
- * @default false
3057
- */
3058
- esmImport?: boolean;
3059
- /**
3060
- * Avoid using top level await and always use a proxy.
3061
- *
3062
- * Useful for compatibility with environments that don't support top level await.
3063
- *
3064
- * @default false
3065
- */
3066
- lazy?: boolean;
3067
- /**
3068
- * Suppress all warnings from the plugin.
3069
- *
3070
- * @default false
3071
- */
3072
- silent?: boolean;
3073
- } //#endregion
3074
- //#region src/plugin/index.d.ts
1750
+ 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 & {};
3075
1751
  //#endregion
3076
1752
  //#region src/types/openapi-ts.d.ts
3077
1753
  /**
@@ -3698,7 +2374,7 @@ interface NitroEventHandler extends NitroHandlerCommon {
3698
2374
  * Default is `"web"`. If set to `"node"`, the handler will be converted into a web compatible handler.
3699
2375
  */
3700
2376
  format?: EventHandlerFormat;
3701
- env?: MaybeArray$1<"dev" | "prod" | "prerender" | PresetName | (string & {})>;
2377
+ env?: MaybeArray$1<"dev" | "prod" | "prerender" | PresetName | string & {}>;
3702
2378
  }
3703
2379
  interface NitroDevEventHandler extends NitroHandlerCommon {
3704
2380
  /**
@@ -3742,48 +2418,6 @@ interface PrerenderRoute {
3742
2418
  /** @deprecated Internal type will be removed in future versions */
3743
2419
  type PrerenderGenerateRoute = PrerenderRoute;
3744
2420
  //#endregion
3745
- //#region node_modules/.pnpm/rou3@0.7.12/node_modules/rou3/dist/index.d.mts
3746
- interface RouterContext<T = unknown> {
3747
- root: Node<T>;
3748
- static: Record<string, Node<T> | undefined>;
3749
- }
3750
- type ParamsIndexMap = Array<[Index: number, name: string | RegExp, optional: boolean]>;
3751
- type MethodData<T = unknown> = {
3752
- data: T;
3753
- paramsMap?: ParamsIndexMap;
3754
- paramsRegexp: RegExp[];
3755
- };
3756
- interface Node<T = unknown> {
3757
- key: string;
3758
- static?: Record<string, Node<T>>;
3759
- param?: Node<T>;
3760
- wildcard?: Node<T>;
3761
- hasRegexParam?: boolean;
3762
- methods?: Record<string, MethodData<T>[] | undefined>;
3763
- }
3764
- //#endregion
3765
- //#region node_modules/.pnpm/rou3@0.7.12/node_modules/rou3/dist/compiler.d.mts
3766
- interface RouterCompilerOptions<T = any> {
3767
- matchAll?: boolean;
3768
- serialize?: (data: T) => string;
3769
- }
3770
- /**
3771
- * Compiles the router instance into a faster route-matching function.
3772
- *
3773
- * **IMPORTANT:** `compileRouter` requires eval support with `new Function()` in the runtime for JIT compilation.
3774
- *
3775
- * @example
3776
- * import { createRouter, addRoute } from "rou3";
3777
- * import { compileRouter } from "rou3/compiler";
3778
- * const router = createRouter();
3779
- * // [add some routes]
3780
- * const findRoute = compileRouter(router);
3781
- * const matchAll = compileRouter(router, { matchAll: true });
3782
- * findRoute("GET", "/path/foo/bar");
3783
- *
3784
- * @param router - The router context to compile.
3785
- */
3786
- //#endregion
3787
2421
  //#region src/routing.d.ts
3788
2422
  interface Route<T = unknown> {
3789
2423
  route: string;
@@ -3808,7 +2442,7 @@ declare class Router<T> {
3808
2442
  //#endregion
3809
2443
  //#region src/types/_utils.d.ts
3810
2444
  type Enumerate<N extends number, Acc extends number[] = []> = Acc["length"] extends N ? Acc[number] : Enumerate<N, [...Acc, Acc["length"]]>;
3811
- type IntRange<F$1 extends number, T extends number> = Exclude<Enumerate<T>, Enumerate<F$1>>;
2445
+ type IntRange<F extends number, T extends number> = Exclude<Enumerate<T>, Enumerate<F>>;
3812
2446
  type ExcludeFunctions<G extends Record<string, any>> = Pick<G, { [P in keyof G]: NonNullable<G[P]> extends Function ? never : P }[keyof G]>;
3813
2447
  //#endregion
3814
2448
  //#region src/types/route-rules.d.ts
@@ -3821,9 +2455,9 @@ interface NitroRouteConfig {
3821
2455
  status?: HTTPstatus;
3822
2456
  };
3823
2457
  prerender?: boolean;
3824
- proxy?: string | ({
2458
+ proxy?: string | {
3825
2459
  to: string;
3826
- } & ProxyOptions);
2460
+ } & ProxyOptions;
3827
2461
  isr?: number | boolean | VercelISRConfig;
3828
2462
  cors?: boolean;
3829
2463
  swr?: boolean | number;
@@ -3839,9 +2473,9 @@ interface NitroRouteRules extends Omit<NitroRouteConfig, "redirect" | "cors" | "
3839
2473
  } & ProxyOptions;
3840
2474
  [key: string]: any;
3841
2475
  }
3842
- type MatchedRouteRule<K$1 extends keyof NitroRouteRules = "custom"> = {
3843
- name: K$1;
3844
- options: Exclude<NitroRouteRules[K$1], false>;
2476
+ type MatchedRouteRule<K extends keyof NitroRouteRules = "custom"> = {
2477
+ name: K;
2478
+ options: Exclude<NitroRouteRules[K], false>;
3845
2479
  route: string;
3846
2480
  params?: Record<string, string>;
3847
2481
  handler?: (opts: unknown) => Middleware;
@@ -3915,7 +2549,7 @@ type NitroTypes = {
3915
2549
  tsConfig?: TSConfig;
3916
2550
  };
3917
2551
  interface NitroFrameworkInfo {
3918
- name?: "nitro" | (string & {});
2552
+ name?: "nitro" | string & {};
3919
2553
  version?: string;
3920
2554
  }
3921
2555
  /** Build info written to `.output/nitro.json` or `.nitro/dev/nitro.json` */
@@ -4032,14 +2666,14 @@ interface NitroOpenAPIConfig {
4032
2666
  /**
4033
2667
  * Scalar UI configuration
4034
2668
  */
4035
- scalar?: false | (Partial<unknown> & {
2669
+ scalar?: false | Partial<unknown> & {
4036
2670
  /**
4037
2671
  * Scalar UI route
4038
2672
  *
4039
2673
  * Default is `/_scalar`
4040
2674
  */
4041
2675
  route?: string;
4042
- });
2676
+ };
4043
2677
  /**
4044
2678
  * Swagger UI configuration
4045
2679
  */
@@ -4054,9 +2688,6 @@ interface NitroOpenAPIConfig {
4054
2688
  };
4055
2689
  }
4056
2690
  //#endregion
4057
- //#region node_modules/.pnpm/std-env@3.10.0/node_modules/std-env/dist/index.d.ts
4058
- type ProviderName = "" | "appveyor" | "aws_amplify" | "azure_pipelines" | "azure_static" | "appcircle" | "bamboo" | "bitbucket" | "bitrise" | "buddy" | "buildkite" | "circle" | "cirrus" | "cloudflare_pages" | "cloudflare_workers" | "codebuild" | "codefresh" | "drone" | "drone" | "dsari" | "github_actions" | "gitlab" | "gocd" | "layerci" | "hudson" | "jenkins" | "magnum" | "netlify" | "nevercode" | "render" | "sail" | "semaphore" | "screwdriver" | "shippable" | "solano" | "strider" | "teamcity" | "travis" | "vercel" | "appcenter" | "codesandbox" | "stackblitz" | "stormkit" | "cleavr" | "zeabur" | "codesphere" | "railway" | "deno-deploy" | "firebase_app_hosting";
4059
- //#endregion
4060
2691
  //#region src/types/preset.d.ts
4061
2692
  type NitroPreset = NitroConfig | (() => NitroConfig);
4062
2693
  interface NitroPresetMeta {
@@ -4305,7 +2936,7 @@ interface NitroConfig extends Partial<Omit<NitroOptions, "routeRules" | "rollupC
4305
2936
  rollupConfig?: Partial<RollupConfig>;
4306
2937
  compatibilityDate?: CompatibilityDateSpec;
4307
2938
  unenv?: Preset | Preset[];
4308
- serverDir?: boolean | "./" | "./server" | (string & {});
2939
+ serverDir?: boolean | "./" | "./server" | string & {};
4309
2940
  serverEntry?: string | NitroOptions["serverEntry"];
4310
2941
  renderer?: false | NitroOptions["renderer"];
4311
2942
  output?: Partial<NitroOptions["output"]>;
@@ -4347,7 +2978,7 @@ interface StorageMounts {
4347
2978
  [option: string]: any;
4348
2979
  };
4349
2980
  }
4350
- type DatabaseConnectionName = "default" | (string & {});
2981
+ type DatabaseConnectionName = "default" | string & {};
4351
2982
  type DatabaseConnectionConfig = {
4352
2983
  connector: ConnectorName;
4353
2984
  options?: {