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,69 +1,6 @@
1
- import { S as MagicString } from "./acorn+confbox+js-tokens+magic-string+mlly+pkg-types+sourcemap-codec+strip-literal+unimport.mjs";
2
- import { d as walk, o as attachScopes, s as createFilter, u as makeLegalIdentifier } from "../_chunks/nitro7.mjs";
1
+ import { S as MagicString, c as createFilter, d as makeLegalIdentifier, f as walk, s as attachScopes } from "../../_build/common.mjs";
3
2
  import { sep } from "path";
4
- import path$1 from "node:path";
5
3
 
6
- //#region node_modules/.pnpm/@rollup+plugin-alias@6.0.0_rollup@4.55.2/node_modules/@rollup/plugin-alias/dist/index.js
7
- function matches(pattern, importee) {
8
- if (pattern instanceof RegExp) return pattern.test(importee);
9
- if (importee.length < pattern.length) return false;
10
- if (importee === pattern) return true;
11
- return importee.startsWith(pattern + "/");
12
- }
13
- function getEntries({ entries, customResolver }) {
14
- if (!entries) return [];
15
- const resolverFunctionFromOptions = resolveCustomResolver(customResolver);
16
- if (Array.isArray(entries)) return entries.map((entry) => {
17
- return {
18
- find: entry.find,
19
- replacement: entry.replacement,
20
- resolverFunction: resolveCustomResolver(entry.customResolver) || resolverFunctionFromOptions
21
- };
22
- });
23
- return Object.entries(entries).map(([key, value]) => {
24
- return {
25
- find: key,
26
- replacement: value,
27
- resolverFunction: resolverFunctionFromOptions
28
- };
29
- });
30
- }
31
- function getHookFunction(hook) {
32
- if (typeof hook === "function") return hook;
33
- if (hook && "handler" in hook && typeof hook.handler === "function") return hook.handler;
34
- return null;
35
- }
36
- function resolveCustomResolver(customResolver) {
37
- if (typeof customResolver === "function") return customResolver;
38
- if (customResolver) return getHookFunction(customResolver.resolveId);
39
- return null;
40
- }
41
- function alias(options = {}) {
42
- const entries = getEntries(options);
43
- if (entries.length === 0) return {
44
- name: "alias",
45
- resolveId: () => null
46
- };
47
- return {
48
- name: "alias",
49
- async buildStart(inputOptions) {
50
- await Promise.all([...Array.isArray(options.entries) ? options.entries : [], options].map(({ customResolver }) => customResolver && getHookFunction(customResolver.buildStart)?.call(this, inputOptions)));
51
- },
52
- resolveId(importee, importer, resolveOptions) {
53
- const matchedEntry = entries.find((entry) => matches(entry.find, importee));
54
- if (!matchedEntry) return null;
55
- const updatedId = importee.replace(matchedEntry.find, matchedEntry.replacement);
56
- if (matchedEntry.resolverFunction) return matchedEntry.resolverFunction.call(this, updatedId, importer, resolveOptions);
57
- return this.resolve(updatedId, importer, Object.assign({ skipSelf: true }, resolveOptions)).then((resolved) => {
58
- if (resolved) return resolved;
59
- if (!path$1.isAbsolute(updatedId)) this.warn(`rewrote ${importee} to ${updatedId} but was not an absolute path and was not handled by other plugins. This will lead to duplicated modules for the same path. To avoid duplicating modules, you should resolve to an absolute path.`);
60
- return { id: updatedId };
61
- });
62
- }
63
- };
64
- }
65
-
66
- //#endregion
67
4
  //#region node_modules/.pnpm/@rollup+plugin-inject@5.0.5_rollup@4.55.2/node_modules/@rollup/plugin-inject/dist/es/index.js
68
5
  var escape = function(str) {
69
6
  return str.replace(/[-[\]/{}()*+?.\\^$|]/g, "\\$&");
@@ -193,4 +130,4 @@ function inject(options) {
193
130
  }
194
131
 
195
132
  //#endregion
196
- export { alias as n, inject as t };
133
+ export { inject as t };
@@ -0,0 +1,36 @@
1
+ import { c as createFilter, l as dataToEsm } from "../../_build/common.mjs";
2
+
3
+ //#region node_modules/.pnpm/@rollup+plugin-json@6.1.0_rollup@4.55.2/node_modules/@rollup/plugin-json/dist/es/index.js
4
+ function json(options) {
5
+ if (options === void 0) options = {};
6
+ var filter = createFilter(options.include, options.exclude);
7
+ var indent = "indent" in options ? options.indent : " ";
8
+ return {
9
+ name: "json",
10
+ transform: function transform(code, id) {
11
+ if (id.slice(-5) !== ".json" || !filter(id)) return null;
12
+ try {
13
+ return {
14
+ code: dataToEsm(JSON.parse(code), {
15
+ preferConst: options.preferConst,
16
+ compact: options.compact,
17
+ namedExports: options.namedExports,
18
+ includeArbitraryNames: options.includeArbitraryNames,
19
+ indent
20
+ }),
21
+ map: { mappings: "" }
22
+ };
23
+ } catch (err) {
24
+ this.error({
25
+ message: "Could not parse JSON file",
26
+ id,
27
+ cause: err
28
+ });
29
+ return null;
30
+ }
31
+ }
32
+ };
33
+ }
34
+
35
+ //#endregion
36
+ export { json as t };