nitro-nightly 3.0.1-20251211-222202-e2f1ee7c → 3.0.1-20251212-103723-5f37156f

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.
@@ -8,7 +8,7 @@ import { promisify } from "util";
8
8
 
9
9
  //#region node_modules/.pnpm/deepmerge@4.3.1/node_modules/deepmerge/dist/cjs.js
10
10
  var require_cjs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11
- var isMergeableObject = function isMergeableObject$1(value) {
11
+ var isMergeableObject = function isMergeableObject(value) {
12
12
  return isNonNullObject(value) && !isSpecial(value);
13
13
  };
14
14
  function isNonNullObject(value) {
@@ -102,7 +102,7 @@ var require_is_module = /* @__PURE__ */ __commonJSMin(((exports, module) => {
102
102
  //#region node_modules/.pnpm/resolve@1.22.11/node_modules/resolve/lib/homedir.js
103
103
  var require_homedir = /* @__PURE__ */ __commonJSMin(((exports, module) => {
104
104
  var os = __require("os");
105
- module.exports = os.homedir || function homedir$2() {
105
+ module.exports = os.homedir || function homedir() {
106
106
  var home = process.env.HOME;
107
107
  var user = process.env.LOGNAME || process.env.USER || process.env.LNAME || process.env.USERNAME;
108
108
  if (process.platform === "win32") return process.env.USERPROFILE || process.env.HOMEDRIVE + process.env.HOMEPATH || home || null;
@@ -131,11 +131,11 @@ var require_caller = /* @__PURE__ */ __commonJSMin(((exports, module) => {
131
131
  var require_path_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
132
132
  var isWindows = process.platform === "win32";
133
133
  var splitWindowsRe = /^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/;
134
- var win32$1 = {};
134
+ var win32 = {};
135
135
  function win32SplitPath(filename) {
136
136
  return splitWindowsRe.exec(filename).slice(1);
137
137
  }
138
- win32$1.parse = function(pathString) {
138
+ win32.parse = function(pathString) {
139
139
  if (typeof pathString !== "string") throw new TypeError("Parameter 'pathString' must be a string, not " + typeof pathString);
140
140
  var allParts = win32SplitPath(pathString);
141
141
  if (!allParts || allParts.length !== 5) throw new TypeError("Invalid path '" + pathString + "'");
@@ -148,11 +148,11 @@ var require_path_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
148
148
  };
149
149
  };
150
150
  var splitPathRe = /^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/;
151
- var posix$1 = {};
151
+ var posix = {};
152
152
  function posixSplitPath(filename) {
153
153
  return splitPathRe.exec(filename).slice(1);
154
154
  }
155
- posix$1.parse = function(pathString) {
155
+ posix.parse = function(pathString) {
156
156
  if (typeof pathString !== "string") throw new TypeError("Parameter 'pathString' must be a string, not " + typeof pathString);
157
157
  var allParts = posixSplitPath(pathString);
158
158
  if (!allParts || allParts.length !== 5) throw new TypeError("Invalid path '" + pathString + "'");
@@ -164,10 +164,10 @@ var require_path_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
164
164
  name: allParts[3]
165
165
  };
166
166
  };
167
- if (isWindows) module.exports = win32$1.parse;
168
- else module.exports = posix$1.parse;
169
- module.exports.posix = posix$1.parse;
170
- module.exports.win32 = win32$1.parse;
167
+ if (isWindows) module.exports = win32.parse;
168
+ else module.exports = posix.parse;
169
+ module.exports.posix = posix.parse;
170
+ module.exports.win32 = win32.parse;
171
171
  }));
172
172
 
173
173
  //#endregion
@@ -177,7 +177,7 @@ var require_node_modules_paths = /* @__PURE__ */ __commonJSMin(((exports, module
177
177
  var parse = path$3.parse || require_path_parse();
178
178
  var driveLetterRegex = /^([A-Za-z]:)/;
179
179
  var uncPathRegex = /^\\\\/;
180
- var getNodeModulesDirs = function getNodeModulesDirs$1(absoluteStart, modules) {
180
+ var getNodeModulesDirs = function getNodeModulesDirs(absoluteStart, modules) {
181
181
  var prefix = "/";
182
182
  if (driveLetterRegex.test(absoluteStart)) prefix = "";
183
183
  else if (uncPathRegex.test(absoluteStart)) prefix = "\\\\";
@@ -193,7 +193,7 @@ var require_node_modules_paths = /* @__PURE__ */ __commonJSMin(((exports, module
193
193
  }));
194
194
  }, []);
195
195
  };
196
- module.exports = function nodeModulesPaths$2(start, opts, request) {
196
+ module.exports = function nodeModulesPaths(start, opts, request) {
197
197
  var modules = opts && opts.moduleDirectory ? [].concat(opts.moduleDirectory) : ["node_modules"];
198
198
  if (opts && typeof opts.paths === "function") return opts.paths(request, start, function() {
199
199
  return getNodeModulesDirs(start, modules);
@@ -224,13 +224,13 @@ var require_implementation = /* @__PURE__ */ __commonJSMin(((exports, module) =>
224
224
  var toStr = Object.prototype.toString;
225
225
  var max = Math.max;
226
226
  var funcType = "[object Function]";
227
- var concatty = function concatty$1(a, b) {
227
+ var concatty = function concatty(a, b) {
228
228
  var arr = [];
229
229
  for (var i = 0; i < a.length; i += 1) arr[i] = a[i];
230
230
  for (var j = 0; j < b.length; j += 1) arr[j + a.length] = b[j];
231
231
  return arr;
232
232
  };
233
- var slicy = function slicy$1(arrLike, offset) {
233
+ var slicy = function slicy(arrLike, offset) {
234
234
  var arr = [];
235
235
  for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) arr[j] = arrLike[i];
236
236
  return arr;
@@ -243,7 +243,7 @@ var require_implementation = /* @__PURE__ */ __commonJSMin(((exports, module) =>
243
243
  }
244
244
  return str;
245
245
  };
246
- module.exports = function bind$1(that) {
246
+ module.exports = function bind(that) {
247
247
  var target = this;
248
248
  if (typeof target !== "function" || toStr.apply(target) !== funcType) throw new TypeError(ERROR_MESSAGE + target);
249
249
  var args = slicy(arguments, 1);
@@ -497,9 +497,9 @@ var require_is_core_module = /* @__PURE__ */ __commonJSMin(((exports, module) =>
497
497
  }
498
498
  return matchesRange(current, specifierValue);
499
499
  }
500
- var data$1 = require_core$2();
501
- module.exports = function isCore$2(x, nodeVersion) {
502
- return hasOwn(data$1, x) && versionIncluded(nodeVersion, data$1[x]);
500
+ var data = require_core$2();
501
+ module.exports = function isCore(x, nodeVersion) {
502
+ return hasOwn(data, x) && versionIncluded(nodeVersion, data[x]);
503
503
  };
504
504
  }));
505
505
 
@@ -507,28 +507,28 @@ var require_is_core_module = /* @__PURE__ */ __commonJSMin(((exports, module) =>
507
507
  //#region node_modules/.pnpm/resolve@1.22.11/node_modules/resolve/lib/async.js
508
508
  var require_async = /* @__PURE__ */ __commonJSMin(((exports, module) => {
509
509
  var fs$1 = __require("fs");
510
- var getHomedir$1 = require_homedir();
510
+ var getHomedir = require_homedir();
511
511
  var path$2 = __require("path");
512
- var caller$1 = require_caller();
513
- var nodeModulesPaths$1 = require_node_modules_paths();
514
- var normalizeOptions$1 = require_normalize_options();
515
- var isCore$1 = require_is_core_module();
516
- var realpathFS$1 = process.platform !== "win32" && fs$1.realpath && typeof fs$1.realpath.native === "function" ? fs$1.realpath.native : fs$1.realpath;
517
- var relativePathRegex$1 = /^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/;
518
- var windowsDriveRegex$1 = /^\w:[/\\]*$/;
519
- var nodeModulesRegex$1 = /[/\\]node_modules[/\\]*$/;
520
- var homedir$1 = getHomedir$1();
521
- var defaultPaths$1 = function() {
522
- return [path$2.join(homedir$1, ".node_modules"), path$2.join(homedir$1, ".node_libraries")];
512
+ var caller = require_caller();
513
+ var nodeModulesPaths = require_node_modules_paths();
514
+ var normalizeOptions = require_normalize_options();
515
+ var isCore = require_is_core_module();
516
+ var realpathFS = process.platform !== "win32" && fs$1.realpath && typeof fs$1.realpath.native === "function" ? fs$1.realpath.native : fs$1.realpath;
517
+ var relativePathRegex = /^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/;
518
+ var windowsDriveRegex = /^\w:[/\\]*$/;
519
+ var nodeModulesRegex = /[/\\]node_modules[/\\]*$/;
520
+ var homedir = getHomedir();
521
+ var defaultPaths = function() {
522
+ return [path$2.join(homedir, ".node_modules"), path$2.join(homedir, ".node_libraries")];
523
523
  };
524
- var defaultIsFile$1 = function isFile(file, cb) {
524
+ var defaultIsFile = function isFile(file, cb) {
525
525
  fs$1.stat(file, function(err, stat$2) {
526
526
  if (!err) return cb(null, stat$2.isFile() || stat$2.isFIFO());
527
527
  if (err.code === "ENOENT" || err.code === "ENOTDIR") return cb(null, false);
528
528
  return cb(err);
529
529
  });
530
530
  };
531
- var defaultIsDir$1 = function isDirectory(dir, cb) {
531
+ var defaultIsDir = function isDirectory(dir, cb) {
532
532
  fs$1.stat(dir, function(err, stat$2) {
533
533
  if (!err) return cb(null, stat$2.isDirectory());
534
534
  if (err.code === "ENOENT" || err.code === "ENOTDIR") return cb(null, false);
@@ -536,16 +536,16 @@ var require_async = /* @__PURE__ */ __commonJSMin(((exports, module) => {
536
536
  });
537
537
  };
538
538
  var defaultRealpath = function realpath$1(x, cb) {
539
- realpathFS$1(x, function(realpathErr, realPath) {
539
+ realpathFS(x, function(realpathErr, realPath) {
540
540
  if (realpathErr && realpathErr.code !== "ENOENT") cb(realpathErr);
541
541
  else cb(null, realpathErr ? x : realPath);
542
542
  });
543
543
  };
544
- var maybeRealpath = function maybeRealpath$1(realpath$1, x, opts, cb) {
544
+ var maybeRealpath = function maybeRealpath(realpath$1, x, opts, cb) {
545
545
  if (opts && opts.preserveSymlinks === false) realpath$1(x, cb);
546
546
  else cb(null, x);
547
547
  };
548
- var defaultReadPackage = function defaultReadPackage$1(readFile$2, pkgfile, cb) {
548
+ var defaultReadPackage = function defaultReadPackage(readFile$2, pkgfile, cb) {
549
549
  readFile$2(pkgfile, function(readFileErr, body) {
550
550
  if (readFileErr) cb(readFileErr);
551
551
  else try {
@@ -555,8 +555,8 @@ var require_async = /* @__PURE__ */ __commonJSMin(((exports, module) => {
555
555
  }
556
556
  });
557
557
  };
558
- var getPackageCandidates$1 = function getPackageCandidates$2(x, start, opts) {
559
- var dirs = nodeModulesPaths$1(start, opts, x);
558
+ var getPackageCandidates = function getPackageCandidates(x, start, opts) {
559
+ var dirs = nodeModulesPaths(start, opts, x);
560
560
  for (var i = 0; i < dirs.length; i++) dirs[i] = path$2.join(dirs[i], x);
561
561
  return dirs;
562
562
  };
@@ -573,9 +573,9 @@ var require_async = /* @__PURE__ */ __commonJSMin(((exports, module) => {
573
573
  cb(err);
574
574
  });
575
575
  }
576
- opts = normalizeOptions$1(x, opts);
577
- var isFile = opts.isFile || defaultIsFile$1;
578
- var isDirectory = opts.isDirectory || defaultIsDir$1;
576
+ opts = normalizeOptions(x, opts);
577
+ var isFile = opts.isFile || defaultIsFile;
578
+ var isDirectory = opts.isDirectory || defaultIsDir;
579
579
  var readFile$2 = opts.readFile || fs$1.readFile;
580
580
  var realpath$1 = opts.realpath || defaultRealpath;
581
581
  var readPackage = opts.readPackage || defaultReadPackage;
@@ -588,21 +588,21 @@ var require_async = /* @__PURE__ */ __commonJSMin(((exports, module) => {
588
588
  var packageIterator = opts.packageIterator;
589
589
  var extensions = opts.extensions || [".js"];
590
590
  var includeCoreModules = opts.includeCoreModules !== false;
591
- var basedir = opts.basedir || path$2.dirname(caller$1());
591
+ var basedir = opts.basedir || path$2.dirname(caller());
592
592
  var parent = opts.filename || basedir;
593
- opts.paths = opts.paths || defaultPaths$1();
593
+ opts.paths = opts.paths || defaultPaths();
594
594
  maybeRealpath(realpath$1, path$2.resolve(basedir), opts, function(err$1, realStart) {
595
595
  if (err$1) cb(err$1);
596
596
  else init(realStart);
597
597
  });
598
598
  var res;
599
599
  function init(basedir$1) {
600
- if (relativePathRegex$1.test(x)) {
600
+ if (relativePathRegex.test(x)) {
601
601
  res = path$2.resolve(basedir$1, x);
602
602
  if (x === "." || x === ".." || x.slice(-1) === "/") res += "/";
603
603
  if (x.slice(-1) === "/" && res === basedir$1) loadAsDirectory(res, opts.package, onfile);
604
604
  else loadAsFile(res, opts.package, onfile);
605
- } else if (includeCoreModules && isCore$1(x)) return cb(null, x);
605
+ } else if (includeCoreModules && isCore(x)) return cb(null, x);
606
606
  else loadNodeModules(x, basedir$1, function(err$1, n, pkg) {
607
607
  if (err$1) cb(err$1);
608
608
  else if (n) return maybeRealpath(realpath$1, n, opts, function(err$2, realN) {
@@ -666,8 +666,8 @@ var require_async = /* @__PURE__ */ __commonJSMin(((exports, module) => {
666
666
  }
667
667
  function loadpkg(dir, cb$1) {
668
668
  if (dir === "" || dir === "/") return cb$1(null);
669
- if (process.platform === "win32" && windowsDriveRegex$1.test(dir)) return cb$1(null);
670
- if (nodeModulesRegex$1.test(dir)) return cb$1(null);
669
+ if (process.platform === "win32" && windowsDriveRegex.test(dir)) return cb$1(null);
670
+ if (nodeModulesRegex.test(dir)) return cb$1(null);
671
671
  maybeRealpath(realpath$1, dir, opts, function(unwrapErr, pkgdir) {
672
672
  if (unwrapErr) return loadpkg(path$2.dirname(dir), cb$1);
673
673
  var pkgfile = path$2.join(pkgdir, "package.json");
@@ -745,7 +745,7 @@ var require_async = /* @__PURE__ */ __commonJSMin(((exports, module) => {
745
745
  }
746
746
  function loadNodeModules(x$1, start, cb$1) {
747
747
  var thunk = function() {
748
- return getPackageCandidates$1(x$1, start, opts);
748
+ return getPackageCandidates(x$1, start, opts);
749
749
  };
750
750
  processDirs(cb$1, packageIterator ? packageIterator(x$1, start, thunk, opts) : thunk());
751
751
  }
@@ -930,10 +930,10 @@ var require_core$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
930
930
  //#endregion
931
931
  //#region node_modules/.pnpm/resolve@1.22.11/node_modules/resolve/lib/core.js
932
932
  var require_core = /* @__PURE__ */ __commonJSMin(((exports, module) => {
933
- var isCoreModule$1 = require_is_core_module();
933
+ var isCoreModule = require_is_core_module();
934
934
  var data = require_core$1();
935
935
  var core = {};
936
- for (var mod in data) if (Object.prototype.hasOwnProperty.call(data, mod)) core[mod] = isCoreModule$1(mod);
936
+ for (var mod in data) if (Object.prototype.hasOwnProperty.call(data, mod)) core[mod] = isCoreModule(mod);
937
937
  module.exports = core;
938
938
  }));
939
939
 
@@ -941,7 +941,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((exports, module) => {
941
941
  //#region node_modules/.pnpm/resolve@1.22.11/node_modules/resolve/lib/is-core.js
942
942
  var require_is_core = /* @__PURE__ */ __commonJSMin(((exports, module) => {
943
943
  var isCoreModule = require_is_core_module();
944
- module.exports = function isCore$2(x) {
944
+ module.exports = function isCore(x) {
945
945
  return isCoreModule(x);
946
946
  };
947
947
  }));
@@ -990,17 +990,17 @@ var require_sync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
990
990
  }
991
991
  return x;
992
992
  };
993
- var maybeRealpathSync = function maybeRealpathSync$1(realpathSync$1, x, opts) {
993
+ var maybeRealpathSync = function maybeRealpathSync(realpathSync$1, x, opts) {
994
994
  if (opts && opts.preserveSymlinks === false) return realpathSync$1(x);
995
995
  return x;
996
996
  };
997
- var defaultReadPackageSync = function defaultReadPackageSync$1(readFileSync$1, pkgfile) {
997
+ var defaultReadPackageSync = function defaultReadPackageSync(readFileSync$1, pkgfile) {
998
998
  var body = readFileSync$1(pkgfile);
999
999
  try {
1000
1000
  return JSON.parse(body);
1001
1001
  } catch (jsonErr) {}
1002
1002
  };
1003
- var getPackageCandidates = function getPackageCandidates$2(x, start, opts) {
1003
+ var getPackageCandidates = function getPackageCandidates(x, start, opts) {
1004
1004
  var dirs = nodeModulesPaths(start, opts, x);
1005
1005
  for (var i = 0; i < dirs.length; i++) dirs[i] = path$1.join(dirs[i], x);
1006
1006
  return dirs;
@@ -161,7 +161,7 @@ const basename$1 = function(p, extension) {
161
161
  }
162
162
  return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
163
163
  };
164
- const parse$2 = function(p) {
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
167
  const extension = extname$1(base);
@@ -2011,7 +2011,7 @@ var require_main = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2011
2011
  return supportsAnsi() ? `\x1b[2m${text}\x1b[0m` : text;
2012
2012
  }
2013
2013
  const LINE = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/gm;
2014
- function parse$1(src) {
2014
+ function parse(src) {
2015
2015
  const obj = {};
2016
2016
  let lines = src.toString();
2017
2017
  lines = lines.replace(/\r\n?/gm, "\n");
@@ -2231,7 +2231,7 @@ var require_main = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2231
2231
  _parseVault,
2232
2232
  config,
2233
2233
  decrypt,
2234
- parse: parse$1,
2234
+ parse,
2235
2235
  populate
2236
2236
  };
2237
2237
  module.exports.configDotenv = DotenvModule.configDotenv;
@@ -2342,7 +2342,7 @@ function withDefaults(options) {
2342
2342
  };
2343
2343
  }
2344
2344
  function parse(contents, options = {}) {
2345
- const config$1 = {};
2345
+ const config = {};
2346
2346
  const lines = contents.split(RE_LINES);
2347
2347
  for (const line of lines) {
2348
2348
  const match = line.match(RE_KEY_VAL);
@@ -2352,12 +2352,12 @@ function parse(contents, options = {}) {
2352
2352
  const value = destr((match[2] || "").trim());
2353
2353
  if (key.endsWith("[]")) {
2354
2354
  const nkey = key.slice(0, Math.max(0, key.length - 2));
2355
- config$1[nkey] = (config$1[nkey] || []).concat(value);
2355
+ config[nkey] = (config[nkey] || []).concat(value);
2356
2356
  continue;
2357
2357
  }
2358
- config$1[key] = value;
2358
+ config[key] = value;
2359
2359
  }
2360
- return options.flat ? config$1 : unflatten(config$1, { overwrite: true });
2360
+ return options.flat ? config : unflatten(config, { overwrite: true });
2361
2361
  }
2362
2362
  function parseFile(path$2, options) {
2363
2363
  if (!existsSync(path$2)) return {};
@@ -2505,13 +2505,13 @@ async function loadDotenv(options) {
2505
2505
  if (options.interpolate) interpolate(environment);
2506
2506
  return environment;
2507
2507
  }
2508
- function interpolate(target, source = {}, parse$3 = (v$1) => v$1) {
2508
+ function interpolate(target, source = {}, parse$2 = (v$1) => v$1) {
2509
2509
  function getValue(key) {
2510
2510
  return source[key] === void 0 ? target[key] : source[key];
2511
2511
  }
2512
2512
  function interpolate$1(value, parents = []) {
2513
2513
  if (typeof value !== "string") return value;
2514
- return parse$3((value.match(/(.?\${?(?:[\w:]+)?}?)/g) || []).reduce((newValue, match) => {
2514
+ return parse$2((value.match(/(.?\${?(?:[\w:]+)?}?)/g) || []).reduce((newValue, match) => {
2515
2515
  const parts = /(.?)\${?([\w:]+)?}?/g.exec(match) || [];
2516
2516
  const prefix = parts[1];
2517
2517
  let value$1, replacePart;
@@ -2671,15 +2671,15 @@ async function loadConfig(options) {
2671
2671
  if (options.configFileRequired && !r$1._configFile) throw new Error(`Required config (${r$1.configFile}) cannot be resolved.`);
2672
2672
  return r$1;
2673
2673
  }
2674
- async function extendConfig(config$1, options) {
2675
- config$1._layers = config$1._layers || [];
2674
+ async function extendConfig(config, options) {
2675
+ config._layers = config._layers || [];
2676
2676
  if (!options.extend) return;
2677
2677
  let keys = options.extend.extendKey;
2678
2678
  if (typeof keys === "string") keys = [keys];
2679
2679
  const extendSources = [];
2680
2680
  for (const key of keys) {
2681
- extendSources.push(...(Array.isArray(config$1[key]) ? config$1[key] : [config$1[key]]).filter(Boolean));
2682
- delete config$1[key];
2681
+ extendSources.push(...(Array.isArray(config[key]) ? config[key] : [config[key]]).filter(Boolean));
2682
+ delete config[key];
2683
2683
  }
2684
2684
  for (let extendSource of extendSources) {
2685
2685
  const originalExtendSource = extendSource;
@@ -2705,9 +2705,9 @@ async function extendConfig(config$1, options) {
2705
2705
  ...options,
2706
2706
  cwd: _config.cwd
2707
2707
  });
2708
- config$1._layers.push(_config);
2708
+ config._layers.push(_config);
2709
2709
  if (_config.config._layers) {
2710
- config$1._layers.push(..._config.config._layers);
2710
+ config._layers.push(..._config.config._layers);
2711
2711
  delete _config.config._layers;
2712
2712
  }
2713
2713
  }
@@ -2798,10 +2798,10 @@ const eventMap = {
2798
2798
  unlink: "removed"
2799
2799
  };
2800
2800
  async function watchConfig(options) {
2801
- let config$1 = await loadConfig(options);
2801
+ let config = await loadConfig(options);
2802
2802
  const configName = options.name || "config";
2803
2803
  const configFileName = options.configFile ?? (options.name === "config" ? "config" : `${options.name}.config`);
2804
- const watchingFiles = [...new Set((config$1.layers || []).filter((l) => l.cwd).flatMap((l) => [
2804
+ const watchingFiles = [...new Set((config.layers || []).filter((l) => l.cwd).flatMap((l) => [
2805
2805
  ...SUPPORTED_EXTENSIONS.flatMap((ext) => [
2806
2806
  resolve$1(l.cwd, configFileName + ext),
2807
2807
  resolve$1(l.cwd, ".config", configFileName + ext),
@@ -2824,17 +2824,17 @@ async function watchConfig(options) {
2824
2824
  type: type$1,
2825
2825
  path: path$2
2826
2826
  });
2827
- const oldConfig = config$1;
2827
+ const oldConfig = config;
2828
2828
  try {
2829
- config$1 = await loadConfig(options);
2829
+ config = await loadConfig(options);
2830
2830
  } catch (error) {
2831
2831
  console.warn(`Failed to load config ${path$2}\n${error}`);
2832
2832
  return;
2833
2833
  }
2834
2834
  const changeCtx = {
2835
- newConfig: config$1,
2835
+ newConfig: config,
2836
2836
  oldConfig,
2837
- getDiff: () => diff(oldConfig.config, config$1.config)
2837
+ getDiff: () => diff(oldConfig.config, config.config)
2838
2838
  };
2839
2839
  if (options.acceptHMR) {
2840
2840
  if (await options.acceptHMR(changeCtx)) return;
@@ -2851,9 +2851,9 @@ async function watchConfig(options) {
2851
2851
  };
2852
2852
  return new Proxy(utils, { get(_$1, prop) {
2853
2853
  if (prop in utils) return utils[prop];
2854
- return config$1[prop];
2854
+ return config[prop];
2855
2855
  } });
2856
2856
  }
2857
2857
 
2858
2858
  //#endregion
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 };
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 };