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.
- package/dist/chunks/{add-YRZTDNXX.js → add-7PPD4ZUJ.js} +2 -2
- package/dist/chunks/{add-7M577U56.js → add-E4KH6P4A.js} +3 -3
- package/dist/chunks/{chunk-3242RXCN.js → chunk-AZTV7WPZ.js} +1 -1
- package/dist/chunks/{chunk-4PGF367U.js → chunk-B2MTCHPO.js} +19 -1
- package/dist/chunks/{chunk-RYO6FJFB.js → chunk-BYQQLGCT.js} +1 -1
- package/dist/chunks/{chunk-555WJSO5.js → chunk-DGFASMSE.js} +1 -1
- package/dist/chunks/{chunk-NH43BFJ3.js → chunk-EA22NMFU.js} +1 -1
- package/dist/chunks/{chunk-RAFH25WW.js → chunk-FB4UFWEC.js} +1 -1
- package/dist/chunks/{chunk-T4NODP6Y.js → chunk-FYR7WEUJ.js} +1 -1
- package/dist/chunks/{chunk-NRNMT43R.js → chunk-KGVT2RSG.js} +1 -1
- package/dist/chunks/{chunk-2EDWKVNP.js → chunk-L4WYMJB3.js} +4 -4
- package/dist/chunks/{chunk-F5PQWDOC.js → chunk-MDQJLTGN.js} +1 -1
- package/dist/chunks/{chunk-LMHT3QR3.js → chunk-OQGN4TEC.js} +1 -1
- package/dist/chunks/{chunk-MAHINYBW.js → chunk-R54DAHCL.js} +1 -1
- package/dist/chunks/{chunk-F7X55TOY.js → chunk-RSCSALZH.js} +3 -3
- package/dist/chunks/{chunk-MIFDRYTN.js → chunk-TEWJ7TIW.js} +1 -1
- package/dist/chunks/{chunk-TBR2Q37Y.js → chunk-TPX7RZBM.js} +243 -44
- package/dist/chunks/{chunk-GP5VCTEU.js → chunk-VUESC3YO.js} +1 -1
- package/dist/chunks/{chunk-A2TYQBX2.js → chunk-WANVKOVB.js} +24 -4
- package/dist/chunks/{chunk-HD7B425F.js → chunk-WDE2EDYX.js} +2 -2
- package/dist/chunks/{chunk-YOZCJHLZ.js → chunk-YZMZCQP3.js} +4 -4
- package/dist/chunks/{chunk-IOAZNR6Z.js → chunk-ZMVFTCQF.js} +1 -1
- package/dist/chunks/{compile-vercel-config-3OHO3TJA.js → compile-vercel-config-G2IVBXEI.js} +1 -1
- package/dist/chunks/config-validator.mjs +1 -1
- package/dist/chunks/{delete-VOSJLNEA.js → delete-2EIVGM6P.js} +2 -2
- package/dist/chunks/{delete-3DZOCWCC.js → delete-E6ZQNE5X.js} +2 -2
- package/dist/chunks/{disable-LQDEVRQF.js → disable-M3Q6BBB7.js} +2 -2
- package/dist/chunks/{discard-RGV4JKXQ.js → discard-3R6ETBPS.js} +2 -2
- package/dist/chunks/{edit-SFIEOQ24.js → edit-7JUDPVXD.js} +3 -3
- package/dist/chunks/{edit-UPZPI54L.js → edit-ICVMGRRU.js} +2 -2
- package/dist/chunks/{enable-6UVH35WC.js → enable-HLTA35QL.js} +2 -2
- package/dist/chunks/{export-6CEG3CK7.js → export-E6XZUFW3.js} +2 -2
- package/dist/chunks/{image-CQRCD2OE.js → image-SIRPPQZT.js} +3 -3
- package/dist/chunks/{inspect-UM3LDRPV.js → inspect-4FYBOOM5.js} +2 -2
- package/dist/chunks/{inspect-K5ZMQG7X.js → inspect-65YX7L3O.js} +2 -2
- package/dist/chunks/{inspect-EXQBIAFF.js → inspect-6TQWDIBG.js} +2 -2
- package/dist/chunks/{inspect-ZFRY3X3H.js → inspect-NFOURIGN.js} +2 -2
- package/dist/chunks/{inspect-4ZAH3RFT.js → inspect-OEWWGAHZ.js} +3 -3
- package/dist/chunks/{list-FJCBOCCA.js → list-27DCGMBI.js} +1 -1
- package/dist/chunks/{list-4DRVM7Q4.js → list-APFMKZJO.js} +2 -2
- package/dist/chunks/{list-KCUHD4OA.js → list-XQCZVLES.js} +3 -3
- package/dist/chunks/{login-DFGYNU3K.js → login-FMU4CQOV.js} +2 -2
- package/dist/chunks/{ls-CG6A7UXF.js → ls-24BRCAZR.js} +2 -2
- package/dist/chunks/{ls-RHEQ6YQB.js → ls-3L6EN4YU.js} +3 -3
- package/dist/chunks/{ls-4QHHVXXD.js → ls-BFACWH6C.js} +2 -2
- package/dist/chunks/{ls-34NCZKBE.js → ls-T5RGDBCV.js} +2 -2
- package/dist/chunks/{open-E3XADEMX.js → open-AG3VYJZM.js} +2 -2
- package/dist/chunks/{publish-Z3AQRUCS.js → publish-5OVCPS4J.js} +2 -2
- package/dist/chunks/{query-3EV66DO3.js → query-QS4VKBXJ.js} +1 -1
- package/dist/chunks/{reorder-VA5E5ZJT.js → reorder-B5V2P7YM.js} +2 -2
- package/dist/chunks/{reply-SNSCNKAW.js → reply-JBLWE6RS.js} +2 -2
- package/dist/chunks/{resolve-6ZX4RTXX.js → resolve-2I6XH2G3.js} +2 -2
- package/dist/chunks/{restore-NEHI5B5P.js → restore-O63FZXCL.js} +2 -2
- package/dist/chunks/{rm-FR6KE744.js → rm-HUED5R3Q.js} +3 -3
- package/dist/chunks/{rm-E5ZVLAKO.js → rm-N7W3QYWZ.js} +2 -2
- package/dist/chunks/{rm-22B22E47.js → rm-P3NJSCMY.js} +2 -2
- package/dist/chunks/{rule-inspect-DMP2CKJQ.js → rule-inspect-M3QUSPU2.js} +3 -3
- package/dist/chunks/{rules-EYGXEI2Z.js → rules-NSSWPJ2B.js} +6 -6
- package/dist/chunks/{schema-2IIWOBSQ.js → schema-G2PAXPVA.js} +1 -1
- package/dist/chunks/{tags-ZDVYRHAY.js → tags-JFMO63D4.js} +2 -2
- package/dist/chunks/{update-QH4DQMZV.js → update-VJCKD6YG.js} +3 -3
- package/dist/commands/build/index.js +7 -7
- package/dist/commands/deploy/index.js +8 -8
- package/dist/commands/dev/index.js +19 -6
- package/dist/commands/env/index.js +4 -4
- package/dist/commands/link/index.js +5 -5
- package/dist/commands/list/index.js +2 -2
- package/dist/commands-bulk.js +170 -67
- package/dist/index.js +6 -6
- package/dist/version.mjs +1 -1
- package/package.json +35 -35
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
handleVcrApiError,
|
|
10
10
|
resolveVcrScope,
|
|
11
11
|
validateVcrJsonOutput
|
|
12
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
13
|
-
import "./chunk-
|
|
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-
|
|
21
|
+
import "./chunk-TPX7RZBM.js";
|
|
22
22
|
import "./chunk-ECCWJHC6.js";
|
|
23
23
|
import {
|
|
24
24
|
AGENT_REASON,
|
|
@@ -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-
|
|
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();
|
|
@@ -7,15 +7,15 @@ const __dirname = __dirname_(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
getUpdateCommandInfo,
|
|
9
9
|
isGlobal
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-BYQQLGCT.js";
|
|
11
11
|
import {
|
|
12
12
|
progress
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-B2MTCHPO.js";
|
|
14
14
|
import {
|
|
15
15
|
apiCommand,
|
|
16
16
|
listSubcommand3 as listSubcommand,
|
|
17
17
|
loginCommand
|
|
18
|
-
} from "./chunk-
|
|
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-
|
|
29
|
+
} from "./chunk-TPX7RZBM.js";
|
|
30
30
|
import {
|
|
31
31
|
TelemetryClient,
|
|
32
32
|
isNativeBinaryInstall
|
|
@@ -13,13 +13,13 @@ import {
|
|
|
13
13
|
progress,
|
|
14
14
|
require_dist as require_dist2,
|
|
15
15
|
sleep
|
|
16
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
39
|
+
} from "./chunk-TPX7RZBM.js";
|
|
40
40
|
import {
|
|
41
41
|
require_strip_ansi,
|
|
42
42
|
responseError
|