nitro-nightly 3.0.1-20251217-223324-2058e206 → 3.0.1-20251217-223946-1ee0b5b8

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.
@@ -255,7 +255,7 @@ function polyfills(_nitro, polyfills$1) {
255
255
 
256
256
  //#endregion
257
257
  //#region src/build/virtual/public-assets.ts
258
- var import_etag$1 = /* @__PURE__ */ __toESM(require_etag(), 1);
258
+ var import_etag = /* @__PURE__ */ __toESM(require_etag(), 1);
259
259
  const readAssetHandler = {
260
260
  true: "node",
261
261
  node: "node",
@@ -279,7 +279,7 @@ function publicAssets(nitro) {
279
279
  if (mimeType.startsWith("text")) mimeType += "; charset=utf-8";
280
280
  const fullPath = resolve(nitro.options.output.publicDir, id);
281
281
  const assetData = await promises.readFile(fullPath);
282
- const etag = (0, import_etag$1.default)(assetData);
282
+ const etag = (0, import_etag.default)(assetData);
283
283
  const stat$2 = await promises.stat(fullPath);
284
284
  const assetId = joinURL(nitro.options.baseURL, decodeURIComponent(id));
285
285
  let encoding;
@@ -532,7 +532,6 @@ function runtimeConfig(nitro) {
532
532
 
533
533
  //#endregion
534
534
  //#region src/build/virtual/server-assets.ts
535
- var import_etag = /* @__PURE__ */ __toESM(require_etag(), 1);
536
535
  function serverAssets(nitro) {
537
536
  return {
538
537
  id: "#nitro/virtual/server-assets",
@@ -127,7 +127,7 @@ function normalizeString(path$2, allowAboveRoot) {
127
127
  const isAbsolute$1 = function(p) {
128
128
  return _IS_ABSOLUTE_RE.test(p);
129
129
  };
130
- const extname$1 = function(p) {
130
+ const extname$2 = function(p) {
131
131
  if (p === "..") return "";
132
132
  const match = _EXTNAME_RE.exec(normalizeWindowsPath(p));
133
133
  return match && match[1] || "";
@@ -164,7 +164,7 @@ const basename$1 = function(p, extension) {
164
164
  const parse$1 = function(p) {
165
165
  const root = _PATH_ROOT_RE.exec(p)?.[0]?.replace(/\\/g, "/") || "";
166
166
  const base = basename$1(p);
167
- const extension = extname$1(base);
167
+ const extension = extname$2(base);
168
168
  return {
169
169
  root,
170
170
  dir: dirname$1(p),
@@ -176,7 +176,7 @@ const parse$1 = function(p) {
176
176
 
177
177
  //#endregion
178
178
  //#region node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DA7CpUDY.mjs
179
- const b = /^(?:( )+|\t+)/, d$1 = "space", h$1 = "tab";
179
+ const b = /^(?:( )+|\t+)/, d = "space", h$1 = "tab";
180
180
  function g(e, t) {
181
181
  const n = /* @__PURE__ */ new Map();
182
182
  let s = 0, o, i;
@@ -186,7 +186,7 @@ function g(e, t) {
186
186
  const y = c.match(b);
187
187
  if (y === null) s = 0, o = "";
188
188
  else {
189
- if (f = y[0].length, a = y[1] ? d$1 : h$1, t && a === d$1 && f === 1) continue;
189
+ if (f = y[0].length, a = y[1] ? d : h$1, t && a === d && f === 1) continue;
190
190
  a !== o && (s = 0), o = a, l = 1, p = 0;
191
191
  const u = f - s;
192
192
  if (s = f, u === 0) l = 0, p = 1;
@@ -200,11 +200,11 @@ function g(e, t) {
200
200
  return n;
201
201
  }
202
202
  function T(e, t) {
203
- return (e === d$1 ? "s" : "t") + String(t);
203
+ return (e === d ? "s" : "t") + String(t);
204
204
  }
205
205
  function w(e) {
206
206
  return {
207
- type: e[0] === "s" ? d$1 : h$1,
207
+ type: e[0] === "s" ? d : h$1,
208
208
  amount: Number(e.slice(1))
209
209
  };
210
210
  }
@@ -214,7 +214,7 @@ function E(e) {
214
214
  return t;
215
215
  }
216
216
  function S$2(e, t) {
217
- return (e === d$1 ? " " : " ").repeat(t);
217
+ return (e === d ? " " : " ").repeat(t);
218
218
  }
219
219
  function _(e) {
220
220
  if (typeof e != "string") throw new TypeError("Expected a string");
@@ -238,7 +238,7 @@ function x$2(e, t = {}) {
238
238
  }
239
239
  };
240
240
  }
241
- function N(e, t, n) {
241
+ function N$1(e, t, n) {
242
242
  !t || typeof t != "object" || Object.defineProperty(t, m, {
243
243
  enumerable: !1,
244
244
  configurable: !0,
@@ -266,7 +266,7 @@ function C(e, t) {
266
266
 
267
267
  //#endregion
268
268
  //#region node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DnMsyigM.mjs
269
- function $$1(n, l = !1) {
269
+ function $(n, l = !1) {
270
270
  const g$1 = n.length;
271
271
  let e = 0, u = "", p = 0, k$1 = 16, A = 0, o = 0, O$1 = 0, B = 0, b$1 = 0;
272
272
  function I$1(i, T$1) {
@@ -468,11 +468,11 @@ var Q;
468
468
  (function(n) {
469
469
  n[n.lineFeed = 10] = "lineFeed", n[n.carriageReturn = 13] = "carriageReturn", n[n.space = 32] = "space", n[n._0 = 48] = "_0", n[n._1 = 49] = "_1", n[n._2 = 50] = "_2", n[n._3 = 51] = "_3", n[n._4 = 52] = "_4", n[n._5 = 53] = "_5", n[n._6 = 54] = "_6", n[n._7 = 55] = "_7", n[n._8 = 56] = "_8", n[n._9 = 57] = "_9", n[n.a = 97] = "a", n[n.b = 98] = "b", n[n.c = 99] = "c", n[n.d = 100] = "d", n[n.e = 101] = "e", n[n.f = 102] = "f", n[n.g = 103] = "g", n[n.h = 104] = "h", n[n.i = 105] = "i", n[n.j = 106] = "j", n[n.k = 107] = "k", n[n.l = 108] = "l", n[n.m = 109] = "m", n[n.n = 110] = "n", n[n.o = 111] = "o", n[n.p = 112] = "p", n[n.q = 113] = "q", n[n.r = 114] = "r", n[n.s = 115] = "s", n[n.t = 116] = "t", n[n.u = 117] = "u", n[n.v = 118] = "v", n[n.w = 119] = "w", n[n.x = 120] = "x", n[n.y = 121] = "y", n[n.z = 122] = "z", n[n.A = 65] = "A", n[n.B = 66] = "B", n[n.C = 67] = "C", n[n.D = 68] = "D", n[n.E = 69] = "E", n[n.F = 70] = "F", n[n.G = 71] = "G", n[n.H = 72] = "H", n[n.I = 73] = "I", n[n.J = 74] = "J", n[n.K = 75] = "K", n[n.L = 76] = "L", n[n.M = 77] = "M", n[n.N = 78] = "N", n[n.O = 79] = "O", n[n.P = 80] = "P", n[n.Q = 81] = "Q", n[n.R = 82] = "R", n[n.S = 83] = "S", n[n.T = 84] = "T", n[n.U = 85] = "U", n[n.V = 86] = "V", n[n.W = 87] = "W", n[n.X = 88] = "X", n[n.Y = 89] = "Y", n[n.Z = 90] = "Z", n[n.asterisk = 42] = "asterisk", n[n.backslash = 92] = "backslash", n[n.closeBrace = 125] = "closeBrace", n[n.closeBracket = 93] = "closeBracket", n[n.colon = 58] = "colon", n[n.comma = 44] = "comma", n[n.dot = 46] = "dot", n[n.doubleQuote = 34] = "doubleQuote", n[n.minus = 45] = "minus", n[n.openBrace = 123] = "openBrace", n[n.openBracket = 91] = "openBracket", n[n.plus = 43] = "plus", n[n.slash = 47] = "slash", n[n.formFeed = 12] = "formFeed", n[n.tab = 9] = "tab";
470
470
  })(Q || (Q = {})), new Array(20).fill(0).map((n, l) => " ".repeat(l));
471
- const N$1 = 200;
472
- new Array(N$1).fill(0).map((n, l) => `
473
- ` + " ".repeat(l)), new Array(N$1).fill(0).map((n, l) => "\r" + " ".repeat(l)), new Array(N$1).fill(0).map((n, l) => `\r
474
- ` + " ".repeat(l)), new Array(N$1).fill(0).map((n, l) => `
475
- ` + " ".repeat(l)), new Array(N$1).fill(0).map((n, l) => "\r" + " ".repeat(l)), new Array(N$1).fill(0).map((n, l) => `\r
471
+ const N = 200;
472
+ new Array(N).fill(0).map((n, l) => `
473
+ ` + " ".repeat(l)), new Array(N).fill(0).map((n, l) => "\r" + " ".repeat(l)), new Array(N).fill(0).map((n, l) => `\r
474
+ ` + " ".repeat(l)), new Array(N).fill(0).map((n, l) => `
475
+ ` + " ".repeat(l)), new Array(N).fill(0).map((n, l) => "\r" + " ".repeat(l)), new Array(N).fill(0).map((n, l) => `\r
476
476
  ` + " ".repeat(l));
477
477
  var U;
478
478
  (function(n) {
@@ -513,7 +513,7 @@ function S$1(n, l = [], g$1 = U.DEFAULT) {
513
513
  }, g$1), u[0];
514
514
  }
515
515
  function P(n, l, g$1 = U.DEFAULT) {
516
- const e = $$1(n, !1), u = [];
516
+ const e = $(n, !1), u = [];
517
517
  let p = 0;
518
518
  function k$1(f) {
519
519
  return f ? () => p === 0 && f(e.getTokenOffset(), e.getTokenLength(), e.getTokenStartLine(), e.getTokenStartCharacter()) : () => !0;
@@ -656,22 +656,22 @@ var q;
656
656
  (function(n) {
657
657
  n[n.InvalidSymbol = 1] = "InvalidSymbol", n[n.InvalidNumberFormat = 2] = "InvalidNumberFormat", n[n.PropertyNameExpected = 3] = "PropertyNameExpected", n[n.ValueExpected = 4] = "ValueExpected", n[n.ColonExpected = 5] = "ColonExpected", n[n.CommaExpected = 6] = "CommaExpected", n[n.CloseBraceExpected = 7] = "CloseBraceExpected", n[n.CloseBracketExpected = 8] = "CloseBracketExpected", n[n.EndOfFileExpected = 9] = "EndOfFileExpected", n[n.InvalidCommentToken = 10] = "InvalidCommentToken", n[n.UnexpectedEndOfComment = 11] = "UnexpectedEndOfComment", n[n.UnexpectedEndOfString = 12] = "UnexpectedEndOfString", n[n.UnexpectedEndOfNumber = 13] = "UnexpectedEndOfNumber", n[n.InvalidUnicode = 14] = "InvalidUnicode", n[n.InvalidEscapeCharacter = 15] = "InvalidEscapeCharacter", n[n.InvalidCharacter = 16] = "InvalidCharacter";
658
658
  })(q || (q = {}));
659
- function x(n, l) {
659
+ function x$1(n, l) {
660
660
  const g$1 = JSON.parse(n, l?.reviver);
661
- return N(n, g$1, l), g$1;
661
+ return N$1(n, g$1, l), g$1;
662
662
  }
663
663
  function h(n, l) {
664
664
  const g$1 = K(n, l?.errors, l);
665
- return N(n, g$1, l), g$1;
665
+ return N$1(n, g$1, l), g$1;
666
666
  }
667
667
 
668
668
  //#endregion
669
669
  //#region node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/ini.mjs
670
- var O, x$1;
670
+ var O, x;
671
671
  function j() {
672
- if (x$1) return O;
673
- x$1 = 1;
674
- const { hasOwnProperty: y } = Object.prototype, d$2 = (e, t = {}) => {
672
+ if (x) return O;
673
+ x = 1;
674
+ const { hasOwnProperty: y } = Object.prototype, d$1 = (e, t = {}) => {
675
675
  typeof t == "string" && (t = { section: t }), t.align = t.align === !0, t.newline = t.newline === !0, t.sort = t.sort === !0, t.whitespace = t.whitespace === !0 || t.align === !0, t.platform = t.platform || typeof process < "u" && process.platform, t.bracketedArray = t.bracketedArray !== !1;
676
676
  const s = t.platform === "win32" ? `\r
677
677
  ` : `
@@ -687,7 +687,7 @@ function j() {
687
687
  }
688
688
  t.section && l.length && (l = "[" + h$2(t.section) + "]" + (t.newline ? s + s : s) + l);
689
689
  for (const n of c) {
690
- const i = k$1(n, ".").join("\\."), f = (t.section ? t.section + "." : "") + i, u = d$2(e[n], {
690
+ const i = k$1(n, ".").join("\\."), f = (t.section ? t.section + "." : "") + i, u = d$1(e[n], {
691
691
  ...t,
692
692
  section: f
693
693
  });
@@ -764,15 +764,15 @@ function j() {
764
764
  return O = {
765
765
  parse: w$1,
766
766
  decode: w$1,
767
- stringify: d$2,
768
- encode: d$2,
767
+ stringify: d$1,
768
+ encode: d$1,
769
769
  safe: h$2,
770
770
  unsafe: A
771
771
  }, O;
772
772
  }
773
773
  var I = j();
774
- function S(y, d$2) {
775
- return I.parse(y, d$2);
774
+ function S(y, d$1) {
775
+ return I.parse(y, d$1);
776
776
  }
777
777
 
778
778
  //#endregion
@@ -1158,7 +1158,7 @@ function getDataProtocolModuleFormat(parsed) {
1158
1158
  * when used with a `file:` URL.
1159
1159
  *
1160
1160
  */
1161
- function extname$2(url) {
1161
+ function extname$1(url) {
1162
1162
  const pathname = url.pathname;
1163
1163
  let index = pathname.length;
1164
1164
  while (index--) {
@@ -1169,7 +1169,7 @@ function extname$2(url) {
1169
1169
  return "";
1170
1170
  }
1171
1171
  function getFileProtocolModuleFormat(url, _context, ignoreErrors) {
1172
- const ext = extname$2(url);
1172
+ const ext = extname$1(url);
1173
1173
  if (ext === ".js") {
1174
1174
  const { type: packageType } = getPackageScopeConfig(url);
1175
1175
  if (packageType !== "none") return packageType;
@@ -1849,7 +1849,7 @@ async function readPackageJSON(id, options = {}) {
1849
1849
  const blob = await promises.readFile(resolvedPath, "utf8");
1850
1850
  let parsed;
1851
1851
  try {
1852
- parsed = x(blob);
1852
+ parsed = x$1(blob);
1853
1853
  } catch {
1854
1854
  parsed = h(blob);
1855
1855
  }
@@ -2750,7 +2750,7 @@ async function resolveConfig(source, options, sourceOptions = {}) {
2750
2750
  })).dir;
2751
2751
  }
2752
2752
  if (NPM_PACKAGE_RE.test(source)) source = tryResolve(source, options) || source;
2753
- const ext = extname$1(source);
2753
+ const ext = extname$2(source);
2754
2754
  const isDir = !ext || ext === basename$1(source);
2755
2755
  const cwd$2 = resolve$1(options.cwd, isDir ? source : dirname$1(source));
2756
2756
  if (isDir) source = options.configFile;
@@ -2764,7 +2764,7 @@ async function resolveConfig(source, options, sourceOptions = {}) {
2764
2764
  res.configFile = tryResolve(resolve$1(cwd$2, source), options) || tryResolve(resolve$1(cwd$2, ".config", source.replace(/\.config$/, "")), options) || tryResolve(resolve$1(cwd$2, ".config", source), options) || source;
2765
2765
  if (!existsSync(res.configFile)) return res;
2766
2766
  res._configFile = res.configFile;
2767
- const configFileExt = extname$1(res.configFile) || "";
2767
+ const configFileExt = extname$2(res.configFile) || "";
2768
2768
  if (configFileExt in ASYNC_LOADERS) res.config = (await ASYNC_LOADERS[configFileExt]())(await readFile(res.configFile, "utf8"));
2769
2769
  else res.config = await options.jiti.import(res.configFile, { default: true });
2770
2770
  if (typeof res.config === "function") res.config = await res.config(options.context);
@@ -2856,4 +2856,4 @@ async function watchConfig(options) {
2856
2856
  }
2857
2857
 
2858
2858
  //#endregion
2859
- export { isAbsolute$1 as C, parse$1 as D, normalizeWindowsPath as E, relative$1 as O, extname$1 as S, normalize$1 as T, h as _, watchConfig as a, basename$1 as b, findNearestFile as c, readGitConfig as d, readPackageJSON as f, resolveModuleURL as g, resolveModulePath as h, setupDotenv as i, resolve$1 as k, findWorkspaceDir as l, resolvePackageJSON as m, loadConfig as n, debounce as o, resolveGitConfig as p, loadDotenv as r, findFile as s, SUPPORTED_EXTENSIONS as t, parseGitConfig as u, C as v, join$1 as w, dirname$1 as x, N as y };
2859
+ export { isAbsolute$1 as C, parse$1 as D, normalizeWindowsPath as E, relative$1 as O, extname$2 as S, normalize$1 as T, h as _, watchConfig as a, basename$1 as b, findNearestFile as c, readGitConfig as d, readPackageJSON as f, resolveModuleURL as g, resolveModulePath as h, setupDotenv as i, resolve$1 as k, findWorkspaceDir as l, resolvePackageJSON as m, loadConfig as n, debounce as o, resolveGitConfig as p, loadDotenv as r, findFile as s, SUPPORTED_EXTENSIONS as t, parseGitConfig as u, C as v, join$1 as w, dirname$1 as x, N$1 as y };