vercel 59.1.4 → 59.3.0

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 (96) hide show
  1. package/dist/chunks/{add-PP3PJPJV.js → add-4L46WVRT.js} +5 -5
  2. package/dist/chunks/{add-CUGPQYFW.js → add-BBWVXE2R.js} +5 -5
  3. package/dist/chunks/{add-PRG4KKYH.js → add-KOD24LEM.js} +8 -8
  4. package/dist/chunks/{build-T22GMLY6.js → build-2SX3XIRI.js} +5 -5
  5. package/dist/chunks/{chunk-XZLI27ES.js → chunk-6GWLC2IP.js} +3 -3
  6. package/dist/chunks/{chunk-SOKQBFF7.js → chunk-7GE2K2WR.js} +239 -41
  7. package/dist/chunks/{chunk-7NQLRE5V.js → chunk-7PEQVFHI.js} +1 -1
  8. package/dist/chunks/{chunk-QD5NX7RG.js → chunk-AAMJ4ZU4.js} +1 -1
  9. package/dist/chunks/{chunk-M34ZRNDQ.js → chunk-ANIKVXGZ.js} +2 -2
  10. package/dist/chunks/{chunk-DEB45ND4.js → chunk-CURHMEJX.js} +2 -2
  11. package/dist/chunks/{chunk-NM43FFV6.js → chunk-CV4S27SS.js} +0 -1
  12. package/dist/chunks/{chunk-ECCWJHC6.js → chunk-CYNB6LL4.js} +43 -36
  13. package/dist/chunks/{chunk-SQGMTRZD.js → chunk-D35JUCTC.js} +641 -461
  14. package/dist/chunks/{chunk-5DVMXOFT.js → chunk-DAA5RXUK.js} +32 -30
  15. package/dist/chunks/{chunk-CSJBZKC5.js → chunk-EG5BSAXD.js} +69 -57
  16. package/dist/chunks/{chunk-BCZFZETZ.js → chunk-G55RLNFE.js} +5 -5
  17. package/dist/chunks/{chunk-TJLBCLEX.js → chunk-J5ZEHLFM.js} +1 -0
  18. package/dist/chunks/{chunk-QCVKGY2A.js → chunk-KAYSW4CJ.js} +35 -12
  19. package/dist/chunks/{chunk-DOMLWKKZ.js → chunk-KBUCAAG6.js} +17 -20
  20. package/dist/chunks/{chunk-VE545BR3.js → chunk-KDL2L4KL.js} +42 -39
  21. package/dist/chunks/{chunk-P65EEFTR.js → chunk-KQRVZWJU.js} +1 -0
  22. package/dist/chunks/{chunk-JYEO6OJS.js → chunk-MWYQ24FO.js} +4 -3
  23. package/dist/chunks/{chunk-4JKZ7SRX.js → chunk-NN2W7WFC.js} +4 -4
  24. package/dist/chunks/{chunk-KTLFN5FV.js → chunk-OISTYQGR.js} +1 -1
  25. package/dist/chunks/{chunk-ZUVJISHS.js → chunk-P3BFTZXW.js} +2 -2
  26. package/dist/chunks/{chunk-3BU2UCGV.js → chunk-PIMIKY4X.js} +1 -1
  27. package/dist/chunks/{chunk-57G6HBJ4.js → chunk-Q6QCRFTC.js} +3 -3
  28. package/dist/chunks/{chunk-IKKUCZE7.js → chunk-QKO2DGWR.js} +3 -3
  29. package/dist/chunks/{chunk-QQ6PH4RY.js → chunk-STPH4Y62.js} +10 -0
  30. package/dist/chunks/{chunk-P2QZZ6MR.js → chunk-TVXCXIRO.js} +1 -1
  31. package/dist/chunks/{chunk-43DD2KNM.js → chunk-VTP6WIQA.js} +1114 -943
  32. package/dist/chunks/{chunk-DOAYLTBJ.js → chunk-WNS53IOA.js} +1 -1
  33. package/dist/chunks/{chunk-DAWJOQF6.js → chunk-WODLA275.js} +2 -2
  34. package/dist/chunks/{chunk-SJQEGGH7.js → chunk-XI6NJLI4.js} +1 -1
  35. package/dist/chunks/{chunk-LNVZ3T7X.js → chunk-YPPWGI3F.js} +5 -5
  36. package/dist/chunks/{chunk-TM3F7PLR.js → chunk-Z2G6SO5B.js} +3 -3
  37. package/dist/chunks/{chunk-4HI7G6KG.js → chunk-ZHRZMQGN.js} +1 -1
  38. package/dist/chunks/{clear-Z4IKUIN7.js → clear-2DMDKLWZ.js} +5 -5
  39. package/dist/chunks/{compile-vercel-config-PSVXFAZW.js → compile-vercel-config-7HZ4UN6R.js} +3 -3
  40. package/dist/chunks/{config-M5GMZ2X5.js → config-CVZ25C54.js} +5 -5
  41. package/dist/chunks/{delete-P4XIBY7T.js → delete-4LQKP5DG.js} +5 -5
  42. package/dist/chunks/{delete-5GRRDJSF.js → delete-QNAGJM6C.js} +4 -4
  43. package/dist/chunks/{disable-NT5NYVO7.js → disable-2RBFIZUB.js} +4 -4
  44. package/dist/chunks/{discard-TBNIEAJZ.js → discard-UCOSPSUU.js} +4 -4
  45. package/dist/chunks/{edit-DJ6MT6HA.js → edit-JX73BG3V.js} +6 -6
  46. package/dist/chunks/{edit-UF3D2CCH.js → edit-QSAO74S4.js} +6 -6
  47. package/dist/chunks/{enable-JTQBQMBO.js → enable-NDSB4T26.js} +4 -4
  48. package/dist/chunks/{export-OKMRGRVM.js → export-DB6BIYQJ.js} +4 -4
  49. package/dist/chunks/{image-ARUJH4H5.js → image-MKB6II6L.js} +4 -4
  50. package/dist/chunks/{import-builders-3NTMZM64.js → import-builders-FIQ7QTVG.js} +10 -9
  51. package/dist/chunks/{inspect-CHFKZKKP.js → inspect-IYRKEWTM.js} +5 -5
  52. package/dist/chunks/{inspect-PTXIBSYW.js → inspect-NY6QRX5W.js} +5 -5
  53. package/dist/chunks/{inspect-RI4K77NG.js → inspect-QWTWAYLS.js} +6 -6
  54. package/dist/chunks/{inspect-UXP2HDES.js → inspect-REJXLWLL.js} +5 -5
  55. package/dist/chunks/{inspect-5NETOGAI.js → inspect-XS2TC7TC.js} +5 -5
  56. package/dist/chunks/{list-DYCZA2VX.js → list-CDCITV4K.js} +4 -4
  57. package/dist/chunks/{list-G7LGVDAJ.js → list-PXKVKXHG.js} +6 -6
  58. package/dist/chunks/{list-ADI55WKW.js → list-VQHBVY3Q.js} +5 -5
  59. package/dist/chunks/{login-YCSIQG6B.js → login-PE4JK7A2.js} +5 -5
  60. package/dist/chunks/{ls-VIOMDUGW.js → ls-3GRHYFDM.js} +5 -5
  61. package/dist/chunks/{ls-PQFDGOJL.js → ls-DL2POAY2.js} +6 -6
  62. package/dist/chunks/{ls-EOMIQLRH.js → ls-S67TNMEG.js} +5 -5
  63. package/dist/chunks/{ls-2TKUIUK4.js → ls-SKOQOPK4.js} +5 -5
  64. package/dist/chunks/{ls-RZVTIP5U.js → ls-YHS5IEBJ.js} +5 -5
  65. package/dist/chunks/{open-JYPWOXQD.js → open-DUN3BTDH.js} +5 -5
  66. package/dist/chunks/{permissions-SGJWGEVD.js → permissions-VLIZYINB.js} +5 -5
  67. package/dist/chunks/{publish-ZUQHJAXL.js → publish-36BIJPLN.js} +4 -4
  68. package/dist/chunks/{push-XMVKG5A5.js → push-5NTQV3EC.js} +5 -5
  69. package/dist/chunks/{query-ZLJZEGZB.js → query-ONR2W7HS.js} +218 -81
  70. package/dist/chunks/{reorder-NVHDWMRU.js → reorder-YKAT4XG3.js} +4 -4
  71. package/dist/chunks/{reply-PUUPUQ3V.js → reply-DH4ZPEXT.js} +6 -6
  72. package/dist/chunks/{resolve-5U2LJVE6.js → resolve-446IVH6V.js} +5 -5
  73. package/dist/chunks/{restore-OXIUY2UI.js → restore-HA6TSOOE.js} +4 -4
  74. package/dist/chunks/{rm-BZNKJRXU.js → rm-BCPJUK2C.js} +5 -5
  75. package/dist/chunks/{rm-3IOCBNPE.js → rm-COV73VE4.js} +6 -6
  76. package/dist/chunks/{rm-Z2KYJ7XT.js → rm-EG35766L.js} +5 -5
  77. package/dist/chunks/{rm-OUI4ZB5R.js → rm-IKYJI7MP.js} +5 -5
  78. package/dist/chunks/{routes-JP2CNQ5J.js → routes-SZI2G4SE.js} +2 -2
  79. package/dist/chunks/{rule-inspect-ZBJJCDQV.js → rule-inspect-FQ2635LY.js} +6 -6
  80. package/dist/chunks/{rules-HEGAXXUN.js → rules-PBOQISWV.js} +8 -8
  81. package/dist/chunks/{schema-7GVL3BNP.js → schema-4CDJVH7T.js} +22 -12
  82. package/dist/chunks/{schema-ZYIJYA2E.js → schema-LUVFYPWN.js} +1 -1
  83. package/dist/chunks/{tags-3SCWCMNQ.js → tags-HNOL4JXL.js} +3 -3
  84. package/dist/chunks/{update-YR2GCCJN.js → update-ZIGVLUYG.js} +8 -8
  85. package/dist/commands/build/index.js +3095 -2519
  86. package/dist/commands/deploy/index.js +12 -12
  87. package/dist/commands/dev/index.js +22 -15
  88. package/dist/commands/env/index.js +8 -8
  89. package/dist/commands/link/index.js +7 -7
  90. package/dist/commands/list/index.js +5 -5
  91. package/dist/commands-bulk.js +2548 -1829
  92. package/dist/help.js +1 -1
  93. package/dist/index.js +27 -15
  94. package/dist/runtime-assets/node-preloads/next-dev-websocket.cjs +5 -1
  95. package/dist/version.mjs +1 -1
  96. package/package.json +42 -40
@@ -1608,7 +1608,7 @@ var require_pify = __commonJS({
1608
1608
  for (var i = 0; i < arguments.length; i++) {
1609
1609
  args[i] = arguments[i];
1610
1610
  }
1611
- return new P(function(resolve, reject) {
1611
+ return new P(function(resolve2, reject) {
1612
1612
  args.push(function(err, result) {
1613
1613
  if (err) {
1614
1614
  reject(err);
@@ -1617,9 +1617,9 @@ var require_pify = __commonJS({
1617
1617
  for (var i2 = 1; i2 < arguments.length; i2++) {
1618
1618
  results[i2 - 1] = arguments[i2];
1619
1619
  }
1620
- resolve(results);
1620
+ resolve2(results);
1621
1621
  } else {
1622
- resolve(result);
1622
+ resolve2(result);
1623
1623
  }
1624
1624
  });
1625
1625
  fn.apply(that, args);
@@ -1818,28 +1818,28 @@ var require_write_file_atomic = __commonJS({
1818
1818
  var tmpfile;
1819
1819
  var removeOnExitHandler = onExit(cleanupOnExit(() => tmpfile));
1820
1820
  var absoluteName = path.resolve(filename);
1821
- new Promise2(function serializeSameFile(resolve) {
1821
+ new Promise2(function serializeSameFile(resolve2) {
1822
1822
  if (!activeFiles[absoluteName])
1823
1823
  activeFiles[absoluteName] = [];
1824
- activeFiles[absoluteName].push(resolve);
1824
+ activeFiles[absoluteName].push(resolve2);
1825
1825
  if (activeFiles[absoluteName].length === 1)
1826
- resolve();
1826
+ resolve2();
1827
1827
  }).then(function getRealPath() {
1828
- return new Promise2(function(resolve) {
1828
+ return new Promise2(function(resolve2) {
1829
1829
  fs.realpath(filename, function(_, realname) {
1830
1830
  truename = realname || filename;
1831
1831
  tmpfile = getTmpname(truename);
1832
- resolve();
1832
+ resolve2();
1833
1833
  });
1834
1834
  });
1835
1835
  }).then(function stat() {
1836
- return new Promise2(function stat2(resolve) {
1836
+ return new Promise2(function stat2(resolve2) {
1837
1837
  if (options.mode && options.chown)
1838
- resolve();
1838
+ resolve2();
1839
1839
  else {
1840
1840
  fs.stat(truename, function(err, stats) {
1841
1841
  if (err || !stats)
1842
- resolve();
1842
+ resolve2();
1843
1843
  else {
1844
1844
  options = Object.assign({}, options);
1845
1845
  if (options.mode == null) {
@@ -1848,91 +1848,91 @@ var require_write_file_atomic = __commonJS({
1848
1848
  if (options.chown == null && process.getuid) {
1849
1849
  options.chown = { uid: stats.uid, gid: stats.gid };
1850
1850
  }
1851
- resolve();
1851
+ resolve2();
1852
1852
  }
1853
1853
  });
1854
1854
  }
1855
1855
  });
1856
1856
  }).then(function thenWriteFile() {
1857
- return new Promise2(function(resolve, reject) {
1857
+ return new Promise2(function(resolve2, reject) {
1858
1858
  fs.open(tmpfile, "w", options.mode, function(err, _fd) {
1859
1859
  fd = _fd;
1860
1860
  if (err)
1861
1861
  reject(err);
1862
1862
  else
1863
- resolve();
1863
+ resolve2();
1864
1864
  });
1865
1865
  });
1866
1866
  }).then(function write() {
1867
- return new Promise2(function(resolve, reject) {
1867
+ return new Promise2(function(resolve2, reject) {
1868
1868
  if (Buffer.isBuffer(data)) {
1869
1869
  fs.write(fd, data, 0, data.length, 0, function(err) {
1870
1870
  if (err)
1871
1871
  reject(err);
1872
1872
  else
1873
- resolve();
1873
+ resolve2();
1874
1874
  });
1875
1875
  } else if (data != null) {
1876
1876
  fs.write(fd, String(data), 0, String(options.encoding || "utf8"), function(err) {
1877
1877
  if (err)
1878
1878
  reject(err);
1879
1879
  else
1880
- resolve();
1880
+ resolve2();
1881
1881
  });
1882
1882
  } else
1883
- resolve();
1883
+ resolve2();
1884
1884
  });
1885
1885
  }).then(function syncAndClose() {
1886
- return new Promise2(function(resolve, reject) {
1886
+ return new Promise2(function(resolve2, reject) {
1887
1887
  if (options.fsync !== false) {
1888
1888
  fs.fsync(fd, function(err) {
1889
1889
  if (err)
1890
1890
  fs.close(fd, () => reject(err));
1891
1891
  else
1892
- fs.close(fd, resolve);
1892
+ fs.close(fd, resolve2);
1893
1893
  });
1894
1894
  } else {
1895
- fs.close(fd, resolve);
1895
+ fs.close(fd, resolve2);
1896
1896
  }
1897
1897
  });
1898
1898
  }).then(function chown() {
1899
1899
  fd = null;
1900
1900
  if (options.chown) {
1901
- return new Promise2(function(resolve, reject) {
1901
+ return new Promise2(function(resolve2, reject) {
1902
1902
  fs.chown(tmpfile, options.chown.uid, options.chown.gid, function(err) {
1903
1903
  if (err)
1904
1904
  reject(err);
1905
1905
  else
1906
- resolve();
1906
+ resolve2();
1907
1907
  });
1908
1908
  });
1909
1909
  }
1910
1910
  }).then(function chmod() {
1911
1911
  if (options.mode) {
1912
- return new Promise2(function(resolve, reject) {
1912
+ return new Promise2(function(resolve2, reject) {
1913
1913
  fs.chmod(tmpfile, options.mode, function(err) {
1914
1914
  if (err)
1915
1915
  reject(err);
1916
1916
  else
1917
- resolve();
1917
+ resolve2();
1918
1918
  });
1919
1919
  });
1920
1920
  }
1921
1921
  }).then(function rename() {
1922
- return new Promise2(function(resolve, reject) {
1922
+ return new Promise2(function(resolve2, reject) {
1923
1923
  fs.rename(tmpfile, truename, function(err) {
1924
1924
  if (err)
1925
1925
  reject(err);
1926
1926
  else
1927
- resolve();
1927
+ resolve2();
1928
1928
  });
1929
1929
  });
1930
1930
  }).then(function success() {
1931
1931
  removeOnExitHandler();
1932
1932
  callback();
1933
1933
  }, function fail(err) {
1934
- return new Promise2((resolve) => {
1935
- return fd ? fs.close(fd, resolve) : resolve();
1934
+ return new Promise2((resolve2) => {
1935
+ return fd ? fs.close(fd, resolve2) : resolve2();
1936
1936
  }).then(() => {
1937
1937
  removeOnExitHandler();
1938
1938
  fs.unlink(tmpfile, function() {
@@ -2064,7 +2064,7 @@ var require_pify2 = __commonJS({
2064
2064
  for (let i = 0; i < arguments.length; i++) {
2065
2065
  args[i] = arguments[i];
2066
2066
  }
2067
- return new P((resolve, reject) => {
2067
+ return new P((resolve2, reject) => {
2068
2068
  if (opts.errorFirst) {
2069
2069
  args.push(function(err, result) {
2070
2070
  if (opts.multiArgs) {
@@ -2076,12 +2076,12 @@ var require_pify2 = __commonJS({
2076
2076
  results.unshift(err);
2077
2077
  reject(results);
2078
2078
  } else {
2079
- resolve(results);
2079
+ resolve2(results);
2080
2080
  }
2081
2081
  } else if (err) {
2082
2082
  reject(err);
2083
2083
  } else {
2084
- resolve(result);
2084
+ resolve2(result);
2085
2085
  }
2086
2086
  });
2087
2087
  } else {
@@ -2091,9 +2091,9 @@ var require_pify2 = __commonJS({
2091
2091
  for (let i = 0; i < arguments.length; i++) {
2092
2092
  results[i] = arguments[i];
2093
2093
  }
2094
- resolve(results);
2094
+ resolve2(results);
2095
2095
  } else {
2096
- resolve(result);
2096
+ resolve2(result);
2097
2097
  }
2098
2098
  });
2099
2099
  }
@@ -2352,9 +2352,15 @@ var require_write_json_file = __commonJS({
2352
2352
  });
2353
2353
 
2354
2354
  // src/util/native-install.ts
2355
+ import { getDataPath } from "@vercel/cli-config";
2356
+ import { resolve } from "path";
2355
2357
  function isNativeBinaryInstall() {
2356
2358
  return process.env.VERCEL_VC_NATIVE === "1";
2357
2359
  }
2360
+ function getInstallRoot() {
2361
+ const root = process.env.VERCEL_INSTALL_DIR;
2362
+ return root ? resolve(root) : getDataPath();
2363
+ }
2358
2364
 
2359
2365
  // src/util/telemetry/index.ts
2360
2366
  import { randomUUID as randomUUID2 } from "crypto";
@@ -2874,7 +2880,7 @@ var TelemetryEventStore = class {
2874
2880
  VERCEL_TELEMETRY_DISABLED: "1"
2875
2881
  });
2876
2882
  if (outputDebugEnabled) {
2877
- return new Promise((resolve) => {
2883
+ return new Promise((resolve2) => {
2878
2884
  const childProcess = spawn(nodeBinaryPath, script, {
2879
2885
  env,
2880
2886
  stdio: ["ignore", "pipe", "pipe"]
@@ -2892,7 +2898,7 @@ var TelemetryEventStore = class {
2892
2898
  output_manager_default.debug(`Telemetry subprocess exited with code ${code}`);
2893
2899
  childProcess.unref();
2894
2900
  timeout.unref();
2895
- resolve();
2901
+ resolve2();
2896
2902
  });
2897
2903
  });
2898
2904
  } else {
@@ -2912,6 +2918,7 @@ export {
2912
2918
  require_dist,
2913
2919
  require_load_json_file,
2914
2920
  isNativeBinaryInstall,
2921
+ getInstallRoot,
2915
2922
  TelemetryClient,
2916
2923
  TelemetryEventStore
2917
2924
  };