nitro-nightly 3.0.1-20260124-165031-9c6abf17 → 3.0.1-20260127-164246-ef01b092
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/common.mjs +2084 -3212
- package/dist/_build/rolldown.mjs +12 -25
- package/dist/_build/rollup.mjs +11 -27
- package/dist/_build/vite.build.mjs +7 -11
- package/dist/_chunks/dev.mjs +20 -42
- package/dist/_chunks/nitro.mjs +13 -92
- package/dist/_chunks/nitro2.mjs +1 -5
- package/dist/_chunks/utils.mjs +10 -24
- package/dist/_common.mjs +12 -24
- package/dist/_libs/citty.mjs +1 -13
- package/dist/_libs/commondir+is-reference.mjs +12 -22
- package/dist/_libs/compatx.mjs +1 -4
- package/dist/_libs/confbox.mjs +363 -376
- package/dist/_libs/escape-string-regexp.mjs +1 -4
- package/dist/_libs/estree-walker.mjs +4 -92
- package/dist/_libs/hasown+resolve+deepmerge.mjs +144 -230
- package/dist/_libs/httpxy.mjs +5 -21
- package/dist/_libs/klona.mjs +1 -4
- package/dist/_libs/nypm+giget+tinyexec.mjs +874 -926
- package/dist/_libs/plugin-alias.mjs +1 -5
- package/dist/_libs/plugin-inject.mjs +1 -5
- package/dist/_libs/plugin-json.mjs +1 -5
- package/dist/_libs/pluginutils+plugin-commonjs.d.mts +2 -2
- package/dist/_libs/pluginutils.mjs +1 -31
- package/dist/_libs/rc9+c12+dotenv.mjs +43 -83
- package/dist/_libs/readdirp+chokidar.mjs +184 -360
- package/dist/_libs/remapping.mjs +1 -5
- package/dist/_libs/resolve-uri+gen-mapping.mjs +12 -48
- package/dist/_libs/rou3.mjs +1 -32
- package/dist/_libs/tsconfck.mjs +21 -334
- package/dist/_libs/ultrahtml.mjs +3 -16
- package/dist/_libs/unimport+unplugin.mjs +15 -75
- package/dist/_presets.mjs +260 -445
- package/dist/builder.mjs +1 -2
- package/dist/cli/_chunks/build.mjs +1 -5
- package/dist/cli/_chunks/common.mjs +1 -4
- package/dist/cli/_chunks/dev.mjs +1 -5
- package/dist/cli/_chunks/list.mjs +1 -5
- package/dist/cli/_chunks/prepare.mjs +1 -5
- package/dist/cli/_chunks/run.mjs +1 -5
- package/dist/cli/_chunks/task.mjs +1 -5
- package/dist/cli/index.mjs +1 -5
- package/dist/types/index.d.mts +5 -5
- package/dist/types/index.mjs +1 -2
- package/dist/vite.mjs +44 -63
- package/package.json +21 -21
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
//#region node_modules/.pnpm/escape-string-regexp@5.0.0/node_modules/escape-string-regexp/index.js
|
|
2
1
|
function escapeStringRegexp(string) {
|
|
3
2
|
if (typeof string !== "string") throw new TypeError("Expected a string");
|
|
4
3
|
return string.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
5
4
|
}
|
|
6
|
-
|
|
7
|
-
//#endregion
|
|
8
|
-
export { escapeStringRegexp as t };
|
|
5
|
+
export { escapeStringRegexp as t };
|
|
@@ -1,99 +1,37 @@
|
|
|
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
1
|
var WalkerBase = class {
|
|
11
2
|
constructor() {
|
|
12
|
-
/** @type {boolean} */
|
|
13
3
|
this.should_skip = false;
|
|
14
|
-
/** @type {boolean} */
|
|
15
4
|
this.should_remove = false;
|
|
16
|
-
/** @type {Node | null} */
|
|
17
5
|
this.replacement = null;
|
|
18
|
-
/** @type {WalkerContext} */
|
|
19
6
|
this.context = {
|
|
20
7
|
skip: () => this.should_skip = true,
|
|
21
8
|
remove: () => this.should_remove = true,
|
|
22
9
|
replace: (node) => this.replacement = node
|
|
23
10
|
};
|
|
24
11
|
}
|
|
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
12
|
replace(parent, prop, index, node) {
|
|
33
|
-
if (parent && prop) if (index != null)
|
|
34
|
-
|
|
35
|
-
else
|
|
36
|
-
/** @type {Node} */ parent[prop] = node;
|
|
13
|
+
if (parent && prop) if (index != null) parent[prop][index] = node;
|
|
14
|
+
else parent[prop] = node;
|
|
37
15
|
}
|
|
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
16
|
remove(parent, prop, index) {
|
|
45
|
-
if (parent && prop) if (index !== null && index !== void 0)
|
|
46
|
-
/** @type {Array<Node>} */ parent[prop].splice(index, 1);
|
|
17
|
+
if (parent && prop) if (index !== null && index !== void 0) parent[prop].splice(index, 1);
|
|
47
18
|
else delete parent[prop];
|
|
48
19
|
}
|
|
49
20
|
};
|
|
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
21
|
var SyncWalker = class extends WalkerBase {
|
|
65
|
-
/**
|
|
66
|
-
*
|
|
67
|
-
* @param {SyncHandler} [enter]
|
|
68
|
-
* @param {SyncHandler} [leave]
|
|
69
|
-
*/
|
|
70
22
|
constructor(enter, leave) {
|
|
71
23
|
super();
|
|
72
|
-
/** @type {boolean} */
|
|
73
24
|
this.should_skip = false;
|
|
74
|
-
/** @type {boolean} */
|
|
75
25
|
this.should_remove = false;
|
|
76
|
-
/** @type {Node | null} */
|
|
77
26
|
this.replacement = null;
|
|
78
|
-
/** @type {WalkerContext} */
|
|
79
27
|
this.context = {
|
|
80
28
|
skip: () => this.should_skip = true,
|
|
81
29
|
remove: () => this.should_remove = true,
|
|
82
30
|
replace: (node) => this.replacement = node
|
|
83
31
|
};
|
|
84
|
-
/** @type {SyncHandler | undefined} */
|
|
85
32
|
this.enter = enter;
|
|
86
|
-
/** @type {SyncHandler | undefined} */
|
|
87
33
|
this.leave = leave;
|
|
88
34
|
}
|
|
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
35
|
visit(node, parent, prop, index) {
|
|
98
36
|
if (node) {
|
|
99
37
|
if (this.enter) {
|
|
@@ -117,10 +55,8 @@ var SyncWalker = class extends WalkerBase {
|
|
|
117
55
|
if (skipped) return node;
|
|
118
56
|
if (removed) return null;
|
|
119
57
|
}
|
|
120
|
-
/** @type {keyof Node} */
|
|
121
58
|
let key;
|
|
122
59
|
for (key in node) {
|
|
123
|
-
/** @type {unknown} */
|
|
124
60
|
const value = node[key];
|
|
125
61
|
if (value && typeof value === "object") {
|
|
126
62
|
if (Array.isArray(value)) {
|
|
@@ -154,34 +90,10 @@ var SyncWalker = class extends WalkerBase {
|
|
|
154
90
|
return node;
|
|
155
91
|
}
|
|
156
92
|
};
|
|
157
|
-
/**
|
|
158
|
-
* Ducktype a node.
|
|
159
|
-
*
|
|
160
|
-
* @param {unknown} value
|
|
161
|
-
* @returns {value is Node}
|
|
162
|
-
*/
|
|
163
93
|
function isNode(value) {
|
|
164
94
|
return value !== null && typeof value === "object" && "type" in value && typeof value.type === "string";
|
|
165
95
|
}
|
|
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
96
|
function walk(ast, { enter, leave }) {
|
|
183
97
|
return new SyncWalker(enter, leave).visit(ast, null);
|
|
184
98
|
}
|
|
185
|
-
|
|
186
|
-
//#endregion
|
|
187
|
-
export { walk as t };
|
|
99
|
+
export { walk as t };
|