@vercel/node 5.10.0 → 5.10.2

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 (2) hide show
  1. package/dist/index.js +99 -174
  2. package/package.json +5 -4
package/dist/index.js CHANGED
@@ -32295,11 +32295,11 @@ var require_common = __commonJS({
32295
32295
  let enableOverride = null;
32296
32296
  let namespacesCache;
32297
32297
  let enabledCache;
32298
- function debug5(...args) {
32299
- if (!debug5.enabled) {
32298
+ function debug4(...args) {
32299
+ if (!debug4.enabled) {
32300
32300
  return;
32301
32301
  }
32302
- const self2 = debug5;
32302
+ const self2 = debug4;
32303
32303
  const curr = Number(/* @__PURE__ */ new Date());
32304
32304
  const ms = curr - (prevTime || curr);
32305
32305
  self2.diff = ms;
@@ -32329,12 +32329,12 @@ var require_common = __commonJS({
32329
32329
  const logFn = self2.log || createDebug.log;
32330
32330
  logFn.apply(self2, args);
32331
32331
  }
32332
- debug5.namespace = namespace;
32333
- debug5.useColors = createDebug.useColors();
32334
- debug5.color = createDebug.selectColor(namespace);
32335
- debug5.extend = extend;
32336
- debug5.destroy = createDebug.destroy;
32337
- Object.defineProperty(debug5, "enabled", {
32332
+ debug4.namespace = namespace;
32333
+ debug4.useColors = createDebug.useColors();
32334
+ debug4.color = createDebug.selectColor(namespace);
32335
+ debug4.extend = extend;
32336
+ debug4.destroy = createDebug.destroy;
32337
+ Object.defineProperty(debug4, "enabled", {
32338
32338
  enumerable: true,
32339
32339
  configurable: false,
32340
32340
  get: () => {
@@ -32352,9 +32352,9 @@ var require_common = __commonJS({
32352
32352
  }
32353
32353
  });
32354
32354
  if (typeof createDebug.init === "function") {
32355
- createDebug.init(debug5);
32355
+ createDebug.init(debug4);
32356
32356
  }
32357
- return debug5;
32357
+ return debug4;
32358
32358
  }
32359
32359
  function extend(namespace, delimiter) {
32360
32360
  const newDebug = createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
@@ -32891,11 +32891,11 @@ var require_node = __commonJS({
32891
32891
  function load() {
32892
32892
  return process.env.DEBUG;
32893
32893
  }
32894
- function init(debug5) {
32895
- debug5.inspectOpts = {};
32894
+ function init(debug4) {
32895
+ debug4.inspectOpts = {};
32896
32896
  const keys = Object.keys(exports.inspectOpts);
32897
32897
  for (let i = 0; i < keys.length; i++) {
32898
- debug5.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
32898
+ debug4.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
32899
32899
  }
32900
32900
  }
32901
32901
  module2.exports = require_common()(exports);
@@ -45447,7 +45447,7 @@ var require_path = __commonJS({
45447
45447
  var {
45448
45448
  validate
45449
45449
  } = _t;
45450
- var debug5 = _debug("babel");
45450
+ var debug4 = _debug("babel");
45451
45451
  var REMOVED = exports.REMOVED = 1 << 0;
45452
45452
  var SHOULD_STOP = exports.SHOULD_STOP = 1 << 1;
45453
45453
  var SHOULD_SKIP = exports.SHOULD_SKIP = 1 << 2;
@@ -45565,9 +45565,9 @@ var require_path = __commonJS({
45565
45565
  return parts.join(".");
45566
45566
  }
45567
45567
  debug(message) {
45568
- if (!debug5.enabled)
45568
+ if (!debug4.enabled)
45569
45569
  return;
45570
- debug5(`${this.getPathLocation()} ${this.type}: ${message}`);
45570
+ debug4(`${this.getPathLocation()} ${this.type}: ${message}`);
45571
45571
  }
45572
45572
  toString() {
45573
45573
  return (0, _generator.default)(this.node).code;
@@ -48096,15 +48096,15 @@ var require_lib11 = __commonJS({
48096
48096
  var require_semver = __commonJS({
48097
48097
  "../../node_modules/.pnpm/semver@6.3.1/node_modules/semver/semver.js"(exports, module2) {
48098
48098
  exports = module2.exports = SemVer;
48099
- var debug5;
48099
+ var debug4;
48100
48100
  if (typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG)) {
48101
- debug5 = function() {
48101
+ debug4 = function() {
48102
48102
  var args = Array.prototype.slice.call(arguments, 0);
48103
48103
  args.unshift("SEMVER");
48104
48104
  console.log.apply(console, args);
48105
48105
  };
48106
48106
  } else {
48107
- debug5 = function() {
48107
+ debug4 = function() {
48108
48108
  };
48109
48109
  }
48110
48110
  exports.SEMVER_SPEC_VERSION = "2.0.0";
@@ -48222,7 +48222,7 @@ var require_semver = __commonJS({
48222
48222
  tok("STAR");
48223
48223
  src[t.STAR] = "(<|>)?=?\\s*\\*";
48224
48224
  for (i = 0; i < R; i++) {
48225
- debug5(i, src[i]);
48225
+ debug4(i, src[i]);
48226
48226
  if (!re[i]) {
48227
48227
  re[i] = new RegExp(src[i]);
48228
48228
  safeRe[i] = new RegExp(makeSafeRe(src[i]));
@@ -48289,7 +48289,7 @@ var require_semver = __commonJS({
48289
48289
  if (!(this instanceof SemVer)) {
48290
48290
  return new SemVer(version2, options);
48291
48291
  }
48292
- debug5("SemVer", version2, options);
48292
+ debug4("SemVer", version2, options);
48293
48293
  this.options = options;
48294
48294
  this.loose = !!options.loose;
48295
48295
  var m = version2.trim().match(options.loose ? safeRe[t.LOOSE] : safeRe[t.FULL]);
@@ -48336,7 +48336,7 @@ var require_semver = __commonJS({
48336
48336
  return this.version;
48337
48337
  };
48338
48338
  SemVer.prototype.compare = function(other) {
48339
- debug5("SemVer.compare", this.version, this.options, other);
48339
+ debug4("SemVer.compare", this.version, this.options, other);
48340
48340
  if (!(other instanceof SemVer)) {
48341
48341
  other = new SemVer(other, this.options);
48342
48342
  }
@@ -48363,7 +48363,7 @@ var require_semver = __commonJS({
48363
48363
  do {
48364
48364
  var a = this.prerelease[i2];
48365
48365
  var b = other.prerelease[i2];
48366
- debug5("prerelease compare", i2, a, b);
48366
+ debug4("prerelease compare", i2, a, b);
48367
48367
  if (a === void 0 && b === void 0) {
48368
48368
  return 0;
48369
48369
  } else if (b === void 0) {
@@ -48385,7 +48385,7 @@ var require_semver = __commonJS({
48385
48385
  do {
48386
48386
  var a = this.build[i2];
48387
48387
  var b = other.build[i2];
48388
- debug5("prerelease compare", i2, a, b);
48388
+ debug4("prerelease compare", i2, a, b);
48389
48389
  if (a === void 0 && b === void 0) {
48390
48390
  return 0;
48391
48391
  } else if (b === void 0) {
@@ -48645,7 +48645,7 @@ var require_semver = __commonJS({
48645
48645
  return new Comparator(comp, options);
48646
48646
  }
48647
48647
  comp = comp.trim().split(/\s+/).join(" ");
48648
- debug5("comparator", comp, options);
48648
+ debug4("comparator", comp, options);
48649
48649
  this.options = options;
48650
48650
  this.loose = !!options.loose;
48651
48651
  this.parse(comp);
@@ -48654,7 +48654,7 @@ var require_semver = __commonJS({
48654
48654
  } else {
48655
48655
  this.value = this.operator + this.semver.version;
48656
48656
  }
48657
- debug5("comp", this);
48657
+ debug4("comp", this);
48658
48658
  }
48659
48659
  var ANY = {};
48660
48660
  Comparator.prototype.parse = function(comp) {
@@ -48677,7 +48677,7 @@ var require_semver = __commonJS({
48677
48677
  return this.value;
48678
48678
  };
48679
48679
  Comparator.prototype.test = function(version2) {
48680
- debug5("Comparator.test", version2, this.options.loose);
48680
+ debug4("Comparator.test", version2, this.options.loose);
48681
48681
  if (this.semver === ANY || version2 === ANY) {
48682
48682
  return true;
48683
48683
  }
@@ -48770,9 +48770,9 @@ var require_semver = __commonJS({
48770
48770
  var loose = this.options.loose;
48771
48771
  var hr = loose ? safeRe[t.HYPHENRANGELOOSE] : safeRe[t.HYPHENRANGE];
48772
48772
  range = range.replace(hr, hyphenReplace);
48773
- debug5("hyphen replace", range);
48773
+ debug4("hyphen replace", range);
48774
48774
  range = range.replace(safeRe[t.COMPARATORTRIM], comparatorTrimReplace);
48775
- debug5("comparator trim", range, safeRe[t.COMPARATORTRIM]);
48775
+ debug4("comparator trim", range, safeRe[t.COMPARATORTRIM]);
48776
48776
  range = range.replace(safeRe[t.TILDETRIM], tildeTrimReplace);
48777
48777
  range = range.replace(safeRe[t.CARETTRIM], caretTrimReplace);
48778
48778
  range = range.split(/\s+/).join(" ");
@@ -48825,15 +48825,15 @@ var require_semver = __commonJS({
48825
48825
  });
48826
48826
  }
48827
48827
  function parseComparator(comp, options) {
48828
- debug5("comp", comp, options);
48828
+ debug4("comp", comp, options);
48829
48829
  comp = replaceCarets(comp, options);
48830
- debug5("caret", comp);
48830
+ debug4("caret", comp);
48831
48831
  comp = replaceTildes(comp, options);
48832
- debug5("tildes", comp);
48832
+ debug4("tildes", comp);
48833
48833
  comp = replaceXRanges(comp, options);
48834
- debug5("xrange", comp);
48834
+ debug4("xrange", comp);
48835
48835
  comp = replaceStars(comp, options);
48836
- debug5("stars", comp);
48836
+ debug4("stars", comp);
48837
48837
  return comp;
48838
48838
  }
48839
48839
  function isX(id) {
@@ -48847,7 +48847,7 @@ var require_semver = __commonJS({
48847
48847
  function replaceTilde(comp, options) {
48848
48848
  var r = options.loose ? safeRe[t.TILDELOOSE] : safeRe[t.TILDE];
48849
48849
  return comp.replace(r, function(_, M, m, p, pr) {
48850
- debug5("tilde", comp, _, M, m, p, pr);
48850
+ debug4("tilde", comp, _, M, m, p, pr);
48851
48851
  var ret;
48852
48852
  if (isX(M)) {
48853
48853
  ret = "";
@@ -48856,12 +48856,12 @@ var require_semver = __commonJS({
48856
48856
  } else if (isX(p)) {
48857
48857
  ret = ">=" + M + "." + m + ".0 <" + M + "." + (+m + 1) + ".0";
48858
48858
  } else if (pr) {
48859
- debug5("replaceTilde pr", pr);
48859
+ debug4("replaceTilde pr", pr);
48860
48860
  ret = ">=" + M + "." + m + "." + p + "-" + pr + " <" + M + "." + (+m + 1) + ".0";
48861
48861
  } else {
48862
48862
  ret = ">=" + M + "." + m + "." + p + " <" + M + "." + (+m + 1) + ".0";
48863
48863
  }
48864
- debug5("tilde return", ret);
48864
+ debug4("tilde return", ret);
48865
48865
  return ret;
48866
48866
  });
48867
48867
  }
@@ -48871,10 +48871,10 @@ var require_semver = __commonJS({
48871
48871
  }).join(" ");
48872
48872
  }
48873
48873
  function replaceCaret(comp, options) {
48874
- debug5("caret", comp, options);
48874
+ debug4("caret", comp, options);
48875
48875
  var r = options.loose ? safeRe[t.CARETLOOSE] : safeRe[t.CARET];
48876
48876
  return comp.replace(r, function(_, M, m, p, pr) {
48877
- debug5("caret", comp, _, M, m, p, pr);
48877
+ debug4("caret", comp, _, M, m, p, pr);
48878
48878
  var ret;
48879
48879
  if (isX(M)) {
48880
48880
  ret = "";
@@ -48887,7 +48887,7 @@ var require_semver = __commonJS({
48887
48887
  ret = ">=" + M + "." + m + ".0 <" + (+M + 1) + ".0.0";
48888
48888
  }
48889
48889
  } else if (pr) {
48890
- debug5("replaceCaret pr", pr);
48890
+ debug4("replaceCaret pr", pr);
48891
48891
  if (M === "0") {
48892
48892
  if (m === "0") {
48893
48893
  ret = ">=" + M + "." + m + "." + p + "-" + pr + " <" + M + "." + m + "." + (+p + 1);
@@ -48898,7 +48898,7 @@ var require_semver = __commonJS({
48898
48898
  ret = ">=" + M + "." + m + "." + p + "-" + pr + " <" + (+M + 1) + ".0.0";
48899
48899
  }
48900
48900
  } else {
48901
- debug5("no pr");
48901
+ debug4("no pr");
48902
48902
  if (M === "0") {
48903
48903
  if (m === "0") {
48904
48904
  ret = ">=" + M + "." + m + "." + p + " <" + M + "." + m + "." + (+p + 1);
@@ -48909,12 +48909,12 @@ var require_semver = __commonJS({
48909
48909
  ret = ">=" + M + "." + m + "." + p + " <" + (+M + 1) + ".0.0";
48910
48910
  }
48911
48911
  }
48912
- debug5("caret return", ret);
48912
+ debug4("caret return", ret);
48913
48913
  return ret;
48914
48914
  });
48915
48915
  }
48916
48916
  function replaceXRanges(comp, options) {
48917
- debug5("replaceXRanges", comp, options);
48917
+ debug4("replaceXRanges", comp, options);
48918
48918
  return comp.split(/\s+/).map(function(comp2) {
48919
48919
  return replaceXRange(comp2, options);
48920
48920
  }).join(" ");
@@ -48923,7 +48923,7 @@ var require_semver = __commonJS({
48923
48923
  comp = comp.trim();
48924
48924
  var r = options.loose ? safeRe[t.XRANGELOOSE] : safeRe[t.XRANGE];
48925
48925
  return comp.replace(r, function(ret, gtlt, M, m, p, pr) {
48926
- debug5("xRange", comp, ret, gtlt, M, m, p, pr);
48926
+ debug4("xRange", comp, ret, gtlt, M, m, p, pr);
48927
48927
  var xM = isX(M);
48928
48928
  var xm = xM || isX(m);
48929
48929
  var xp = xm || isX(p);
@@ -48967,12 +48967,12 @@ var require_semver = __commonJS({
48967
48967
  } else if (xp) {
48968
48968
  ret = ">=" + M + "." + m + ".0" + pr + " <" + M + "." + (+m + 1) + ".0" + pr;
48969
48969
  }
48970
- debug5("xRange return", ret);
48970
+ debug4("xRange return", ret);
48971
48971
  return ret;
48972
48972
  });
48973
48973
  }
48974
48974
  function replaceStars(comp, options) {
48975
- debug5("replaceStars", comp, options);
48975
+ debug4("replaceStars", comp, options);
48976
48976
  return comp.trim().replace(safeRe[t.STAR], "");
48977
48977
  }
48978
48978
  function hyphenReplace($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr, tb) {
@@ -49024,7 +49024,7 @@ var require_semver = __commonJS({
49024
49024
  }
49025
49025
  if (version2.prerelease.length && !options.includePrerelease) {
49026
49026
  for (i2 = 0; i2 < set.length; i2++) {
49027
- debug5(set[i2].semver);
49027
+ debug4(set[i2].semver);
49028
49028
  if (set[i2].semver === ANY) {
49029
49029
  continue;
49030
49030
  }
@@ -51909,9 +51909,9 @@ var require_functional = __commonJS({
51909
51909
  Object.defineProperty(exports, "__esModule", {
51910
51910
  value: true
51911
51911
  });
51912
- exports.once = once3;
51912
+ exports.once = once2;
51913
51913
  var _async = require_async();
51914
- function once3(fn) {
51914
+ function once2(fn) {
51915
51915
  let result;
51916
51916
  let resultP;
51917
51917
  let promiseReferenced = false;
@@ -60703,7 +60703,7 @@ var require_config_chain = __commonJS({
60703
60703
  var _index = require_files();
60704
60704
  var _caching = require_caching();
60705
60705
  var _configDescriptors = require_config_descriptors();
60706
- var debug5 = _debug()("babel:config:config-chain");
60706
+ var debug4 = _debug()("babel:config:config-chain");
60707
60707
  function* buildPresetChain(arg, context) {
60708
60708
  const chain = yield* buildPresetChainWalker(arg, context);
60709
60709
  if (!chain)
@@ -61118,7 +61118,7 @@ File already loaded following the config chain:
61118
61118
  if (ignore && matchesPatterns(context, ignore, dirname4)) {
61119
61119
  var _context$filename;
61120
61120
  const message = `No config is applied to "${(_context$filename = context.filename) != null ? _context$filename : "(unknown)"}" because it matches one of \`ignore: ${JSON.stringify(ignore, ignoreListReplacer)}\` from "${dirname4}"`;
61121
- debug5(message);
61121
+ debug4(message);
61122
61122
  if (context.showConfig) {
61123
61123
  console.log(message);
61124
61124
  }
@@ -61127,7 +61127,7 @@ File already loaded following the config chain:
61127
61127
  if (only && !matchesPatterns(context, only, dirname4)) {
61128
61128
  var _context$filename2;
61129
61129
  const message = `No config is applied to "${(_context$filename2 = context.filename) != null ? _context$filename2 : "(unknown)"}" because it fails to match one of \`only: ${JSON.stringify(only, ignoreListReplacer)}\` from "${dirname4}"`;
61130
- debug5(message);
61130
+ debug4(message);
61131
61131
  if (context.showConfig) {
61132
61132
  console.log(message);
61133
61133
  }
@@ -62737,7 +62737,7 @@ var require_normalize_file = __commonJS({
62737
62737
  file,
62738
62738
  traverseFast
62739
62739
  } = _t();
62740
- var debug5 = _debug()("babel:transform:file");
62740
+ var debug4 = _debug()("babel:transform:file");
62741
62741
  var INLINE_SOURCEMAP_REGEX = /^[@#]\s+sourceMappingURL=data:(?:application|text)\/json;(?:charset[:=]\S+?;)?base64,(?:.*)$/;
62742
62742
  var EXTERNAL_SOURCEMAP_REGEX = /^[@#][ \t]+sourceMappingURL=([^\s'"`]+)[ \t]*$/;
62743
62743
  function* normalizeFile(pluginPasses, options, code, ast) {
@@ -62766,7 +62766,7 @@ var require_normalize_file = __commonJS({
62766
62766
  inputMap = _convertSourceMap().fromComment("//" + lastComment);
62767
62767
  } catch (err) {
62768
62768
  {
62769
- debug5("discarding unknown inline input sourcemap");
62769
+ debug4("discarding unknown inline input sourcemap");
62770
62770
  }
62771
62771
  }
62772
62772
  }
@@ -62779,10 +62779,10 @@ var require_normalize_file = __commonJS({
62779
62779
  const inputMapContent = _fs().readFileSync(_path().resolve(_path().dirname(options.filename), match[1]), "utf8");
62780
62780
  inputMap = _convertSourceMap().fromJSON(inputMapContent);
62781
62781
  } catch (err) {
62782
- debug5("discarding unknown file input sourcemap", err);
62782
+ debug4("discarding unknown file input sourcemap", err);
62783
62783
  }
62784
62784
  } else if (lastComment) {
62785
- debug5("discarding un-loadable file input sourcemap");
62785
+ debug4("discarding un-loadable file input sourcemap");
62786
62786
  }
62787
62787
  }
62788
62788
  }
@@ -69006,7 +69006,7 @@ var require_module_types = __commonJS({
69006
69006
  });
69007
69007
  };
69008
69008
  }
69009
- var debug5 = _debug()("babel:config:loading:files:module-types");
69009
+ var debug4 = _debug()("babel:config:loading:files:module-types");
69010
69010
  {
69011
69011
  try {
69012
69012
  import_ = require_import();
@@ -69090,7 +69090,7 @@ var require_module_types = __commonJS({
69090
69090
  var LOADING_CJS_FILES = /* @__PURE__ */ new Set();
69091
69091
  function loadCjsDefault(filepath) {
69092
69092
  if (LOADING_CJS_FILES.has(filepath)) {
69093
- debug5("Auto-ignoring usage of config %o.", filepath);
69093
+ debug4("Auto-ignoring usage of config %o.", filepath);
69094
69094
  return {};
69095
69095
  }
69096
69096
  let module3;
@@ -69201,7 +69201,7 @@ var require_configuration = __commonJS({
69201
69201
  var _configError = require_config_error();
69202
69202
  var fs = require_fs();
69203
69203
  var _rewriteStackTrace = require_rewrite_stack_trace();
69204
- var debug5 = _debug()("babel:config:loading:files:configuration");
69204
+ var debug4 = _debug()("babel:config:loading:files:configuration");
69205
69205
  var ROOT_CONFIG_FILENAMES = exports.ROOT_CONFIG_FILENAMES = ["babel.config.js", "babel.config.cjs", "babel.config.mjs", "babel.config.json", "babel.config.cts"];
69206
69206
  var RELATIVE_CONFIG_FILENAMES = [".babelrc", ".babelrc.js", ".babelrc.cjs", ".babelrc.mjs", ".babelrc.json", ".babelrc.cts"];
69207
69207
  var BABELIGNORE_FILENAME = ".babelignore";
@@ -69329,7 +69329,7 @@ var require_configuration = __commonJS({
69329
69329
  const ignoreLoc = _path().join(loc, BABELIGNORE_FILENAME);
69330
69330
  ignore = yield* readIgnoreConfig(ignoreLoc);
69331
69331
  if (ignore) {
69332
- debug5("Found ignore %o from %o.", ignore.filepath, dirname4);
69332
+ debug4("Found ignore %o from %o.", ignore.filepath, dirname4);
69333
69333
  }
69334
69334
  }
69335
69335
  }
@@ -69353,7 +69353,7 @@ from ${dirname4}`);
69353
69353
  return config2 || previousConfig2;
69354
69354
  }, previousConfig);
69355
69355
  if (config) {
69356
- debug5("Found configuration %o from %o.", config.filepath, dirname4);
69356
+ debug4("Found configuration %o from %o.", config.filepath, dirname4);
69357
69357
  }
69358
69358
  return config;
69359
69359
  }
@@ -69374,7 +69374,7 @@ from ${dirname4}`);
69374
69374
  if (!conf) {
69375
69375
  throw new _configError.default(`Config file contains no configuration data`, filepath);
69376
69376
  }
69377
- debug5("Loaded config %o from %o.", name, dirname4);
69377
+ debug4("Loaded config %o from %o.", name, dirname4);
69378
69378
  return conf;
69379
69379
  }
69380
69380
  function readConfig(filepath, envName, caller) {
@@ -70585,7 +70585,7 @@ var require_plugins4 = __commonJS({
70585
70585
  };
70586
70586
  return data;
70587
70587
  }
70588
- var debug5 = _debug()("babel:config:loading:files:plugins");
70588
+ var debug4 = _debug()("babel:config:loading:files:plugins");
70589
70589
  var EXACT_RE = /^module:/;
70590
70590
  var BABEL_PLUGIN_PREFIX_RE = /^(?!@|module:|[^/]+\/|babel-plugin-)/;
70591
70591
  var BABEL_PRESET_PREFIX_RE = /^(?!@|module:|[^/]+\/|babel-preset-)/;
@@ -70599,7 +70599,7 @@ var require_plugins4 = __commonJS({
70599
70599
  function* loadPlugin(name, dirname4) {
70600
70600
  const filepath = resolvePlugin(name, dirname4, yield* (0, _async.isAsync)());
70601
70601
  const value2 = yield* requireModule("plugin", filepath);
70602
- debug5("Loaded plugin %o from %o.", name, dirname4);
70602
+ debug4("Loaded plugin %o from %o.", name, dirname4);
70603
70603
  return {
70604
70604
  filepath,
70605
70605
  value: value2
@@ -70608,7 +70608,7 @@ var require_plugins4 = __commonJS({
70608
70608
  function* loadPreset(name, dirname4) {
70609
70609
  const filepath = resolvePreset(name, dirname4, yield* (0, _async.isAsync)());
70610
70610
  const value2 = yield* requireModule("preset", filepath);
70611
- debug5("Loaded preset %o from %o.", name, dirname4);
70611
+ debug4("Loaded preset %o from %o.", name, dirname4);
70612
70612
  return {
70613
70613
  filepath,
70614
70614
  value: value2
@@ -71718,7 +71718,7 @@ var require_tree_kill = __commonJS({
71718
71718
  "../../node_modules/.pnpm/tree-kill@1.2.2/node_modules/tree-kill/index.js"(exports, module2) {
71719
71719
  "use strict";
71720
71720
  var childProcess = require("child_process");
71721
- var spawn4 = childProcess.spawn;
71721
+ var spawn3 = childProcess.spawn;
71722
71722
  var exec = childProcess.exec;
71723
71723
  module2.exports = function(pid, signal, callback) {
71724
71724
  if (typeof signal === "function" && callback === void 0) {
@@ -71743,14 +71743,14 @@ var require_tree_kill = __commonJS({
71743
71743
  break;
71744
71744
  case "darwin":
71745
71745
  buildProcessTree(pid, tree, pidsToProcess, function(parentPid) {
71746
- return spawn4("pgrep", ["-P", parentPid]);
71746
+ return spawn3("pgrep", ["-P", parentPid]);
71747
71747
  }, function() {
71748
71748
  killAll(tree, signal, callback);
71749
71749
  });
71750
71750
  break;
71751
71751
  default:
71752
71752
  buildProcessTree(pid, tree, pidsToProcess, function(parentPid) {
71753
- return spawn4("ps", ["-o", "pid", "--no-headers", "--ppid", parentPid]);
71753
+ return spawn3("ps", ["-o", "pid", "--no-headers", "--ppid", parentPid]);
71754
71754
  }, function() {
71755
71755
  killAll(tree, signal, callback);
71756
71756
  });
@@ -71825,13 +71825,13 @@ var require_dist2 = __commonJS({
71825
71825
  "use strict";
71826
71826
  function noop() {
71827
71827
  }
71828
- function once3(emitter, name) {
71829
- const o = once3.spread(emitter, name);
71828
+ function once2(emitter, name) {
71829
+ const o = once2.spread(emitter, name);
71830
71830
  const r = o.then((args) => args[0]);
71831
71831
  r.cancel = o.cancel;
71832
71832
  return r;
71833
71833
  }
71834
- (function(once4) {
71834
+ (function(once3) {
71835
71835
  function spread(emitter, name) {
71836
71836
  let c = null;
71837
71837
  const p = new Promise((resolve3, reject) => {
@@ -71858,9 +71858,9 @@ var require_dist2 = __commonJS({
71858
71858
  p.cancel = c;
71859
71859
  return p;
71860
71860
  }
71861
- once4.spread = spread;
71862
- })(once3 || (once3 = {}));
71863
- module2.exports = once3;
71861
+ once3.spread = spread;
71862
+ })(once2 || (once2 = {}));
71863
+ module2.exports = once2;
71864
71864
  }
71865
71865
  });
71866
71866
 
@@ -71871,7 +71871,7 @@ __export(src_exports, {
71871
71871
  build: () => build,
71872
71872
  diagnostics: () => diagnostics,
71873
71873
  prepareCache: () => prepareCache,
71874
- shouldServe: () => import_build_utils11.shouldServe,
71874
+ shouldServe: () => import_build_utils10.shouldServe,
71875
71875
  startDevServer: () => startDevServer,
71876
71876
  version: () => version
71877
71877
  });
@@ -72515,6 +72515,7 @@ async function downloadInstallAndBundle({
72515
72515
  cliType,
72516
72516
  lockfileVersion,
72517
72517
  packageJsonPackageManager,
72518
+ nodeVersion,
72518
72519
  env: process.env,
72519
72520
  turboSupportsCorepackHome,
72520
72521
  projectCreatedAt: config.projectSettings?.createdAt
@@ -73044,105 +73045,29 @@ var prepareCache = ({ repoRootPath, workPath }) => {
73044
73045
  // src/start-dev-server.ts
73045
73046
  var import_module3 = require("module");
73046
73047
  var import_fs2 = require("fs");
73047
- var import_path6 = require("path");
73048
+ var import_path5 = require("path");
73048
73049
  var import_tree_kill = __toESM(require_tree_kill());
73049
73050
  var import_util = require("util");
73050
73051
  var import_stream = require("stream");
73051
- var import_build_utils10 = require("@vercel/build-utils");
73052
+ var import_build_utils9 = require("@vercel/build-utils");
73052
73053
  var import_error_utils2 = require("@vercel/error-utils");
73053
73054
  var import_static_config2 = require("@vercel/static-config");
73054
73055
  var import_ts_morph2 = require("ts-morph");
73055
73056
 
73056
73057
  // src/fork-dev-server.ts
73057
- var import_once2 = __toESM(require_dist2());
73058
- var import_build_utils9 = require("@vercel/build-utils");
73059
- var import_child_process3 = require("child_process");
73060
- var import_url = require("url");
73061
- var import_path5 = require("path");
73062
-
73063
- // src/bun-helpers.ts
73058
+ var import_once = __toESM(require_dist2());
73064
73059
  var import_build_utils8 = require("@vercel/build-utils");
73065
73060
  var import_child_process2 = require("child_process");
73066
- var import_once = __toESM(require_dist2());
73067
- var import_os2 = require("os");
73061
+ var import_url = require("url");
73068
73062
  var import_path4 = require("path");
73069
- async function spawnAsync(command, args, options) {
73070
- const child = (0, import_child_process2.spawn)(command, args, options);
73071
- const [exitCode] = await import_once.default.spread(child, "close");
73072
- return exitCode;
73073
- }
73074
- async function getOrCreateBunBinary() {
73075
- const { platform } = process;
73076
- const bunCommand = platform === "win32" ? "bun.exe" : "bun";
73077
- const installPath = (0, import_path4.join)((0, import_os2.homedir)(), ".bun", "bin", bunCommand);
73078
- try {
73079
- const exitCode = await spawnAsync(bunCommand, ["--version"], {
73080
- stdio: "ignore"
73081
- });
73082
- if (exitCode === 0) {
73083
- (0, import_build_utils8.debug)("Bun already installed and available in PATH");
73084
- return bunCommand;
73085
- }
73086
- } catch {
73087
- (0, import_build_utils8.debug)("Bun not found in PATH");
73088
- }
73089
- try {
73090
- const exitCode = await spawnAsync(installPath, ["--version"], {
73091
- stdio: "ignore"
73092
- });
73093
- if (exitCode === 0) {
73094
- (0, import_build_utils8.debug)("Bun already installed in default location");
73095
- return installPath;
73096
- }
73097
- } catch {
73098
- (0, import_build_utils8.debug)("Bun not found in default location");
73099
- }
73100
- console.log("Installing Bun...");
73101
- try {
73102
- let exitCode;
73103
- if (platform === "win32") {
73104
- exitCode = await spawnAsync(
73105
- "powershell",
73106
- ["-c", "irm bun.sh/install.ps1 | iex"],
73107
- { stdio: "inherit" }
73108
- );
73109
- } else {
73110
- exitCode = await spawnAsync(
73111
- "bash",
73112
- ["-c", "curl -fsSL https://bun.sh/install | bash"],
73113
- { stdio: "inherit" }
73114
- );
73115
- }
73116
- if (exitCode !== 0) {
73117
- throw new Error(`Installation script exited with code ${exitCode}`);
73118
- }
73119
- } catch (error) {
73120
- throw new Error(`Failed to install Bun: ${error}`);
73121
- }
73122
- try {
73123
- const exitCode = await spawnAsync(installPath, ["--version"], {
73124
- stdio: "ignore"
73125
- });
73126
- if (exitCode === 0) {
73127
- (0, import_build_utils8.debug)("Bun was installed successfully");
73128
- return installPath;
73129
- }
73130
- } catch {
73131
- }
73132
- throw new Error(
73133
- "Bun installation failed. Please install manually and try again."
73134
- );
73135
- }
73136
-
73137
- // src/fork-dev-server.ts
73138
73063
  async function forkDevServer(options) {
73139
- const devServerPath = options.devServerPath || (0, import_path5.join)(__dirname, "dev-server.mjs");
73064
+ const devServerPath = options.devServerPath || (0, import_path4.join)(__dirname, "dev-server.mjs");
73140
73065
  let child;
73141
73066
  if (options.runtime === "bun") {
73142
- const bun = await getOrCreateBunBinary();
73067
+ const bun = await (0, import_build_utils8.getOrCreateBunBinary)();
73143
73068
  const spawnOptions = {
73144
73069
  cwd: options.workPath,
73145
- env: (0, import_build_utils9.cloneEnv)(process.env, options.meta.env, {
73070
+ env: (0, import_build_utils8.cloneEnv)(process.env, options.meta.env, {
73146
73071
  VERCEL_DEV_ENTRYPOINT: options.entrypoint,
73147
73072
  VERCEL_DEV_CONFIG: JSON.stringify(options.config),
73148
73073
  VERCEL_DEV_BUILD_ENV: JSON.stringify(options.meta.buildEnv || {}),
@@ -73150,7 +73075,7 @@ async function forkDevServer(options) {
73150
73075
  }),
73151
73076
  stdio: ["pipe", "pipe", "pipe"]
73152
73077
  };
73153
- child = (0, import_child_process3.spawn)(bun, ["--bun", devServerPath], spawnOptions);
73078
+ child = (0, import_child_process2.spawn)(bun, ["--bun", devServerPath], spawnOptions);
73154
73079
  let buffer = "";
73155
73080
  child.stdout?.on("data", (data) => {
73156
73081
  const output = data.toString();
@@ -73181,7 +73106,7 @@ async function forkDevServer(options) {
73181
73106
  const forkOptions = {
73182
73107
  cwd: options.workPath,
73183
73108
  execArgv: [],
73184
- env: (0, import_build_utils9.cloneEnv)(process.env, options.meta.env, {
73109
+ env: (0, import_build_utils8.cloneEnv)(process.env, options.meta.env, {
73185
73110
  VERCEL_DEV_ENTRYPOINT: options.entrypoint,
73186
73111
  VERCEL_DEV_CONFIG: JSON.stringify(options.config),
73187
73112
  VERCEL_DEV_BUILD_ENV: JSON.stringify(options.meta.buildEnv || {}),
@@ -73190,7 +73115,7 @@ async function forkDevServer(options) {
73190
73115
  }),
73191
73116
  stdio: options.printLogs ? "pipe" : void 0
73192
73117
  };
73193
- child = (0, import_child_process3.fork)(devServerPath, [], forkOptions);
73118
+ child = (0, import_child_process2.fork)(devServerPath, [], forkOptions);
73194
73119
  }
73195
73120
  if (options.printLogs) {
73196
73121
  child.stdout?.on("data", (data) => {
@@ -73209,8 +73134,8 @@ function checkForPid(path, process2) {
73209
73134
  }
73210
73135
  }
73211
73136
  async function readMessage(child) {
73212
- const onMessage = (0, import_once2.default)(child, "message");
73213
- const onExit = import_once2.default.spread(child, "close");
73137
+ const onMessage = (0, import_once.default)(child, "message");
73138
+ const onExit = import_once.default.spread(child, "close");
73214
73139
  const result = await Promise.race([
73215
73140
  onMessage.then((x) => {
73216
73141
  return { state: "message", value: x };
@@ -73262,7 +73187,7 @@ async function syncDependencies(workPath, onStdout, onStderr) {
73262
73187
  }
73263
73188
  });
73264
73189
  try {
73265
- await (0, import_build_utils10.runNpmInstall)(workPath, [], void 0, void 0, void 0, {
73190
+ await (0, import_build_utils9.runNpmInstall)(workPath, [], void 0, void 0, void 0, {
73266
73191
  stdout: bufStdout,
73267
73192
  stderr: bufStderr
73268
73193
  });
@@ -73270,7 +73195,7 @@ async function syncDependencies(workPath, onStdout, onStderr) {
73270
73195
  for (const [channel, chunk] of captured) {
73271
73196
  (channel === "stdout" ? writeOut : writeErr)(chunk.toString());
73272
73197
  }
73273
- throw new import_build_utils10.NowBuildError({
73198
+ throw new import_build_utils9.NowBuildError({
73274
73199
  code: "NODE_DEPENDENCY_SYNC_FAILED",
73275
73200
  message: `Failed to install Node.JS dependencies: ${err instanceof Error ? err.message : String(err)}`
73276
73201
  });
@@ -73278,7 +73203,7 @@ async function syncDependencies(workPath, onStdout, onStderr) {
73278
73203
  }
73279
73204
  var startDevServer = async (opts) => {
73280
73205
  const { entrypoint, workPath, config, meta = {}, publicDir } = opts;
73281
- const entrypointPath = (0, import_path6.join)(workPath, entrypoint);
73206
+ const entrypointPath = (0, import_path5.join)(workPath, entrypoint);
73282
73207
  if (meta.syncDependencies) {
73283
73208
  const gray = "\x1B[90m";
73284
73209
  const reset = "\x1B[0m";
@@ -73312,7 +73237,7 @@ var startDevServer = async (opts) => {
73312
73237
  try {
73313
73238
  const vercelConfig = JSON.parse(vercelConfigContents);
73314
73239
  if (vercelConfig.bunVersion) {
73315
- bunVersion = (0, import_build_utils10.getSupportedBunVersion)(vercelConfig.bunVersion);
73240
+ bunVersion = (0, import_build_utils9.getSupportedBunVersion)(vercelConfig.bunVersion);
73316
73241
  }
73317
73242
  } catch {
73318
73243
  }
@@ -73333,14 +73258,14 @@ var startDevServer = async (opts) => {
73333
73258
  return null;
73334
73259
  }
73335
73260
  }
73336
- const entryDir = (0, import_path6.dirname)(entrypointPath);
73337
- const ext = (0, import_path6.extname)(entrypoint);
73338
- const pathToTsConfig = await (0, import_build_utils10.walkParentDirs)({
73261
+ const entryDir = (0, import_path5.dirname)(entrypointPath);
73262
+ const ext = (0, import_path5.extname)(entrypoint);
73263
+ const pathToTsConfig = await (0, import_build_utils9.walkParentDirs)({
73339
73264
  base: workPath,
73340
73265
  start: entryDir,
73341
73266
  filename: "tsconfig.json"
73342
73267
  });
73343
- const pathToPkg = await (0, import_build_utils10.walkParentDirs)({
73268
+ const pathToPkg = await (0, import_build_utils9.walkParentDirs)({
73344
73269
  base: workPath,
73345
73270
  start: entryDir,
73346
73271
  filename: "package.json"
@@ -73367,7 +73292,7 @@ var startDevServer = async (opts) => {
73367
73292
  ts = requireTypescript(compiler);
73368
73293
  }
73369
73294
  if (!ts) {
73370
- compiler = resolveTypescript((0, import_path6.join)(__dirname, ".."));
73295
+ compiler = resolveTypescript((0, import_path5.join)(__dirname, ".."));
73371
73296
  ts = requireTypescript(compiler);
73372
73297
  }
73373
73298
  if (pathToTsConfig) {
@@ -73445,7 +73370,7 @@ var startDevServer = async (opts) => {
73445
73370
  };
73446
73371
 
73447
73372
  // src/index.ts
73448
- var import_build_utils11 = require("@vercel/build-utils");
73373
+ var import_build_utils10 = require("@vercel/build-utils");
73449
73374
  var version = 3;
73450
73375
  // Annotate the CommonJS export names for ESM import in node:
73451
73376
  0 && (module.exports = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/node",
3
- "version": "5.10.0",
3
+ "version": "5.10.2",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index",
6
6
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/node-js",
@@ -32,9 +32,9 @@
32
32
  "tsx": "4.21.0",
33
33
  "typescript": "npm:typescript@5.9.3",
34
34
  "undici": "5.28.4",
35
- "@vercel/static-config": "3.4.1",
36
35
  "@vercel/error-utils": "2.2.1",
37
- "@vercel/build-utils": "14.1.0"
36
+ "@vercel/build-utils": "14.2.0",
37
+ "@vercel/static-config": "3.4.1"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@babel/core": "7.24.4",
@@ -57,12 +57,13 @@
57
57
  "tree-kill": "1.2.2",
58
58
  "vite": "^6.4.3",
59
59
  "vitest": "^4.1.10",
60
- "@vercel/functions": "3.9.3"
60
+ "@vercel/functions": "3.9.5"
61
61
  },
62
62
  "scripts": {
63
63
  "build": "node build.mjs",
64
64
  "test": "cross-env NODE_OPTIONS=--experimental-vm-modules vitest run --config ../../vitest.config.mts",
65
65
  "test-e2e": "cross-env NODE_OPTIONS=--experimental-vm-modules vitest run --config ../../vitest.config.mts test/integration/",
66
+ "test-e2e-builder": "pnpm run test-e2e",
66
67
  "type-check": "tsc --noEmit",
67
68
  "test-unit": "cross-env NODE_OPTIONS=--experimental-vm-modules vitest run --config ../../vitest.config.mts test/unit/"
68
69
  }