vercel 57.0.0 → 58.0.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 (71) hide show
  1. package/dist/chunks/{add-YRZTDNXX.js → add-7PPD4ZUJ.js} +2 -2
  2. package/dist/chunks/{add-7M577U56.js → add-E4KH6P4A.js} +3 -3
  3. package/dist/chunks/{chunk-3242RXCN.js → chunk-AZTV7WPZ.js} +1 -1
  4. package/dist/chunks/{chunk-4PGF367U.js → chunk-B2MTCHPO.js} +19 -1
  5. package/dist/chunks/{chunk-RYO6FJFB.js → chunk-BYQQLGCT.js} +1 -1
  6. package/dist/chunks/{chunk-555WJSO5.js → chunk-DGFASMSE.js} +1 -1
  7. package/dist/chunks/{chunk-NH43BFJ3.js → chunk-EA22NMFU.js} +1 -1
  8. package/dist/chunks/{chunk-RAFH25WW.js → chunk-FB4UFWEC.js} +1 -1
  9. package/dist/chunks/{chunk-T4NODP6Y.js → chunk-FYR7WEUJ.js} +1 -1
  10. package/dist/chunks/{chunk-NRNMT43R.js → chunk-KGVT2RSG.js} +1 -1
  11. package/dist/chunks/{chunk-2EDWKVNP.js → chunk-L4WYMJB3.js} +4 -4
  12. package/dist/chunks/{chunk-F5PQWDOC.js → chunk-MDQJLTGN.js} +1 -1
  13. package/dist/chunks/{chunk-LMHT3QR3.js → chunk-OQGN4TEC.js} +1 -1
  14. package/dist/chunks/{chunk-MAHINYBW.js → chunk-R54DAHCL.js} +1 -1
  15. package/dist/chunks/{chunk-F7X55TOY.js → chunk-RSCSALZH.js} +3 -3
  16. package/dist/chunks/{chunk-MIFDRYTN.js → chunk-TEWJ7TIW.js} +1 -1
  17. package/dist/chunks/{chunk-TBR2Q37Y.js → chunk-TPX7RZBM.js} +243 -44
  18. package/dist/chunks/{chunk-GP5VCTEU.js → chunk-VUESC3YO.js} +1 -1
  19. package/dist/chunks/{chunk-A2TYQBX2.js → chunk-WANVKOVB.js} +24 -4
  20. package/dist/chunks/{chunk-HD7B425F.js → chunk-WDE2EDYX.js} +2 -2
  21. package/dist/chunks/{chunk-YOZCJHLZ.js → chunk-YZMZCQP3.js} +4 -4
  22. package/dist/chunks/{chunk-IOAZNR6Z.js → chunk-ZMVFTCQF.js} +1 -1
  23. package/dist/chunks/{compile-vercel-config-3OHO3TJA.js → compile-vercel-config-G2IVBXEI.js} +1 -1
  24. package/dist/chunks/config-validator.mjs +1 -1
  25. package/dist/chunks/{delete-VOSJLNEA.js → delete-2EIVGM6P.js} +2 -2
  26. package/dist/chunks/{delete-3DZOCWCC.js → delete-E6ZQNE5X.js} +2 -2
  27. package/dist/chunks/{disable-LQDEVRQF.js → disable-M3Q6BBB7.js} +2 -2
  28. package/dist/chunks/{discard-RGV4JKXQ.js → discard-3R6ETBPS.js} +2 -2
  29. package/dist/chunks/{edit-SFIEOQ24.js → edit-7JUDPVXD.js} +3 -3
  30. package/dist/chunks/{edit-UPZPI54L.js → edit-ICVMGRRU.js} +2 -2
  31. package/dist/chunks/{enable-6UVH35WC.js → enable-HLTA35QL.js} +2 -2
  32. package/dist/chunks/{export-6CEG3CK7.js → export-E6XZUFW3.js} +2 -2
  33. package/dist/chunks/{image-CQRCD2OE.js → image-SIRPPQZT.js} +3 -3
  34. package/dist/chunks/{inspect-UM3LDRPV.js → inspect-4FYBOOM5.js} +2 -2
  35. package/dist/chunks/{inspect-K5ZMQG7X.js → inspect-65YX7L3O.js} +2 -2
  36. package/dist/chunks/{inspect-EXQBIAFF.js → inspect-6TQWDIBG.js} +2 -2
  37. package/dist/chunks/{inspect-ZFRY3X3H.js → inspect-NFOURIGN.js} +2 -2
  38. package/dist/chunks/{inspect-4ZAH3RFT.js → inspect-OEWWGAHZ.js} +3 -3
  39. package/dist/chunks/{list-FJCBOCCA.js → list-27DCGMBI.js} +1 -1
  40. package/dist/chunks/{list-4DRVM7Q4.js → list-APFMKZJO.js} +2 -2
  41. package/dist/chunks/{list-KCUHD4OA.js → list-XQCZVLES.js} +3 -3
  42. package/dist/chunks/{login-DFGYNU3K.js → login-FMU4CQOV.js} +2 -2
  43. package/dist/chunks/{ls-CG6A7UXF.js → ls-24BRCAZR.js} +2 -2
  44. package/dist/chunks/{ls-RHEQ6YQB.js → ls-3L6EN4YU.js} +3 -3
  45. package/dist/chunks/{ls-4QHHVXXD.js → ls-BFACWH6C.js} +2 -2
  46. package/dist/chunks/{ls-34NCZKBE.js → ls-T5RGDBCV.js} +2 -2
  47. package/dist/chunks/{open-E3XADEMX.js → open-AG3VYJZM.js} +2 -2
  48. package/dist/chunks/{publish-Z3AQRUCS.js → publish-5OVCPS4J.js} +2 -2
  49. package/dist/chunks/{query-3EV66DO3.js → query-QS4VKBXJ.js} +1 -1
  50. package/dist/chunks/{reorder-VA5E5ZJT.js → reorder-B5V2P7YM.js} +2 -2
  51. package/dist/chunks/{reply-SNSCNKAW.js → reply-JBLWE6RS.js} +2 -2
  52. package/dist/chunks/{resolve-6ZX4RTXX.js → resolve-2I6XH2G3.js} +2 -2
  53. package/dist/chunks/{restore-NEHI5B5P.js → restore-O63FZXCL.js} +2 -2
  54. package/dist/chunks/{rm-FR6KE744.js → rm-HUED5R3Q.js} +3 -3
  55. package/dist/chunks/{rm-E5ZVLAKO.js → rm-N7W3QYWZ.js} +2 -2
  56. package/dist/chunks/{rm-22B22E47.js → rm-P3NJSCMY.js} +2 -2
  57. package/dist/chunks/{rule-inspect-DMP2CKJQ.js → rule-inspect-M3QUSPU2.js} +3 -3
  58. package/dist/chunks/{rules-EYGXEI2Z.js → rules-NSSWPJ2B.js} +6 -6
  59. package/dist/chunks/{schema-2IIWOBSQ.js → schema-G2PAXPVA.js} +1 -1
  60. package/dist/chunks/{tags-ZDVYRHAY.js → tags-JFMO63D4.js} +2 -2
  61. package/dist/chunks/{update-QH4DQMZV.js → update-VJCKD6YG.js} +3 -3
  62. package/dist/commands/build/index.js +7 -7
  63. package/dist/commands/deploy/index.js +8 -8
  64. package/dist/commands/dev/index.js +19 -6
  65. package/dist/commands/env/index.js +4 -4
  66. package/dist/commands/link/index.js +5 -5
  67. package/dist/commands/list/index.js +2 -2
  68. package/dist/commands-bulk.js +170 -67
  69. package/dist/index.js +6 -6
  70. package/dist/version.mjs +1 -1
  71. package/package.json +35 -35
@@ -9,7 +9,7 @@ import {
9
9
  handleVcrApiError,
10
10
  resolveVcrScope,
11
11
  validateVcrJsonOutput
12
- } from "./chunk-GP5VCTEU.js";
12
+ } from "./chunk-VUESC3YO.js";
13
13
  import {
14
14
  outputError
15
15
  } from "./chunk-BUZRVER7.js";
@@ -19,7 +19,7 @@ import {
19
19
  } from "./chunk-3VS4DTAU.js";
20
20
  import "./chunk-GIL3VAUR.js";
21
21
  import "./chunk-FYQPTH5C.js";
22
- import "./chunk-TBR2Q37Y.js";
22
+ import "./chunk-TPX7RZBM.js";
23
23
  import "./chunk-ECCWJHC6.js";
24
24
  import {
25
25
  AGENT_REASON,
@@ -9,8 +9,8 @@ import {
9
9
  handleRulesApiError,
10
10
  parseRulesFlagsAndScope,
11
11
  rulesCollectionPath
12
- } from "./chunk-MAHINYBW.js";
13
- import "./chunk-T4NODP6Y.js";
12
+ } from "./chunk-R54DAHCL.js";
13
+ import "./chunk-FYR7WEUJ.js";
14
14
  import "./chunk-BUZRVER7.js";
15
15
  import {
16
16
  validateJsonOutput
@@ -18,7 +18,7 @@ import {
18
18
  import {
19
19
  rulesAddSubcommand
20
20
  } from "./chunk-KCF6S3XF.js";
21
- import "./chunk-TBR2Q37Y.js";
21
+ import "./chunk-TPX7RZBM.js";
22
22
  import "./chunk-ECCWJHC6.js";
23
23
  import {
24
24
  AGENT_REASON,
@@ -8,7 +8,7 @@ import {
8
8
  VERCEL_DIR,
9
9
  VERCEL_DIR_PROJECT,
10
10
  require_lib
11
- } from "./chunk-TBR2Q37Y.js";
11
+ } from "./chunk-TPX7RZBM.js";
12
12
  import {
13
13
  require_dist
14
14
  } from "./chunk-OX7KI3LF.js";
@@ -15,6 +15,7 @@ import {
15
15
  esm_default3,
16
16
  isBackspaceKey,
17
17
  isEnterKey,
18
+ isOAuthError,
18
19
  makeTheme,
19
20
  onExit,
20
21
  performDeviceCodeFlow,
@@ -30,7 +31,7 @@ import {
30
31
  usePrefix,
31
32
  useState,
32
33
  writeToConfigFile
33
- } from "./chunk-TBR2Q37Y.js";
34
+ } from "./chunk-TPX7RZBM.js";
34
35
  import {
35
36
  parseArguments,
36
37
  require_strip_ansi
@@ -1665,6 +1666,23 @@ ${error.stack}`);
1665
1666
  refresh_token: authConfig.refreshToken
1666
1667
  });
1667
1668
  const [tokensError, tokens] = await processTokenResponse(tokenResponse);
1669
+ if (isOAuthError(tokensError) && tokensError.code === "invalid_grant" && !authConfig.tokenSource && this.stdin.isTTY && !this.nonInteractive) {
1670
+ output_manager_default.debug(
1671
+ `Stored session refresh failed: ${tokensError.cause.message}`
1672
+ );
1673
+ output_manager_default.log("Couldn't refresh the saved login. Starting a new login.");
1674
+ const recoveredTokens = await performDeviceCodeFlow(this);
1675
+ if (recoveredTokens) {
1676
+ this.updateAuthConfig({
1677
+ token: recoveredTokens.access_token,
1678
+ userId: void 0,
1679
+ expiresAt: Math.floor(Date.now() / 1e3) + recoveredTokens.expires_in,
1680
+ refreshToken: recoveredTokens.refresh_token
1681
+ });
1682
+ this.persistAuthConfig();
1683
+ return;
1684
+ }
1685
+ }
1668
1686
  if (tokensError) {
1669
1687
  output_manager_default.debug("Error refreshing token, emptying auth config.");
1670
1688
  this.emptyAuthConfig();
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  require_lib
9
- } from "./chunk-TBR2Q37Y.js";
9
+ } from "./chunk-TPX7RZBM.js";
10
10
  import {
11
11
  isNativeBinaryInstall
12
12
  } from "./chunk-ECCWJHC6.js";
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  resolveProjectContext
9
- } from "./chunk-TBR2Q37Y.js";
9
+ } from "./chunk-TPX7RZBM.js";
10
10
  import {
11
11
  AGENT_REASON,
12
12
  AGENT_STATUS,
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  getEnvTargetPlaceholder
9
- } from "./chunk-TBR2Q37Y.js";
9
+ } from "./chunk-TPX7RZBM.js";
10
10
  import {
11
11
  packageName,
12
12
  projectOption,
@@ -19,7 +19,7 @@ import {
19
19
  require_lib,
20
20
  require_minimatch,
21
21
  require_pluralize
22
- } from "./chunk-TBR2Q37Y.js";
22
+ } from "./chunk-TPX7RZBM.js";
23
23
  import {
24
24
  CantParseJSONFile,
25
25
  cmd,
@@ -11,7 +11,7 @@ import {
11
11
  getLinkedProject,
12
12
  getProjectByNameOrId,
13
13
  getScope
14
- } from "./chunk-TBR2Q37Y.js";
14
+ } from "./chunk-TPX7RZBM.js";
15
15
  import {
16
16
  AGENT_REASON,
17
17
  buildCommandWithGlobalFlags,
@@ -46,7 +46,7 @@ import {
46
46
  selectAndParseRemoteUrl,
47
47
  selectOrg,
48
48
  writeServicesConfig
49
- } from "./chunk-TBR2Q37Y.js";
49
+ } from "./chunk-TPX7RZBM.js";
50
50
  import {
51
51
  printError
52
52
  } from "./chunk-SZXT3PDQ.js";
@@ -7,15 +7,15 @@ const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  getUpdateCommandInfo,
9
9
  isGlobal
10
- } from "./chunk-RYO6FJFB.js";
10
+ } from "./chunk-BYQQLGCT.js";
11
11
  import {
12
12
  progress
13
- } from "./chunk-4PGF367U.js";
13
+ } from "./chunk-B2MTCHPO.js";
14
14
  import {
15
15
  apiCommand,
16
16
  listSubcommand3 as listSubcommand,
17
17
  loginCommand
18
- } from "./chunk-A2TYQBX2.js";
18
+ } from "./chunk-WANVKOVB.js";
19
19
  import {
20
20
  require_semver
21
21
  } from "./chunk-IB5L4LKZ.js";
@@ -26,7 +26,7 @@ import {
26
26
  getGlobalPathConfig,
27
27
  login,
28
28
  writeToConfigFile
29
- } from "./chunk-TBR2Q37Y.js";
29
+ } from "./chunk-TPX7RZBM.js";
30
30
  import {
31
31
  TelemetryClient,
32
32
  isNativeBinaryInstall
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  ALIGNED_LABEL_WIDTH
9
- } from "./chunk-TBR2Q37Y.js";
9
+ } from "./chunk-TPX7RZBM.js";
10
10
  import {
11
11
  require_ms
12
12
  } from "./chunk-GGP5R3FU.js";
@@ -11,7 +11,7 @@ import {
11
11
  getLinkedProject,
12
12
  getProjectByNameOrId,
13
13
  getScope
14
- } from "./chunk-TBR2Q37Y.js";
14
+ } from "./chunk-TPX7RZBM.js";
15
15
  import {
16
16
  printError
17
17
  } from "./chunk-SZXT3PDQ.js";
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  resolveAlertsScope
9
- } from "./chunk-T4NODP6Y.js";
9
+ } from "./chunk-FYR7WEUJ.js";
10
10
  import {
11
11
  handleValidationError,
12
12
  outputError,
@@ -13,13 +13,13 @@ import {
13
13
  progress,
14
14
  require_dist as require_dist2,
15
15
  sleep
16
- } from "./chunk-4PGF367U.js";
16
+ } from "./chunk-B2MTCHPO.js";
17
17
  import {
18
18
  suggestNextCommands
19
19
  } from "./chunk-XBN2O34P.js";
20
20
  import {
21
21
  CommandTimeout
22
- } from "./chunk-A2TYQBX2.js";
22
+ } from "./chunk-WANVKOVB.js";
23
23
  import {
24
24
  showPluginTipIfNeeded
25
25
  } from "./chunk-NJUPUGOE.js";
@@ -36,7 +36,7 @@ import {
36
36
  require_dist as require_dist3,
37
37
  require_pluralize,
38
38
  ua_default
39
- } from "./chunk-TBR2Q37Y.js";
39
+ } from "./chunk-TPX7RZBM.js";
40
40
  import {
41
41
  require_strip_ansi,
42
42
  responseError
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  STANDARD_ENVIRONMENTS
9
- } from "./chunk-TBR2Q37Y.js";
9
+ } from "./chunk-TPX7RZBM.js";
10
10
  import {
11
11
  getCommandName,
12
12
  require_lib