vercel 54.17.3 → 54.18.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 (61) hide show
  1. package/dist/chunks/{add-PQWZCK7O.js → add-6IFGG2TY.js} +8 -8
  2. package/dist/chunks/chunk-2RVK3DDN.js +224 -0
  3. package/dist/chunks/{chunk-OYQKUG4C.js → chunk-5ACKBNHW.js} +8 -8
  4. package/dist/chunks/{chunk-HCJRHKSM.js → chunk-AQIWBG3Y.js} +8 -8
  5. package/dist/chunks/{chunk-IAOBSXJ5.js → chunk-AWAUGLOM.js} +3 -3
  6. package/dist/chunks/{chunk-2CYJVSAM.js → chunk-B3VMTJM2.js} +1 -1
  7. package/dist/chunks/{chunk-UXP2N2WD.js → chunk-C6H4BP2L.js} +57 -5
  8. package/dist/chunks/{chunk-YI3JV6GM.js → chunk-CT3OCODK.js} +1 -1
  9. package/dist/chunks/{chunk-5FAPBIX6.js → chunk-DZ65TDY4.js} +1 -1
  10. package/dist/chunks/{chunk-NRP6ZKXJ.js → chunk-F57GYOKZ.js} +1 -1
  11. package/dist/chunks/{chunk-G4YL2LRL.js → chunk-FOPFOSQM.js} +2 -2
  12. package/dist/chunks/{chunk-JKIM3UW3.js → chunk-GZ5KF7HK.js} +5 -5
  13. package/dist/chunks/{chunk-ATBH7KGL.js → chunk-HMWVVA4B.js} +1 -1
  14. package/dist/chunks/{chunk-4FG6Q2EM.js → chunk-IBJBNVZV.js} +1 -1
  15. package/dist/chunks/{chunk-QM7D5H2G.js → chunk-JJKW6J63.js} +1 -1
  16. package/dist/chunks/{chunk-MB63D7UN.js → chunk-JWQ37WLT.js} +4 -3
  17. package/dist/chunks/{chunk-QMMMXYOY.js → chunk-KQDEJE65.js} +2 -2
  18. package/dist/chunks/{chunk-6V37RSQB.js → chunk-MUDZFSZC.js} +1 -1
  19. package/dist/chunks/{chunk-OSXRHH6W.js → chunk-UNIIXDM2.js} +20 -20
  20. package/dist/chunks/{chunk-BHMMV3HE.js → chunk-VUVQO3LF.js} +3605 -512
  21. package/dist/chunks/{chunk-FMBDRMTZ.js → chunk-X7KGEDKQ.js} +9 -8
  22. package/dist/chunks/{chunk-P4KQ3FJ4.js → chunk-XQQXV6ZZ.js} +1 -0
  23. package/dist/chunks/{chunk-SBYEIQ32.js → chunk-YHFZKOKK.js} +1 -1
  24. package/dist/chunks/{compile-vercel-config-45XN4U4D.js → compile-vercel-config-CZH5GU3R.js} +4 -4
  25. package/dist/chunks/{delete-RQYOSBNO.js → delete-KZJPJUTT.js} +5 -5
  26. package/dist/chunks/{disable-RRGOZIA7.js → disable-XXKGGPR5.js} +5 -5
  27. package/dist/chunks/{discard-X2NIGII5.js → discard-VFWCCRDF.js} +5 -5
  28. package/dist/chunks/{edit-QV3Y6IUT.js → edit-RY2KAHX2.js} +6 -6
  29. package/dist/chunks/{enable-UQAJJKCG.js → enable-M2PSCPZH.js} +5 -5
  30. package/dist/chunks/{exec-HI4HF4GY.js → exec-CGBHRYWG.js} +14 -9
  31. package/dist/chunks/{export-D4YNS2G5.js → export-U3ZPYBWC.js} +5 -5
  32. package/dist/chunks/fetch-proxy-R3JZNXBZ.js +99 -0
  33. package/dist/chunks/{inspect-FHB3H3NA.js → inspect-HI7DLEJ2.js} +7 -7
  34. package/dist/chunks/{list-QYUCZR26.js → list-KLZIIRGS.js} +12 -12
  35. package/dist/chunks/{list-6RAHTDT2.js → list-TUYF4LRT.js} +6 -6
  36. package/dist/chunks/{ls-GKWWEHQS.js → ls-6PFY2I7Q.js} +8 -8
  37. package/dist/chunks/{publish-UTKKRA4P.js → publish-GXWEL4UA.js} +5 -5
  38. package/dist/chunks/{query-NM7MXRFW.js → query-SLLJ6OJT.js} +11 -11
  39. package/dist/chunks/{reorder-ZLVQQBMG.js → reorder-VRC6BLJM.js} +5 -5
  40. package/dist/chunks/{restore-SDTDA4A6.js → restore-SMXHUGVC.js} +5 -5
  41. package/dist/chunks/{rm-65PQY7XN.js → rm-V7DGLIHX.js} +8 -8
  42. package/dist/chunks/{rule-inspect-JFKSPCDU.js → rule-inspect-7AZGYZDI.js} +8 -8
  43. package/dist/chunks/{rules-6672IXZE.js → rules-MQBE2RMP.js} +6 -6
  44. package/dist/chunks/{schema-DC2LLUHD.js → schema-EMHEFUMV.js} +6 -6
  45. package/dist/chunks/{update-7VFELUTD.js → update-GSQ26HZG.js} +8 -8
  46. package/dist/commands/build/index.js +28 -18
  47. package/dist/commands/deploy/index.js +21 -21
  48. package/dist/commands/dev/index.js +46 -38
  49. package/dist/commands/env/index.js +15 -15
  50. package/dist/commands/link/index.js +13 -13
  51. package/dist/commands/list/index.js +12 -12
  52. package/dist/commands-bulk.js +227 -84
  53. package/dist/fetch-dist-tags.cjs +60 -0
  54. package/dist/get-latest-worker.cjs +6 -56
  55. package/dist/help.js +1 -1
  56. package/dist/index.js +200 -61
  57. package/dist/version.mjs +1 -1
  58. package/package.json +17 -19
  59. package/dist/chunks/chunk-N2T234LO.js +0 -3144
  60. package/dist/chunks/{chunk-3NR6OYDV.js → chunk-LWJWW6ZY.js} +3 -3
  61. package/dist/chunks/{chunk-D7MGZH35.js → chunk-U5FVI3MF.js} +3 -3
@@ -10,7 +10,7 @@ import {
10
10
  progress,
11
11
  require_dist as require_dist2,
12
12
  sleep
13
- } from "./chunk-HCJRHKSM.js";
13
+ } from "./chunk-AQIWBG3Y.js";
14
14
  import {
15
15
  suggestNextCommands
16
16
  } from "./chunk-LKBI43XK.js";
@@ -20,7 +20,7 @@ import {
20
20
  } from "./chunk-TCF6MGBY.js";
21
21
  import {
22
22
  CommandTimeout
23
- } from "./chunk-UXP2N2WD.js";
23
+ } from "./chunk-C6H4BP2L.js";
24
24
  import {
25
25
  showPluginTipIfNeeded
26
26
  } from "./chunk-BRQ6PX3U.js";
@@ -29,7 +29,7 @@ import {
29
29
  } from "./chunk-64IF634X.js";
30
30
  import {
31
31
  getScope
32
- } from "./chunk-6V37RSQB.js";
32
+ } from "./chunk-MUDZFSZC.js";
33
33
  import {
34
34
  getProjectByNameOrId,
35
35
  param,
@@ -37,13 +37,7 @@ import {
37
37
  require_dist as require_dist3,
38
38
  require_pluralize,
39
39
  ua_default
40
- } from "./chunk-BHMMV3HE.js";
41
- import {
42
- require_lib
43
- } from "./chunk-N2T234LO.js";
44
- import {
45
- require_ms
46
- } from "./chunk-GGP5R3FU.js";
40
+ } from "./chunk-VUVQO3LF.js";
47
41
  import {
48
42
  require_strip_ansi,
49
43
  responseError
@@ -66,6 +60,11 @@ import {
66
60
  isAPIError,
67
61
  require_bytes
68
62
  } from "./chunk-LN6B7ZI3.js";
63
+ import {
64
+ Headers,
65
+ fetch,
66
+ toNodeReadable
67
+ } from "./chunk-2RVK3DDN.js";
69
68
  import {
70
69
  emoji,
71
70
  eraseLines,
@@ -75,6 +74,9 @@ import {
75
74
  require_ansi_escapes,
76
75
  require_dist
77
76
  } from "./chunk-Z5SBJH6L.js";
77
+ import {
78
+ require_ms
79
+ } from "./chunk-GGP5R3FU.js";
78
80
  import {
79
81
  require_source
80
82
  } from "./chunk-S7KYDPEM.js";
@@ -1607,11 +1609,10 @@ async function printEvents(client, urlOrDeploymentId, { mode, onEvent, quiet, fi
1607
1609
  try {
1608
1610
  const eventsRes = await client.fetch(eventsUrl, {
1609
1611
  json: false,
1610
- // @ts-expect-error: typescript is getting confused with the signal types from node (web & server) and node-fetch (server only)
1611
1612
  signal: abortController?.signal
1612
1613
  });
1613
1614
  if (eventsRes.ok) {
1614
- const readable = eventsRes.body;
1615
+ const readable = toNodeReadable(eventsRes.body);
1615
1616
  return new Promise((resolve, reject) => {
1616
1617
  const stream = readable.pipe(import_jsonlines.default.parse());
1617
1618
  let poller;
@@ -1782,7 +1783,6 @@ async function displayRuntimeLogs(client, options, abortController) {
1782
1783
  }, (0, import_ms.default)(CommandTimeout));
1783
1784
  const response = await client.fetch(url, {
1784
1785
  json: false,
1785
- // @ts-expect-error: typescipt is getting confused with the signal types from node (web & server) and node-fetch (server only)
1786
1786
  signal: abortController.signal,
1787
1787
  retry: {
1788
1788
  retries: 3,
@@ -1796,7 +1796,8 @@ async function displayRuntimeLogs(client, options, abortController) {
1796
1796
  }
1797
1797
  });
1798
1798
  return new Promise((resolve, reject) => {
1799
- const stream = response.body.pipe(parse2 ? import_jsonlines2.default.parse() : (0, import_split2.default)());
1799
+ const readable = toNodeReadable(response.body);
1800
+ const stream = readable.pipe(parse2 ? import_jsonlines2.default.parse() : (0, import_split2.default)());
1800
1801
  let finished = false;
1801
1802
  let errored = false;
1802
1803
  function finish(err) {
@@ -1845,7 +1846,7 @@ async function displayRuntimeLogs(client, options, abortController) {
1845
1846
  stream.on("end", finish);
1846
1847
  stream.on("data", handleData);
1847
1848
  stream.on("error", handleError);
1848
- response.body.on("error", handleError);
1849
+ readable.on("error", handleError);
1849
1850
  });
1850
1851
  }
1851
1852
  function printBuildLog(log, print) {
@@ -2223,11 +2224,10 @@ ${archiveSuggestionText}`
2223
2224
  // src/util/index.ts
2224
2225
  var import_async_retry2 = __toESM(require_dist2(), 1);
2225
2226
  var import_ms2 = __toESM(require_ms(), 1);
2226
- var import_node_fetch = __toESM(require_lib(), 1);
2227
- var import_bytes2 = __toESM(require_bytes(), 1);
2228
- var import_chalk3 = __toESM(require_source(), 1);
2229
2227
  import qs from "querystring";
2230
2228
  import { parse as parseUrl } from "url";
2229
+ var import_bytes2 = __toESM(require_bytes(), 1);
2230
+ var import_chalk3 = __toESM(require_source(), 1);
2231
2231
  var Now = class {
2232
2232
  constructor({
2233
2233
  client,
@@ -2444,7 +2444,7 @@ ${err.stack}`);
2444
2444
  _url = `${parsedUrl.pathname}?${qs.stringify(query)}`;
2445
2445
  delete opts.useCurrentTeam;
2446
2446
  }
2447
- opts.headers = new import_node_fetch.Headers(opts.headers);
2447
+ opts.headers = new Headers(opts.headers);
2448
2448
  opts.headers.set("accept", "application/json");
2449
2449
  if (this._token) {
2450
2450
  opts.headers.set("authorization", `Bearer ${this._token}`);
@@ -2459,7 +2459,7 @@ ${err.stack}`);
2459
2459
  }
2460
2460
  const res = await output_manager_default.time(
2461
2461
  `${opts.method || "GET"} ${this._apiUrl}${_url} ${opts.body || ""}`,
2462
- (0, import_node_fetch.default)(`${this._apiUrl}${_url}`, { ...opts, body })
2462
+ fetch(`${this._apiUrl}${_url}`, { ...opts, body })
2463
2463
  );
2464
2464
  printIndications(res);
2465
2465
  return res;