nitro-nightly 3.0.1-20251110-181111-07136d84 → 3.0.1-20251112-102837-7e13b2ea

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.
Files changed (46) hide show
  1. package/dist/_build/common.mjs +1 -1
  2. package/dist/_build/common2.mjs +1 -1
  3. package/dist/_build/rolldown.mjs +4 -4
  4. package/dist/_build/rollup.mjs +4 -4
  5. package/dist/_build/vite.build.mjs +3 -3
  6. package/dist/_build/vite.plugin.mjs +4 -4
  7. package/dist/_chunks/{B-D1JOIz.mjs → Dn4SwKy8.mjs} +3 -4
  8. package/dist/_chunks/{ANM1K1bE.mjs → XHOrB-Xs.mjs} +1 -2
  9. package/dist/_chunks/{BX9-zVkM.mjs → yCxk6erQ.mjs} +1 -1
  10. package/dist/_dev.mjs +1 -1
  11. package/dist/_libs/c12.mjs +242 -241
  12. package/dist/_libs/commondir.mjs +1 -1
  13. package/dist/_libs/deepmerge.mjs +1 -1
  14. package/dist/_libs/duplexer.mjs +1 -1
  15. package/dist/_libs/etag.mjs +1 -1
  16. package/dist/_libs/function-bind.mjs +1 -1
  17. package/dist/_libs/giget.mjs +13 -13
  18. package/dist/_libs/gzip-size.mjs +1 -1
  19. package/dist/_libs/hasown.mjs +1 -1
  20. package/dist/_libs/is-core-module.mjs +1 -1
  21. package/dist/_libs/is-module.mjs +1 -1
  22. package/dist/_libs/is-reference.mjs +1 -1
  23. package/dist/_libs/js-tokens.mjs +1 -1
  24. package/dist/_libs/node-fetch-native.mjs +1 -1
  25. package/dist/_libs/path-parse.mjs +1 -1
  26. package/dist/_libs/picomatch.mjs +1 -1
  27. package/dist/_libs/plugin-commonjs.mjs +1 -1
  28. package/dist/_libs/plugin-node-resolve.mjs +1 -1
  29. package/dist/_libs/strip-literal.mjs +1 -1
  30. package/dist/_libs/tinyglobby.mjs +1 -1
  31. package/dist/_libs/unimport.mjs +1 -1
  32. package/dist/_libs/vite-plugin-fullstack.mjs +1 -1
  33. package/dist/_presets.mjs +1 -1
  34. package/dist/builder.mjs +3 -3
  35. package/dist/cli/_chunks/detect-acorn.mjs +1 -1
  36. package/dist/cli/_chunks/dev.mjs +1 -1
  37. package/dist/cli/_chunks/dist.mjs +1 -1
  38. package/dist/cli/_chunks/dist2.mjs +2 -2
  39. package/dist/cli/_chunks/dist3.mjs +1 -1
  40. package/dist/cli/_chunks/dist4.mjs +1 -1
  41. package/dist/cli/_chunks/dist5.mjs +1 -1
  42. package/dist/cli/_chunks/yaml.mjs +1 -1
  43. package/dist/vite.mjs +3 -3
  44. package/package.json +4 -4
  45. /package/dist/_chunks/{C7CbzoI1.mjs → DJvLZH4H.mjs} +0 -0
  46. /package/dist/_chunks/{Bqks5huO.mjs → HT5r2mpP.mjs} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { O as relative$1, k as resolve$1, w as join$1 } from "../_libs/c12.mjs";
2
- import { i as writeFile$1 } from "../_chunks/C7CbzoI1.mjs";
2
+ import { i as writeFile$1 } from "../_chunks/DJvLZH4H.mjs";
3
3
  import { dirname } from "node:path";
4
4
  import { mkdir, readFile, stat } from "node:fs/promises";
5
5
  import { version } from "nitro/meta";
@@ -1,4 +1,4 @@
1
- import { i as __toESM } from "../_chunks/Bqks5huO.mjs";
1
+ import { i as __toESM } from "../_chunks/HT5r2mpP.mjs";
2
2
  import { O as relative, k as resolve, w as join, x as dirname } from "../_libs/c12.mjs";
3
3
  import { i as unplugin } from "../_libs/unimport.mjs";
4
4
  import { t as glob } from "../_libs/tinyglobby.mjs";
@@ -1,4 +1,4 @@
1
- import { O as relative, T as normalize, n as debounce, w as join } from "../_libs/c12.mjs";
1
+ import { O as relative, T as normalize, o as debounce, w as join } from "../_libs/c12.mjs";
2
2
  import "../_libs/gen-mapping.mjs";
3
3
  import "../_libs/magic-string.mjs";
4
4
  import "../_libs/acorn.mjs";
@@ -13,8 +13,8 @@ import "../_libs/tinyglobby.mjs";
13
13
  import { t as formatCompatibilityDate } from "../_libs/compatx.mjs";
14
14
  import "../_libs/std-env.mjs";
15
15
  import "../_libs/dot-prop.mjs";
16
- import "../_chunks/C7CbzoI1.mjs";
17
- import { i as scanHandlers, n as writeTypes } from "../_chunks/ANM1K1bE.mjs";
16
+ import "../_chunks/DJvLZH4H.mjs";
17
+ import { i as scanHandlers, n as writeTypes } from "../_chunks/XHOrB-Xs.mjs";
18
18
  import "../_libs/mime.mjs";
19
19
  import "../_libs/pathe.mjs";
20
20
  import "../_libs/untyped.mjs";
@@ -31,7 +31,7 @@ import "../_libs/etag.mjs";
31
31
  import "../_libs/duplexer.mjs";
32
32
  import "../_libs/gzip-size.mjs";
33
33
  import "../_libs/pretty-bytes.mjs";
34
- import { t as generateFSTree } from "../_chunks/BX9-zVkM.mjs";
34
+ import { t as generateFSTree } from "../_chunks/yCxk6erQ.mjs";
35
35
  import { builtinModules } from "node:module";
36
36
  import { watch } from "node:fs";
37
37
  import { defu } from "defu";
@@ -1,4 +1,4 @@
1
- import { C as isAbsolute, O as relative, T as normalize, n as debounce, w as join } from "../_libs/c12.mjs";
1
+ import { C as isAbsolute, O as relative, T as normalize, o as debounce, w as join } from "../_libs/c12.mjs";
2
2
  import "../_libs/gen-mapping.mjs";
3
3
  import "../_libs/magic-string.mjs";
4
4
  import "../_libs/acorn.mjs";
@@ -13,8 +13,8 @@ import "../_libs/tinyglobby.mjs";
13
13
  import { t as formatCompatibilityDate } from "../_libs/compatx.mjs";
14
14
  import "../_libs/std-env.mjs";
15
15
  import "../_libs/dot-prop.mjs";
16
- import "../_chunks/C7CbzoI1.mjs";
17
- import { i as scanHandlers, n as writeTypes } from "../_chunks/ANM1K1bE.mjs";
16
+ import "../_chunks/DJvLZH4H.mjs";
17
+ import { i as scanHandlers, n as writeTypes } from "../_chunks/XHOrB-Xs.mjs";
18
18
  import "../_libs/mime.mjs";
19
19
  import "../_libs/pathe.mjs";
20
20
  import "../_libs/untyped.mjs";
@@ -33,7 +33,7 @@ import "../_libs/etag.mjs";
33
33
  import "../_libs/duplexer.mjs";
34
34
  import "../_libs/gzip-size.mjs";
35
35
  import "../_libs/pretty-bytes.mjs";
36
- import { t as generateFSTree } from "../_chunks/BX9-zVkM.mjs";
36
+ import { t as generateFSTree } from "../_chunks/yCxk6erQ.mjs";
37
37
  import "../_libs/commondir.mjs";
38
38
  import "../_libs/is-reference.mjs";
39
39
  import { t as json } from "../_libs/plugin-json.mjs";
@@ -13,12 +13,12 @@ import "../_libs/tinyglobby.mjs";
13
13
  import "../_libs/compatx.mjs";
14
14
  import "../_libs/klona.mjs";
15
15
  import { r as a } from "../_libs/std-env.mjs";
16
- import "../_chunks/B-D1JOIz.mjs";
16
+ import "../_chunks/Dn4SwKy8.mjs";
17
17
  import "../_libs/escape-string-regexp.mjs";
18
18
  import "../_libs/tsconfck.mjs";
19
19
  import "../_libs/dot-prop.mjs";
20
- import "../_chunks/C7CbzoI1.mjs";
21
- import "../_chunks/ANM1K1bE.mjs";
20
+ import "../_chunks/DJvLZH4H.mjs";
21
+ import "../_chunks/XHOrB-Xs.mjs";
22
22
  import "../_libs/rou3.mjs";
23
23
  import "../_libs/mime.mjs";
24
24
  import "../_libs/pathe.mjs";
@@ -1,10 +1,10 @@
1
- import { C as isAbsolute$1, O as relative$1, T as normalize$1, b as basename$1, h as resolveModulePath, k as resolve$1, n as debounce, w as join$1, x as dirname$1 } from "../_libs/c12.mjs";
1
+ import { C as isAbsolute$1, O as relative$1, T as normalize$1, b as basename$1, h as resolveModulePath, k as resolve$1, o as debounce, w as join$1, x as dirname$1 } from "../_libs/c12.mjs";
2
2
  import { f as sanitizeFilePath } from "../_libs/local-pkg.mjs";
3
3
  import { t as formatCompatibilityDate } from "../_libs/compatx.mjs";
4
4
  import { n as T, r as a } from "../_libs/std-env.mjs";
5
- import { a as createNitro, n as prepare, r as copyPublicAssets } from "../_chunks/B-D1JOIz.mjs";
6
- import { n as prettyPath } from "../_chunks/C7CbzoI1.mjs";
7
- import { i as scanHandlers } from "../_chunks/ANM1K1bE.mjs";
5
+ import { a as createNitro, n as prepare, r as copyPublicAssets } from "../_chunks/Dn4SwKy8.mjs";
6
+ import { n as prettyPath } from "../_chunks/DJvLZH4H.mjs";
7
+ import { i as scanHandlers } from "../_chunks/XHOrB-Xs.mjs";
8
8
  import { n as writeBuildInfo, t as getBuildInfo } from "./common.mjs";
9
9
  import { i as NodeDevWorker, r as NitroDevApp } from "../_dev.mjs";
10
10
  import { i as watch$1 } from "../_libs/chokidar.mjs";
@@ -1,5 +1,4 @@
1
- import { i as __toESM } from "./Bqks5huO.mjs";
2
- import { O as relative, T as normalize, g as resolveModuleURL, h as resolveModulePath, i as loadConfig, k as resolve, l as findWorkspaceDir, t as watchConfig, w as join } from "../_libs/c12.mjs";
1
+ import { O as relative, T as normalize, a as watchConfig, g as resolveModuleURL, h as resolveModulePath, k as resolve, l as findWorkspaceDir, n as loadConfig, w as join } from "../_libs/c12.mjs";
3
2
  import { a as createUnimport } from "../_libs/unimport.mjs";
4
3
  import { t as glob } from "../_libs/tinyglobby.mjs";
5
4
  import { n as resolveCompatibilityDates, r as resolveCompatibilityDatesFromEnv } from "../_libs/compatx.mjs";
@@ -7,8 +6,8 @@ import { t as klona } from "../_libs/klona.mjs";
7
6
  import { i as d, r as a } from "../_libs/std-env.mjs";
8
7
  import { t as escapeStringRegexp } from "../_libs/escape-string-regexp.mjs";
9
8
  import { n as parse, t as TSConfckCache } from "../_libs/tsconfck.mjs";
10
- import { i as writeFile$1, n as prettyPath, r as resolveNitroPath, t as isDirectory } from "./C7CbzoI1.mjs";
11
- import { i as scanHandlers, r as scanAndSyncOptions, t as runParallel } from "./ANM1K1bE.mjs";
9
+ import { i as writeFile$1, n as prettyPath, r as resolveNitroPath, t as isDirectory } from "./DJvLZH4H.mjs";
10
+ import { i as scanHandlers, r as scanAndSyncOptions, t as runParallel } from "./XHOrB-Xs.mjs";
12
11
  import { a as findRoute, i as findAllRoutes, n as addRoute, r as createRouter, t as compileRouterToString } from "../_libs/rou3.mjs";
13
12
  import { t as src_default } from "../_libs/mime.mjs";
14
13
  import { n as z, t as P } from "../_libs/ultrahtml.mjs";
@@ -1,9 +1,8 @@
1
- import { i as __toESM } from "./Bqks5huO.mjs";
2
1
  import { C as isAbsolute, O as relative, h as resolveModulePath, k as resolve, w as join, x as dirname } from "../_libs/c12.mjs";
3
2
  import { c as parseNodeModulePath, s as lookupNodeModuleSubpath } from "../_libs/local-pkg.mjs";
4
3
  import { o as toExports } from "../_libs/unimport.mjs";
5
4
  import { t as glob } from "../_libs/tinyglobby.mjs";
6
- import { i as writeFile, r as resolveNitroPath, t as isDirectory } from "./C7CbzoI1.mjs";
5
+ import { i as writeFile, r as resolveNitroPath, t as isDirectory } from "./DJvLZH4H.mjs";
7
6
  import { t as resolveAlias } from "../_libs/pathe.mjs";
8
7
  import { n as resolveSchema, t as generateTypes } from "../_libs/untyped.mjs";
9
8
  import { existsSync, promises } from "node:fs";
@@ -1,7 +1,7 @@
1
1
  import { O as relative, k as resolve, x as dirname } from "../_libs/c12.mjs";
2
2
  import { t as glob } from "../_libs/tinyglobby.mjs";
3
3
  import { r as a } from "../_libs/std-env.mjs";
4
- import { t as runParallel } from "./ANM1K1bE.mjs";
4
+ import { t as runParallel } from "./XHOrB-Xs.mjs";
5
5
  import { t as gzipSize } from "../_libs/gzip-size.mjs";
6
6
  import { t as prettyBytes } from "../_libs/pretty-bytes.mjs";
7
7
  import { promises } from "node:fs";
package/dist/_dev.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { S as extname$1, k as resolve$1, n as debounce, w as join$1 } from "./_libs/c12.mjs";
1
+ import { S as extname$1, k as resolve$1, o as debounce, w as join$1 } from "./_libs/c12.mjs";
2
2
  import { n as T, r as a } from "./_libs/std-env.mjs";
3
3
  import { t as src_default } from "./_libs/mime.mjs";
4
4
  import { r as writeDevBuildInfo } from "./_build/common.mjs";
@@ -1,4 +1,4 @@
1
- import { i as __toESM, n as __require, t as __commonJS } from "../_chunks/Bqks5huO.mjs";
1
+ import { i as __toESM, n as __require, t as __commonJS } from "../_chunks/HT5r2mpP.mjs";
2
2
  import path, { isAbsolute, resolve } from "node:path";
3
3
  import process$1 from "node:process";
4
4
  import fs, { existsSync, lstatSync, promises, readFileSync, realpathSync, statSync } from "node:fs";
@@ -1902,135 +1902,6 @@ function parseGitConfig(ini) {
1902
1902
  return S(ini.replaceAll(/^\[(\w+) "(.+)"\]$/gm, "[$1.$2]"));
1903
1903
  }
1904
1904
 
1905
- //#endregion
1906
- //#region node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.mjs
1907
- function isBuffer(obj) {
1908
- return obj && obj.constructor && typeof obj.constructor.isBuffer === "function" && obj.constructor.isBuffer(obj);
1909
- }
1910
- function keyIdentity(key) {
1911
- return key;
1912
- }
1913
- function flatten(target, opts) {
1914
- opts = opts || {};
1915
- const delimiter$1 = opts.delimiter || ".";
1916
- const maxDepth = opts.maxDepth;
1917
- const transformKey = opts.transformKey || keyIdentity;
1918
- const output = {};
1919
- function step(object, prev, currentDepth) {
1920
- currentDepth = currentDepth || 1;
1921
- Object.keys(object).forEach(function(key) {
1922
- const value = object[key];
1923
- const isarray = opts.safe && Array.isArray(value);
1924
- const type = Object.prototype.toString.call(value);
1925
- const isbuffer = isBuffer(value);
1926
- const isobject = type === "[object Object]" || type === "[object Array]";
1927
- const newKey = prev ? prev + delimiter$1 + transformKey(key) : transformKey(key);
1928
- if (!isarray && !isbuffer && isobject && Object.keys(value).length && (!opts.maxDepth || currentDepth < maxDepth)) return step(value, newKey, currentDepth + 1);
1929
- output[newKey] = value;
1930
- });
1931
- }
1932
- step(target);
1933
- return output;
1934
- }
1935
- function unflatten(target, opts) {
1936
- opts = opts || {};
1937
- const delimiter$1 = opts.delimiter || ".";
1938
- const overwrite = opts.overwrite || false;
1939
- const transformKey = opts.transformKey || keyIdentity;
1940
- const result = {};
1941
- if (isBuffer(target) || Object.prototype.toString.call(target) !== "[object Object]") return target;
1942
- function getkey(key) {
1943
- const parsedKey = Number(key);
1944
- return isNaN(parsedKey) || key.indexOf(".") !== -1 || opts.object ? key : parsedKey;
1945
- }
1946
- function addKeys(keyPrefix, recipient, target$1) {
1947
- return Object.keys(target$1).reduce(function(result$1, key) {
1948
- result$1[keyPrefix + delimiter$1 + key] = target$1[key];
1949
- return result$1;
1950
- }, recipient);
1951
- }
1952
- function isEmpty(val) {
1953
- const type = Object.prototype.toString.call(val);
1954
- const isArray = type === "[object Array]";
1955
- const isObject = type === "[object Object]";
1956
- if (!val) return true;
1957
- else if (isArray) return !val.length;
1958
- else if (isObject) return !Object.keys(val).length;
1959
- }
1960
- target = Object.keys(target).reduce(function(result$1, key) {
1961
- const type = Object.prototype.toString.call(target[key]);
1962
- if (!(type === "[object Object]" || type === "[object Array]") || isEmpty(target[key])) {
1963
- result$1[key] = target[key];
1964
- return result$1;
1965
- } else return addKeys(key, result$1, flatten(target[key], opts));
1966
- }, {});
1967
- Object.keys(target).forEach(function(key) {
1968
- const split = key.split(delimiter$1).map(transformKey);
1969
- let key1 = getkey(split.shift());
1970
- let key2 = getkey(split[0]);
1971
- let recipient = result;
1972
- while (key2 !== void 0) {
1973
- if (key1 === "__proto__") return;
1974
- const type = Object.prototype.toString.call(recipient[key1]);
1975
- const isobject = type === "[object Object]" || type === "[object Array]";
1976
- if (!overwrite && !isobject && typeof recipient[key1] !== "undefined") return;
1977
- if (overwrite && !isobject || !overwrite && recipient[key1] == null) recipient[key1] = typeof key2 === "number" && !opts.object ? [] : {};
1978
- recipient = recipient[key1];
1979
- if (split.length > 0) {
1980
- key1 = getkey(split.shift());
1981
- key2 = getkey(split[0]);
1982
- }
1983
- }
1984
- recipient[key1] = unflatten(target[key], opts);
1985
- });
1986
- return result;
1987
- }
1988
- const RE_KEY_VAL = /^\s*([^\s=]+)\s*=\s*(.*)?\s*$/;
1989
- const RE_LINES = /\n|\r|\r\n/;
1990
- const defaults = {
1991
- name: ".conf",
1992
- dir: process.cwd(),
1993
- flat: false
1994
- };
1995
- function withDefaults(options) {
1996
- if (typeof options === "string") options = { name: options };
1997
- return {
1998
- ...defaults,
1999
- ...options
2000
- };
2001
- }
2002
- function parse$1(contents, options = {}) {
2003
- const config$1 = {};
2004
- const lines = contents.split(RE_LINES);
2005
- for (const line of lines) {
2006
- const match = line.match(RE_KEY_VAL);
2007
- if (!match) continue;
2008
- const key = match[1];
2009
- if (!key || key === "__proto__" || key === "constructor") continue;
2010
- const value = destr((match[2] || "").trim());
2011
- if (key.endsWith("[]")) {
2012
- const nkey = key.slice(0, Math.max(0, key.length - 2));
2013
- config$1[nkey] = (config$1[nkey] || []).concat(value);
2014
- continue;
2015
- }
2016
- config$1[key] = value;
2017
- }
2018
- return options.flat ? config$1 : unflatten(config$1, { overwrite: true });
2019
- }
2020
- function parseFile(path$2, options) {
2021
- if (!existsSync(path$2)) return {};
2022
- return parse$1(readFileSync(path$2, "utf8"), options);
2023
- }
2024
- function read(options) {
2025
- options = withDefaults(options);
2026
- return parseFile(resolve(options.dir, options.name), options);
2027
- }
2028
- function readUser(options) {
2029
- options = withDefaults(options);
2030
- options.dir = process.env.XDG_CONFIG_HOME || homedir();
2031
- return read(options);
2032
- }
2033
-
2034
1905
  //#endregion
2035
1906
  //#region node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/package.json
2036
1907
  var require_package = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/package.json": ((exports, module) => {
@@ -2140,7 +2011,7 @@ var require_main = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/dotenv@17.2.
2140
2011
  return supportsAnsi() ? `\x1b[2m${text}\x1b[0m` : text;
2141
2012
  }
2142
2013
  const LINE = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/gm;
2143
- function parse(src) {
2014
+ function parse$1(src) {
2144
2015
  const obj = {};
2145
2016
  let lines = src.toString();
2146
2017
  lines = lines.replace(/\r\n?/gm, "\n");
@@ -2360,7 +2231,7 @@ var require_main = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/dotenv@17.2.
2360
2231
  _parseVault,
2361
2232
  config,
2362
2233
  decrypt,
2363
- parse,
2234
+ parse: parse$1,
2364
2235
  populate
2365
2236
  };
2366
2237
  module.exports.configDotenv = DotenvModule.configDotenv;
@@ -2374,8 +2245,230 @@ var require_main = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/dotenv@17.2.
2374
2245
  }) });
2375
2246
 
2376
2247
  //#endregion
2377
- //#region node_modules/.pnpm/c12@3.3.1/node_modules/c12/dist/shared/c12.8GPsgFQh.mjs
2378
- var import_main$1 = /* @__PURE__ */ __toESM(require_main(), 1);
2248
+ //#region node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.mjs
2249
+ function isBuffer(obj) {
2250
+ return obj && obj.constructor && typeof obj.constructor.isBuffer === "function" && obj.constructor.isBuffer(obj);
2251
+ }
2252
+ function keyIdentity(key) {
2253
+ return key;
2254
+ }
2255
+ function flatten(target, opts) {
2256
+ opts = opts || {};
2257
+ const delimiter$1 = opts.delimiter || ".";
2258
+ const maxDepth = opts.maxDepth;
2259
+ const transformKey = opts.transformKey || keyIdentity;
2260
+ const output = {};
2261
+ function step(object, prev, currentDepth) {
2262
+ currentDepth = currentDepth || 1;
2263
+ Object.keys(object).forEach(function(key) {
2264
+ const value = object[key];
2265
+ const isarray = opts.safe && Array.isArray(value);
2266
+ const type = Object.prototype.toString.call(value);
2267
+ const isbuffer = isBuffer(value);
2268
+ const isobject = type === "[object Object]" || type === "[object Array]";
2269
+ const newKey = prev ? prev + delimiter$1 + transformKey(key) : transformKey(key);
2270
+ if (!isarray && !isbuffer && isobject && Object.keys(value).length && (!opts.maxDepth || currentDepth < maxDepth)) return step(value, newKey, currentDepth + 1);
2271
+ output[newKey] = value;
2272
+ });
2273
+ }
2274
+ step(target);
2275
+ return output;
2276
+ }
2277
+ function unflatten(target, opts) {
2278
+ opts = opts || {};
2279
+ const delimiter$1 = opts.delimiter || ".";
2280
+ const overwrite = opts.overwrite || false;
2281
+ const transformKey = opts.transformKey || keyIdentity;
2282
+ const result = {};
2283
+ if (isBuffer(target) || Object.prototype.toString.call(target) !== "[object Object]") return target;
2284
+ function getkey(key) {
2285
+ const parsedKey = Number(key);
2286
+ return isNaN(parsedKey) || key.indexOf(".") !== -1 || opts.object ? key : parsedKey;
2287
+ }
2288
+ function addKeys(keyPrefix, recipient, target$1) {
2289
+ return Object.keys(target$1).reduce(function(result$1, key) {
2290
+ result$1[keyPrefix + delimiter$1 + key] = target$1[key];
2291
+ return result$1;
2292
+ }, recipient);
2293
+ }
2294
+ function isEmpty(val) {
2295
+ const type = Object.prototype.toString.call(val);
2296
+ const isArray = type === "[object Array]";
2297
+ const isObject = type === "[object Object]";
2298
+ if (!val) return true;
2299
+ else if (isArray) return !val.length;
2300
+ else if (isObject) return !Object.keys(val).length;
2301
+ }
2302
+ target = Object.keys(target).reduce(function(result$1, key) {
2303
+ const type = Object.prototype.toString.call(target[key]);
2304
+ if (!(type === "[object Object]" || type === "[object Array]") || isEmpty(target[key])) {
2305
+ result$1[key] = target[key];
2306
+ return result$1;
2307
+ } else return addKeys(key, result$1, flatten(target[key], opts));
2308
+ }, {});
2309
+ Object.keys(target).forEach(function(key) {
2310
+ const split = key.split(delimiter$1).map(transformKey);
2311
+ let key1 = getkey(split.shift());
2312
+ let key2 = getkey(split[0]);
2313
+ let recipient = result;
2314
+ while (key2 !== void 0) {
2315
+ if (key1 === "__proto__") return;
2316
+ const type = Object.prototype.toString.call(recipient[key1]);
2317
+ const isobject = type === "[object Object]" || type === "[object Array]";
2318
+ if (!overwrite && !isobject && typeof recipient[key1] !== "undefined") return;
2319
+ if (overwrite && !isobject || !overwrite && recipient[key1] == null) recipient[key1] = typeof key2 === "number" && !opts.object ? [] : {};
2320
+ recipient = recipient[key1];
2321
+ if (split.length > 0) {
2322
+ key1 = getkey(split.shift());
2323
+ key2 = getkey(split[0]);
2324
+ }
2325
+ }
2326
+ recipient[key1] = unflatten(target[key], opts);
2327
+ });
2328
+ return result;
2329
+ }
2330
+ const RE_KEY_VAL = /^\s*([^\s=]+)\s*=\s*(.*)?\s*$/;
2331
+ const RE_LINES = /\n|\r|\r\n/;
2332
+ const defaults = {
2333
+ name: ".conf",
2334
+ dir: process.cwd(),
2335
+ flat: false
2336
+ };
2337
+ function withDefaults(options) {
2338
+ if (typeof options === "string") options = { name: options };
2339
+ return {
2340
+ ...defaults,
2341
+ ...options
2342
+ };
2343
+ }
2344
+ function parse(contents, options = {}) {
2345
+ const config$1 = {};
2346
+ const lines = contents.split(RE_LINES);
2347
+ for (const line of lines) {
2348
+ const match = line.match(RE_KEY_VAL);
2349
+ if (!match) continue;
2350
+ const key = match[1];
2351
+ if (!key || key === "__proto__" || key === "constructor") continue;
2352
+ const value = destr((match[2] || "").trim());
2353
+ if (key.endsWith("[]")) {
2354
+ const nkey = key.slice(0, Math.max(0, key.length - 2));
2355
+ config$1[nkey] = (config$1[nkey] || []).concat(value);
2356
+ continue;
2357
+ }
2358
+ config$1[key] = value;
2359
+ }
2360
+ return options.flat ? config$1 : unflatten(config$1, { overwrite: true });
2361
+ }
2362
+ function parseFile(path$2, options) {
2363
+ if (!existsSync(path$2)) return {};
2364
+ return parse(readFileSync(path$2, "utf8"), options);
2365
+ }
2366
+ function read(options) {
2367
+ options = withDefaults(options);
2368
+ return parseFile(resolve(options.dir, options.name), options);
2369
+ }
2370
+ function readUser(options) {
2371
+ options = withDefaults(options);
2372
+ options.dir = process.env.XDG_CONFIG_HOME || homedir();
2373
+ return read(options);
2374
+ }
2375
+
2376
+ //#endregion
2377
+ //#region node_modules/.pnpm/perfect-debounce@2.0.0/node_modules/perfect-debounce/dist/index.mjs
2378
+ const DEBOUNCE_DEFAULTS = { trailing: true };
2379
+ /**
2380
+ Debounce functions
2381
+ @param fn - Promise-returning/async function to debounce.
2382
+ @param wait - Milliseconds to wait before calling `fn`. Default value is 25ms
2383
+ @returns A function that delays calling `fn` until after `wait` milliseconds have elapsed since the last time it was called.
2384
+ @example
2385
+ ```
2386
+ import { debounce } from 'perfect-debounce';
2387
+ const expensiveCall = async input => input;
2388
+ const debouncedFn = debounce(expensiveCall, 200);
2389
+ for (const number of [1, 2, 3]) {
2390
+ console.log(await debouncedFn(number));
2391
+ }
2392
+ //=> 1
2393
+ //=> 2
2394
+ //=> 3
2395
+ ```
2396
+ */
2397
+ function debounce(fn, wait = 25, options = {}) {
2398
+ options = {
2399
+ ...DEBOUNCE_DEFAULTS,
2400
+ ...options
2401
+ };
2402
+ if (!Number.isFinite(wait)) throw new TypeError("Expected `wait` to be a finite number");
2403
+ let leadingValue;
2404
+ let timeout;
2405
+ let resolveList = [];
2406
+ let currentPromise;
2407
+ let trailingArgs;
2408
+ const applyFn = (_this, args) => {
2409
+ currentPromise = _applyPromised(fn, _this, args);
2410
+ currentPromise.finally(() => {
2411
+ currentPromise = null;
2412
+ if (options.trailing && trailingArgs && !timeout) {
2413
+ const promise = applyFn(_this, trailingArgs);
2414
+ trailingArgs = null;
2415
+ return promise;
2416
+ }
2417
+ });
2418
+ return currentPromise;
2419
+ };
2420
+ const debounced = function(...args) {
2421
+ if (options.trailing) trailingArgs = args;
2422
+ if (currentPromise) return currentPromise;
2423
+ return new Promise((resolve$2) => {
2424
+ const shouldCallNow = !timeout && options.leading;
2425
+ clearTimeout(timeout);
2426
+ timeout = setTimeout(() => {
2427
+ timeout = null;
2428
+ const promise = options.leading ? leadingValue : applyFn(this, args);
2429
+ trailingArgs = null;
2430
+ for (const _resolve of resolveList) _resolve(promise);
2431
+ resolveList = [];
2432
+ }, wait);
2433
+ if (shouldCallNow) {
2434
+ leadingValue = applyFn(this, args);
2435
+ resolve$2(leadingValue);
2436
+ } else resolveList.push(resolve$2);
2437
+ });
2438
+ };
2439
+ const _clearTimeout = (timer) => {
2440
+ if (timer) {
2441
+ clearTimeout(timer);
2442
+ timeout = null;
2443
+ }
2444
+ };
2445
+ debounced.isPending = () => !!timeout;
2446
+ debounced.cancel = () => {
2447
+ _clearTimeout(timeout);
2448
+ resolveList = [];
2449
+ trailingArgs = null;
2450
+ };
2451
+ debounced.flush = () => {
2452
+ _clearTimeout(timeout);
2453
+ if (!trailingArgs || currentPromise) return;
2454
+ const args = trailingArgs;
2455
+ trailingArgs = null;
2456
+ return applyFn(this, args);
2457
+ };
2458
+ return debounced;
2459
+ }
2460
+ async function _applyPromised(fn, _this, args) {
2461
+ return await fn.apply(_this, args);
2462
+ }
2463
+
2464
+ //#endregion
2465
+ //#region node_modules/.pnpm/c12@3.3.2_magicast@0.5.1/node_modules/c12/dist/index.mjs
2466
+ var import_main = /* @__PURE__ */ __toESM(require_main(), 1);
2467
+ /**
2468
+ * Load and interpolate environment variables into `process.env`.
2469
+ * If you need more control (or access to the values), consider using `loadDotenv` instead
2470
+ *
2471
+ */
2379
2472
  async function setupDotenv(options) {
2380
2473
  const targetEnvironment = options.env ?? process.env;
2381
2474
  const environment = await loadDotenv({
@@ -2391,8 +2484,9 @@ async function setupDotenv(options) {
2391
2484
  }
2392
2485
  return environment;
2393
2486
  }
2487
+ /** Load environment variables into an object. */
2394
2488
  async function loadDotenv(options) {
2395
- const environment = /* @__PURE__ */ Object.create(null);
2489
+ const environment = Object.create(null);
2396
2490
  const cwd$2 = resolve$1(options.cwd || ".");
2397
2491
  const _fileName = options.fileName || ".env";
2398
2492
  const dotenvFiles = typeof _fileName === "string" ? [_fileName] : _fileName;
@@ -2401,7 +2495,7 @@ async function loadDotenv(options) {
2401
2495
  for (const file of dotenvFiles) {
2402
2496
  const dotenvFile = resolve$1(cwd$2, file);
2403
2497
  if (!statSync(dotenvFile, { throwIfNoEntry: false })?.isFile()) continue;
2404
- const parsed = import_main$1.parse(await promises.readFile(dotenvFile, "utf8"));
2498
+ const parsed = import_main.parse(await promises.readFile(dotenvFile, "utf8"));
2405
2499
  for (const key in parsed) {
2406
2500
  if (key in environment && !dotenvVars.has(key)) continue;
2407
2501
  environment[key] = parsed[key];
@@ -2415,15 +2509,15 @@ function interpolate(target, source = {}, parse$3 = (v$1) => v$1) {
2415
2509
  function getValue(key) {
2416
2510
  return source[key] === void 0 ? target[key] : source[key];
2417
2511
  }
2418
- function interpolate2(value, parents = []) {
2512
+ function interpolate$1(value, parents = []) {
2419
2513
  if (typeof value !== "string") return value;
2420
2514
  return parse$3((value.match(/(.?\${?(?:[\w:]+)?}?)/g) || []).reduce((newValue, match) => {
2421
2515
  const parts = /(.?)\${?([\w:]+)?}?/g.exec(match) || [];
2422
2516
  const prefix = parts[1];
2423
- let value2, replacePart;
2517
+ let value$1, replacePart;
2424
2518
  if (prefix === "\\") {
2425
2519
  replacePart = parts[0] || "";
2426
- value2 = replacePart.replace(String.raw`\$`, "$");
2520
+ value$1 = replacePart.replace(String.raw`\$`, "$");
2427
2521
  } else {
2428
2522
  const key = parts[2];
2429
2523
  replacePart = (parts[0] || "").slice(prefix.length);
@@ -2431,13 +2525,13 @@ function interpolate(target, source = {}, parse$3 = (v$1) => v$1) {
2431
2525
  console.warn(`Please avoid recursive environment variables ( loop: ${parents.join(" > ")} > ${key} )`);
2432
2526
  return "";
2433
2527
  }
2434
- value2 = getValue(key);
2435
- value2 = interpolate2(value2, [...parents, key]);
2528
+ value$1 = getValue(key);
2529
+ value$1 = interpolate$1(value$1, [...parents, key]);
2436
2530
  }
2437
- return value2 === void 0 ? newValue : newValue.replace(replacePart, value2);
2531
+ return value$1 === void 0 ? newValue : newValue.replace(replacePart, value$1);
2438
2532
  }, value));
2439
2533
  }
2440
- for (const key in target) target[key] = interpolate2(getValue(key));
2534
+ for (const key in target) target[key] = interpolate$1(getValue(key));
2441
2535
  }
2442
2536
  function getDotEnvVars(targetEnvironment) {
2443
2537
  const globalRegistry = globalThis.__c12_dotenv_vars__ ||= /* @__PURE__ */ new Map();
@@ -2629,12 +2723,12 @@ const GIGET_PREFIXES = [
2629
2723
  const NPM_PACKAGE_RE = /^(@[\da-z~-][\d._a-z~-]*\/)?[\da-z~-][\d._a-z~-]*($|\/.*)/;
2630
2724
  async function resolveConfig(source, options, sourceOptions = {}) {
2631
2725
  if (options.resolve) {
2632
- const res2 = await options.resolve(source, options);
2633
- if (res2) return res2;
2726
+ const res$1 = await options.resolve(source, options);
2727
+ if (res$1) return res$1;
2634
2728
  }
2635
2729
  const _merger = options.merger || defu;
2636
2730
  const customProviderKeys = Object.keys(sourceOptions.giget?.providers || {}).map((key) => `${key}:`);
2637
- const gigetPrefixes = customProviderKeys.length > 0 ? [.../* @__PURE__ */ new Set([...customProviderKeys, ...GIGET_PREFIXES])] : GIGET_PREFIXES;
2731
+ const gigetPrefixes = customProviderKeys.length > 0 ? [...new Set([...customProviderKeys, ...GIGET_PREFIXES])] : GIGET_PREFIXES;
2638
2732
  if (options.giget !== false && gigetPrefixes.some((prefix) => source.startsWith(prefix))) {
2639
2733
  const { downloadTemplate } = await import("../cli/_chunks/dist5.mjs");
2640
2734
  const { digest } = await import("ohash");
@@ -2698,98 +2792,6 @@ function tryResolve(id, options) {
2698
2792
  });
2699
2793
  return res ? normalize$1(res) : void 0;
2700
2794
  }
2701
-
2702
- //#endregion
2703
- //#region node_modules/.pnpm/perfect-debounce@2.0.0/node_modules/perfect-debounce/dist/index.mjs
2704
- const DEBOUNCE_DEFAULTS = { trailing: true };
2705
- /**
2706
- Debounce functions
2707
- @param fn - Promise-returning/async function to debounce.
2708
- @param wait - Milliseconds to wait before calling `fn`. Default value is 25ms
2709
- @returns A function that delays calling `fn` until after `wait` milliseconds have elapsed since the last time it was called.
2710
- @example
2711
- ```
2712
- import { debounce } from 'perfect-debounce';
2713
- const expensiveCall = async input => input;
2714
- const debouncedFn = debounce(expensiveCall, 200);
2715
- for (const number of [1, 2, 3]) {
2716
- console.log(await debouncedFn(number));
2717
- }
2718
- //=> 1
2719
- //=> 2
2720
- //=> 3
2721
- ```
2722
- */
2723
- function debounce(fn, wait = 25, options = {}) {
2724
- options = {
2725
- ...DEBOUNCE_DEFAULTS,
2726
- ...options
2727
- };
2728
- if (!Number.isFinite(wait)) throw new TypeError("Expected `wait` to be a finite number");
2729
- let leadingValue;
2730
- let timeout;
2731
- let resolveList = [];
2732
- let currentPromise;
2733
- let trailingArgs;
2734
- const applyFn = (_this, args) => {
2735
- currentPromise = _applyPromised(fn, _this, args);
2736
- currentPromise.finally(() => {
2737
- currentPromise = null;
2738
- if (options.trailing && trailingArgs && !timeout) {
2739
- const promise = applyFn(_this, trailingArgs);
2740
- trailingArgs = null;
2741
- return promise;
2742
- }
2743
- });
2744
- return currentPromise;
2745
- };
2746
- const debounced = function(...args) {
2747
- if (options.trailing) trailingArgs = args;
2748
- if (currentPromise) return currentPromise;
2749
- return new Promise((resolve$2) => {
2750
- const shouldCallNow = !timeout && options.leading;
2751
- clearTimeout(timeout);
2752
- timeout = setTimeout(() => {
2753
- timeout = null;
2754
- const promise = options.leading ? leadingValue : applyFn(this, args);
2755
- trailingArgs = null;
2756
- for (const _resolve of resolveList) _resolve(promise);
2757
- resolveList = [];
2758
- }, wait);
2759
- if (shouldCallNow) {
2760
- leadingValue = applyFn(this, args);
2761
- resolve$2(leadingValue);
2762
- } else resolveList.push(resolve$2);
2763
- });
2764
- };
2765
- const _clearTimeout = (timer) => {
2766
- if (timer) {
2767
- clearTimeout(timer);
2768
- timeout = null;
2769
- }
2770
- };
2771
- debounced.isPending = () => !!timeout;
2772
- debounced.cancel = () => {
2773
- _clearTimeout(timeout);
2774
- resolveList = [];
2775
- trailingArgs = null;
2776
- };
2777
- debounced.flush = () => {
2778
- _clearTimeout(timeout);
2779
- if (!trailingArgs || currentPromise) return;
2780
- const args = trailingArgs;
2781
- trailingArgs = null;
2782
- return applyFn(this, args);
2783
- };
2784
- return debounced;
2785
- }
2786
- async function _applyPromised(fn, _this, args) {
2787
- return await fn.apply(_this, args);
2788
- }
2789
-
2790
- //#endregion
2791
- //#region node_modules/.pnpm/c12@3.3.1/node_modules/c12/dist/index.mjs
2792
- var import_main = /* @__PURE__ */ __toESM(require_main(), 1);
2793
2795
  const eventMap = {
2794
2796
  add: "created",
2795
2797
  change: "updated",
@@ -2826,8 +2828,7 @@ async function watchConfig(options) {
2826
2828
  try {
2827
2829
  config$1 = await loadConfig(options);
2828
2830
  } catch (error) {
2829
- console.warn(`Failed to load config ${path$2}
2830
- ${error}`);
2831
+ console.warn(`Failed to load config ${path$2}\n${error}`);
2831
2832
  return;
2832
2833
  }
2833
2834
  const changeCtx = {
@@ -2855,4 +2856,4 @@ ${error}`);
2855
2856
  }
2856
2857
 
2857
2858
  //#endregion
2858
- export { isAbsolute$1 as C, parse$2 as D, normalizeWindowsPath as E, relative$1 as O, extname$1 as S, normalize$1 as T, h as _, loadDotenv as a, basename$1 as b, findNearestFile as c, readGitConfig as d, readPackageJSON as f, resolveModuleURL as g, resolveModulePath as h, loadConfig as i, resolve$1 as k, findWorkspaceDir as l, resolvePackageJSON as m, debounce as n, setupDotenv as o, resolveGitConfig as p, SUPPORTED_EXTENSIONS as r, findFile as s, watchConfig 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$2 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 };
@@ -1,4 +1,4 @@
1
- import { n as __require, t as __commonJS } from "../_chunks/Bqks5huO.mjs";
1
+ import { n as __require, t as __commonJS } from "../_chunks/HT5r2mpP.mjs";
2
2
 
3
3
  //#region node_modules/.pnpm/commondir@1.0.1/node_modules/commondir/index.js
4
4
  var require_commondir = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/commondir@1.0.1/node_modules/commondir/index.js": ((exports, module) => {
@@ -1,4 +1,4 @@
1
- import { t as __commonJS } from "../_chunks/Bqks5huO.mjs";
1
+ import { t as __commonJS } from "../_chunks/HT5r2mpP.mjs";
2
2
 
3
3
  //#region node_modules/.pnpm/deepmerge@4.3.1/node_modules/deepmerge/dist/cjs.js
4
4
  var require_cjs = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/deepmerge@4.3.1/node_modules/deepmerge/dist/cjs.js": ((exports, module) => {
@@ -1,4 +1,4 @@
1
- import { n as __require, t as __commonJS } from "../_chunks/Bqks5huO.mjs";
1
+ import { n as __require, t as __commonJS } from "../_chunks/HT5r2mpP.mjs";
2
2
 
3
3
  //#region node_modules/.pnpm/duplexer@0.1.2/node_modules/duplexer/index.js
4
4
  var require_duplexer = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/duplexer@0.1.2/node_modules/duplexer/index.js": ((exports, module) => {
@@ -1,4 +1,4 @@
1
- import { n as __require, t as __commonJS } from "../_chunks/Bqks5huO.mjs";
1
+ import { n as __require, t as __commonJS } from "../_chunks/HT5r2mpP.mjs";
2
2
 
3
3
  //#region node_modules/.pnpm/etag@1.8.1/node_modules/etag/index.js
4
4
  /*!
@@ -1,4 +1,4 @@
1
- import { t as __commonJS } from "../_chunks/Bqks5huO.mjs";
1
+ import { t as __commonJS } from "../_chunks/HT5r2mpP.mjs";
2
2
 
3
3
  //#region node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js
4
4
  var require_implementation = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js": ((exports, module) => {
@@ -1,4 +1,4 @@
1
- import { i as __toESM, n as __require, r as __toDynamicImportESM, t as __commonJS } from "../_chunks/Bqks5huO.mjs";
1
+ import { n as __require, r as __toDynamicImportESM, t as __commonJS } from "../_chunks/HT5r2mpP.mjs";
2
2
  import { T as normalize$2, b as basename$2, f as readPackageJSON, k as resolve$2, w as join$2, x as dirname$2 } from "./c12.mjs";
3
3
  import { createRequire } from "node:module";
4
4
  import { delimiter, dirname, normalize, resolve } from "node:path";
@@ -10,8 +10,8 @@ import nativeFs from "fs";
10
10
  import path$1 from "path";
11
11
  import { createRequire as createRequire$1 } from "module";
12
12
  import { homedir, tmpdir } from "node:os";
13
- import { defu } from "defu";
14
13
  import Ds from "crypto";
14
+ import { defu } from "defu";
15
15
  import nt from "events";
16
16
  import { PassThrough, pipeline } from "node:stream";
17
17
  import { spawn } from "node:child_process";
@@ -6225,7 +6225,7 @@ var require_proxy = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/node-fetch-
6225
6225
  }
6226
6226
  }
6227
6227
  }, e$6(N$1, "SimpleSessionCache"), N$1);
6228
- function D$2({ allowH2: l$3, maxCachedSessions: I$1, socketPath: p$2, timeout: b$1, session: G$2,...J$1 }) {
6228
+ function D$2({ allowH2: l$3, maxCachedSessions: I$1, socketPath: p$2, timeout: b$1, session: G$2, ...J$1 }) {
6229
6229
  if (I$1 != null && (!Number.isInteger(I$1) || I$1 < 0)) throw new B$1("maxCachedSessions must be a positive integer or zero");
6230
6230
  const V$1 = {
6231
6231
  path: p$2,
@@ -8939,7 +8939,7 @@ ${AA.toString(16)}\r
8939
8939
  endStream: W$1,
8940
8940
  signal: KA
8941
8941
  }), cA()), ++sA[Y], HA.once("response", (yA) => {
8942
- const { [K$1]: LA,...JA } = yA;
8942
+ const { [K$1]: LA, ...JA } = yA;
8943
8943
  if (EA.onResponseStarted(), EA.aborted) {
8944
8944
  const WA = new t$7();
8945
8945
  c$6.errorRequest(aA, EA, WA), c$6.destroy(HA, WA);
@@ -9542,7 +9542,7 @@ ${AA.toString(16)}\r
9542
9542
  }
9543
9543
  e$6(l$3, "defaultFactory");
9544
9544
  const p$2 = class p$3 extends A$1 {
9545
- constructor(G$2, { connections: J$1, factory: V$1 = l$3, connect: _$2, connectTimeout: q$2, tls: M$1, maxCachedSessions: Y, socketPath: m$5, autoSelectFamily: f$6, autoSelectFamilyAttemptTimeout: n$4, allowH2: C$2,...w$3 } = {}) {
9545
+ constructor(G$2, { connections: J$1, factory: V$1 = l$3, connect: _$2, connectTimeout: q$2, tls: M$1, maxCachedSessions: Y, socketPath: m$5, autoSelectFamily: f$6, autoSelectFamilyAttemptTimeout: n$4, allowH2: C$2, ...w$3 } = {}) {
9546
9546
  if (super(), J$1 != null && (!Number.isFinite(J$1) || J$1 < 0)) throw new R$3("invalid connections");
9547
9547
  if (typeof V$1 != "function") throw new R$3("factory must be a function.");
9548
9548
  if (_$2 != null && typeof _$2 != "function" && typeof _$2 != "object") throw new R$3("connect must be a function or an object");
@@ -9599,7 +9599,7 @@ ${AA.toString(16)}\r
9599
9599
  }
9600
9600
  e$6(_$2, "defaultFactory");
9601
9601
  const M$1 = class M$2 extends c$6 {
9602
- constructor(m$5 = [], { factory: f$6 = _$2,...n$4 } = {}) {
9602
+ constructor(m$5 = [], { factory: f$6 = _$2, ...n$4 } = {}) {
9603
9603
  if (super(), this[N$1] = n$4, this[p$2] = -1, this[I$1] = 0, this[G$2] = this[N$1].maxWeightPerServer || 100, this[J$1] = this[N$1].errorPenalty || 15, Array.isArray(m$5) || (m$5 = [m$5]), typeof f$6 != "function") throw new k$2("factory must be a function.");
9604
9604
  this[U$1] = n$4.interceptors?.BalancedPool && Array.isArray(n$4.interceptors.BalancedPool) ? n$4.interceptors.BalancedPool : [], this[o$7] = f$6;
9605
9605
  for (const C$2 of m$5) this.addUpstream(C$2);
@@ -9658,7 +9658,7 @@ ${AA.toString(16)}\r
9658
9658
  }
9659
9659
  e$6(J$1, "defaultFactory");
9660
9660
  const _$2 = class _$3 extends F$4 {
9661
- constructor({ factory: M$1 = J$1, maxRedirections: Y = 0, connect: m$5,...f$6 } = {}) {
9661
+ constructor({ factory: M$1 = J$1, maxRedirections: Y = 0, connect: m$5, ...f$6 } = {}) {
9662
9662
  if (super(), typeof M$1 != "function") throw new A$1("factory must be a function.");
9663
9663
  if (m$5 != null && typeof m$5 != "function" && typeof m$5 != "object") throw new A$1("connect must be a function or an object");
9664
9664
  if (!Number.isInteger(Y) || Y < 0) throw new A$1("maxRedirections must be a positive number");
@@ -9818,7 +9818,7 @@ ${AA.toString(16)}\r
9818
9818
  SA(this, I$1, null);
9819
9819
  SA(this, p$2, null);
9820
9820
  mA(this, p$2, f$6), o$7 || (o$7 = !0, process.emitWarning("EnvHttpProxyAgent is experimental, expect them to change at any time.", { code: "UNDICI-EHPA" }));
9821
- const { httpProxy: n$4, httpsProxy: C$2, noProxy: w$3,...S$2 } = f$6;
9821
+ const { httpProxy: n$4, httpsProxy: C$2, noProxy: w$3, ...S$2 } = f$6;
9822
9822
  this[R$3] = new U$1(S$2);
9823
9823
  const x$2 = n$4 ?? process.env.http_proxy ?? process.env.HTTP_PROXY;
9824
9824
  x$2 ? this[F$4] = new D$2({
@@ -9889,7 +9889,7 @@ ${AA.toString(16)}\r
9889
9889
  e$6(F$4, "calculateRetryAfterHeader");
9890
9890
  const D$2 = class D$3 {
9891
9891
  constructor(r$3, o$7) {
9892
- const { retryOptions: N$1,...l$3 } = r$3, { retry: I$1, maxRetries: p$2, maxTimeout: b$1, minTimeout: G$2, timeoutFactor: J$1, methods: V$1, errorCodes: _$2, retryAfter: q$2, statusCodes: M$1 } = N$1 ?? {};
9892
+ const { retryOptions: N$1, ...l$3 } = r$3, { retry: I$1, maxRetries: p$2, maxTimeout: b$1, minTimeout: G$2, timeoutFactor: J$1, methods: V$1, errorCodes: _$2, retryAfter: q$2, statusCodes: M$1 } = N$1 ?? {};
9893
9893
  this.dispatch = o$7.dispatch, this.handler = o$7.handler, this.opts = {
9894
9894
  ...l$3,
9895
9895
  body: R$3(r$3.body)
@@ -10983,7 +10983,7 @@ ${AA.toString(16)}\r
10983
10983
  e$6(f$6, "checkNetConnect");
10984
10984
  function n$4(C$2) {
10985
10985
  if (C$2) {
10986
- const { agent: w$3,...S$2 } = C$2;
10986
+ const { agent: w$3, ...S$2 } = C$2;
10987
10987
  return S$2;
10988
10988
  }
10989
10989
  }
@@ -11359,7 +11359,7 @@ ${M$1.format(Y)}
11359
11359
  return redirect = e$6((k$2) => {
11360
11360
  const c$6 = k$2?.maxRedirections;
11361
11361
  return (B$1) => e$6(function(y$4, R$3) {
11362
- const { maxRedirections: F$4 = c$6,...Q } = y$4;
11362
+ const { maxRedirections: F$4 = c$6, ...Q } = y$4;
11363
11363
  if (!F$4) return B$1(y$4, R$3);
11364
11364
  return B$1(Q, new A$1(B$1, F$4, y$4, R$3));
11365
11365
  }, "redirectInterceptor");
@@ -16618,7 +16618,7 @@ ${p$2}`;
16618
16618
 
16619
16619
  //#endregion
16620
16620
  //#region node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.mjs
16621
- var import_proxy$1 = /* @__PURE__ */ __toESM(require_proxy(), 1);
16621
+ var import_proxy$1 = require_proxy();
16622
16622
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
16623
16623
  function getDefaultExportFromCjs(x$2) {
16624
16624
  return x$2 && x$2.__esModule && Object.prototype.hasOwnProperty.call(x$2, "default") ? x$2["default"] : x$2;
@@ -19283,7 +19283,7 @@ async function downloadTemplate(input, options = {}) {
19283
19283
 
19284
19284
  //#endregion
19285
19285
  //#region node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.mjs
19286
- var import_proxy = /* @__PURE__ */ __toESM(require_proxy(), 1);
19286
+ var import_proxy = require_proxy();
19287
19287
 
19288
19288
  //#endregion
19289
19289
  export { addDependency as a, installDependencies as c, require_node_fetch_native_DhEqb06g as i, packageManagers as l, registryProvider as n, addDevDependency as o, require_node as r, detectPackageManager as s, downloadTemplate as t };
@@ -1,4 +1,4 @@
1
- import { i as __toESM } from "../_chunks/Bqks5huO.mjs";
1
+ import { i as __toESM } from "../_chunks/HT5r2mpP.mjs";
2
2
  import { t as require_duplexer } from "./duplexer.mjs";
3
3
  import fs from "node:fs";
4
4
  import { promisify } from "node:util";
@@ -1,4 +1,4 @@
1
- import { t as __commonJS } from "../_chunks/Bqks5huO.mjs";
1
+ import { t as __commonJS } from "../_chunks/HT5r2mpP.mjs";
2
2
  import { t as require_function_bind } from "./function-bind.mjs";
3
3
 
4
4
  //#region node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js
@@ -1,4 +1,4 @@
1
- import { t as __commonJS } from "../_chunks/Bqks5huO.mjs";
1
+ import { t as __commonJS } from "../_chunks/HT5r2mpP.mjs";
2
2
  import { t as require_hasown } from "./hasown.mjs";
3
3
 
4
4
  //#region node_modules/.pnpm/is-core-module@2.16.1/node_modules/is-core-module/core.json
@@ -1,4 +1,4 @@
1
- import { t as __commonJS } from "../_chunks/Bqks5huO.mjs";
1
+ import { t as __commonJS } from "../_chunks/HT5r2mpP.mjs";
2
2
 
3
3
  //#region node_modules/.pnpm/is-module@1.0.0/node_modules/is-module/index.js
4
4
  var require_is_module = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/is-module@1.0.0/node_modules/is-module/index.js": ((exports, module) => {
@@ -1,4 +1,4 @@
1
- import { t as __commonJS } from "../_chunks/Bqks5huO.mjs";
1
+ import { t as __commonJS } from "../_chunks/HT5r2mpP.mjs";
2
2
 
3
3
  //#region node_modules/.pnpm/is-reference@1.2.1/node_modules/is-reference/dist/is-reference.js
4
4
  var require_is_reference = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/is-reference@1.2.1/node_modules/is-reference/dist/is-reference.js": ((exports, module) => {
@@ -1,4 +1,4 @@
1
- import { t as __commonJS } from "../_chunks/Bqks5huO.mjs";
1
+ import { t as __commonJS } from "../_chunks/HT5r2mpP.mjs";
2
2
 
3
3
  //#region node_modules/.pnpm/js-tokens@9.0.1/node_modules/js-tokens/index.js
4
4
  var require_js_tokens = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/js-tokens@9.0.1/node_modules/js-tokens/index.js": ((exports, module) => {
@@ -1,4 +1,4 @@
1
- import { n as __require, t as __commonJS } from "../_chunks/Bqks5huO.mjs";
1
+ import { n as __require, t as __commonJS } from "../_chunks/HT5r2mpP.mjs";
2
2
  import { i as require_node_fetch_native_DhEqb06g, r as require_node } from "./giget.mjs";
3
3
 
4
4
  //#region node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs
@@ -1,4 +1,4 @@
1
- import { t as __commonJS } from "../_chunks/Bqks5huO.mjs";
1
+ import { t as __commonJS } from "../_chunks/HT5r2mpP.mjs";
2
2
 
3
3
  //#region node_modules/.pnpm/path-parse@1.0.7/node_modules/path-parse/index.js
4
4
  var require_path_parse = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/path-parse@1.0.7/node_modules/path-parse/index.js": ((exports, module) => {
@@ -1,4 +1,4 @@
1
- import { t as __commonJS } from "../_chunks/Bqks5huO.mjs";
1
+ import { t as __commonJS } from "../_chunks/HT5r2mpP.mjs";
2
2
 
3
3
  //#region node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/constants.js
4
4
  var require_constants = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/constants.js": ((exports, module) => {
@@ -1,4 +1,4 @@
1
- import { i as __toESM } from "../_chunks/Bqks5huO.mjs";
1
+ import { i as __toESM } from "../_chunks/HT5r2mpP.mjs";
2
2
  import { t as MagicString } from "./magic-string.mjs";
3
3
  import { t as require_picomatch } from "./picomatch.mjs";
4
4
  import { t as Builder } from "./fdir.mjs";
@@ -1,4 +1,4 @@
1
- import { i as __toESM, n as __require, t as __commonJS } from "../_chunks/Bqks5huO.mjs";
1
+ import { i as __toESM, n as __require, t as __commonJS } from "../_chunks/HT5r2mpP.mjs";
2
2
  import { r as createFilter } from "./plugin-commonjs.mjs";
3
3
  import { t as require_cjs } from "./deepmerge.mjs";
4
4
  import { t as require_is_module } from "./is-module.mjs";
@@ -1,4 +1,4 @@
1
- import { i as __toESM } from "../_chunks/Bqks5huO.mjs";
1
+ import { i as __toESM } from "../_chunks/HT5r2mpP.mjs";
2
2
  import { t as require_js_tokens } from "./js-tokens.mjs";
3
3
 
4
4
  //#region node_modules/.pnpm/strip-literal@3.1.0/node_modules/strip-literal/dist/index.mjs
@@ -1,4 +1,4 @@
1
- import { i as __toESM } from "../_chunks/Bqks5huO.mjs";
1
+ import { i as __toESM } from "../_chunks/HT5r2mpP.mjs";
2
2
  import { t as require_picomatch } from "./picomatch.mjs";
3
3
  import { t as Builder } from "./fdir.mjs";
4
4
  import nativeFs from "fs";
@@ -1,4 +1,4 @@
1
- import { i as __toESM, n as __require, t as __commonJS } from "../_chunks/Bqks5huO.mjs";
1
+ import { i as __toESM, n as __require, t as __commonJS } from "../_chunks/HT5r2mpP.mjs";
2
2
  import { C as isAbsolute$1, D as parse$2, O as relative$1, T as normalize$2, b as basename$1, f as readPackageJSON, k as resolve$1, m as resolvePackageJSON, w as join$1, x as dirname$1 } from "./c12.mjs";
3
3
  import { t as MagicString } from "./magic-string.mjs";
4
4
  import { n as parse, t as Parser } from "./acorn.mjs";
@@ -9,7 +9,7 @@ import { createHash } from "node:crypto";
9
9
  import { isCSSRequest, normalizePath } from "vite";
10
10
  import assert$1 from "node:assert/strict";
11
11
 
12
- //#region node_modules/.pnpm/@pi0+vite-plugin-fullstack@0.0.5-pr-1297_vite@7.2.2_@types+node@24.10.0_jiti@2.6.1_ligh_420de11c17db6dc1bb00fb6cc17e9a42/node_modules/@pi0/vite-plugin-fullstack/dist/index.js
12
+ //#region node_modules/.pnpm/@pi0+vite-plugin-fullstack@0.0.5-pr-1297_vite@7.2.2_@types+node@24.10.1_jiti@2.6.1_ligh_8f4b5577cafc954033dce672471a9242/node_modules/@pi0/vite-plugin-fullstack/dist/index.js
13
13
  function parseIdQuery(id) {
14
14
  if (!id.includes("?")) return {
15
15
  filename: id,
package/dist/_presets.mjs CHANGED
@@ -8,7 +8,7 @@ import { t as glob } from "./_libs/tinyglobby.mjs";
8
8
  import { r as resolveCompatibilityDatesFromEnv, t as formatCompatibilityDate } from "./_libs/compatx.mjs";
9
9
  import { a as p, r as a, t as K } from "./_libs/std-env.mjs";
10
10
  import "./_libs/dot-prop.mjs";
11
- import { i as writeFile$2 } from "./_chunks/C7CbzoI1.mjs";
11
+ import { i as writeFile$2 } from "./_chunks/DJvLZH4H.mjs";
12
12
  import consola$1 from "consola";
13
13
  import { dirname, extname, relative, resolve } from "node:path";
14
14
  import { kebabCase } from "scule";
package/dist/builder.mjs CHANGED
@@ -13,12 +13,12 @@ import "./_libs/tinyglobby.mjs";
13
13
  import "./_libs/compatx.mjs";
14
14
  import "./_libs/klona.mjs";
15
15
  import "./_libs/std-env.mjs";
16
- import { a as createNitro, c as loadOptions, i as build, n as prepare, o as listTasks, r as copyPublicAssets, s as runTask, t as prerender } from "./_chunks/B-D1JOIz.mjs";
16
+ import { a as createNitro, c as loadOptions, i as build, n as prepare, o as listTasks, r as copyPublicAssets, s as runTask, t as prerender } from "./_chunks/Dn4SwKy8.mjs";
17
17
  import "./_libs/escape-string-regexp.mjs";
18
18
  import "./_libs/tsconfck.mjs";
19
19
  import "./_libs/dot-prop.mjs";
20
- import "./_chunks/C7CbzoI1.mjs";
21
- import { n as writeTypes } from "./_chunks/ANM1K1bE.mjs";
20
+ import "./_chunks/DJvLZH4H.mjs";
21
+ import { n as writeTypes } from "./_chunks/XHOrB-Xs.mjs";
22
22
  import "./_libs/rou3.mjs";
23
23
  import "./_libs/mime.mjs";
24
24
  import "./_libs/pathe.mjs";
@@ -9,4 +9,4 @@ import "../../_libs/strip-literal.mjs";
9
9
  import { n as detectImportsAcorn, r as traveseScopes, t as createVirtualImportsAcronWalker } from "../../_libs/unimport.mjs";
10
10
  import "../../_libs/estree-walker.mjs";
11
11
 
12
- export { createVirtualImportsAcronWalker, detectImportsAcorn, traveseScopes };
12
+ export { detectImportsAcorn };
@@ -1,7 +1,7 @@
1
1
  import { k as resolve } from "../../_libs/c12.mjs";
2
2
  import "../../_libs/std-env.mjs";
3
3
  import "../../_libs/dot-prop.mjs";
4
- import "../../_chunks/C7CbzoI1.mjs";
4
+ import "../../_chunks/DJvLZH4H.mjs";
5
5
  import "../../_libs/mime.mjs";
6
6
  import "../../_build/common.mjs";
7
7
  import "../../_libs/httpxy.mjs";
@@ -1,3 +1,3 @@
1
1
  import { c as findNearestFile, d as readGitConfig, f as readPackageJSON, l as findWorkspaceDir, m as resolvePackageJSON, p as resolveGitConfig, s as findFile, u as parseGitConfig } from "../../_libs/c12.mjs";
2
2
 
3
- export { findFile, findNearestFile, findWorkspaceDir, parseGitConfig, readGitConfig, readPackageJSON, resolveGitConfig, resolvePackageJSON };
3
+ export { readPackageJSON };
@@ -1,3 +1,3 @@
1
- import { a as loadDotenv, i as loadConfig, o as setupDotenv, r as SUPPORTED_EXTENSIONS, t as watchConfig } from "../../_libs/c12.mjs";
1
+ import { a as watchConfig, i as setupDotenv, n as loadConfig, r as loadDotenv, t as SUPPORTED_EXTENSIONS } from "../../_libs/c12.mjs";
2
2
 
3
- export { SUPPORTED_EXTENSIONS, loadConfig, loadDotenv, setupDotenv, watchConfig };
3
+ export { loadDotenv };
@@ -1,3 +1,3 @@
1
1
  import { n as createProxyServer, t as ProxyServer } from "../../_libs/httpxy.mjs";
2
2
 
3
- export { ProxyServer, createProxyServer };
3
+ export { createProxyServer };
@@ -1,4 +1,4 @@
1
1
  import "../../_libs/c12.mjs";
2
2
  import { a as addDependency, c as installDependencies, l as packageManagers, o as addDevDependency, s as detectPackageManager } from "../../_libs/giget.mjs";
3
3
 
4
- export { addDependency, addDevDependency, detectPackageManager, installDependencies, packageManagers };
4
+ export { addDevDependency };
@@ -1,4 +1,4 @@
1
1
  import "../../_libs/c12.mjs";
2
2
  import { n as registryProvider, t as downloadTemplate } from "../../_libs/giget.mjs";
3
3
 
4
- export { downloadTemplate, registryProvider };
4
+ export { downloadTemplate };
@@ -1,4 +1,4 @@
1
1
  import "../../_libs/c12.mjs";
2
2
  import { n as gr, r as mr } from "../../_libs/confbox.mjs";
3
3
 
4
- export { mr as parseYAML, gr as stringifyYAML };
4
+ export { mr as parseYAML };
package/dist/vite.mjs CHANGED
@@ -13,12 +13,12 @@ import "./_libs/tinyglobby.mjs";
13
13
  import "./_libs/compatx.mjs";
14
14
  import "./_libs/klona.mjs";
15
15
  import "./_libs/std-env.mjs";
16
- import "./_chunks/B-D1JOIz.mjs";
16
+ import "./_chunks/Dn4SwKy8.mjs";
17
17
  import "./_libs/escape-string-regexp.mjs";
18
18
  import "./_libs/tsconfck.mjs";
19
19
  import "./_libs/dot-prop.mjs";
20
- import "./_chunks/C7CbzoI1.mjs";
21
- import "./_chunks/ANM1K1bE.mjs";
20
+ import "./_chunks/DJvLZH4H.mjs";
21
+ import "./_chunks/XHOrB-Xs.mjs";
22
22
  import "./_libs/rou3.mjs";
23
23
  import "./_libs/mime.mjs";
24
24
  import "./_libs/pathe.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nitro-nightly",
3
- "version": "3.0.1-20251110-181111-07136d84",
3
+ "version": "3.0.1-20251112-102837-7e13b2ea",
4
4
  "description": "Build and Deploy Universal JavaScript Servers",
5
5
  "homepage": "https://nitro.build",
6
6
  "repository": "nitrojs/nitro",
@@ -66,9 +66,9 @@
66
66
  "nf3": "^0.1.10",
67
67
  "ofetch": "^2.0.0-alpha.3",
68
68
  "ohash": "^2.0.11",
69
- "oxc-minify": "^0.96.0",
70
- "oxc-transform": "^0.96.0",
71
- "srvx": "^0.9.5",
69
+ "oxc-minify": "^0.97.0",
70
+ "oxc-transform": "^0.97.0",
71
+ "srvx": "^0.9.6",
72
72
  "undici": "^7.16.0",
73
73
  "unenv": "^2.0.0-rc.24",
74
74
  "unstorage": "^2.0.0-alpha.4"
File without changes
File without changes