@nuxt/cli-nightly 3.31.4-20251217-224540-77340dc → 3.31.4-20260106-103404-7fe68e4
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.
|
@@ -12,7 +12,7 @@ import { promises } from "node:fs";
|
|
|
12
12
|
import { join, resolve } from "pathe";
|
|
13
13
|
import { FastResponse, FastURL, serve } from "srvx";
|
|
14
14
|
|
|
15
|
-
//#region ../../node_modules/.pnpm/rou3@0.7.
|
|
15
|
+
//#region ../../node_modules/.pnpm/rou3@0.7.12/node_modules/rou3/dist/index.mjs
|
|
16
16
|
const NullProtoObj = /* @__PURE__ */ (() => {
|
|
17
17
|
const e = function() {};
|
|
18
18
|
return e.prototype = Object.create(null), Object.freeze(e.prototype), e;
|
|
@@ -33,7 +33,7 @@ function splitPath(path) {
|
|
|
33
33
|
function getMatchParams(segments, paramsMap) {
|
|
34
34
|
const params = new NullProtoObj();
|
|
35
35
|
for (const [index, name] of paramsMap) {
|
|
36
|
-
const segment = index < 0 ? segments.slice(-
|
|
36
|
+
const segment = index < 0 ? segments.slice(-(index + 1)).join("/") : segments[index];
|
|
37
37
|
if (typeof name === "string") params[name] = segment;
|
|
38
38
|
else {
|
|
39
39
|
const match = segment.match(name);
|
|
@@ -48,18 +48,19 @@ function getMatchParams(segments, paramsMap) {
|
|
|
48
48
|
function addRoute(ctx, method = "", path, data) {
|
|
49
49
|
method = method.toUpperCase();
|
|
50
50
|
if (path.charCodeAt(0) !== 47) path = `/${path}`;
|
|
51
|
+
path = path.replace(/\\:/g, "%3A");
|
|
51
52
|
const segments = splitPath(path);
|
|
52
53
|
let node = ctx.root;
|
|
53
54
|
let _unnamedParamIndex = 0;
|
|
54
55
|
const paramsMap = [];
|
|
55
56
|
const paramsRegexp = [];
|
|
56
57
|
for (let i = 0; i < segments.length; i++) {
|
|
57
|
-
|
|
58
|
+
let segment = segments[i];
|
|
58
59
|
if (segment.startsWith("**")) {
|
|
59
60
|
if (!node.wildcard) node.wildcard = { key: "**" };
|
|
60
61
|
node = node.wildcard;
|
|
61
62
|
paramsMap.push([
|
|
62
|
-
-i,
|
|
63
|
+
-(i + 1),
|
|
63
64
|
segment.split(":")[1] || "_",
|
|
64
65
|
segment.length === 2
|
|
65
66
|
]);
|
|
@@ -89,6 +90,8 @@ function addRoute(ctx, method = "", path, data) {
|
|
|
89
90
|
]);
|
|
90
91
|
continue;
|
|
91
92
|
}
|
|
93
|
+
if (segment === "\\*") segment = segments[i] = "*";
|
|
94
|
+
else if (segment === "\\*\\*") segment = segments[i] = "**";
|
|
92
95
|
const child = node.static?.[segment];
|
|
93
96
|
if (child) node = child;
|
|
94
97
|
else {
|
|
@@ -106,7 +109,7 @@ function addRoute(ctx, method = "", path, data) {
|
|
|
106
109
|
paramsRegexp,
|
|
107
110
|
paramsMap: hasParams ? paramsMap : void 0
|
|
108
111
|
});
|
|
109
|
-
if (!hasParams) ctx.static[
|
|
112
|
+
if (!hasParams) ctx.static["/" + segments.join("/")] = node;
|
|
110
113
|
}
|
|
111
114
|
function getParamRegexp(segment) {
|
|
112
115
|
const regex = segment.replace(/:(\w+)/g, (_, id) => `(?<${id}>[^/]+)`).replace(/\./g, "\\.");
|
|
@@ -187,7 +190,7 @@ function routeToRegExp(route = "/") {
|
|
|
187
190
|
}
|
|
188
191
|
|
|
189
192
|
//#endregion
|
|
190
|
-
//#region ../../node_modules/.pnpm/h3@2.0.1-rc.
|
|
193
|
+
//#region ../../node_modules/.pnpm/h3@2.0.1-rc.7_crossws@0.4.1_srvx@0.10.0_/node_modules/h3/dist/h3.mjs
|
|
191
194
|
const kEventNS = "h3.internal.event.";
|
|
192
195
|
const kEventRes = /* @__PURE__ */ Symbol.for(`${kEventNS}res`);
|
|
193
196
|
const kEventResHeaders = /* @__PURE__ */ Symbol.for(`${kEventNS}res.headers`);
|
package/dist/index.mjs
CHANGED
|
@@ -14,15 +14,15 @@ import tab from "@bomb.sh/tab/citty";
|
|
|
14
14
|
const _rDefault = (r) => r.default || r;
|
|
15
15
|
const commands = {
|
|
16
16
|
add: () => import("./add-Dy11jAJ1.mjs").then(_rDefault),
|
|
17
|
-
analyze: () => import("./analyze-
|
|
17
|
+
analyze: () => import("./analyze-D-Wo3bVT.mjs").then(_rDefault),
|
|
18
18
|
build: () => import("./build-1TjVJ-UC.mjs").then(_rDefault),
|
|
19
19
|
cleanup: () => import("./cleanup-BhQbCstD.mjs").then(_rDefault),
|
|
20
20
|
_dev: () => import("./dev-child-DfGhbYXE.mjs").then(_rDefault),
|
|
21
21
|
dev: () => import("./dev-HhMgIfMX.mjs").then(_rDefault),
|
|
22
22
|
devtools: () => import("./devtools-ChsGaImC.mjs").then(_rDefault),
|
|
23
23
|
generate: () => import("./generate-cGaHTpaK.mjs").then(_rDefault),
|
|
24
|
-
info: () => import("./info-
|
|
25
|
-
init: () => import("./init-
|
|
24
|
+
info: () => import("./info-B8EM1Xqc.mjs").then(_rDefault),
|
|
25
|
+
init: () => import("./init-2OoXrrJB.mjs").then(_rDefault),
|
|
26
26
|
module: () => import("./module-CZNTz7xr.mjs").then(_rDefault),
|
|
27
27
|
prepare: () => import("./prepare-DCPPpZ3e.mjs").then(_rDefault),
|
|
28
28
|
preview: () => import("./preview-CbUSteIx.mjs").then(_rDefault),
|
|
@@ -66,7 +66,7 @@ async function checkEngines() {
|
|
|
66
66
|
//#endregion
|
|
67
67
|
//#region package.json
|
|
68
68
|
var name = "@nuxt/cli-nightly";
|
|
69
|
-
var version = "3.31.4-
|
|
69
|
+
var version = "3.31.4-20260106-103404-7fe68e4";
|
|
70
70
|
var description = "Nuxt CLI";
|
|
71
71
|
|
|
72
72
|
//#endregion
|
|
@@ -17,7 +17,7 @@ import { copy } from "copy-paste";
|
|
|
17
17
|
import { detectPackageManager } from "nypm";
|
|
18
18
|
|
|
19
19
|
//#region ../nuxi/package.json
|
|
20
|
-
var version = "3.31.4-
|
|
20
|
+
var version = "3.31.4-20260106-103352-7fe68e4";
|
|
21
21
|
|
|
22
22
|
//#endregion
|
|
23
23
|
//#region ../nuxi/src/commands/info.ts
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/cli-nightly",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.31.4-
|
|
4
|
+
"version": "3.31.4-20260106-103404-7fe68e4",
|
|
5
5
|
"description": "Nuxt CLI",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
"prepack": "tsdown"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@bomb.sh/tab": "^0.0.
|
|
37
|
-
"@clack/prompts": "1.0.0-alpha.
|
|
38
|
-
"c12": "^3.3.
|
|
36
|
+
"@bomb.sh/tab": "^0.0.11",
|
|
37
|
+
"@clack/prompts": "1.0.0-alpha.9",
|
|
38
|
+
"c12": "^3.3.3",
|
|
39
39
|
"citty": "^0.1.6",
|
|
40
40
|
"confbox": "^0.2.2",
|
|
41
41
|
"consola": "^3.4.2",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"pkg-types": "^2.3.0",
|
|
56
56
|
"scule": "^1.3.0",
|
|
57
57
|
"semver": "^7.7.3",
|
|
58
|
-
"srvx": "^0.
|
|
58
|
+
"srvx": "^0.10.0",
|
|
59
59
|
"std-env": "^3.10.0",
|
|
60
60
|
"tinyexec": "^1.0.2",
|
|
61
61
|
"ufo": "^1.6.1",
|
|
@@ -68,14 +68,14 @@
|
|
|
68
68
|
"@types/node": "^24.10.4",
|
|
69
69
|
"get-port-please": "^3.2.0",
|
|
70
70
|
"h3": "^1.15.4",
|
|
71
|
-
"h3-next": "npm:h3@^2.0.1-rc.
|
|
71
|
+
"h3-next": "npm:h3@^2.0.1-rc.7",
|
|
72
72
|
"nitro": "^3.0.1-alpha.1",
|
|
73
73
|
"nitropack": "^2.12.9",
|
|
74
|
-
"rollup": "^4.
|
|
74
|
+
"rollup": "^4.55.1",
|
|
75
75
|
"rollup-plugin-visualizer": "^6.0.5",
|
|
76
|
-
"tsdown": "^0.18.
|
|
76
|
+
"tsdown": "^0.18.4",
|
|
77
77
|
"typescript": "^5.9.3",
|
|
78
|
-
"undici": "^7.
|
|
78
|
+
"undici": "^7.17.0",
|
|
79
79
|
"unplugin-purge-polyfills": "^0.1.0",
|
|
80
80
|
"vitest": "^3.2.4",
|
|
81
81
|
"youch": "^4.1.0-beta.13"
|