vercel 50.40.0 → 50.41.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 (64) hide show
  1. package/dist/chunks/{chunk-AKJWYZIB.js → chunk-2IAZZEVQ.js} +1 -1
  2. package/dist/chunks/{chunk-H3CMW7KQ.js → chunk-4YZKA4FN.js} +1 -1
  3. package/dist/chunks/{chunk-UVOVGBSX.js → chunk-5C5NREZ5.js} +3 -3
  4. package/dist/chunks/{chunk-GCKEZI4W.js → chunk-5DS2KQFQ.js} +5 -5
  5. package/dist/chunks/{chunk-NZ43E7P3.js → chunk-5Y7GSP7F.js} +3 -3
  6. package/dist/chunks/{chunk-LUR25PAI.js → chunk-6TZS66I4.js} +2 -2
  7. package/dist/chunks/{chunk-OZNAXJDJ.js → chunk-7UXVJVY7.js} +58 -9
  8. package/dist/chunks/{chunk-ZP6DWI4H.js → chunk-A4NVECX5.js} +1 -1
  9. package/dist/chunks/{chunk-OSTYX3QY.js → chunk-BQUQ5F7R.js} +1 -1
  10. package/dist/chunks/{chunk-2E3I7KDG.js → chunk-BUBUVE23.js} +1 -1
  11. package/dist/chunks/{chunk-JLYZNGYY.js → chunk-C5YP6KFI.js} +1 -1
  12. package/dist/chunks/{chunk-B6QTGZFG.js → chunk-CZDMSM5L.js} +4 -4
  13. package/dist/chunks/{chunk-2PQBSDLL.js → chunk-E6MNDN35.js} +7 -7
  14. package/dist/chunks/{chunk-NEHRMELH.js → chunk-HH4JLNPA.js} +2 -2
  15. package/dist/chunks/{chunk-BLNY4RPZ.js → chunk-HTOH3MSD.js} +1 -1
  16. package/dist/chunks/{chunk-P7T5S2Q6.js → chunk-I2XIZ2I5.js} +3 -3
  17. package/dist/chunks/{chunk-VT5DEMEJ.js → chunk-J7HJHD6D.js} +2 -2
  18. package/dist/chunks/{chunk-NFRKTXWB.js → chunk-JLG2G4QX.js} +387 -84
  19. package/dist/chunks/{chunk-7A5X3JWQ.js → chunk-JZW2NDIU.js} +2 -2
  20. package/dist/chunks/{chunk-BAKQ6TED.js → chunk-K3GPD72H.js} +2 -2
  21. package/dist/chunks/{chunk-ZIPQJCFL.js → chunk-L2BKVTHL.js} +2 -2
  22. package/dist/chunks/{chunk-XR53KVJD.js → chunk-LOS7HHU3.js} +1 -1
  23. package/dist/chunks/{chunk-VXJSSAG2.js → chunk-M3WH7C2Z.js} +8 -8
  24. package/dist/chunks/{chunk-ECWQHAOF.js → chunk-Q6BEDVOU.js} +1 -1
  25. package/dist/chunks/{chunk-O6MDSC64.js → chunk-RXNZNJ37.js} +10 -10
  26. package/dist/chunks/{chunk-2VBJWBZO.js → chunk-S5GAFVRR.js} +3 -3
  27. package/dist/chunks/{chunk-AEVTZ63P.js → chunk-TEJWXSIW.js} +4 -4
  28. package/dist/chunks/{chunk-MXPZBZ2X.js → chunk-TUP5ROJJ.js} +1 -1
  29. package/dist/chunks/{chunk-XPVPPSEE.js → chunk-U5J73OA3.js} +1 -1
  30. package/dist/chunks/{chunk-GSSP5PJ7.js → chunk-URLOPZNH.js} +2 -2
  31. package/dist/chunks/{chunk-WHW2IP6A.js → chunk-UWKGNLZB.js} +2 -2
  32. package/dist/chunks/{chunk-2WMYST74.js → chunk-V34CVZ57.js} +3 -3
  33. package/dist/chunks/{chunk-YR4OXOHO.js → chunk-VE7MY76H.js} +1 -1
  34. package/dist/chunks/{chunk-SQJIJVF2.js → chunk-WTAJBCJ3.js} +1 -1
  35. package/dist/chunks/{chunk-ABC6WFRG.js → chunk-WXNT7WJO.js} +1 -1
  36. package/dist/chunks/{chunk-OD4DMLO7.js → chunk-YJBNM26E.js} +1 -1
  37. package/dist/chunks/{chunk-AHIRHRNN.js → chunk-YNTDMBOE.js} +6 -6
  38. package/dist/chunks/{chunk-FDJURQMQ.js → chunk-ZQKJVHXY.js} +2 -2
  39. package/dist/chunks/{compile-vercel-config-PHTDH3SO.js → compile-vercel-config-GNWLETKI.js} +4 -4
  40. package/dist/chunks/{delete-EC7VNDRB.js → delete-4EE2EJ2L.js} +6 -6
  41. package/dist/chunks/{disable-4G6VDSP6.js → disable-XZXZTU2J.js} +6 -6
  42. package/dist/chunks/{discard-YITCVW62.js → discard-MVYVGMNG.js} +6 -6
  43. package/dist/chunks/{edit-V6POIDWB.js → edit-J67G7FQQ.js} +8 -8
  44. package/dist/chunks/{enable-DERSRNTA.js → enable-NZLPSH32.js} +6 -6
  45. package/dist/chunks/{export-IL6JQJLU.js → export-ONEPEKIE.js} +6 -6
  46. package/dist/chunks/{list-DF2HAW5Z.js → list-LHL5Z2LJ.js} +7 -7
  47. package/dist/chunks/{list-AJC35GUV.js → list-XTMDLJ6T.js} +8 -8
  48. package/dist/chunks/{publish-VOYJPL4H.js → publish-WDOMVWUC.js} +6 -6
  49. package/dist/chunks/{query-PVGUYY7Z.js → query-A2TQSSDJ.js} +9 -9
  50. package/dist/chunks/{reorder-LDM62RRJ.js → reorder-4XDBBJNP.js} +6 -6
  51. package/dist/chunks/{restore-NNPPDIBK.js → restore-GDXNZJ3X.js} +6 -6
  52. package/dist/chunks/{routes-ZFV6XUH4.js → routes-HQB42MQG.js} +3 -3
  53. package/dist/chunks/{schema-AWECHBQI.js → schema-BSCWPTKY.js} +10 -10
  54. package/dist/chunks/{types-3D4XZZZC.js → types-A4EAQ6F6.js} +4 -4
  55. package/dist/commands/build/index.js +15 -15
  56. package/dist/commands/deploy/index.js +25 -25
  57. package/dist/commands/dev/index.js +14 -14
  58. package/dist/commands/env/index.js +19 -19
  59. package/dist/commands/link/index.js +19 -19
  60. package/dist/commands/list/index.js +10 -10
  61. package/dist/commands-bulk.js +3010 -1031
  62. package/dist/index.js +32 -22
  63. package/dist/version.mjs +1 -1
  64. package/package.json +18 -18
@@ -9,7 +9,7 @@ import {
9
9
  limitOption,
10
10
  nextOption,
11
11
  packageName
12
- } from "./chunk-ZP6DWI4H.js";
12
+ } from "./chunk-A4NVECX5.js";
13
13
 
14
14
  // src/commands/activity/command.ts
15
15
  var typesSubcommand = {
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  require_string_width
9
- } from "./chunk-ZP6DWI4H.js";
9
+ } from "./chunk-A4NVECX5.js";
10
10
  import {
11
11
  __commonJS,
12
12
  __require,
@@ -6,13 +6,13 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  validateAllProjectMutualExclusivity
9
- } from "./chunk-BLNY4RPZ.js";
9
+ } from "./chunk-HTOH3MSD.js";
10
10
  import {
11
11
  isAPIError
12
- } from "./chunk-ZP6DWI4H.js";
12
+ } from "./chunk-A4NVECX5.js";
13
13
  import {
14
14
  output_manager_default
15
- } from "./chunk-FDJURQMQ.js";
15
+ } from "./chunk-ZQKJVHXY.js";
16
16
 
17
17
  // src/commands/metrics/output.ts
18
18
  function getRollupColumnName(measure, aggregation) {
@@ -6,10 +6,10 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  getLocalPathConfig
9
- } from "./chunk-LUR25PAI.js";
9
+ } from "./chunk-6TZS66I4.js";
10
10
  import {
11
11
  table
12
- } from "./chunk-H3CMW7KQ.js";
12
+ } from "./chunk-4YZKA4FN.js";
13
13
  import {
14
14
  VERCEL_DIR_PROJECT,
15
15
  VERCEL_DIR_README,
@@ -36,16 +36,16 @@ import {
36
36
  selectAndParseRemoteUrl,
37
37
  selectOrg,
38
38
  writeServicesConfig
39
- } from "./chunk-OZNAXJDJ.js";
39
+ } from "./chunk-7UXVJVY7.js";
40
40
  import {
41
41
  CantParseJSONFile,
42
42
  ProjectNotFound,
43
43
  isAPIError,
44
44
  printError
45
- } from "./chunk-ZP6DWI4H.js";
45
+ } from "./chunk-A4NVECX5.js";
46
46
  import {
47
47
  output_manager_default
48
- } from "./chunk-FDJURQMQ.js";
48
+ } from "./chunk-ZQKJVHXY.js";
49
49
  import {
50
50
  require_source
51
51
  } from "./chunk-S7KYDPEM.js";
@@ -7,13 +7,13 @@ const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  noBorderChars,
9
9
  require_cli_table3
10
- } from "./chunk-H3CMW7KQ.js";
10
+ } from "./chunk-4YZKA4FN.js";
11
11
  import {
12
12
  require_dist
13
- } from "./chunk-MXPZBZ2X.js";
13
+ } from "./chunk-TUP5ROJJ.js";
14
14
  import {
15
15
  globalCommandOptions
16
- } from "./chunk-ZP6DWI4H.js";
16
+ } from "./chunk-A4NVECX5.js";
17
17
  import {
18
18
  require_source
19
19
  } from "./chunk-S7KYDPEM.js";
@@ -6,12 +6,12 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  VERCEL_DIR
9
- } from "./chunk-OZNAXJDJ.js";
9
+ } from "./chunk-7UXVJVY7.js";
10
10
  import {
11
11
  ConflictingConfigFiles,
12
12
  InvalidLocalConfig,
13
13
  getArgs
14
- } from "./chunk-ZP6DWI4H.js";
14
+ } from "./chunk-A4NVECX5.js";
15
15
 
16
16
  // src/util/config/local-path.ts
17
17
  import path from "path";
@@ -7,7 +7,7 @@ const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  TelemetryClient,
9
9
  require_dist as require_dist2
10
- } from "./chunk-MXPZBZ2X.js";
10
+ } from "./chunk-TUP5ROJJ.js";
11
11
  import {
12
12
  require_ms,
13
13
  stamp_default
@@ -35,7 +35,7 @@ import {
35
35
  require_string_width,
36
36
  require_strip_ansi,
37
37
  yesOption
38
- } from "./chunk-ZP6DWI4H.js";
38
+ } from "./chunk-A4NVECX5.js";
39
39
  import {
40
40
  emoji,
41
41
  eraseLines,
@@ -46,7 +46,7 @@ import {
46
46
  require_cli_spinners,
47
47
  require_dist,
48
48
  require_escape_string_regexp
49
- } from "./chunk-FDJURQMQ.js";
49
+ } from "./chunk-ZQKJVHXY.js";
50
50
  import {
51
51
  require_ansi_styles,
52
52
  require_source,
@@ -40477,7 +40477,7 @@ var require_package = __commonJS({
40477
40477
  "../client/package.json"(exports, module) {
40478
40478
  module.exports = {
40479
40479
  name: "@vercel/client",
40480
- version: "17.2.67",
40480
+ version: "17.2.68",
40481
40481
  main: "dist/index.js",
40482
40482
  typings: "dist/index.d.ts",
40483
40483
  homepage: "https://vercel.com",
@@ -55720,6 +55720,23 @@ function outputAgentError(client, payload, exitCode = 1) {
55720
55720
  `);
55721
55721
  process.exit(exitCode);
55722
55722
  }
55723
+ function buildNextStepsForEdgeConfig(client) {
55724
+ return [
55725
+ {
55726
+ command: buildCommandWithGlobalFlags(client.argv, "edge-config list"),
55727
+ when: "List Edge Config stores in the current team scope"
55728
+ },
55729
+ {
55730
+ command: buildCommandWithGlobalFlags(client.argv, "teams switch"),
55731
+ when: "Switch to the team that owns the Edge Config"
55732
+ },
55733
+ {
55734
+ command: buildCommandWithGlobalFlags(client.argv, "whoami"),
55735
+ when: "Verify the current team or user scope"
55736
+ }
55737
+ ];
55738
+ }
55739
+ var EDGE_CONFIG_NON_INTERACTIVE_HINT = "Edge Config commands use your current team scope. Pass --scope or run `vercel teams switch` if the store is missing.";
55723
55740
  function buildNextStepsForProjectSubcommands(client, variant) {
55724
55741
  const byName = variant === "access-groups" ? {
55725
55742
  template: "project access-groups <name>",
@@ -55733,6 +55750,9 @@ function buildNextStepsForProjectSubcommands(client, variant) {
55733
55750
  } : variant === "web-analytics" ? {
55734
55751
  template: "project web-analytics <name>",
55735
55752
  when: "Enable Web Analytics by project name (replace <name>)"
55753
+ } : variant === "checks" ? {
55754
+ template: "project checks add <name>",
55755
+ when: "Create a deployment check by project name (replace <name>)"
55736
55756
  } : {
55737
55757
  template: "project members <name>",
55738
55758
  when: "List members by project name (replace <name>)"
@@ -55753,12 +55773,24 @@ function buildNextStepsForProjectSubcommands(client, variant) {
55753
55773
  ];
55754
55774
  }
55755
55775
  var PROJECT_SUBCOMMAND_ERROR_HINT = "If you use --cwd, ensure that folder is linked to the right project, or pass an explicit project name. Use --scope when the project belongs to another team.";
55776
+ function resolveNonInteractiveDefaults(client, variant) {
55777
+ if (variant === "edge-config") {
55778
+ return {
55779
+ next: buildNextStepsForEdgeConfig(client),
55780
+ hint: EDGE_CONFIG_NON_INTERACTIVE_HINT
55781
+ };
55782
+ }
55783
+ return {
55784
+ next: buildNextStepsForProjectSubcommands(client, variant),
55785
+ hint: PROJECT_SUBCOMMAND_ERROR_HINT
55786
+ };
55787
+ }
55756
55788
  function writeAgentErrorPayloadAndExit(client, payload, exitCode, variant) {
55757
- const next = buildNextStepsForProjectSubcommands(client, variant);
55789
+ const defaults = resolveNonInteractiveDefaults(client, variant);
55758
55790
  const out = {
55759
55791
  ...payload,
55760
- next: payload.next ?? next,
55761
- hint: payload.hint ?? PROJECT_SUBCOMMAND_ERROR_HINT
55792
+ next: payload.next ?? defaults.next,
55793
+ hint: payload.hint ?? defaults.hint
55762
55794
  };
55763
55795
  client.stdout.write(`${JSON.stringify(out, null, 2)}
55764
55796
  `);
@@ -55779,12 +55811,29 @@ function isLinkRequiredLike(err) {
55779
55811
  function normalizeApiErrorText(message) {
55780
55812
  return message.replace(/\s*\(\d{3}\)\s*$/, "").trim();
55781
55813
  }
55782
- function exitWithNonInteractiveError(client, err, exitCode = 1, options = { variant: "members" }) {
55814
+ function exitWithNonInteractiveError(client, err, exitCode = 1, options = {
55815
+ variant: "members"
55816
+ }) {
55783
55817
  if (!shouldEmitNonInteractiveCommandError(client)) {
55784
55818
  return;
55785
55819
  }
55786
55820
  const { variant } = options;
55787
55821
  if (isLinkRequiredLike(err)) {
55822
+ if (variant === "edge-config") {
55823
+ writeAgentErrorPayloadAndExit(
55824
+ client,
55825
+ {
55826
+ status: "error",
55827
+ reason: "link_required",
55828
+ message: err instanceof Error ? err.message : String(err),
55829
+ next: buildNextStepsForEdgeConfig(client),
55830
+ hint: EDGE_CONFIG_NON_INTERACTIVE_HINT
55831
+ },
55832
+ exitCode,
55833
+ "edge-config"
55834
+ );
55835
+ return;
55836
+ }
55788
55837
  writeAgentErrorPayloadAndExit(
55789
55838
  client,
55790
55839
  {
@@ -55813,7 +55862,7 @@ function exitWithNonInteractiveError(client, err, exitCode = 1, options = { vari
55813
55862
  if (isAPIError(err)) {
55814
55863
  const rawMessage = err.serverMessage || err.message;
55815
55864
  const message = normalizeApiErrorText(rawMessage);
55816
- const reason = err.status === 403 ? "forbidden" : err.status === 401 ? "not_authorized" : err.status === 404 ? "project_not_found" : err.status === 429 ? "rate_limited" : "api_error";
55865
+ const reason = err.status === 403 ? "forbidden" : err.status === 401 ? "not_authorized" : err.status === 404 ? variant === "edge-config" ? "not_found" : "project_not_found" : err.status === 429 ? "rate_limited" : "api_error";
55817
55866
  writeAgentErrorPayloadAndExit(
55818
55867
  client,
55819
55868
  {
@@ -7,7 +7,7 @@ const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  output_manager_default,
9
9
  require_dist
10
- } from "./chunk-FDJURQMQ.js";
10
+ } from "./chunk-ZQKJVHXY.js";
11
11
  import {
12
12
  require_source
13
13
  } from "./chunk-S7KYDPEM.js";
@@ -7,7 +7,7 @@ const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  packageName,
9
9
  yesOption
10
- } from "./chunk-ZP6DWI4H.js";
10
+ } from "./chunk-A4NVECX5.js";
11
11
 
12
12
  // src/commands/routes/command.ts
13
13
  var listSubcommand = {
@@ -8,7 +8,7 @@ import {
8
8
  confirmOption,
9
9
  packageName,
10
10
  yesOption
11
- } from "./chunk-ZP6DWI4H.js";
11
+ } from "./chunk-A4NVECX5.js";
12
12
 
13
13
  // src/commands/dev/command.ts
14
14
  var devCommand = {
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  require_dist
9
- } from "./chunk-FDJURQMQ.js";
9
+ } from "./chunk-ZQKJVHXY.js";
10
10
  import {
11
11
  __commonJS,
12
12
  __require,
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-IB5L4LKZ.js";
10
10
  import {
11
11
  require_execa
12
- } from "./chunk-GSSP5PJ7.js";
12
+ } from "./chunk-URLOPZNH.js";
13
13
  import {
14
14
  VERCEL_DIR,
15
15
  readJSONFile,
@@ -18,16 +18,16 @@ import {
18
18
  require_lib,
19
19
  require_minimatch,
20
20
  require_pluralize
21
- } from "./chunk-OZNAXJDJ.js";
21
+ } from "./chunk-7UXVJVY7.js";
22
22
  import {
23
23
  CantParseJSONFile,
24
24
  cmd,
25
25
  code
26
- } from "./chunk-ZP6DWI4H.js";
26
+ } from "./chunk-A4NVECX5.js";
27
27
  import {
28
28
  output_manager_default,
29
29
  require_dist
30
- } from "./chunk-FDJURQMQ.js";
30
+ } from "./chunk-ZQKJVHXY.js";
31
31
  import {
32
32
  __commonJS,
33
33
  __export,
@@ -6,28 +6,28 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  getUpdateCommand
9
- } from "./chunk-7A5X3JWQ.js";
9
+ } from "./chunk-JZW2NDIU.js";
10
10
  import {
11
11
  login
12
- } from "./chunk-AHIRHRNN.js";
12
+ } from "./chunk-YNTDMBOE.js";
13
13
  import {
14
14
  loginCommand
15
- } from "./chunk-NFRKTXWB.js";
15
+ } from "./chunk-JLG2G4QX.js";
16
16
  import {
17
17
  help
18
- } from "./chunk-NZ43E7P3.js";
18
+ } from "./chunk-5Y7GSP7F.js";
19
19
  import {
20
20
  TelemetryClient
21
- } from "./chunk-MXPZBZ2X.js";
21
+ } from "./chunk-TUP5ROJJ.js";
22
22
  import {
23
23
  getFlagsSpecification,
24
24
  parseArguments,
25
25
  printError,
26
26
  require_strip_ansi
27
- } from "./chunk-ZP6DWI4H.js";
27
+ } from "./chunk-A4NVECX5.js";
28
28
  import {
29
29
  output_manager_default
30
- } from "./chunk-FDJURQMQ.js";
30
+ } from "./chunk-ZQKJVHXY.js";
31
31
  import {
32
32
  require_source
33
33
  } from "./chunk-S7KYDPEM.js";
@@ -7,10 +7,10 @@ const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  formatCondition,
9
9
  formatTransform
10
- } from "./chunk-2WMYST74.js";
10
+ } from "./chunk-V34CVZ57.js";
11
11
  import {
12
12
  output_manager_default
13
- } from "./chunk-FDJURQMQ.js";
13
+ } from "./chunk-ZQKJVHXY.js";
14
14
  import {
15
15
  require_source
16
16
  } from "./chunk-S7KYDPEM.js";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-CO5D46AG.js";
10
10
  import {
11
11
  output_manager_default
12
- } from "./chunk-FDJURQMQ.js";
12
+ } from "./chunk-ZQKJVHXY.js";
13
13
  import {
14
14
  __toESM
15
15
  } from "./chunk-TZ2YI2VH.js";
@@ -11,13 +11,13 @@ import {
11
11
  getTeamById,
12
12
  getUser,
13
13
  getVercelDirectory
14
- } from "./chunk-OZNAXJDJ.js";
14
+ } from "./chunk-7UXVJVY7.js";
15
15
  import {
16
16
  TeamDeleted
17
- } from "./chunk-ZP6DWI4H.js";
17
+ } from "./chunk-A4NVECX5.js";
18
18
  import {
19
19
  output_manager_default
20
- } from "./chunk-FDJURQMQ.js";
20
+ } from "./chunk-ZQKJVHXY.js";
21
21
 
22
22
  // src/util/get-scope.ts
23
23
  import { relative } from "path";
@@ -8,10 +8,10 @@ import {
8
8
  VERCEL_DIR,
9
9
  VERCEL_DIR_PROJECT,
10
10
  require_lib
11
- } from "./chunk-OZNAXJDJ.js";
11
+ } from "./chunk-7UXVJVY7.js";
12
12
  import {
13
13
  require_dist
14
- } from "./chunk-FDJURQMQ.js";
14
+ } from "./chunk-ZQKJVHXY.js";
15
15
  import {
16
16
  __toESM
17
17
  } from "./chunk-TZ2YI2VH.js";