nitro-nightly 3.0.1-20260120-020848-6786d069 → 3.0.1-20260120-133849-ca1a9dee

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 (93) 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/c12+giget+readdirp+chokidar.d.mts +214 -0
  11. package/dist/_libs/citty.mjs +140 -110
  12. package/dist/_libs/commondir+is-reference.mjs +1300 -0
  13. package/dist/_libs/compatx.d.mts +47 -0
  14. package/dist/_libs/confbox.mjs +2488 -70
  15. package/dist/_libs/esbuild.d.mts +20 -0
  16. package/dist/_libs/escape-string-regexp.mjs +8 -0
  17. package/dist/_libs/estree-walker.mjs +187 -0
  18. package/dist/_libs/hasown+resolve+deepmerge.mjs +1972 -0
  19. package/dist/_libs/httpxy.d.mts +79 -0
  20. package/dist/_libs/httpxy.mjs +6 -1
  21. package/dist/_libs/klona.mjs +38 -0
  22. package/dist/_libs/magic-string.d.mts +220 -0
  23. package/dist/_libs/mlly.d.mts +57 -0
  24. package/dist/_libs/nypm+giget+tinyexec.mjs +3603 -0
  25. package/dist/_libs/pkg-types.d.mts +23 -0
  26. package/dist/_libs/plugin-alias.mjs +64 -0
  27. package/dist/_libs/{plugin-alias+plugin-inject.mjs → plugin-inject.mjs} +2 -65
  28. package/dist/_libs/plugin-json.mjs +36 -0
  29. package/dist/_libs/pluginutils+plugin-commonjs.d.mts +241 -0
  30. package/dist/_libs/pluginutils.mjs +652 -0
  31. package/dist/_libs/{c12+dotenv+rc9.mjs → rc9+c12+dotenv.mjs} +105 -12
  32. package/dist/_libs/{chokidar+readdirp.mjs → readdirp+chokidar.mjs} +8 -1
  33. package/dist/_libs/remapping.mjs +117 -0
  34. package/dist/_libs/resolve-uri+gen-mapping.mjs +448 -0
  35. package/dist/_libs/rou3.d.mts +43 -0
  36. package/dist/_libs/rou3.mjs +322 -0
  37. package/dist/_libs/std-env.d.mts +4 -0
  38. package/dist/_libs/tsconfck.mjs +832 -0
  39. package/dist/_libs/ultrahtml.mjs +138 -0
  40. package/dist/_libs/{gen-mapping+remapping+resolve-uri+trace-mapping+unimport+unplugin+unplugin-utils+webpack-virtual-modules.mjs → unimport+unplugin.mjs} +228 -593
  41. package/dist/_libs/unplugin+unimport.d.mts +426 -0
  42. package/dist/_libs/unwasm.d.mts +29 -0
  43. package/dist/_presets.mjs +3 -8
  44. package/dist/builder.mjs +6 -8
  45. package/dist/cli/_chunks/build.mjs +1 -1
  46. package/dist/cli/_chunks/dev.mjs +2 -3
  47. package/dist/cli/_chunks/list.mjs +1 -1
  48. package/dist/cli/_chunks/prepare.mjs +1 -1
  49. package/dist/cli/_chunks/run.mjs +1 -1
  50. package/dist/cli/_chunks/task.mjs +16 -0
  51. package/dist/cli/index.mjs +1 -1
  52. package/dist/presets/aws-lambda/runtime/_utils.d.mts +0 -5
  53. package/dist/presets/netlify/runtime/netlify-edge.d.mts +0 -1
  54. package/dist/presets/winterjs/runtime/winterjs.d.mts +0 -1
  55. package/dist/runtime/internal/error/dev.d.mts +0 -1
  56. package/dist/runtime/internal/route-rules.d.mts +0 -4
  57. package/dist/runtime/internal/routes/openapi.d.mts +0 -1
  58. package/dist/runtime/internal/routes/scalar.d.mts +0 -1
  59. package/dist/runtime/internal/routes/swagger.d.mts +0 -1
  60. package/dist/runtime/internal/runtime-config.d.mts +0 -1
  61. package/dist/runtime/nitro.d.mts +0 -3
  62. package/dist/runtime/virtual/renderer-template.d.mts +0 -1
  63. package/dist/types/index.d.mts +25 -1394
  64. package/dist/vite.mjs +18 -641
  65. package/package.json +5 -5
  66. package/dist/_chunks/nitro3.mjs +0 -2696
  67. package/dist/_chunks/nitro4.mjs +0 -176
  68. package/dist/_chunks/nitro5.mjs +0 -733
  69. package/dist/_chunks/nitro6.mjs +0 -1458
  70. package/dist/_chunks/nitro7.mjs +0 -7561
  71. package/dist/_chunks/nitro8.mjs +0 -3524
  72. package/dist/_chunks/nitro9.mjs +0 -1729
  73. package/dist/_libs/_.mjs +0 -3
  74. package/dist/_libs/_2.mjs +0 -3
  75. package/dist/_libs/_3.mjs +0 -4
  76. package/dist/_libs/_4.mjs +0 -6
  77. package/dist/_libs/_5.mjs +0 -3
  78. package/dist/_libs/_6.mjs +0 -3
  79. package/dist/_libs/acorn+confbox+js-tokens+magic-string+mlly+pkg-types+sourcemap-codec+strip-literal+unimport.mjs +0 -8900
  80. package/dist/_libs/confbox+exsolve+pkg-types.mjs +0 -1249
  81. package/dist/_libs/confbox2.mjs +0 -786
  82. package/dist/_libs/confbox3.mjs +0 -404
  83. package/dist/_libs/confbox4.mjs +0 -3
  84. package/dist/_libs/estree-walker+unimport.mjs +0 -378
  85. package/dist/_libs/fdir+picomatch+tinyglobby.mjs +0 -2471
  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/unimport.mjs +0 -9
  93. package/dist/_libs/vite-plugin-fullstack.mjs +0 -26
@@ -0,0 +1,20 @@
1
+ //#region node_modules/.pnpm/esbuild@0.27.2/node_modules/esbuild/lib/main.d.ts
2
+ // Note: These declarations exist to avoid type errors when you omit "dom" from
3
+ // "lib" in your "tsconfig.json" file. TypeScript confusingly declares the
4
+ // global "WebAssembly" type in "lib.dom.d.ts" even though it has nothing to do
5
+ // with the browser DOM and is present in many non-browser JavaScript runtimes
6
+ // (e.g. node and deno). Declaring it here allows esbuild's API to be used in
7
+ // these scenarios.
8
+ //
9
+ // There's an open issue about getting this problem corrected (although these
10
+ // declarations will need to remain even if this is fixed for backward
11
+ // compatibility with older TypeScript versions):
12
+ //
13
+ // https://github.com/microsoft/TypeScript-DOM-lib-generator/issues/826
14
+ //
15
+ declare global {
16
+ namespace WebAssembly {
17
+ interface Module {}
18
+ }
19
+ interface URL {}
20
+ }
@@ -0,0 +1,8 @@
1
+ //#region node_modules/.pnpm/escape-string-regexp@5.0.0/node_modules/escape-string-regexp/index.js
2
+ function escapeStringRegexp(string) {
3
+ if (typeof string !== "string") throw new TypeError("Expected a string");
4
+ return string.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
5
+ }
6
+
7
+ //#endregion
8
+ export { escapeStringRegexp as t };
@@ -0,0 +1,187 @@
1
+ //#region node_modules/.pnpm/estree-walker@3.0.3/node_modules/estree-walker/src/walker.js
2
+ /**
3
+ * @typedef { import('estree').Node} Node
4
+ * @typedef {{
5
+ * skip: () => void;
6
+ * remove: () => void;
7
+ * replace: (node: Node) => void;
8
+ * }} WalkerContext
9
+ */
10
+ var WalkerBase = class {
11
+ constructor() {
12
+ /** @type {boolean} */
13
+ this.should_skip = false;
14
+ /** @type {boolean} */
15
+ this.should_remove = false;
16
+ /** @type {Node | null} */
17
+ this.replacement = null;
18
+ /** @type {WalkerContext} */
19
+ this.context = {
20
+ skip: () => this.should_skip = true,
21
+ remove: () => this.should_remove = true,
22
+ replace: (node) => this.replacement = node
23
+ };
24
+ }
25
+ /**
26
+ * @template {Node} Parent
27
+ * @param {Parent | null | undefined} parent
28
+ * @param {keyof Parent | null | undefined} prop
29
+ * @param {number | null | undefined} index
30
+ * @param {Node} node
31
+ */
32
+ replace(parent, prop, index, node) {
33
+ if (parent && prop) if (index != null)
34
+ /** @type {Array<Node>} */ parent[prop][index] = node;
35
+ else
36
+ /** @type {Node} */ parent[prop] = node;
37
+ }
38
+ /**
39
+ * @template {Node} Parent
40
+ * @param {Parent | null | undefined} parent
41
+ * @param {keyof Parent | null | undefined} prop
42
+ * @param {number | null | undefined} index
43
+ */
44
+ remove(parent, prop, index) {
45
+ if (parent && prop) if (index !== null && index !== void 0)
46
+ /** @type {Array<Node>} */ parent[prop].splice(index, 1);
47
+ else delete parent[prop];
48
+ }
49
+ };
50
+
51
+ //#endregion
52
+ //#region node_modules/.pnpm/estree-walker@3.0.3/node_modules/estree-walker/src/sync.js
53
+ /**
54
+ * @typedef { import('estree').Node} Node
55
+ * @typedef { import('./walker.js').WalkerContext} WalkerContext
56
+ * @typedef {(
57
+ * this: WalkerContext,
58
+ * node: Node,
59
+ * parent: Node | null,
60
+ * key: string | number | symbol | null | undefined,
61
+ * index: number | null | undefined
62
+ * ) => void} SyncHandler
63
+ */
64
+ var SyncWalker = class extends WalkerBase {
65
+ /**
66
+ *
67
+ * @param {SyncHandler} [enter]
68
+ * @param {SyncHandler} [leave]
69
+ */
70
+ constructor(enter, leave) {
71
+ super();
72
+ /** @type {boolean} */
73
+ this.should_skip = false;
74
+ /** @type {boolean} */
75
+ this.should_remove = false;
76
+ /** @type {Node | null} */
77
+ this.replacement = null;
78
+ /** @type {WalkerContext} */
79
+ this.context = {
80
+ skip: () => this.should_skip = true,
81
+ remove: () => this.should_remove = true,
82
+ replace: (node) => this.replacement = node
83
+ };
84
+ /** @type {SyncHandler | undefined} */
85
+ this.enter = enter;
86
+ /** @type {SyncHandler | undefined} */
87
+ this.leave = leave;
88
+ }
89
+ /**
90
+ * @template {Node} Parent
91
+ * @param {Node} node
92
+ * @param {Parent | null} parent
93
+ * @param {keyof Parent} [prop]
94
+ * @param {number | null} [index]
95
+ * @returns {Node | null}
96
+ */
97
+ visit(node, parent, prop, index) {
98
+ if (node) {
99
+ if (this.enter) {
100
+ const _should_skip = this.should_skip;
101
+ const _should_remove = this.should_remove;
102
+ const _replacement = this.replacement;
103
+ this.should_skip = false;
104
+ this.should_remove = false;
105
+ this.replacement = null;
106
+ this.enter.call(this.context, node, parent, prop, index);
107
+ if (this.replacement) {
108
+ node = this.replacement;
109
+ this.replace(parent, prop, index, node);
110
+ }
111
+ if (this.should_remove) this.remove(parent, prop, index);
112
+ const skipped = this.should_skip;
113
+ const removed = this.should_remove;
114
+ this.should_skip = _should_skip;
115
+ this.should_remove = _should_remove;
116
+ this.replacement = _replacement;
117
+ if (skipped) return node;
118
+ if (removed) return null;
119
+ }
120
+ /** @type {keyof Node} */
121
+ let key;
122
+ for (key in node) {
123
+ /** @type {unknown} */
124
+ const value = node[key];
125
+ if (value && typeof value === "object") {
126
+ if (Array.isArray(value)) {
127
+ const nodes = value;
128
+ for (let i = 0; i < nodes.length; i += 1) {
129
+ const item = nodes[i];
130
+ if (isNode(item)) {
131
+ if (!this.visit(item, node, key, i)) i--;
132
+ }
133
+ }
134
+ } else if (isNode(value)) this.visit(value, node, key, null);
135
+ }
136
+ }
137
+ if (this.leave) {
138
+ const _replacement = this.replacement;
139
+ const _should_remove = this.should_remove;
140
+ this.replacement = null;
141
+ this.should_remove = false;
142
+ this.leave.call(this.context, node, parent, prop, index);
143
+ if (this.replacement) {
144
+ node = this.replacement;
145
+ this.replace(parent, prop, index, node);
146
+ }
147
+ if (this.should_remove) this.remove(parent, prop, index);
148
+ const removed = this.should_remove;
149
+ this.replacement = _replacement;
150
+ this.should_remove = _should_remove;
151
+ if (removed) return null;
152
+ }
153
+ }
154
+ return node;
155
+ }
156
+ };
157
+ /**
158
+ * Ducktype a node.
159
+ *
160
+ * @param {unknown} value
161
+ * @returns {value is Node}
162
+ */
163
+ function isNode(value) {
164
+ return value !== null && typeof value === "object" && "type" in value && typeof value.type === "string";
165
+ }
166
+
167
+ //#endregion
168
+ //#region node_modules/.pnpm/estree-walker@3.0.3/node_modules/estree-walker/src/index.js
169
+ /**
170
+ * @typedef {import('estree').Node} Node
171
+ * @typedef {import('./sync.js').SyncHandler} SyncHandler
172
+ * @typedef {import('./async.js').AsyncHandler} AsyncHandler
173
+ */
174
+ /**
175
+ * @param {Node} ast
176
+ * @param {{
177
+ * enter?: SyncHandler
178
+ * leave?: SyncHandler
179
+ * }} walker
180
+ * @returns {Node | null}
181
+ */
182
+ function walk(ast, { enter, leave }) {
183
+ return new SyncWalker(enter, leave).visit(ast, null);
184
+ }
185
+
186
+ //#endregion
187
+ export { walk as t };