vercel 54.12.0 → 54.12.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 (50) hide show
  1. package/dist/chunks/{add-4F6CBPSE.js → add-SYDJV2T4.js} +4 -4
  2. package/dist/chunks/{chunk-OBWYK3NL.js → chunk-2OG4XEO7.js} +1 -1
  3. package/dist/chunks/{chunk-DITVV3KE.js → chunk-4643KU3X.js} +1 -1
  4. package/dist/chunks/{chunk-NLEBTR3S.js → chunk-4XUOV2X3.js} +1 -1
  5. package/dist/chunks/{chunk-NZDGG7W3.js → chunk-AYYWS2SR.js} +1 -1
  6. package/dist/chunks/{chunk-2WND2XFN.js → chunk-BKBME5J7.js} +1 -1
  7. package/dist/chunks/{chunk-IDTFK3CR.js → chunk-EF7I74B3.js} +1 -6
  8. package/dist/chunks/{chunk-APC5GMBX.js → chunk-EWCHYBUM.js} +1 -1
  9. package/dist/chunks/{chunk-WNYUBBFH.js → chunk-H2V3VLCZ.js} +2 -2
  10. package/dist/chunks/{chunk-FJP2X2TE.js → chunk-HFZBZ5RL.js} +2 -2
  11. package/dist/chunks/{chunk-IOV7PLXQ.js → chunk-HZCLVVUY.js} +4 -4
  12. package/dist/chunks/{chunk-7IAMAKFC.js → chunk-KY27SDWY.js} +1 -1
  13. package/dist/chunks/{chunk-HVYPWTJQ.js → chunk-MPJHH4XH.js} +27 -5
  14. package/dist/chunks/{chunk-ZYNF76YT.js → chunk-MVNPVHFE.js} +340 -53
  15. package/dist/chunks/{chunk-42PRZ45G.js → chunk-OBN3CMNI.js} +4 -4
  16. package/dist/chunks/{chunk-B744TFL4.js → chunk-RWBYP6J5.js} +1 -1
  17. package/dist/chunks/{chunk-JRPLGVXQ.js → chunk-S6JBHRRQ.js} +1 -1
  18. package/dist/chunks/{chunk-LGWH2KFI.js → chunk-TUDFOYDC.js} +3 -3
  19. package/dist/chunks/{chunk-HYFP6VVA.js → chunk-VX2CL5SM.js} +2 -2
  20. package/dist/chunks/{chunk-ADBU633H.js → chunk-X4M2XSJZ.js} +1 -1
  21. package/dist/chunks/{compile-vercel-config-CGU7GBYQ.js → compile-vercel-config-ANNU2HBR.js} +1 -1
  22. package/dist/chunks/{delete-XKC6CE3R.js → delete-CSL7GQUM.js} +2 -2
  23. package/dist/chunks/{disable-F2RLDMXX.js → disable-WRZTPAJJ.js} +2 -2
  24. package/dist/chunks/{discard-N4MILEID.js → discard-L2YVL23C.js} +2 -2
  25. package/dist/chunks/{edit-PMIBPG7J.js → edit-VXYNQVBR.js} +3 -3
  26. package/dist/chunks/{enable-AON5KGOT.js → enable-OWXV2G3V.js} +2 -2
  27. package/dist/chunks/{export-OQKO5JVC.js → export-6KAIMGH6.js} +2 -2
  28. package/dist/chunks/{inspect-7TLOVORH.js → inspect-UZ5CC3HV.js} +3 -3
  29. package/dist/chunks/{list-SCOE3N4I.js → list-7BYAGN5B.js} +3 -3
  30. package/dist/chunks/{list-RJHF6SWM.js → list-PHVOL64I.js} +2 -2
  31. package/dist/chunks/{ls-CFTCULV5.js → ls-5QIP5PDC.js} +4 -4
  32. package/dist/chunks/{publish-6VOT42HN.js → publish-6KB6TNYM.js} +2 -2
  33. package/dist/chunks/{query-OHEBAPTS.js → query-2PCHFFUA.js} +2 -2
  34. package/dist/chunks/{reorder-GMIEF42H.js → reorder-AN4IH7VE.js} +2 -2
  35. package/dist/chunks/{restore-JY2JCHOY.js → restore-CA72EKHV.js} +2 -2
  36. package/dist/chunks/{rm-FQB3M5YP.js → rm-ZEX7PISI.js} +4 -4
  37. package/dist/chunks/{rule-inspect-2JWJRPGL.js → rule-inspect-ZMHGGEUM.js} +4 -4
  38. package/dist/chunks/{rules-MULKOWZ5.js → rules-XNQ4LDXH.js} +6 -6
  39. package/dist/chunks/{schema-4YC2WD3R.js → schema-Q2JNER6Z.js} +2 -2
  40. package/dist/chunks/{update-T4SXDA7F.js → update-WMWLJRV2.js} +4 -4
  41. package/dist/commands/build/index.js +9 -9
  42. package/dist/commands/deploy/index.js +10 -10
  43. package/dist/commands/dev/index.js +8 -8
  44. package/dist/commands/env/index.js +4 -4
  45. package/dist/commands/link/index.js +7 -7
  46. package/dist/commands/list/index.js +3 -3
  47. package/dist/commands-bulk.js +156 -97
  48. package/dist/index.js +8 -8
  49. package/dist/version.mjs +1 -1
  50. package/package.json +19 -19
@@ -31,7 +31,7 @@ import {
31
31
  runInteractiveEditLoop,
32
32
  stripQuotes,
33
33
  validateActionFlags
34
- } from "./chunks/chunk-B744TFL4.js";
34
+ } from "./chunks/chunk-RWBYP6J5.js";
35
35
  import {
36
36
  getRouteVersions
37
37
  } from "./chunks/chunk-AHU7WNL2.js";
@@ -48,7 +48,7 @@ import {
48
48
  parsePosition,
49
49
  parseSubcommandArgs,
50
50
  withGlobalFlags
51
- } from "./chunks/chunk-NZDGG7W3.js";
51
+ } from "./chunks/chunk-AYYWS2SR.js";
52
52
  import {
53
53
  normalizeRepeatableStringFilters
54
54
  } from "./chunks/chunk-5SYDEK2N.js";
@@ -64,11 +64,11 @@ import {
64
64
  resolveOpenApiTagForTeamsCli,
65
65
  setAutoUpdate,
66
66
  tryOpenApiFallback
67
- } from "./chunks/chunk-ZYNF76YT.js";
67
+ } from "./chunks/chunk-MVNPVHFE.js";
68
68
  import {
69
69
  getUpdateCommand,
70
70
  isGlobal
71
- } from "./chunks/chunk-NLEBTR3S.js";
71
+ } from "./chunks/chunk-4XUOV2X3.js";
72
72
  import {
73
73
  Now,
74
74
  collectContactInformation,
@@ -89,14 +89,14 @@ import {
89
89
  require_format,
90
90
  require_jsonlines,
91
91
  setupDomain
92
- } from "./chunks/chunk-IOV7PLXQ.js";
92
+ } from "./chunks/chunk-HZCLVVUY.js";
93
93
  import {
94
94
  getGlobalPathConfig,
95
95
  persistAuthConfig,
96
96
  readLocalConfig,
97
97
  sleep,
98
98
  writeToConfigFile
99
- } from "./chunks/chunk-WNYUBBFH.js";
99
+ } from "./chunks/chunk-H2V3VLCZ.js";
100
100
  import "./chunks/chunk-V5P25P7F.js";
101
101
  import {
102
102
  ellipsis,
@@ -124,7 +124,7 @@ import {
124
124
  import {
125
125
  formatEnvironment,
126
126
  validateLsArgs
127
- } from "./chunks/chunk-OBWYK3NL.js";
127
+ } from "./chunks/chunk-2OG4XEO7.js";
128
128
  import {
129
129
  validateJsonOutput
130
130
  } from "./chunks/chunk-XPKWKPWA.js";
@@ -376,7 +376,7 @@ import {
376
376
  webAnalyticsSubcommand,
377
377
  webhooksCommand,
378
378
  whoamiCommand
379
- } from "./chunks/chunk-HVYPWTJQ.js";
379
+ } from "./chunks/chunk-MPJHH4XH.js";
380
380
  import {
381
381
  metricsCommand,
382
382
  schemaSubcommand
@@ -418,26 +418,26 @@ import {
418
418
  import "./chunks/chunk-ZTPOJE63.js";
419
419
  import {
420
420
  main
421
- } from "./chunks/chunk-42PRZ45G.js";
422
- import "./chunks/chunk-JRPLGVXQ.js";
421
+ } from "./chunks/chunk-OBN3CMNI.js";
422
+ import "./chunks/chunk-S6JBHRRQ.js";
423
423
  import {
424
424
  require_execa
425
425
  } from "./chunks/chunk-YI3JV6GM.js";
426
426
  import {
427
427
  ensureLink
428
- } from "./chunks/chunk-FJP2X2TE.js";
429
- import "./chunks/chunk-LGWH2KFI.js";
428
+ } from "./chunks/chunk-HFZBZ5RL.js";
429
+ import "./chunks/chunk-TUDFOYDC.js";
430
430
  import {
431
431
  AGENT_ACTION,
432
432
  AGENT_REASON,
433
433
  AGENT_STATUS
434
434
  } from "./chunks/chunk-LJ5WXXG6.js";
435
- import "./chunks/chunk-APC5GMBX.js";
436
- import "./chunks/chunk-2WND2XFN.js";
435
+ import "./chunks/chunk-EWCHYBUM.js";
436
+ import "./chunks/chunk-BKBME5J7.js";
437
437
  import {
438
438
  detectExplicitScope,
439
439
  getScope
440
- } from "./chunks/chunk-ADBU633H.js";
440
+ } from "./chunks/chunk-X4M2XSJZ.js";
441
441
  import {
442
442
  help
443
443
  } from "./chunks/chunk-VNUNCNPE.js";
@@ -487,7 +487,7 @@ import {
487
487
  selectAndParseRemoteUrl,
488
488
  selectOrg,
489
489
  ua_default
490
- } from "./chunks/chunk-IDTFK3CR.js";
490
+ } from "./chunks/chunk-EF7I74B3.js";
491
491
  import {
492
492
  TelemetryClient
493
493
  } from "./chunks/chunk-J5273CSE.js";
@@ -870,7 +870,7 @@ async function activity(client) {
870
870
  return 0;
871
871
  }
872
872
  telemetry2.trackCliSubcommandLs(subcommandOriginal);
873
- const listFn = (await import("./chunks/list-RJHF6SWM.js")).default;
873
+ const listFn = (await import("./chunks/list-PHVOL64I.js")).default;
874
874
  return listFn(client, telemetry2);
875
875
  }
876
876
  }
@@ -1339,17 +1339,17 @@ async function alerts(client) {
1339
1339
  switch (subcommand) {
1340
1340
  case "inspect": {
1341
1341
  telemetry2.trackCliSubcommandInspect(subcommandOriginal);
1342
- const inspectFn = (await import("./chunks/inspect-7TLOVORH.js")).default;
1342
+ const inspectFn = (await import("./chunks/inspect-UZ5CC3HV.js")).default;
1343
1343
  return inspectFn(client, args);
1344
1344
  }
1345
1345
  case "rules": {
1346
1346
  telemetry2.trackCliSubcommandRules(args[0] ?? "ls");
1347
- const rulesFn = (await import("./chunks/rules-MULKOWZ5.js")).default;
1347
+ const rulesFn = (await import("./chunks/rules-XNQ4LDXH.js")).default;
1348
1348
  return rulesFn(client, args);
1349
1349
  }
1350
1350
  default: {
1351
1351
  telemetry2.trackCliSubcommandLs(subcommandOriginal);
1352
- const listFn = (await import("./chunks/list-SCOE3N4I.js")).default;
1352
+ const listFn = (await import("./chunks/list-7BYAGN5B.js")).default;
1353
1353
  return listFn(client, telemetry2);
1354
1354
  }
1355
1355
  }
@@ -6040,6 +6040,9 @@ var ConnexTelemetryClient = class extends TelemetryClient {
6040
6040
 
6041
6041
  // src/commands/connex/create.ts
6042
6042
  var import_open3 = __toESM(require_open(), 1);
6043
+ import { readFile as readFile3 } from "fs/promises";
6044
+ import { resolve as resolve4 } from "path";
6045
+ import { text } from "stream/consumers";
6043
6046
 
6044
6047
  // src/util/connex/select-team.ts
6045
6048
  async function selectConnexTeam(client, message) {
@@ -6214,18 +6217,25 @@ async function create2(client, args, flags) {
6214
6217
  output_manager_default.error("The --connector-type flag requires --data.");
6215
6218
  return 1;
6216
6219
  }
6217
- const hasDataFlag = dataFlag !== void 0;
6218
- const isDataFlagEmpty = hasDataFlag && dataFlag.trim().length === 0;
6220
+ const isNonManagedCreate = dataFlag !== void 0;
6219
6221
  let nonManagedData;
6220
- if (hasDataFlag && !isDataFlagEmpty) {
6222
+ let isDataFlagEmpty = false;
6223
+ if (dataFlag !== void 0) {
6221
6224
  try {
6222
- nonManagedData = parseDataFlag(dataFlag);
6225
+ const rawData = await resolveDataFlag(dataFlag, client);
6226
+ if (rawData.trim().length === 0) {
6227
+ isDataFlagEmpty = true;
6228
+ } else {
6229
+ nonManagedData = parseDataFlag(rawData);
6230
+ if (!dataFlag.startsWith("@")) {
6231
+ warnInlineSecret(nonManagedData);
6232
+ }
6233
+ }
6223
6234
  } catch (err) {
6224
6235
  output_manager_default.error(err.message);
6225
6236
  return 1;
6226
6237
  }
6227
6238
  }
6228
- const isNonManagedCreate = hasDataFlag;
6229
6239
  const iconFlag = flags["--icon"];
6230
6240
  const backgroundColor = flags["--background-color"];
6231
6241
  const accentColor = flags["--accent-color"];
@@ -6449,6 +6459,42 @@ ${finalBrowserUrl}`);
6449
6459
  }
6450
6460
  return brandingPatchFailed ? 1 : 0;
6451
6461
  }
6462
+ async function readStdinToEnd(stdin) {
6463
+ if (stdin.isTTY) {
6464
+ return "";
6465
+ }
6466
+ return text(stdin);
6467
+ }
6468
+ async function resolveDataFlag(raw, client) {
6469
+ if (!raw.startsWith("@")) {
6470
+ return raw;
6471
+ }
6472
+ const source = raw.slice(1);
6473
+ if (source === "-") {
6474
+ return readStdinToEnd(client.stdin);
6475
+ }
6476
+ if (source.length === 0) {
6477
+ throw new Error(
6478
+ "Invalid --data value. Use `@<path>` to read from a file or `@-` to read from stdin."
6479
+ );
6480
+ }
6481
+ try {
6482
+ return await readFile3(resolve4(client.cwd, source), "utf8");
6483
+ } catch (err) {
6484
+ throw new Error(
6485
+ `Could not read --data file at "${source}": ${err.message}`
6486
+ );
6487
+ }
6488
+ }
6489
+ var SECRET_KEY_PATTERN = /secret|password|passwd|token|api[-_]?key|private[-_]?key|credential/i;
6490
+ function warnInlineSecret(data) {
6491
+ const secretKey = Object.keys(data).find((key) => SECRET_KEY_PATTERN.test(key));
6492
+ if (secretKey) {
6493
+ output_manager_default.warn(
6494
+ `--data was passed inline and appears to contain a credential ("${secretKey}"). Inline flag values leak into shell history and process listings. Pass \`--data @<path>\` to read from a file or \`--data @-\` to read from stdin instead.`
6495
+ );
6496
+ }
6497
+ }
6452
6498
  function parseDataFlag(raw) {
6453
6499
  let parsed;
6454
6500
  try {
@@ -6649,7 +6695,14 @@ async function update(client, args, flags) {
6649
6695
 
6650
6696
  // src/commands/connex/list.ts
6651
6697
  var import_chalk23 = __toESM(require_source(), 1);
6698
+
6699
+ // src/util/connex/sanitize.ts
6652
6700
  var import_strip_ansi = __toESM(require_strip_ansi(), 1);
6701
+ function sanitizeForTerminal(value) {
6702
+ return (0, import_strip_ansi.default)(value);
6703
+ }
6704
+
6705
+ // src/commands/connex/list.ts
6653
6706
  async function list5(client, flags) {
6654
6707
  const formatResult = validateJsonOutput(flags);
6655
6708
  if (!formatResult.valid) {
@@ -6773,14 +6826,14 @@ async function list5(client, flags) {
6773
6826
  }
6774
6827
  const rows = clients.map((c) => {
6775
6828
  const row = [
6776
- (0, import_strip_ansi.default)(c.uid || "") || import_chalk23.default.gray("\u2013"),
6829
+ sanitizeForTerminal(c.uid || "") || import_chalk23.default.gray("\u2013"),
6777
6830
  c.id,
6778
- (0, import_strip_ansi.default)(c.name || "") || import_chalk23.default.gray("\u2013"),
6779
- c.typeName || c.type
6831
+ sanitizeForTerminal(c.name || "") || import_chalk23.default.gray("\u2013"),
6832
+ sanitizeForTerminal(c.typeName || c.type)
6780
6833
  ];
6781
6834
  if (unscoped) {
6782
6835
  const projectsInclude = c.includes?.projects;
6783
- const names = (projectsInclude?.items ?? []).map((p) => p.project?.name).filter((n) => Boolean(n));
6836
+ const names = (projectsInclude?.items ?? []).map((p) => p.project?.name).filter((n) => Boolean(n)).map(sanitizeForTerminal);
6784
6837
  const more = projectsInclude?.hasMore === true;
6785
6838
  let cell;
6786
6839
  if (names.length === 0 && !more) {
@@ -7131,7 +7184,7 @@ async function attach(client, args, flags) {
7131
7184
  return 1;
7132
7185
  }
7133
7186
  projectId = resolvedProject.id;
7134
- projectName = resolvedProject.name;
7187
+ projectName = sanitizeForTerminal(resolvedProject.name);
7135
7188
  } else {
7136
7189
  const linked = await getLinkedProject(client);
7137
7190
  if (linked.status === "error") {
@@ -7149,7 +7202,7 @@ async function attach(client, args, flags) {
7149
7202
  client.config.currentTeam = void 0;
7150
7203
  }
7151
7204
  projectId = linked.project.id;
7152
- projectName = linked.project.name;
7205
+ projectName = sanitizeForTerminal(linked.project.name);
7153
7206
  }
7154
7207
  output_manager_default.spinner("Retrieving connector\u2026");
7155
7208
  let target;
@@ -7168,7 +7221,9 @@ async function attach(client, args, flags) {
7168
7221
  return 1;
7169
7222
  }
7170
7223
  output_manager_default.stopSpinner();
7171
- const displayName = target.uid || target.name || target.id;
7224
+ const displayName = sanitizeForTerminal(
7225
+ target.uid || target.name || target.id
7226
+ );
7172
7227
  let desiredDestination;
7173
7228
  let triggerAlreadyRegistered = false;
7174
7229
  let triggersEnabledOnConnector = true;
@@ -7410,7 +7465,7 @@ async function detach(client, args, flags) {
7410
7465
  return 1;
7411
7466
  }
7412
7467
  projectId = resolvedProject.id;
7413
- projectName = resolvedProject.name;
7468
+ projectName = sanitizeForTerminal(resolvedProject.name);
7414
7469
  } else {
7415
7470
  const linked = await getLinkedProject(client);
7416
7471
  if (linked.status === "error") {
@@ -7428,7 +7483,7 @@ async function detach(client, args, flags) {
7428
7483
  client.config.currentTeam = void 0;
7429
7484
  }
7430
7485
  projectId = linked.project.id;
7431
- projectName = linked.project.name;
7486
+ projectName = sanitizeForTerminal(linked.project.name);
7432
7487
  }
7433
7488
  output_manager_default.spinner("Retrieving connector\u2026");
7434
7489
  let target;
@@ -7447,7 +7502,9 @@ async function detach(client, args, flags) {
7447
7502
  return 1;
7448
7503
  }
7449
7504
  output_manager_default.stopSpinner();
7450
- const displayName = target.uid || target.name || target.id;
7505
+ const displayName = sanitizeForTerminal(
7506
+ target.uid || target.name || target.id
7507
+ );
7451
7508
  let existingAttachment;
7452
7509
  try {
7453
7510
  existingAttachment = await client.fetch(
@@ -7611,7 +7668,7 @@ async function remove(client, args, flags) {
7611
7668
  return 1;
7612
7669
  }
7613
7670
  output_manager_default.stopSpinner();
7614
- const displayName = target.uid || target.id;
7671
+ const displayName = sanitizeForTerminal(target.uid || target.id);
7615
7672
  let projectLinks;
7616
7673
  try {
7617
7674
  output_manager_default.spinner("Checking connected projects\u2026");
@@ -7732,7 +7789,9 @@ async function revokeTokens(client, args, flags) {
7732
7789
  return 1;
7733
7790
  }
7734
7791
  output_manager_default.stopSpinner();
7735
- const displayName = target.name || target.uid || target.id;
7792
+ const displayName = sanitizeForTerminal(
7793
+ target.name || target.uid || target.id
7794
+ );
7736
7795
  const supportsRevocation = target.supportsRevocation !== false;
7737
7796
  let subjectScope;
7738
7797
  if (myTokens) {
@@ -8311,8 +8370,8 @@ async function contract(client) {
8311
8370
  );
8312
8371
  return 1;
8313
8372
  }
8314
- const text = await response.text();
8315
- const data = text ? JSON.parse(text) : null;
8373
+ const text2 = await response.text();
8374
+ const data = text2 ? JSON.parse(text2) : null;
8316
8375
  const commitments = Array.isArray(data) ? data : [];
8317
8376
  if (asJson) {
8318
8377
  const jsonOutput = {
@@ -8409,13 +8468,13 @@ var import_chalk31 = __toESM(require_source(), 1);
8409
8468
  // src/util/certs/create-cert-from-file.ts
8410
8469
  var import_error_utils5 = __toESM(require_dist(), 1);
8411
8470
  import { readFileSync } from "fs";
8412
- import { resolve as resolve4 } from "path";
8471
+ import { resolve as resolve5 } from "path";
8413
8472
  async function createCertFromFile(client, keyPath, certPath, caPath) {
8414
8473
  output_manager_default.spinner("Adding your custom certificate");
8415
8474
  try {
8416
- const cert = readFileSync(resolve4(certPath), "utf8");
8417
- const key = readFileSync(resolve4(keyPath), "utf8");
8418
- const ca = readFileSync(resolve4(caPath), "utf8");
8475
+ const cert = readFileSync(resolve5(certPath), "utf8");
8476
+ const key = readFileSync(resolve5(keyPath), "utf8");
8477
+ const ca = readFileSync(resolve5(caPath), "utf8");
8419
8478
  const certificate = await client.fetch("/v3/certs", {
8420
8479
  method: "PUT",
8421
8480
  body: {
@@ -9073,7 +9132,7 @@ async function getCertsToDelete(client, contextName, id) {
9073
9132
  return [cert];
9074
9133
  }
9075
9134
  function readConfirmation(client, msg, certs) {
9076
- return new Promise((resolve8) => {
9135
+ return new Promise((resolve9) => {
9077
9136
  output_manager_default.log(msg);
9078
9137
  output_manager_default.print(
9079
9138
  `${table(certs.map(formatCertRow), {
@@ -9087,7 +9146,7 @@ function readConfirmation(client, msg, certs) {
9087
9146
  );
9088
9147
  client.stdin.on("data", (d) => {
9089
9148
  process.stdin.pause();
9090
- resolve8(d.toString().trim().toLowerCase() === "y");
9149
+ resolve9(d.toString().trim().toLowerCase() === "y");
9091
9150
  }).resume();
9092
9151
  });
9093
9152
  }
@@ -9209,8 +9268,8 @@ async function main6(client) {
9209
9268
 
9210
9269
  // src/commands/crons/add.ts
9211
9270
  var import_chalk37 = __toESM(require_source(), 1);
9212
- import { resolve as resolve5 } from "path";
9213
- import { access, readFile as readFile3, writeFile as writeFile2 } from "fs/promises";
9271
+ import { resolve as resolve6 } from "path";
9272
+ import { access, readFile as readFile4, writeFile as writeFile2 } from "fs/promises";
9214
9273
 
9215
9274
  // src/util/telemetry/commands/crons/add.ts
9216
9275
  var CronsAddTelemetryClient = class extends TelemetryClient {
@@ -9364,7 +9423,7 @@ async function add2(client, argv) {
9364
9423
  ...isVercelTomlEnabled() ? ["vercel.toml"] : []
9365
9424
  ];
9366
9425
  for (const configName of nonJsonConfigs) {
9367
- const altPath = resolve5(client.cwd, configName);
9426
+ const altPath = resolve6(client.cwd, configName);
9368
9427
  try {
9369
9428
  await access(altPath);
9370
9429
  output_manager_default.error(
@@ -9374,10 +9433,10 @@ async function add2(client, argv) {
9374
9433
  } catch {
9375
9434
  }
9376
9435
  }
9377
- const configPath = resolve5(client.cwd, "vercel.json");
9436
+ const configPath = resolve6(client.cwd, "vercel.json");
9378
9437
  let config;
9379
9438
  try {
9380
- const content = await readFile3(configPath, "utf-8");
9439
+ const content = await readFile4(configPath, "utf-8");
9381
9440
  config = JSON.parse(content);
9382
9441
  } catch (err) {
9383
9442
  if (err instanceof SyntaxError) {
@@ -10364,7 +10423,7 @@ var import_error_utils7 = __toESM(require_dist(), 1);
10364
10423
  import { spawn } from "child_process";
10365
10424
  import { tmpdir } from "os";
10366
10425
  import { join as join3 } from "path";
10367
- import { mkdtemp, readFile as readFile5, rm as rm3 } from "fs/promises";
10426
+ import { mkdtemp, readFile as readFile6, rm as rm3 } from "fs/promises";
10368
10427
 
10369
10428
  // src/commands/curl/confirm-production.ts
10370
10429
  async function confirmProduction(client, { deploymentTarget, yes, isTTY }) {
@@ -10389,7 +10448,7 @@ async function confirmProduction(client, { deploymentTarget, yes, isTTY }) {
10389
10448
 
10390
10449
  // src/commands/curl/trace-session-token-provider.ts
10391
10450
  import { createHash as createHash3 } from "crypto";
10392
- import { chmod, mkdir, readFile as readFile4, unlink, writeFile as writeFile3 } from "fs/promises";
10451
+ import { chmod, mkdir, readFile as readFile5, unlink, writeFile as writeFile3 } from "fs/promises";
10393
10452
  import { dirname, join as join2 } from "path";
10394
10453
  var FALLBACK_TTL_MS = 5 * 60 * 1e3;
10395
10454
  var EXPIRY_BUFFER_MS = 30 * 1e3;
@@ -10409,7 +10468,7 @@ function cachePath(cacheDir, teamId, host) {
10409
10468
  async function readCache(path3) {
10410
10469
  let raw;
10411
10470
  try {
10412
- raw = await readFile4(path3, "utf8");
10471
+ raw = await readFile5(path3, "utf8");
10413
10472
  } catch {
10414
10473
  return null;
10415
10474
  }
@@ -10541,7 +10600,7 @@ async function runCurlAndCaptureHeaders(curlFlags, json) {
10541
10600
  const headerFile = join3(tmpDir, "headers");
10542
10601
  const flags = ["--dump-header", headerFile, ...curlFlags];
10543
10602
  try {
10544
- const { exitCode: exitCode2, capturedBody } = await new Promise((resolve8) => {
10603
+ const { exitCode: exitCode2, capturedBody } = await new Promise((resolve9) => {
10545
10604
  const child = spawn("curl", flags, {
10546
10605
  stdio: json ? ["inherit", "pipe", "inherit"] : "inherit",
10547
10606
  shell: false
@@ -10559,15 +10618,15 @@ async function runCurlAndCaptureHeaders(curlFlags, json) {
10559
10618
  } else {
10560
10619
  output_manager_default.error(`Failed to execute curl: ${err.message}`);
10561
10620
  }
10562
- resolve8({ exitCode: 1, capturedBody: buf });
10621
+ resolve9({ exitCode: 1, capturedBody: buf });
10563
10622
  });
10564
10623
  child.on("close", (code2) => {
10565
- resolve8({ exitCode: code2 ?? 1, capturedBody: buf });
10624
+ resolve9({ exitCode: code2 ?? 1, capturedBody: buf });
10566
10625
  });
10567
10626
  });
10568
10627
  let headerDump = "";
10569
10628
  try {
10570
- headerDump = await readFile5(headerFile, "utf8");
10629
+ headerDump = await readFile6(headerFile, "utf8");
10571
10630
  } catch (err) {
10572
10631
  output_manager_default.debug(`Failed to read curl header dump: ${err}`);
10573
10632
  }
@@ -10750,7 +10809,7 @@ async function curl(client) {
10750
10809
  });
10751
10810
  }
10752
10811
  output_manager_default.debug(`Executing: curl ${curlFlags.map(requoteArgs).join(" ")}`);
10753
- return new Promise((resolve8) => {
10812
+ return new Promise((resolve9) => {
10754
10813
  const curlProcess = spawn2("curl", curlFlags, {
10755
10814
  stdio: "inherit",
10756
10815
  shell: false
@@ -10758,14 +10817,14 @@ async function curl(client) {
10758
10817
  curlProcess.on("error", (err) => {
10759
10818
  if ("code" in err && err.code === "ENOENT") {
10760
10819
  output_manager_default.error("curl command not found. Please install curl.");
10761
- resolve8(1);
10820
+ resolve9(1);
10762
10821
  } else {
10763
10822
  output_manager_default.error(`Failed to execute curl: ${err.message}`);
10764
- resolve8(1);
10823
+ resolve9(1);
10765
10824
  }
10766
10825
  });
10767
10826
  curlProcess.on("close", (code2) => {
10768
- resolve8(code2 ?? 1);
10827
+ resolve9(code2 ?? 1);
10769
10828
  });
10770
10829
  });
10771
10830
  }
@@ -11906,12 +11965,12 @@ var import_chalk48 = __toESM(require_source(), 1);
11906
11965
  // src/util/dns/import-zonefile.ts
11907
11966
  var import_chalk47 = __toESM(require_source(), 1);
11908
11967
  import { readFileSync as readFileSync2 } from "fs";
11909
- import { resolve as resolve6 } from "path";
11968
+ import { resolve as resolve7 } from "path";
11910
11969
  async function importZonefile(client, contextName, domain2, zonefilePath) {
11911
11970
  output_manager_default.spinner(
11912
11971
  `Importing Zone file for domain ${domain2} under ${import_chalk47.default.bold(contextName)}`
11913
11972
  );
11914
- const zonefile = readFileSync2(resolve6(zonefilePath), "utf8");
11973
+ const zonefile = readFileSync2(resolve7(zonefilePath), "utf8");
11915
11974
  try {
11916
11975
  const res = await client.fetch(
11917
11976
  `/v3/domains/${encodeURIComponent(domain2)}/records`,
@@ -12508,7 +12567,7 @@ async function rm5(client, argv) {
12508
12567
  return 0;
12509
12568
  }
12510
12569
  function readConfirmation2(client, msg, domainName, record) {
12511
- return new Promise((resolve8) => {
12570
+ return new Promise((resolve9) => {
12512
12571
  output_manager_default.log(msg);
12513
12572
  output_manager_default.print(
12514
12573
  `${table([getDeleteTableRow(domainName, record)], {
@@ -12522,7 +12581,7 @@ function readConfirmation2(client, msg, domainName, record) {
12522
12581
  );
12523
12582
  client.stdin.on("data", (d) => {
12524
12583
  process.stdin.pause();
12525
- resolve8(d.toString().trim().toLowerCase() === "y");
12584
+ resolve9(d.toString().trim().toLowerCase() === "y");
12526
12585
  }).resume();
12527
12586
  });
12528
12587
  }
@@ -23412,8 +23471,8 @@ function printFlagEnvironmentDetails(flag, settings, environments) {
23412
23471
  output_manager_default.print(` ${import_chalk99.default.dim("\u2192")} ${outcome}
23413
23472
  `);
23414
23473
  for (const condition of rule.conditions) {
23415
- const { text, listItems } = formatCondition2(condition, settings);
23416
- output_manager_default.print(` ${import_chalk99.default.dim("if")} ${text}
23474
+ const { text: text2, listItems } = formatCondition2(condition, settings);
23475
+ output_manager_default.print(` ${import_chalk99.default.dim("if")} ${text2}
23417
23476
  `);
23418
23477
  if (listItems && listItems.length > 0) {
23419
23478
  for (const item of listItems) {
@@ -27942,7 +28001,7 @@ async function httpstat(client) {
27942
28001
  output_manager_default.debug(
27943
28002
  `Executing: httpstat ${httpstatFlags.map(requoteArgs).join(" ")}`
27944
28003
  );
27945
- return new Promise((resolve8) => {
28004
+ return new Promise((resolve9) => {
27946
28005
  const httpstatProcess = spawn3("httpstat", httpstatFlags, {
27947
28006
  stdio: "inherit",
27948
28007
  shell: false
@@ -27959,14 +28018,14 @@ async function httpstat(client) {
27959
28018
  output_manager_default.log(
27960
28019
  "Or visit: https://github.com/reorx/httpstat for more details"
27961
28020
  );
27962
- resolve8(1);
28021
+ resolve9(1);
27963
28022
  } else {
27964
28023
  output_manager_default.error(`Failed to execute httpstat: ${err.message}`);
27965
- resolve8(1);
28024
+ resolve9(1);
27966
28025
  }
27967
28026
  });
27968
28027
  httpstatProcess.on("close", (code2) => {
27969
- resolve8(code2 ?? 1);
28028
+ resolve9(code2 ?? 1);
27970
28029
  });
27971
28030
  });
27972
28031
  }
@@ -28045,11 +28104,11 @@ async function extractExample(client, name, dir, force, ver = "v2") {
28045
28104
  if (res.status !== 200) {
28046
28105
  throw new Error(`Could not get ${name}.tar.gz`);
28047
28106
  }
28048
- await new Promise((resolve8, reject) => {
28107
+ await new Promise((resolve9, reject) => {
28049
28108
  const extractor = import_tar_fs.default.extract(folder);
28050
28109
  res.body.on("error", reject);
28051
28110
  extractor.on("error", reject);
28052
- extractor.on("finish", resolve8);
28111
+ extractor.on("finish", resolve9);
28053
28112
  res.body.pipe(extractor);
28054
28113
  });
28055
28114
  const successLog = `Initialized "${import_chalk120.default.bold(
@@ -29243,8 +29302,8 @@ async function pollForClaim(client, resourceId, options = {}) {
29243
29302
  const timeoutMs = options.timeoutMs ?? DEFAULT_TIMEOUT_MS2;
29244
29303
  let cancelled = false;
29245
29304
  let resolveCancelled;
29246
- const cancelledSignal = new Promise((resolve8) => {
29247
- resolveCancelled = resolve8;
29305
+ const cancelledSignal = new Promise((resolve9) => {
29306
+ resolveCancelled = resolve9;
29248
29307
  });
29249
29308
  const onSigint = () => {
29250
29309
  cancelled = true;
@@ -36246,7 +36305,7 @@ async function metrics(client) {
36246
36305
  return 0;
36247
36306
  }
36248
36307
  telemetry2.trackCliSubcommandSchema(subcommandOriginal);
36249
- const schemaFn = (await import("./chunks/schema-4YC2WD3R.js")).default;
36308
+ const schemaFn = (await import("./chunks/schema-Q2JNER6Z.js")).default;
36250
36309
  return schemaFn(client, telemetry2);
36251
36310
  }
36252
36311
  default: {
@@ -36259,7 +36318,7 @@ async function metrics(client) {
36259
36318
  output_manager_default.print(help(metricsCommand, { columns: client.stderr.columns }));
36260
36319
  return 2;
36261
36320
  }
36262
- const queryFn = (await import("./chunks/query-OHEBAPTS.js")).default;
36321
+ const queryFn = (await import("./chunks/query-2PCHFFUA.js")).default;
36263
36322
  return queryFn(client, telemetry2);
36264
36323
  }
36265
36324
  }
@@ -38822,7 +38881,7 @@ var import_chalk153 = __toESM(require_source(), 1);
38822
38881
 
38823
38882
  // src/commands/project/checks-add.ts
38824
38883
  import { readFileSync as readFileSync3 } from "fs";
38825
- import { resolve as resolve7 } from "path";
38884
+ import { resolve as resolve8 } from "path";
38826
38885
  var REQUIRES = ["build-ready", "deployment-url", "none"];
38827
38886
  var BLOCKING_STAGES = [
38828
38887
  "build-start",
@@ -38893,7 +38952,7 @@ async function checksAdd(client, argv) {
38893
38952
  let body;
38894
38953
  if (typeof filePath === "string" && filePath.length > 0) {
38895
38954
  try {
38896
- const raw = readFileSync3(resolve7(client.cwd, filePath), "utf8");
38955
+ const raw = readFileSync3(resolve8(client.cwd, filePath), "utf8");
38897
38956
  const parsed = JSON.parse(raw);
38898
38957
  if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) {
38899
38958
  emitValidationError(client, "`--file` must contain a JSON object.", 1);
@@ -43921,7 +43980,7 @@ async function remove7(client) {
43921
43980
  return 0;
43922
43981
  }
43923
43982
  function readConfirmation4(deployments, projects) {
43924
- return new Promise((resolve8) => {
43983
+ return new Promise((resolve9) => {
43925
43984
  if (deployments.length > 0) {
43926
43985
  output_manager_default.log(
43927
43986
  `The following ${(0, import_pluralize11.default)(
@@ -43967,7 +44026,7 @@ function readConfirmation4(deployments, projects) {
43967
44026
  );
43968
44027
  process.stdin.on("data", (d) => {
43969
44028
  process.stdin.pause();
43970
- resolve8(d.toString().trim());
44029
+ resolve9(d.toString().trim());
43971
44030
  }).resume();
43972
44031
  });
43973
44032
  }
@@ -47154,7 +47213,7 @@ async function main27(client) {
47154
47213
  return 2;
47155
47214
  }
47156
47215
  telemetry2.trackCliSubcommandEdit(subcommandOriginal);
47157
- return (await import("./chunks/edit-PMIBPG7J.js")).default(client, args);
47216
+ return (await import("./chunks/edit-VXYNQVBR.js")).default(client, args);
47158
47217
  case "delete":
47159
47218
  if (needHelp) {
47160
47219
  telemetry2.trackCliFlagHelp("routes", subcommandOriginal);
@@ -47162,7 +47221,7 @@ async function main27(client) {
47162
47221
  return 2;
47163
47222
  }
47164
47223
  telemetry2.trackCliSubcommandDelete(subcommandOriginal);
47165
- return (await import("./chunks/delete-XKC6CE3R.js")).default(client, args);
47224
+ return (await import("./chunks/delete-CSL7GQUM.js")).default(client, args);
47166
47225
  case "enable":
47167
47226
  if (needHelp) {
47168
47227
  telemetry2.trackCliFlagHelp("routes", subcommandOriginal);
@@ -47170,7 +47229,7 @@ async function main27(client) {
47170
47229
  return 2;
47171
47230
  }
47172
47231
  telemetry2.trackCliSubcommandEnable(subcommandOriginal);
47173
- return (await import("./chunks/enable-AON5KGOT.js")).default(client, args);
47232
+ return (await import("./chunks/enable-OWXV2G3V.js")).default(client, args);
47174
47233
  case "disable":
47175
47234
  if (needHelp) {
47176
47235
  telemetry2.trackCliFlagHelp("routes", subcommandOriginal);
@@ -47178,7 +47237,7 @@ async function main27(client) {
47178
47237
  return 2;
47179
47238
  }
47180
47239
  telemetry2.trackCliSubcommandDisable(subcommandOriginal);
47181
- return (await import("./chunks/disable-F2RLDMXX.js")).default(client, args);
47240
+ return (await import("./chunks/disable-WRZTPAJJ.js")).default(client, args);
47182
47241
  case "reorder":
47183
47242
  if (needHelp) {
47184
47243
  telemetry2.trackCliFlagHelp("routes", subcommandOriginal);
@@ -47186,7 +47245,7 @@ async function main27(client) {
47186
47245
  return 2;
47187
47246
  }
47188
47247
  telemetry2.trackCliSubcommandReorder(subcommandOriginal);
47189
- return (await import("./chunks/reorder-GMIEF42H.js")).default(client, args);
47248
+ return (await import("./chunks/reorder-AN4IH7VE.js")).default(client, args);
47190
47249
  case "export":
47191
47250
  if (needHelp) {
47192
47251
  telemetry2.trackCliFlagHelp("routes", subcommandOriginal);
@@ -47194,7 +47253,7 @@ async function main27(client) {
47194
47253
  return 2;
47195
47254
  }
47196
47255
  telemetry2.trackCliSubcommandExport(subcommandOriginal);
47197
- return (await import("./chunks/export-OQKO5JVC.js")).default(client, args);
47256
+ return (await import("./chunks/export-6KAIMGH6.js")).default(client, args);
47198
47257
  case "publish":
47199
47258
  if (needHelp) {
47200
47259
  telemetry2.trackCliFlagHelp("routes", subcommandOriginal);
@@ -47202,7 +47261,7 @@ async function main27(client) {
47202
47261
  return 2;
47203
47262
  }
47204
47263
  telemetry2.trackCliSubcommandPublish(subcommandOriginal);
47205
- return (await import("./chunks/publish-6VOT42HN.js")).default(client, args);
47264
+ return (await import("./chunks/publish-6KB6TNYM.js")).default(client, args);
47206
47265
  case "restore":
47207
47266
  if (needHelp) {
47208
47267
  telemetry2.trackCliFlagHelp("routes", subcommandOriginal);
@@ -47210,7 +47269,7 @@ async function main27(client) {
47210
47269
  return 2;
47211
47270
  }
47212
47271
  telemetry2.trackCliSubcommandRestore(subcommandOriginal);
47213
- return (await import("./chunks/restore-JY2JCHOY.js")).default(client, args);
47272
+ return (await import("./chunks/restore-CA72EKHV.js")).default(client, args);
47214
47273
  case "discard-staging":
47215
47274
  if (needHelp) {
47216
47275
  telemetry2.trackCliFlagHelp("routes", subcommandOriginal);
@@ -47218,7 +47277,7 @@ async function main27(client) {
47218
47277
  return 2;
47219
47278
  }
47220
47279
  telemetry2.trackCliSubcommandDiscardStaging(subcommandOriginal);
47221
- return (await import("./chunks/discard-N4MILEID.js")).default(client, args);
47280
+ return (await import("./chunks/discard-L2YVL23C.js")).default(client, args);
47222
47281
  default:
47223
47282
  output_manager_default.error(getInvalidSubcommand(COMMAND_CONFIG35));
47224
47283
  output_manager_default.print(help(routesCommand, { columns: client.stderr.columns }));
@@ -47292,7 +47351,7 @@ async function sandbox(client) {
47292
47351
  var import_chalk182 = __toESM(require_source(), 1);
47293
47352
  var import_frameworks2 = __toESM(require_frameworks(), 1);
47294
47353
  var import_fs_detectors = __toESM(require_dist3(), 1);
47295
- import { access as access2, readFile as readFile6 } from "fs/promises";
47354
+ import { access as access2, readFile as readFile7 } from "fs/promises";
47296
47355
  import { join as join8 } from "path";
47297
47356
  import { homedir } from "os";
47298
47357
  import { spawn as spawn4 } from "child_process";
@@ -47396,7 +47455,7 @@ async function detectProjectFramework(cwd) {
47396
47455
  }
47397
47456
  async function readPackageDeps(cwd) {
47398
47457
  try {
47399
- const raw = await readFile6(join8(cwd, "package.json"), "utf8");
47458
+ const raw = await readFile7(join8(cwd, "package.json"), "utf8");
47400
47459
  const pkg = JSON.parse(raw);
47401
47460
  const allDeps = {
47402
47461
  ...pkg.dependencies,
@@ -47684,12 +47743,12 @@ ${table(tableData, { hsep: 4 })}`);
47684
47743
  return { exitCode: 0, results, installedChecks };
47685
47744
  }
47686
47745
  function runCommand(cmd2, args) {
47687
- return new Promise((resolve8) => {
47746
+ return new Promise((resolve9) => {
47688
47747
  const child = spawn4(cmd2, args, {
47689
47748
  stdio: "pipe"
47690
47749
  });
47691
- child.on("close", (code2) => resolve8(code2 ?? 1));
47692
- child.on("error", () => resolve8(1));
47750
+ child.on("close", (code2) => resolve9(code2 ?? 1));
47751
+ child.on("error", () => resolve9(1));
47693
47752
  });
47694
47753
  }
47695
47754
 
@@ -51506,7 +51565,7 @@ async function processCharges(response, breakdownPeriod, groupByDimension, conte
51506
51565
  let grandBilled = 0;
51507
51566
  let chargeCount = 0;
51508
51567
  let pricingUnit = "MIUs";
51509
- await new Promise((resolve8, reject) => {
51568
+ await new Promise((resolve9, reject) => {
51510
51569
  const stream = response.body.pipe(import_jsonlines.default.parse());
51511
51570
  stream.on("data", (charge) => {
51512
51571
  chargeCount++;
@@ -51590,7 +51649,7 @@ async function processCharges(response, breakdownPeriod, groupByDimension, conte
51590
51649
  });
51591
51650
  }
51592
51651
  });
51593
- stream.on("end", resolve8);
51652
+ stream.on("end", resolve9);
51594
51653
  stream.on("error", reject);
51595
51654
  response.body.on("error", reject);
51596
51655
  });