nitro-nightly 3.0.1-20260119-145349-d0c4950f → 3.0.1-20260120-020848-6786d069
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_build/rolldown.mjs +13 -8
- package/dist/_build/vite.build.mjs +1 -1
- package/dist/_chunks/dev.mjs +5 -3
- package/dist/_chunks/nitro.mjs +24 -1183
- package/dist/_chunks/nitro2.mjs +248 -91
- package/dist/_chunks/nitro3.mjs +2696 -0
- package/dist/_chunks/nitro4.mjs +176 -0
- package/dist/_chunks/nitro5.mjs +733 -0
- package/dist/_chunks/nitro6.mjs +1458 -0
- package/dist/_chunks/nitro7.mjs +7561 -0
- package/dist/_chunks/nitro8.mjs +3524 -0
- package/dist/_chunks/nitro9.mjs +1729 -0
- package/dist/_libs/_.mjs +3 -0
- package/dist/_libs/_2.mjs +3 -0
- package/dist/_libs/_3.mjs +4 -0
- package/dist/_libs/_4.mjs +6 -0
- package/dist/_libs/_5.mjs +3 -0
- package/dist/_libs/_6.mjs +3 -0
- package/dist/_libs/acorn+confbox+js-tokens+magic-string+mlly+pkg-types+sourcemap-codec+strip-literal+unimport.mjs +8900 -0
- package/dist/_libs/{c12.mjs → c12+dotenv+rc9.mjs} +12 -105
- package/dist/_libs/{chokidar.mjs → chokidar+readdirp.mjs} +2 -9
- package/dist/_libs/confbox+exsolve+pkg-types.mjs +1249 -0
- package/dist/_libs/confbox.mjs +70 -2488
- package/dist/_libs/confbox2.mjs +786 -0
- package/dist/_libs/confbox3.mjs +404 -0
- package/dist/_libs/confbox4.mjs +3 -0
- package/dist/_libs/estree-walker+unimport.mjs +378 -0
- package/dist/_libs/fdir+picomatch+tinyglobby.mjs +2471 -0
- package/dist/_libs/gen-mapping+remapping+resolve-uri+trace-mapping+unimport+unplugin+unplugin-utils+webpack-virtual-modules.mjs +2150 -0
- package/dist/_libs/giget+node-fetch-native.mjs +2692 -0
- package/dist/_libs/httpxy.mjs +1 -6
- package/dist/_libs/local-pkg+quansync+unimport.mjs +1526 -0
- package/dist/_libs/nypm+tinyexec.mjs +858 -0
- package/dist/_libs/pathe.mjs +164 -0
- package/dist/_libs/perfect-debounce.mjs +89 -0
- package/dist/_libs/{@rollup/plugin-inject.mjs → plugin-alias+plugin-inject.mjs} +65 -2
- package/dist/_libs/std-env.mjs +158 -0
- package/dist/_libs/unimport.mjs +5 -1781
- package/dist/_libs/vite-plugin-fullstack.mjs +26 -0
- package/dist/_presets.mjs +8 -3
- package/dist/builder.mjs +8 -6
- package/dist/cli/_chunks/build.mjs +1 -1
- package/dist/cli/_chunks/dev.mjs +3 -2
- package/dist/cli/_chunks/list.mjs +1 -1
- package/dist/cli/_chunks/prepare.mjs +1 -1
- package/dist/cli/_chunks/run.mjs +1 -1
- package/dist/cli/index.mjs +1 -1
- package/dist/types/index.d.mts +2410 -1174
- package/dist/vite.d.mts +13 -13
- package/dist/vite.mjs +640 -16
- package/package.json +9 -9
- package/dist/_build/common.mjs +0 -24931
- package/dist/_build/rollup.mjs +0 -201
- package/dist/_chunks/utils.mjs +0 -254
- package/dist/_common.mjs +0 -45
- package/dist/_libs/@hiogawa/vite-plugin-fullstack.mjs +0 -652
- package/dist/_libs/@jridgewell/gen-mapping.mjs +0 -448
- package/dist/_libs/@jridgewell/remapping.mjs +0 -117
- package/dist/_libs/@rollup/plugin-alias.mjs +0 -64
- package/dist/_libs/@rollup/plugin-commonjs.mjs +0 -1300
- package/dist/_libs/@rollup/plugin-json.mjs +0 -36
- package/dist/_libs/@rollup/plugin-node-resolve.mjs +0 -1972
- package/dist/_libs/escape-string-regexp.mjs +0 -8
- package/dist/_libs/estree-walker.mjs +0 -187
- package/dist/_libs/giget.mjs +0 -3550
- package/dist/_libs/klona.mjs +0 -38
- package/dist/_libs/rou3.mjs +0 -322
- package/dist/_libs/tsconfck.mjs +0 -832
- package/dist/_libs/ultrahtml.mjs +0 -138
- package/dist/cli/_chunks/task.mjs +0 -16
|
@@ -1,8 +0,0 @@
|
|
|
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 };
|
|
@@ -1,187 +0,0 @@
|
|
|
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 };
|