vercel 49.1.0 → 49.1.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 +168 -121
  2. package/package.json +12 -12
package/dist/index.js CHANGED
@@ -2302,11 +2302,11 @@ var require_symlink = __commonJS2({
2302
2302
  });
2303
2303
  }
2304
2304
  function _createSymlink(srcpath, dstpath, type, callback) {
2305
- symlinkPaths(srcpath, dstpath, (err, relative7) => {
2305
+ symlinkPaths(srcpath, dstpath, (err, relative8) => {
2306
2306
  if (err)
2307
2307
  return callback(err);
2308
- srcpath = relative7.toDst;
2309
- symlinkType(relative7.toCwd, type, (err2, type2) => {
2308
+ srcpath = relative8.toDst;
2309
+ symlinkType(relative8.toCwd, type, (err2, type2) => {
2310
2310
  if (err2)
2311
2311
  return callback(err2);
2312
2312
  const dir = path11.dirname(dstpath);
@@ -2336,9 +2336,9 @@ var require_symlink = __commonJS2({
2336
2336
  if (areIdentical(srcStat, dstStat))
2337
2337
  return;
2338
2338
  }
2339
- const relative7 = symlinkPathsSync(srcpath, dstpath);
2340
- srcpath = relative7.toDst;
2341
- type = symlinkTypeSync(relative7.toCwd, type);
2339
+ const relative8 = symlinkPathsSync(srcpath, dstpath);
2340
+ srcpath = relative8.toDst;
2341
+ type = symlinkTypeSync(relative8.toCwd, type);
2342
2342
  const dir = path11.dirname(dstpath);
2343
2343
  const exists = fs15.existsSync(dir);
2344
2344
  if (exists)
@@ -12385,7 +12385,7 @@ var require_path = __commonJS2({
12385
12385
  }
12386
12386
  return arr.slice(start, end - start + 1);
12387
12387
  }
12388
- function relative7(from, to) {
12388
+ function relative8(from, to) {
12389
12389
  from = resolve13(from).slice(1);
12390
12390
  to = resolve13(to).slice(1);
12391
12391
  const fromParts = trim(from.split("/"));
@@ -12450,7 +12450,7 @@ var require_path = __commonJS2({
12450
12450
  exports2.isAbsolute = isAbsolute2;
12451
12451
  exports2.join = join25;
12452
12452
  exports2.normalizePath = normalizePath6;
12453
- exports2.relative = relative7;
12453
+ exports2.relative = relative8;
12454
12454
  exports2.resolve = resolve13;
12455
12455
  }
12456
12456
  });
@@ -48687,11 +48687,11 @@ var require_symlink2 = __commonJS2({
48687
48687
  return callback(err);
48688
48688
  if (destinationExists)
48689
48689
  return callback(null);
48690
- symlinkPaths(srcpath, dstpath, (err2, relative7) => {
48690
+ symlinkPaths(srcpath, dstpath, (err2, relative8) => {
48691
48691
  if (err2)
48692
48692
  return callback(err2);
48693
- srcpath = relative7.toDst;
48694
- symlinkType(relative7.toCwd, type, (err3, type2) => {
48693
+ srcpath = relative8.toDst;
48694
+ symlinkType(relative8.toCwd, type, (err3, type2) => {
48695
48695
  if (err3)
48696
48696
  return callback(err3);
48697
48697
  const dir = path11.dirname(dstpath);
@@ -48714,9 +48714,9 @@ var require_symlink2 = __commonJS2({
48714
48714
  const destinationExists = fs15.existsSync(dstpath);
48715
48715
  if (destinationExists)
48716
48716
  return void 0;
48717
- const relative7 = symlinkPathsSync(srcpath, dstpath);
48718
- srcpath = relative7.toDst;
48719
- type = symlinkTypeSync(relative7.toCwd, type);
48717
+ const relative8 = symlinkPathsSync(srcpath, dstpath);
48718
+ srcpath = relative8.toDst;
48719
+ type = symlinkTypeSync(relative8.toCwd, type);
48720
48720
  const dir = path11.dirname(dstpath);
48721
48721
  const exists = fs15.existsSync(dir);
48722
48722
  if (exists)
@@ -49985,7 +49985,7 @@ var require_package = __commonJS2({
49985
49985
  "../client/package.json"(exports2, module2) {
49986
49986
  module2.exports = {
49987
49987
  name: "@vercel/client",
49988
- version: "17.2.14",
49988
+ version: "17.2.15",
49989
49989
  main: "dist/index.js",
49990
49990
  typings: "dist/index.d.ts",
49991
49991
  homepage: "https://vercel.com",
@@ -55845,15 +55845,15 @@ var require_pattern = __commonJS2({
55845
55845
  exports2.removeDuplicateSlashes = removeDuplicateSlashes;
55846
55846
  function partitionAbsoluteAndRelative(patterns) {
55847
55847
  const absolute = [];
55848
- const relative7 = [];
55848
+ const relative8 = [];
55849
55849
  for (const pattern of patterns) {
55850
55850
  if (isAbsolute2(pattern)) {
55851
55851
  absolute.push(pattern);
55852
55852
  } else {
55853
- relative7.push(pattern);
55853
+ relative8.push(pattern);
55854
55854
  }
55855
55855
  }
55856
- return [absolute, relative7];
55856
+ return [absolute, relative8];
55857
55857
  }
55858
55858
  exports2.partitionAbsoluteAndRelative = partitionAbsoluteAndRelative;
55859
55859
  function isAbsolute2(pattern) {
@@ -58405,7 +58405,7 @@ var require_utils14 = __commonJS2({
58405
58405
  createDebug: () => createDebug,
58406
58406
  fetch: () => fetch6,
58407
58407
  getApiDeploymentsUrl: () => getApiDeploymentsUrl,
58408
- getVercelIgnore: () => getVercelIgnore4,
58408
+ getVercelIgnore: () => getVercelIgnore5,
58409
58409
  parseVercelConfig: () => parseVercelConfig,
58410
58410
  prepareFiles: () => prepareFiles
58411
58411
  });
@@ -58479,7 +58479,7 @@ var require_utils14 = __commonJS2({
58479
58479
  }, debug2) {
58480
58480
  const ignoreList = [];
58481
58481
  let fileList;
58482
- let { ig, ignores } = await getVercelIgnore4(path11, prebuilt, vercelOutputDir);
58482
+ let { ig, ignores } = await getVercelIgnore5(path11, prebuilt, vercelOutputDir);
58483
58483
  debug2(`Found ${ignores.length} rules in .vercelignore`);
58484
58484
  debug2("Building file tree...");
58485
58485
  if (isDirectory2 && !Array.isArray(path11)) {
@@ -58550,7 +58550,7 @@ var require_utils14 = __commonJS2({
58550
58550
  }
58551
58551
  return { fileList, ignoreList };
58552
58552
  }
58553
- async function getVercelIgnore4(cwd, prebuilt, vercelOutputDir) {
58553
+ async function getVercelIgnore5(cwd, prebuilt, vercelOutputDir) {
58554
58554
  const ig = (0, import_ignore.default)();
58555
58555
  let ignores;
58556
58556
  if (prebuilt) {
@@ -64694,51 +64694,51 @@ var require_uri_all = __commonJS2({
64694
64694
  }
64695
64695
  return uriTokens.join("");
64696
64696
  }
64697
- function resolveComponents(base2, relative7) {
64697
+ function resolveComponents(base2, relative8) {
64698
64698
  var options = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
64699
64699
  var skipNormalization = arguments[3];
64700
64700
  var target = {};
64701
64701
  if (!skipNormalization) {
64702
64702
  base2 = parse11(serialize(base2, options), options);
64703
- relative7 = parse11(serialize(relative7, options), options);
64703
+ relative8 = parse11(serialize(relative8, options), options);
64704
64704
  }
64705
64705
  options = options || {};
64706
- if (!options.tolerant && relative7.scheme) {
64707
- target.scheme = relative7.scheme;
64708
- target.userinfo = relative7.userinfo;
64709
- target.host = relative7.host;
64710
- target.port = relative7.port;
64711
- target.path = removeDotSegments(relative7.path || "");
64712
- target.query = relative7.query;
64706
+ if (!options.tolerant && relative8.scheme) {
64707
+ target.scheme = relative8.scheme;
64708
+ target.userinfo = relative8.userinfo;
64709
+ target.host = relative8.host;
64710
+ target.port = relative8.port;
64711
+ target.path = removeDotSegments(relative8.path || "");
64712
+ target.query = relative8.query;
64713
64713
  } else {
64714
- if (relative7.userinfo !== void 0 || relative7.host !== void 0 || relative7.port !== void 0) {
64715
- target.userinfo = relative7.userinfo;
64716
- target.host = relative7.host;
64717
- target.port = relative7.port;
64718
- target.path = removeDotSegments(relative7.path || "");
64719
- target.query = relative7.query;
64714
+ if (relative8.userinfo !== void 0 || relative8.host !== void 0 || relative8.port !== void 0) {
64715
+ target.userinfo = relative8.userinfo;
64716
+ target.host = relative8.host;
64717
+ target.port = relative8.port;
64718
+ target.path = removeDotSegments(relative8.path || "");
64719
+ target.query = relative8.query;
64720
64720
  } else {
64721
- if (!relative7.path) {
64721
+ if (!relative8.path) {
64722
64722
  target.path = base2.path;
64723
- if (relative7.query !== void 0) {
64724
- target.query = relative7.query;
64723
+ if (relative8.query !== void 0) {
64724
+ target.query = relative8.query;
64725
64725
  } else {
64726
64726
  target.query = base2.query;
64727
64727
  }
64728
64728
  } else {
64729
- if (relative7.path.charAt(0) === "/") {
64730
- target.path = removeDotSegments(relative7.path);
64729
+ if (relative8.path.charAt(0) === "/") {
64730
+ target.path = removeDotSegments(relative8.path);
64731
64731
  } else {
64732
64732
  if ((base2.userinfo !== void 0 || base2.host !== void 0 || base2.port !== void 0) && !base2.path) {
64733
- target.path = "/" + relative7.path;
64733
+ target.path = "/" + relative8.path;
64734
64734
  } else if (!base2.path) {
64735
- target.path = relative7.path;
64735
+ target.path = relative8.path;
64736
64736
  } else {
64737
- target.path = base2.path.slice(0, base2.path.lastIndexOf("/") + 1) + relative7.path;
64737
+ target.path = base2.path.slice(0, base2.path.lastIndexOf("/") + 1) + relative8.path;
64738
64738
  }
64739
64739
  target.path = removeDotSegments(target.path);
64740
64740
  }
64741
- target.query = relative7.query;
64741
+ target.query = relative8.query;
64742
64742
  }
64743
64743
  target.userinfo = base2.userinfo;
64744
64744
  target.host = base2.host;
@@ -64746,7 +64746,7 @@ var require_uri_all = __commonJS2({
64746
64746
  }
64747
64747
  target.scheme = base2.scheme;
64748
64748
  }
64749
- target.fragment = relative7.fragment;
64749
+ target.fragment = relative8.fragment;
64750
64750
  return target;
64751
64751
  }
64752
64752
  function resolve13(baseURI, relativeURI, options) {
@@ -99228,7 +99228,7 @@ var require_util6 = __commonJS2({
99228
99228
  exports2.isAbsolute = function(aPath) {
99229
99229
  return aPath.charAt(0) === "/" || urlRegexp.test(aPath);
99230
99230
  };
99231
- function relative7(aRoot, aPath) {
99231
+ function relative8(aRoot, aPath) {
99232
99232
  if (aRoot === "") {
99233
99233
  aRoot = ".";
99234
99234
  }
@@ -99247,7 +99247,7 @@ var require_util6 = __commonJS2({
99247
99247
  }
99248
99248
  return Array(level + 1).join("../") + aPath.substr(aRoot.length + 1);
99249
99249
  }
99250
- exports2.relative = relative7;
99250
+ exports2.relative = relative8;
99251
99251
  var supportsNullProto = function() {
99252
99252
  var obj = /* @__PURE__ */ Object.create(null);
99253
99253
  return !("__proto__" in obj);
@@ -145302,7 +145302,15 @@ var require_promisepipe = __commonJS2({
145302
145302
  });
145303
145303
 
145304
145304
  // src/util/build/merge.ts
145305
- async function merge(source, destination) {
145305
+ async function merge(source, destination, ignoreFilter, sourceRoot) {
145306
+ const root = sourceRoot || source;
145307
+ if (ignoreFilter) {
145308
+ const relPath = (0, import_path21.relative)(root, source);
145309
+ if (relPath && !ignoreFilter(relPath)) {
145310
+ await (0, import_fs_extra12.remove)(source);
145311
+ return;
145312
+ }
145313
+ }
145306
145314
  const destStat = await (0, import_fs_extra12.stat)(destination).catch(
145307
145315
  (err) => err
145308
145316
  );
@@ -145322,7 +145330,9 @@ async function merge(source, destination) {
145322
145330
  }
145323
145331
  } else {
145324
145332
  await Promise.all(
145325
- contents.map((name) => merge((0, import_path21.join)(source, name), (0, import_path21.join)(destination, name)))
145333
+ contents.map(
145334
+ (name) => merge((0, import_path21.join)(source, name), (0, import_path21.join)(destination, name), ignoreFilter, root)
145335
+ )
145326
145336
  );
145327
145337
  await (0, import_fs_extra12.rmdir)(source);
145328
145338
  return;
@@ -147373,10 +147383,11 @@ async function writeBuildResultV2(args2) {
147373
147383
  buildResult,
147374
147384
  build: build2,
147375
147385
  vercelConfig,
147376
- standalone
147386
+ standalone,
147387
+ workPath
147377
147388
  } = args2;
147378
147389
  if ("buildOutputPath" in buildResult) {
147379
- await mergeBuilderOutput(outputDir, buildResult);
147390
+ await mergeBuilderOutput(outputDir, buildResult, workPath);
147380
147391
  return;
147381
147392
  }
147382
147393
  if (!buildResult.output) {
@@ -147706,12 +147717,48 @@ async function writeLambda(repoRootPath, outputDir, lambda, path11, functionConf
147706
147717
  }
147707
147718
  }
147708
147719
  }
147709
- async function mergeBuilderOutput(outputDir, buildResult) {
147720
+ async function mergeBuilderOutput(outputDir, buildResult, workPath) {
147710
147721
  const absOutputDir = (0, import_path23.resolve)(outputDir);
147722
+ const { ig } = await (0, import_client3.getVercelIgnore)(workPath);
147723
+ const filter = ig.createFilter();
147711
147724
  if (absOutputDir === buildResult.buildOutputPath) {
147725
+ const staticDir = (0, import_path23.join)(outputDir, "static");
147726
+ try {
147727
+ await cleanIgnoredFiles(staticDir, staticDir, filter);
147728
+ } catch (err) {
147729
+ if (err.code !== "ENOENT")
147730
+ throw err;
147731
+ }
147712
147732
  return;
147713
147733
  }
147714
- await merge(buildResult.buildOutputPath, outputDir);
147734
+ const ignoreFilter = (path11) => {
147735
+ const normalizedPath = path11.replace(/\\/g, "/");
147736
+ if (normalizedPath.startsWith("static/")) {
147737
+ return filter(normalizedPath.substring("static/".length));
147738
+ }
147739
+ return true;
147740
+ };
147741
+ await merge(buildResult.buildOutputPath, outputDir, ignoreFilter);
147742
+ }
147743
+ async function cleanIgnoredFiles(dir, staticRoot, filter) {
147744
+ const entries = await import_fs_extra13.default.readdir(dir);
147745
+ await Promise.all(
147746
+ entries.map(async (entry) => {
147747
+ const entryPath = (0, import_path23.join)(dir, entry);
147748
+ const stat2 = await import_fs_extra13.default.stat(entryPath);
147749
+ const relativePath = (0, import_path23.relative)(staticRoot, entryPath);
147750
+ if (stat2.isDirectory()) {
147751
+ await cleanIgnoredFiles(entryPath, staticRoot, filter);
147752
+ const remaining = await import_fs_extra13.default.readdir(entryPath);
147753
+ if (remaining.length === 0) {
147754
+ await import_fs_extra13.default.rmdir(entryPath);
147755
+ }
147756
+ } else if (!filter(relativePath)) {
147757
+ output_manager_default.debug(`Removing ignored file: ${relativePath}`);
147758
+ await import_fs_extra13.default.remove(entryPath);
147759
+ }
147760
+ })
147761
+ );
147715
147762
  }
147716
147763
  function getFileExtension(file) {
147717
147764
  let ext = "";
@@ -160012,8 +160059,8 @@ var require_follow_redirects = __commonJS2({
160012
160059
  }
160013
160060
  return parsed;
160014
160061
  }
160015
- function resolveUrl(relative7, base) {
160016
- return useNativeURL ? new URL11(relative7, base) : parseUrl2(url3.resolve(base, relative7));
160062
+ function resolveUrl(relative8, base) {
160063
+ return useNativeURL ? new URL11(relative8, base) : parseUrl2(url3.resolve(base, relative8));
160017
160064
  }
160018
160065
  function validateUrl(input) {
160019
160066
  if (/^\[/.test(input.hostname) && !/^\[[:0-9a-f]+\]$/i.test(input.hostname)) {
@@ -160591,8 +160638,8 @@ var require_urlparser = __commonJS2({
160591
160638
  this.query = Url.queryString.parse(search);
160592
160639
  }
160593
160640
  };
160594
- Url.prototype.resolve = function Url$resolve(relative7) {
160595
- return this.resolveObject(Url.parse(relative7, false, true)).format();
160641
+ Url.prototype.resolve = function Url$resolve(relative8) {
160642
+ return this.resolveObject(Url.parse(relative8, false, true)).format();
160596
160643
  };
160597
160644
  Url.prototype.format = function Url$format() {
160598
160645
  var auth = this.auth || "";
@@ -160643,61 +160690,61 @@ var require_urlparser = __commonJS2({
160643
160690
  search = escapeSearch(search);
160644
160691
  return scheme + (host === false ? "" : host) + pathname + search + hash;
160645
160692
  };
160646
- Url.prototype.resolveObject = function Url$resolveObject(relative7) {
160647
- if (typeof relative7 === "string")
160648
- relative7 = Url.parse(relative7, false, true);
160693
+ Url.prototype.resolveObject = function Url$resolveObject(relative8) {
160694
+ if (typeof relative8 === "string")
160695
+ relative8 = Url.parse(relative8, false, true);
160649
160696
  var result = this._clone();
160650
- result.hash = relative7.hash;
160651
- if (!relative7.href) {
160697
+ result.hash = relative8.hash;
160698
+ if (!relative8.href) {
160652
160699
  result._href = "";
160653
160700
  return result;
160654
160701
  }
160655
- if (relative7.slashes && !relative7._protocol) {
160656
- relative7._copyPropsTo(result, true);
160702
+ if (relative8.slashes && !relative8._protocol) {
160703
+ relative8._copyPropsTo(result, true);
160657
160704
  if (slashProtocols[result._protocol] && result.hostname && !result.pathname) {
160658
160705
  result.pathname = "/";
160659
160706
  }
160660
160707
  result._href = "";
160661
160708
  return result;
160662
160709
  }
160663
- if (relative7._protocol && relative7._protocol !== result._protocol) {
160664
- if (!slashProtocols[relative7._protocol]) {
160665
- relative7._copyPropsTo(result, false);
160710
+ if (relative8._protocol && relative8._protocol !== result._protocol) {
160711
+ if (!slashProtocols[relative8._protocol]) {
160712
+ relative8._copyPropsTo(result, false);
160666
160713
  result._href = "";
160667
160714
  return result;
160668
160715
  }
160669
- result._protocol = relative7._protocol;
160670
- if (!relative7.host && relative7._protocol !== "javascript") {
160671
- var relPath = (relative7.pathname || "").split("/");
160672
- while (relPath.length && !(relative7.host = relPath.shift()))
160716
+ result._protocol = relative8._protocol;
160717
+ if (!relative8.host && relative8._protocol !== "javascript") {
160718
+ var relPath = (relative8.pathname || "").split("/");
160719
+ while (relPath.length && !(relative8.host = relPath.shift()))
160673
160720
  ;
160674
- if (!relative7.host)
160675
- relative7.host = "";
160676
- if (!relative7.hostname)
160677
- relative7.hostname = "";
160721
+ if (!relative8.host)
160722
+ relative8.host = "";
160723
+ if (!relative8.hostname)
160724
+ relative8.hostname = "";
160678
160725
  if (relPath[0] !== "")
160679
160726
  relPath.unshift("");
160680
160727
  if (relPath.length < 2)
160681
160728
  relPath.unshift("");
160682
160729
  result.pathname = relPath.join("/");
160683
160730
  } else {
160684
- result.pathname = relative7.pathname;
160685
- }
160686
- result.search = relative7.search;
160687
- result.host = relative7.host || "";
160688
- result.auth = relative7.auth;
160689
- result.hostname = relative7.hostname || relative7.host;
160690
- result._port = relative7._port;
160691
- result.slashes = result.slashes || relative7.slashes;
160731
+ result.pathname = relative8.pathname;
160732
+ }
160733
+ result.search = relative8.search;
160734
+ result.host = relative8.host || "";
160735
+ result.auth = relative8.auth;
160736
+ result.hostname = relative8.hostname || relative8.host;
160737
+ result._port = relative8._port;
160738
+ result.slashes = result.slashes || relative8.slashes;
160692
160739
  result._href = "";
160693
160740
  return result;
160694
160741
  }
160695
160742
  var isSourceAbs = result.pathname && result.pathname.charCodeAt(0) === 47;
160696
- var isRelAbs = relative7.host || relative7.pathname && relative7.pathname.charCodeAt(0) === 47;
160697
- var mustEndAbs = isRelAbs || isSourceAbs || result.host && relative7.pathname;
160743
+ var isRelAbs = relative8.host || relative8.pathname && relative8.pathname.charCodeAt(0) === 47;
160744
+ var mustEndAbs = isRelAbs || isSourceAbs || result.host && relative8.pathname;
160698
160745
  var removeAllDots = mustEndAbs;
160699
160746
  var srcPath = result.pathname && result.pathname.split("/") || [];
160700
- var relPath = relative7.pathname && relative7.pathname.split("/") || [];
160747
+ var relPath = relative8.pathname && relative8.pathname.split("/") || [];
160701
160748
  var psychotic = result._protocol && !slashProtocols[result._protocol];
160702
160749
  if (psychotic) {
160703
160750
  result.hostname = "";
@@ -160709,31 +160756,31 @@ var require_urlparser = __commonJS2({
160709
160756
  srcPath.unshift(result.host);
160710
160757
  }
160711
160758
  result.host = "";
160712
- if (relative7._protocol) {
160713
- relative7.hostname = "";
160714
- relative7._port = -1;
160715
- if (relative7.host) {
160759
+ if (relative8._protocol) {
160760
+ relative8.hostname = "";
160761
+ relative8._port = -1;
160762
+ if (relative8.host) {
160716
160763
  if (relPath[0] === "")
160717
- relPath[0] = relative7.host;
160764
+ relPath[0] = relative8.host;
160718
160765
  else
160719
- relPath.unshift(relative7.host);
160766
+ relPath.unshift(relative8.host);
160720
160767
  }
160721
- relative7.host = "";
160768
+ relative8.host = "";
160722
160769
  }
160723
160770
  mustEndAbs = mustEndAbs && (relPath[0] === "" || srcPath[0] === "");
160724
160771
  }
160725
160772
  if (isRelAbs) {
160726
- result.host = relative7.host ? relative7.host : result.host;
160727
- result.hostname = relative7.hostname ? relative7.hostname : result.hostname;
160728
- result.search = relative7.search;
160773
+ result.host = relative8.host ? relative8.host : result.host;
160774
+ result.hostname = relative8.hostname ? relative8.hostname : result.hostname;
160775
+ result.search = relative8.search;
160729
160776
  srcPath = relPath;
160730
160777
  } else if (relPath.length) {
160731
160778
  if (!srcPath)
160732
160779
  srcPath = [];
160733
160780
  srcPath.pop();
160734
160781
  srcPath = srcPath.concat(relPath);
160735
- result.search = relative7.search;
160736
- } else if (relative7.search) {
160782
+ result.search = relative8.search;
160783
+ } else if (relative8.search) {
160737
160784
  if (psychotic) {
160738
160785
  result.hostname = result.host = srcPath.shift();
160739
160786
  var authInHost = result.host && result.host.indexOf("@") > 0 ? result.host.split("@") : false;
@@ -160742,7 +160789,7 @@ var require_urlparser = __commonJS2({
160742
160789
  result.host = result.hostname = authInHost.shift();
160743
160790
  }
160744
160791
  }
160745
- result.search = relative7.search;
160792
+ result.search = relative8.search;
160746
160793
  result._href = "";
160747
160794
  return result;
160748
160795
  }
@@ -160752,7 +160799,7 @@ var require_urlparser = __commonJS2({
160752
160799
  return result;
160753
160800
  }
160754
160801
  var last = srcPath.slice(-1)[0];
160755
- var hasTrailingSlash = (result.host || relative7.host) && (last === "." || last === "..") || last === "";
160802
+ var hasTrailingSlash = (result.host || relative8.host) && (last === "." || last === "..") || last === "";
160756
160803
  var up = 0;
160757
160804
  for (var i2 = srcPath.length; i2 >= 0; i2--) {
160758
160805
  last = srcPath[i2];
@@ -160791,8 +160838,8 @@ var require_urlparser = __commonJS2({
160791
160838
  srcPath.unshift("");
160792
160839
  }
160793
160840
  result.pathname = srcPath.length === 0 ? null : srcPath.join("/");
160794
- result.auth = relative7.auth || result.auth;
160795
- result.slashes = result.slashes || relative7.slashes;
160841
+ result.auth = relative8.auth || result.auth;
160842
+ result.slashes = result.slashes || relative8.slashes;
160796
160843
  result._href = "";
160797
160844
  return result;
160798
160845
  };
@@ -161185,13 +161232,13 @@ var require_urlparser = __commonJS2({
161185
161232
  }
161186
161233
  return obj.format();
161187
161234
  };
161188
- Url.resolve = function Url$Resolve(source, relative7) {
161189
- return Url.parse(source, false, true).resolve(relative7);
161235
+ Url.resolve = function Url$Resolve(source, relative8) {
161236
+ return Url.parse(source, false, true).resolve(relative8);
161190
161237
  };
161191
- Url.resolveObject = function Url$ResolveObject(source, relative7) {
161238
+ Url.resolveObject = function Url$ResolveObject(source, relative8) {
161192
161239
  if (!source)
161193
- return relative7;
161194
- return Url.parse(source, false, true).resolveObject(relative7);
161240
+ return relative8;
161241
+ return Url.parse(source, false, true).resolveObject(relative8);
161195
161242
  };
161196
161243
  function _escapePath(pathname) {
161197
161244
  return pathname.replace(/[?#]/g, function(match) {
@@ -170027,12 +170074,12 @@ var require_src4 = __commonJS2({
170027
170074
  }).filter(Boolean);
170028
170075
  if (toRoot.length > 0) {
170029
170076
  const directoryPath = [...pathParts].slice(1);
170030
- const relative7 = path11.join("/", ...directoryPath, "..", slashSuffix);
170077
+ const relative8 = path11.join("/", ...directoryPath, "..", slashSuffix);
170031
170078
  files.unshift({
170032
170079
  type: "directory",
170033
170080
  base: "..",
170034
- relative: relative7,
170035
- title: relative7,
170081
+ relative: relative8,
170082
+ title: relative8,
170036
170083
  ext: ""
170037
170084
  });
170038
170085
  }
@@ -170427,7 +170474,7 @@ var require_is_port_reachable = __commonJS2({
170427
170474
  });
170428
170475
 
170429
170476
  // src/util/path-helpers.ts
170430
- function relative6(a, b) {
170477
+ function relative7(a, b) {
170431
170478
  return (0, import_build_utils16.normalizePath)((0, import_path33.relative)(a, b));
170432
170479
  }
170433
170480
  var import_path33, import_build_utils16;
@@ -171215,7 +171262,7 @@ async function getBuildMatches(vercelConfig, cwd, devServer, fileList) {
171215
171262
  noMatches.push(buildConfig);
171216
171263
  }
171217
171264
  for (const file of files) {
171218
- src = relative6(cwd, file);
171265
+ src = relative7(cwd, file);
171219
171266
  const entrypoint = mapToEntrypoint.get(src) || src;
171220
171267
  if (config2.zeroConfig && config2.outputDirectory) {
171221
171268
  const outputMatch = config2.outputDirectory + "/";
@@ -172683,7 +172730,7 @@ Please ensure that ${cmd(err.path)} is properly installed`;
172683
172730
  }
172684
172731
  }
172685
172732
  async handleFileCreated(fsPath, changed, removed) {
172686
- const name = relative6(this.cwd, fsPath);
172733
+ const name = relative7(this.cwd, fsPath);
172687
172734
  try {
172688
172735
  await this.getVercelConfig();
172689
172736
  this.files[name] = await import_build_utils18.FileFsRef.fromFsPath({ fsPath });
@@ -172703,7 +172750,7 @@ Please ensure that ${cmd(err.path)} is properly installed`;
172703
172750
  }
172704
172751
  }
172705
172752
  handleFileDeleted(fsPath, changed, removed) {
172706
- const name = relative6(this.cwd, fsPath);
172753
+ const name = relative7(this.cwd, fsPath);
172707
172754
  output_manager_default.debug(`File deleted: ${name}`);
172708
172755
  fileRemoved(name, this.files, changed, removed);
172709
172756
  const extensionless = this.getExtensionlessFile(name);
@@ -172713,7 +172760,7 @@ Please ensure that ${cmd(err.path)} is properly installed`;
172713
172760
  }
172714
172761
  }
172715
172762
  async handleFileModified(fsPath, changed, removed) {
172716
- const name = relative6(this.cwd, fsPath);
172763
+ const name = relative7(this.cwd, fsPath);
172717
172764
  try {
172718
172765
  this.files[name] = await import_build_utils18.FileFsRef.fromFsPath({ fsPath });
172719
172766
  fileChanged(name, changed, removed);
@@ -172877,7 +172924,7 @@ Please ensure that ${cmd(err.path)} is properly installed`;
172877
172924
  const featHandleMiss = true;
172878
172925
  const { projectSettings, cleanUrls, trailingSlash } = vercelConfig;
172879
172926
  const files = (await staticFiles(this.cwd, {})).map(
172880
- (f) => relative6(this.cwd, f)
172927
+ (f) => relative7(this.cwd, f)
172881
172928
  );
172882
172929
  let {
172883
172930
  builders,
@@ -173129,7 +173176,7 @@ Please ensure that ${cmd(err.path)} is properly installed`;
173129
173176
  const files = await staticFiles(this.cwd, {});
173130
173177
  this.files = {};
173131
173178
  for (const fsPath of files) {
173132
- const path11 = relative6(this.cwd, fsPath);
173179
+ const path11 = relative7(this.cwd, fsPath);
173133
173180
  const { mode } = await import_fs_extra21.default.stat(fsPath);
173134
173181
  this.files[path11] = new import_build_utils18.FileFsRef({ mode, fsPath });
173135
173182
  const extensionless = this.getExtensionlessFile(path11);
@@ -173420,7 +173467,7 @@ ${error_code}
173420
173467
  if (base === "now.json" || base === "vercel.json" || base === ".nowignore" || base === ".vercelignore" || !p.startsWith(prefix)) {
173421
173468
  return false;
173422
173469
  }
173423
- const rel = relative6(prefix, p);
173470
+ const rel = relative7(prefix, p);
173424
173471
  if (rel.includes("/")) {
173425
173472
  const dir = rel.split("/")[0];
173426
173473
  if (dirs.has(dir)) {
@@ -173434,7 +173481,7 @@ ${error_code}
173434
173481
  let ext = "";
173435
173482
  let type = "file";
173436
173483
  let href;
173437
- const rel = relative6(prefix, p);
173484
+ const rel = relative7(prefix, p);
173438
173485
  if (rel.includes("/")) {
173439
173486
  type = "folder";
173440
173487
  base = rel.split("/")[0];
@@ -179312,7 +179359,7 @@ var init_init = __esm({
179312
179359
  init_did_you_mean();
179313
179360
  init_pkg_name();
179314
179361
  init_output_manager();
179315
- EXAMPLE_API = "https://now-example-files.zeit.sh";
179362
+ EXAMPLE_API = "https://examples.vercel.sh";
179316
179363
  }
179317
179364
  });
179318
179365
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vercel",
3
- "version": "49.1.0",
3
+ "version": "49.1.2",
4
4
  "preferGlobal": true,
5
5
  "license": "Apache-2.0",
6
6
  "description": "The command-line interface for Vercel",
@@ -26,25 +26,25 @@
26
26
  "chokidar": "4.0.0",
27
27
  "esbuild": "0.27.0",
28
28
  "jose": "5.9.6",
29
- "@vercel/backends": "0.0.15",
29
+ "@vercel/backends": "0.0.16",
30
30
  "@vercel/build-utils": "13.2.3",
31
31
  "@vercel/detect-agent": "1.0.0",
32
32
  "@vercel/elysia": "0.1.13",
33
- "@vercel/go": "3.2.4",
33
+ "@vercel/express": "0.1.18",
34
34
  "@vercel/fastify": "0.1.16",
35
+ "@vercel/go": "3.2.4",
35
36
  "@vercel/h3": "0.1.22",
36
- "@vercel/express": "0.1.18",
37
37
  "@vercel/hono": "0.2.16",
38
- "@vercel/next": "4.15.8",
39
38
  "@vercel/hydrogen": "1.3.3",
40
- "@vercel/python": "6.1.1",
39
+ "@vercel/next": "4.15.8",
41
40
  "@vercel/nestjs": "0.2.17",
42
41
  "@vercel/node": "5.5.15",
43
- "@vercel/remix-builder": "5.5.6",
42
+ "@vercel/python": "6.1.1",
44
43
  "@vercel/redwood": "2.4.6",
44
+ "@vercel/remix-builder": "5.5.6",
45
45
  "@vercel/ruby": "2.2.3",
46
- "@vercel/static-build": "2.8.14",
47
- "@vercel/rust": "1.0.4"
46
+ "@vercel/rust": "1.0.4",
47
+ "@vercel/static-build": "2.8.14"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@alex_neo/jest-expect-message": "1.0.5",
@@ -171,11 +171,11 @@
171
171
  "@vercel-internals/constants": "1.0.4",
172
172
  "@vercel-internals/get-package-json": "1.0.0",
173
173
  "@vercel-internals/types": "3.0.6",
174
- "@vercel/client": "17.2.14",
174
+ "@vercel/client": "17.2.15",
175
175
  "@vercel/frameworks": "3.15.4",
176
176
  "@vercel/fs-detectors": "5.7.9",
177
- "@vercel/error-utils": "2.0.3",
178
- "@vercel/routing-utils": "5.3.0"
177
+ "@vercel/routing-utils": "5.3.0",
178
+ "@vercel/error-utils": "2.0.3"
179
179
  },
180
180
  "scripts": {
181
181
  "test": "jest --reporters=default --reporters=jest-junit --env node --verbose --bail",