@nuxt/cli-nightly 3.31.4-20251217-224540-77340dc → 3.31.4-20260105-125323-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.10/node_modules/rou3/dist/index.mjs
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(-1 * index).join("/") : segments[index];
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
- const segment = segments[i];
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[path] = node;
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.6_crossws@0.4.1_srvx@0.9.8_/node_modules/h3/dist/h3.mjs
193
+ //#region ../../node_modules/.pnpm/h3@2.0.1-rc.7_crossws@0.4.1_srvx@0.9.8_/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-BckIrOKp.mjs").then(_rDefault),
17
+ analyze: () => import("./analyze-SOKHH9y3.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-CP7qFulC.mjs").then(_rDefault),
25
- init: () => import("./init-jiA9OW7h.mjs").then(_rDefault),
24
+ info: () => import("./info-Dgcf_tVf.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-20251217-224540-77340dc";
69
+ var version = "3.31.4-20260105-125323-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-20251217-224528-77340dc";
20
+ var version = "3.31.4-20260105-125312-7fe68e4";
21
21
 
22
22
  //#endregion
23
23
  //#region ../nuxi/src/commands/info.ts
@@ -344,7 +344,8 @@ var init_default = defineCommand({
344
344
  packageManager: {
345
345
  name: selectedPackageManager,
346
346
  command: selectedPackageManager
347
- }
347
+ },
348
+ silent: true
348
349
  });
349
350
  return "Dependencies installed";
350
351
  }
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-20251217-224540-77340dc",
4
+ "version": "3.31.4-20260105-125323-7fe68e4",
5
5
  "description": "Nuxt CLI",
6
6
  "license": "MIT",
7
7
  "repository": {