vercel 53.4.0 → 54.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-FYITUY65.js → add-FEHGU5ZE.js} +8 -8
- package/dist/chunks/{chunk-X7KU44KR.js → chunk-23SNIB7J.js} +1 -1
- package/dist/chunks/{chunk-NIOGCTVR.js → chunk-2GC2GW2H.js} +2 -2
- package/dist/chunks/{chunk-WOWCXMTU.js → chunk-3CBPQ6CA.js} +1 -1
- package/dist/chunks/{chunk-KM7WTYJ4.js → chunk-4243WWHE.js} +4 -4
- package/dist/chunks/{chunk-SLWOG5CX.js → chunk-4I5SPKXV.js} +44 -44
- package/dist/chunks/{chunk-MW7BI4C2.js → chunk-4UJDQ2WM.js} +2 -2
- package/dist/chunks/{chunk-IVC36JQ5.js → chunk-4WPY4WO3.js} +6 -6
- package/dist/chunks/{chunk-EBEBY45K.js → chunk-4XB5UFP4.js} +2 -2
- package/dist/chunks/{chunk-KSIISCB2.js → chunk-5GZAC4CI.js} +1 -1
- package/dist/chunks/{chunk-KHDOCVQF.js → chunk-AH6RCY4L.js} +1 -1
- package/dist/chunks/{chunk-6EI6XOUG.js → chunk-DIOSHJ4H.js} +5 -5
- package/dist/chunks/{chunk-NF7HK5MP.js → chunk-DVV42VA6.js} +2 -2
- package/dist/chunks/{chunk-PU7YKGJI.js → chunk-DXZ5RVOC.js} +6 -6
- package/dist/chunks/{chunk-ZY4YCCXG.js → chunk-F6MUOB5B.js} +1 -1
- package/dist/chunks/{chunk-QGLS47RE.js → chunk-GRPLZLEB.js} +1 -1
- package/dist/chunks/{chunk-CMAHZSFA.js → chunk-GWM32SE3.js} +6 -3
- package/dist/chunks/{chunk-WZO6BNJ7.js → chunk-JWN6JMVY.js} +2 -2
- package/dist/chunks/{chunk-LBP7YFBV.js → chunk-KAC4IO5S.js} +150 -14
- package/dist/chunks/{chunk-44EL4BJL.js → chunk-LANWQ2NA.js} +9 -9
- package/dist/chunks/{chunk-KTULXE6M.js → chunk-MEAUBEGT.js} +3 -3
- package/dist/chunks/{chunk-3NSIZGHP.js → chunk-MWQHQ7FW.js} +3 -3
- package/dist/chunks/{chunk-YWCYZANP.js → chunk-MXSNLYVL.js} +6 -6
- package/dist/chunks/{chunk-HAJ2XRTQ.js → chunk-NQQWZYTY.js} +2 -2
- package/dist/chunks/{chunk-JZLADLMF.js → chunk-NVV6BWQP.js} +2 -2
- package/dist/chunks/{chunk-Z2ES2XHU.js → chunk-OGWD7VBC.js} +2 -2
- package/dist/chunks/{chunk-6447C5WV.js → chunk-OLJ6HISC.js} +3 -3
- package/dist/chunks/{chunk-GQLARSTH.js → chunk-P5NASM3L.js} +1 -1
- package/dist/chunks/{chunk-GCKUEAUE.js → chunk-Q5MHVELE.js} +2 -2
- package/dist/chunks/{chunk-IS56OO2J.js → chunk-S62XC5XL.js} +2 -2
- package/dist/chunks/{chunk-ONYQGA2O.js → chunk-S6EMI466.js} +2 -2
- package/dist/chunks/{chunk-73EVSBLA.js → chunk-TEDMSWBX.js} +2 -2
- package/dist/chunks/{chunk-5HTDIHTQ.js → chunk-TTEDSKHO.js} +4 -4
- package/dist/chunks/{chunk-4LDQIDKG.js → chunk-U5GMPX5T.js} +2 -2
- package/dist/chunks/{chunk-AXQNAI65.js → chunk-V6BFG564.js} +1 -1
- package/dist/chunks/{chunk-7TCOOSFP.js → chunk-VOXVKDJQ.js} +4 -4
- package/dist/chunks/{chunk-54T7XV3H.js → chunk-Y6X3VMO3.js} +1 -1
- package/dist/chunks/{compile-vercel-config-ED6WXKEL.js → compile-vercel-config-SGZPQDRN.js} +4 -4
- package/dist/chunks/{delete-FYRG67YL.js → delete-WMHTTHG3.js} +6 -6
- package/dist/chunks/{disable-T6JFY4LL.js → disable-QBDO6UIV.js} +6 -6
- package/dist/chunks/{discard-OLVACEPN.js → discard-GZZ553AR.js} +6 -6
- package/dist/chunks/{edit-JI2VCMGG.js → edit-H2BF2MZY.js} +7 -7
- package/dist/chunks/{enable-2W35HGRM.js → enable-YYWIMKHP.js} +6 -6
- package/dist/chunks/{export-FFMFMPGE.js → export-D3XBBQZD.js} +6 -6
- package/dist/chunks/{inspect-RDRV6BUD.js → inspect-LUCGK7HU.js} +8 -8
- package/dist/chunks/{list-5WGQ7F6P.js → list-EGJ7X43H.js} +6 -6
- package/dist/chunks/{list-F2GP6UZ7.js → list-WV3JSWCB.js} +9 -9
- package/dist/chunks/{ls-ZLHJPSZZ.js → ls-DXRXKG6Q.js} +8 -8
- package/dist/chunks/{publish-S2PGRBDP.js → publish-LW57QZ56.js} +6 -6
- package/dist/chunks/{query-G5K7DLLJ.js → query-AQSXA32P.js} +8 -8
- package/dist/chunks/{reorder-K5VXZ7F5.js → reorder-YJGPY7SA.js} +6 -6
- package/dist/chunks/{restore-QJYBYUIZ.js → restore-VANQDIFO.js} +6 -6
- package/dist/chunks/{rm-WCHM3XXB.js → rm-GNY6PA2Z.js} +8 -8
- package/dist/chunks/{rule-inspect-VMWUI4WH.js → rule-inspect-EECXOMPN.js} +8 -8
- package/dist/chunks/{rules-SOQXK4AE.js → rules-G2VMMW7U.js} +8 -8
- package/dist/chunks/{schema-2H2WLFJN.js → schema-4TUQAXX6.js} +9 -9
- package/dist/chunks/{types-7VDI75PV.js → types-54VLSVRV.js} +4 -4
- package/dist/chunks/{update-W6DZOFHV.js → update-GSE7WNBV.js} +8 -8
- package/dist/commands/build/index.js +43 -17
- package/dist/commands/deploy/index.js +24 -24
- package/dist/commands/dev/index.js +53 -28
- package/dist/commands/env/index.js +18 -18
- package/dist/commands/link/index.js +19 -19
- package/dist/commands/list/index.js +10 -10
- package/dist/commands-bulk.js +135 -145
- package/dist/index.js +22 -22
- package/dist/version.mjs +1 -1
- package/package.json +21 -21
package/dist/commands-bulk.js
CHANGED
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
runInteractiveEditLoop,
|
|
29
29
|
stripQuotes,
|
|
30
30
|
validateActionFlags
|
|
31
|
-
} from "./chunks/chunk-
|
|
31
|
+
} from "./chunks/chunk-AH6RCY4L.js";
|
|
32
32
|
import {
|
|
33
33
|
getRouteVersions
|
|
34
34
|
} from "./chunks/chunk-AHU7WNL2.js";
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
parsePosition,
|
|
46
46
|
parseSubcommandArgs,
|
|
47
47
|
withGlobalFlags
|
|
48
|
-
} from "./chunks/chunk-
|
|
48
|
+
} from "./chunks/chunk-VOXVKDJQ.js";
|
|
49
49
|
import {
|
|
50
50
|
indent_default
|
|
51
51
|
} from "./chunks/chunk-A3NYPUKZ.js";
|
|
@@ -62,11 +62,11 @@ import {
|
|
|
62
62
|
resolveOpenApiTagForProjectsCli,
|
|
63
63
|
resolveOpenApiTagForTeamsCli,
|
|
64
64
|
tryOpenApiFallback
|
|
65
|
-
} from "./chunks/chunk-
|
|
65
|
+
} from "./chunks/chunk-MXSNLYVL.js";
|
|
66
66
|
import {
|
|
67
67
|
getUpdateCommand,
|
|
68
68
|
isGlobal
|
|
69
|
-
} from "./chunks/chunk-
|
|
69
|
+
} from "./chunks/chunk-OGWD7VBC.js";
|
|
70
70
|
import {
|
|
71
71
|
Now,
|
|
72
72
|
collectContactInformation,
|
|
@@ -88,7 +88,7 @@ import {
|
|
|
88
88
|
require_format,
|
|
89
89
|
require_jsonlines,
|
|
90
90
|
setupDomain
|
|
91
|
-
} from "./chunks/chunk-
|
|
91
|
+
} from "./chunks/chunk-LANWQ2NA.js";
|
|
92
92
|
import {
|
|
93
93
|
processRevocationResponse,
|
|
94
94
|
readLocalConfig,
|
|
@@ -97,7 +97,7 @@ import {
|
|
|
97
97
|
sleep,
|
|
98
98
|
writeToAuthConfigFile,
|
|
99
99
|
writeToConfigFile
|
|
100
|
-
} from "./chunks/chunk-
|
|
100
|
+
} from "./chunks/chunk-4WPY4WO3.js";
|
|
101
101
|
import "./chunks/chunk-V5P25P7F.js";
|
|
102
102
|
import {
|
|
103
103
|
getCustomEnvironments,
|
|
@@ -108,7 +108,7 @@ import {
|
|
|
108
108
|
} from "./chunks/chunk-C5YP6KFI.js";
|
|
109
109
|
import {
|
|
110
110
|
formatTable
|
|
111
|
-
} from "./chunks/chunk-
|
|
111
|
+
} from "./chunks/chunk-DVV42VA6.js";
|
|
112
112
|
import "./chunks/chunk-LOS7HHU3.js";
|
|
113
113
|
import {
|
|
114
114
|
isValidName
|
|
@@ -120,11 +120,11 @@ import {
|
|
|
120
120
|
getDeployment,
|
|
121
121
|
mapCertError,
|
|
122
122
|
toHost
|
|
123
|
-
} from "./chunks/chunk-
|
|
123
|
+
} from "./chunks/chunk-23SNIB7J.js";
|
|
124
124
|
import {
|
|
125
125
|
formatEnvironment,
|
|
126
126
|
validateLsArgs
|
|
127
|
-
} from "./chunks/chunk-
|
|
127
|
+
} from "./chunks/chunk-JWN6JMVY.js";
|
|
128
128
|
import {
|
|
129
129
|
validateJsonOutput
|
|
130
130
|
} from "./chunks/chunk-XPKWKPWA.js";
|
|
@@ -368,7 +368,7 @@ import {
|
|
|
368
368
|
webAnalyticsSubcommand,
|
|
369
369
|
webhooksCommand,
|
|
370
370
|
whoamiCommand
|
|
371
|
-
} from "./chunks/chunk-
|
|
371
|
+
} from "./chunks/chunk-4I5SPKXV.js";
|
|
372
372
|
import {
|
|
373
373
|
addSubcommand as addSubcommand9,
|
|
374
374
|
deleteSubcommand,
|
|
@@ -384,21 +384,21 @@ import {
|
|
|
384
384
|
reorderSubcommand,
|
|
385
385
|
restoreSubcommand as restoreSubcommand2,
|
|
386
386
|
routesCommand
|
|
387
|
-
} from "./chunks/chunk-
|
|
387
|
+
} from "./chunks/chunk-U5GMPX5T.js";
|
|
388
388
|
import {
|
|
389
389
|
metricsCommand,
|
|
390
390
|
schemaSubcommand
|
|
391
|
-
} from "./chunks/chunk-
|
|
392
|
-
import "./chunks/chunk-
|
|
391
|
+
} from "./chunks/chunk-2GC2GW2H.js";
|
|
392
|
+
import "./chunks/chunk-NQQWZYTY.js";
|
|
393
393
|
import {
|
|
394
394
|
activityCommand,
|
|
395
395
|
typesSubcommand
|
|
396
|
-
} from "./chunks/chunk-
|
|
396
|
+
} from "./chunks/chunk-Q5MHVELE.js";
|
|
397
397
|
import {
|
|
398
398
|
alertsCommand,
|
|
399
399
|
inspectSubcommand,
|
|
400
400
|
listSubcommand
|
|
401
|
-
} from "./chunks/chunk-
|
|
401
|
+
} from "./chunks/chunk-MWQHQ7FW.js";
|
|
402
402
|
import {
|
|
403
403
|
rulesAddSubcommand,
|
|
404
404
|
rulesAggregateCommand,
|
|
@@ -406,16 +406,16 @@ import {
|
|
|
406
406
|
rulesLsSubcommand,
|
|
407
407
|
rulesRmSubcommand,
|
|
408
408
|
rulesUpdateSubcommand
|
|
409
|
-
} from "./chunks/chunk-
|
|
409
|
+
} from "./chunks/chunk-NVV6BWQP.js";
|
|
410
410
|
import {
|
|
411
411
|
detectExplicitScope,
|
|
412
412
|
getScope
|
|
413
|
-
} from "./chunks/chunk-
|
|
414
|
-
import "./chunks/chunk-
|
|
413
|
+
} from "./chunks/chunk-TEDMSWBX.js";
|
|
414
|
+
import "./chunks/chunk-S6EMI466.js";
|
|
415
415
|
import {
|
|
416
416
|
main
|
|
417
|
-
} from "./chunks/chunk-
|
|
418
|
-
import "./chunks/chunk-
|
|
417
|
+
} from "./chunks/chunk-DXZ5RVOC.js";
|
|
418
|
+
import "./chunks/chunk-Y6X3VMO3.js";
|
|
419
419
|
import {
|
|
420
420
|
AGENT_ACTION,
|
|
421
421
|
AGENT_REASON,
|
|
@@ -423,24 +423,24 @@ import {
|
|
|
423
423
|
} from "./chunks/chunk-E3NE4SKN.js";
|
|
424
424
|
import {
|
|
425
425
|
ua_default
|
|
426
|
-
} from "./chunks/chunk-
|
|
426
|
+
} from "./chunks/chunk-3CBPQ6CA.js";
|
|
427
427
|
import {
|
|
428
428
|
require_execa
|
|
429
|
-
} from "./chunks/chunk-
|
|
429
|
+
} from "./chunks/chunk-F6MUOB5B.js";
|
|
430
430
|
import {
|
|
431
431
|
ensureLink
|
|
432
|
-
} from "./chunks/chunk-
|
|
433
|
-
import "./chunks/chunk-
|
|
434
|
-
import "./chunks/chunk-
|
|
432
|
+
} from "./chunks/chunk-TTEDSKHO.js";
|
|
433
|
+
import "./chunks/chunk-DIOSHJ4H.js";
|
|
434
|
+
import "./chunks/chunk-MEAUBEGT.js";
|
|
435
435
|
import {
|
|
436
436
|
autoInstallVercelPlugin
|
|
437
|
-
} from "./chunks/chunk-
|
|
437
|
+
} from "./chunks/chunk-OLJ6HISC.js";
|
|
438
438
|
import {
|
|
439
439
|
help
|
|
440
|
-
} from "./chunks/chunk-
|
|
440
|
+
} from "./chunks/chunk-S62XC5XL.js";
|
|
441
441
|
import {
|
|
442
442
|
table
|
|
443
|
-
} from "./chunks/chunk-
|
|
443
|
+
} from "./chunks/chunk-5GZAC4CI.js";
|
|
444
444
|
import {
|
|
445
445
|
STANDARD_ENVIRONMENTS,
|
|
446
446
|
VERCEL_CONFIG_EXTENSIONS,
|
|
@@ -482,7 +482,7 @@ import {
|
|
|
482
482
|
resolveProjectCwd,
|
|
483
483
|
selectAndParseRemoteUrl,
|
|
484
484
|
selectOrg
|
|
485
|
-
} from "./chunks/chunk-
|
|
485
|
+
} from "./chunks/chunk-KAC4IO5S.js";
|
|
486
486
|
import {
|
|
487
487
|
TelemetryClient
|
|
488
488
|
} from "./chunks/chunk-4OEA5ILS.js";
|
|
@@ -497,7 +497,7 @@ import {
|
|
|
497
497
|
outputActionRequired,
|
|
498
498
|
outputAgentError,
|
|
499
499
|
shouldEmitNonInteractiveCommandError
|
|
500
|
-
} from "./chunks/chunk-
|
|
500
|
+
} from "./chunks/chunk-V6BFG564.js";
|
|
501
501
|
import {
|
|
502
502
|
elapsed,
|
|
503
503
|
require_ms,
|
|
@@ -512,7 +512,7 @@ import {
|
|
|
512
512
|
globalCliFlagTakesValue,
|
|
513
513
|
parseArguments,
|
|
514
514
|
printError
|
|
515
|
-
} from "./chunks/chunk-
|
|
515
|
+
} from "./chunks/chunk-P5NASM3L.js";
|
|
516
516
|
import {
|
|
517
517
|
APIError,
|
|
518
518
|
AliasInUse,
|
|
@@ -567,7 +567,7 @@ import {
|
|
|
567
567
|
require_bytes,
|
|
568
568
|
require_lib as require_lib2,
|
|
569
569
|
stripSensitiveAuthArgs
|
|
570
|
-
} from "./chunks/chunk-
|
|
570
|
+
} from "./chunks/chunk-4XB5UFP4.js";
|
|
571
571
|
import {
|
|
572
572
|
emoji,
|
|
573
573
|
eraseLines,
|
|
@@ -855,7 +855,7 @@ async function activity(client) {
|
|
|
855
855
|
return 0;
|
|
856
856
|
}
|
|
857
857
|
telemetry2.trackCliSubcommandTypes(subcommandOriginal);
|
|
858
|
-
const typesFn = (await import("./chunks/types-
|
|
858
|
+
const typesFn = (await import("./chunks/types-54VLSVRV.js")).default;
|
|
859
859
|
return typesFn(client, telemetry2);
|
|
860
860
|
}
|
|
861
861
|
default: {
|
|
@@ -865,7 +865,7 @@ async function activity(client) {
|
|
|
865
865
|
return 0;
|
|
866
866
|
}
|
|
867
867
|
telemetry2.trackCliSubcommandLs(subcommandOriginal);
|
|
868
|
-
const listFn = (await import("./chunks/list-
|
|
868
|
+
const listFn = (await import("./chunks/list-EGJ7X43H.js")).default;
|
|
869
869
|
return listFn(client, telemetry2);
|
|
870
870
|
}
|
|
871
871
|
}
|
|
@@ -1342,17 +1342,17 @@ async function alerts(client) {
|
|
|
1342
1342
|
switch (subcommand) {
|
|
1343
1343
|
case "inspect": {
|
|
1344
1344
|
telemetry2.trackCliSubcommandInspect(subcommandOriginal);
|
|
1345
|
-
const inspectFn = (await import("./chunks/inspect-
|
|
1345
|
+
const inspectFn = (await import("./chunks/inspect-LUCGK7HU.js")).default;
|
|
1346
1346
|
return inspectFn(client, args);
|
|
1347
1347
|
}
|
|
1348
1348
|
case "rules": {
|
|
1349
1349
|
telemetry2.trackCliSubcommandRules(args[0] ?? "ls");
|
|
1350
|
-
const rulesFn = (await import("./chunks/rules-
|
|
1350
|
+
const rulesFn = (await import("./chunks/rules-G2VMMW7U.js")).default;
|
|
1351
1351
|
return rulesFn(client, args);
|
|
1352
1352
|
}
|
|
1353
1353
|
default: {
|
|
1354
1354
|
telemetry2.trackCliSubcommandLs(subcommandOriginal);
|
|
1355
|
-
const listFn = (await import("./chunks/list-
|
|
1355
|
+
const listFn = (await import("./chunks/list-WV3JSWCB.js")).default;
|
|
1356
1356
|
return listFn(client, telemetry2);
|
|
1357
1357
|
}
|
|
1358
1358
|
}
|
|
@@ -1680,14 +1680,9 @@ async function createCertificateForAlias(client, context, alias2, shouldBeWildca
|
|
|
1680
1680
|
}
|
|
1681
1681
|
|
|
1682
1682
|
// src/util/alias/create-alias.ts
|
|
1683
|
-
async function createAlias(client, contextName,
|
|
1683
|
+
async function createAlias(client, contextName, idOrUrl, alias2, externalDomain) {
|
|
1684
1684
|
output_manager_default.spinner(`Creating alias`);
|
|
1685
|
-
const result = await performCreateAlias(
|
|
1686
|
-
client,
|
|
1687
|
-
contextName,
|
|
1688
|
-
deployment,
|
|
1689
|
-
alias2
|
|
1690
|
-
);
|
|
1685
|
+
const result = await performCreateAlias(client, contextName, idOrUrl, alias2);
|
|
1691
1686
|
output_manager_default.stopSpinner();
|
|
1692
1687
|
if (result instanceof CertMissing) {
|
|
1693
1688
|
const cert = await createCertificateForAlias(
|
|
@@ -1703,7 +1698,7 @@ async function createAlias(client, contextName, deployment, alias2, externalDoma
|
|
|
1703
1698
|
const secondTry = await performCreateAlias(
|
|
1704
1699
|
client,
|
|
1705
1700
|
contextName,
|
|
1706
|
-
|
|
1701
|
+
idOrUrl,
|
|
1707
1702
|
alias2
|
|
1708
1703
|
);
|
|
1709
1704
|
output_manager_default.stopSpinner();
|
|
@@ -1711,10 +1706,10 @@ async function createAlias(client, contextName, deployment, alias2, externalDoma
|
|
|
1711
1706
|
}
|
|
1712
1707
|
return result;
|
|
1713
1708
|
}
|
|
1714
|
-
async function performCreateAlias(client, contextName,
|
|
1709
|
+
async function performCreateAlias(client, contextName, idOrUrl, alias2) {
|
|
1715
1710
|
try {
|
|
1716
1711
|
return await client.fetch(
|
|
1717
|
-
`/now/deployments/${
|
|
1712
|
+
`/now/deployments/${encodeURIComponent(idOrUrl)}/aliases`,
|
|
1718
1713
|
{
|
|
1719
1714
|
method: "POST",
|
|
1720
1715
|
body: { alias: alias2 }
|
|
@@ -1731,7 +1726,7 @@ async function performCreateAlias(client, contextName, deployment, alias2) {
|
|
|
1731
1726
|
if (err.code === "deployment_not_found" || err.code === "not_found") {
|
|
1732
1727
|
return new DeploymentNotFound({
|
|
1733
1728
|
context: contextName,
|
|
1734
|
-
id:
|
|
1729
|
+
id: idOrUrl
|
|
1735
1730
|
});
|
|
1736
1731
|
}
|
|
1737
1732
|
if (err.code === "gone") {
|
|
@@ -1741,7 +1736,9 @@ async function performCreateAlias(client, contextName, deployment, alias2) {
|
|
|
1741
1736
|
return new InvalidAlias(alias2);
|
|
1742
1737
|
}
|
|
1743
1738
|
if (err.code === "deployment_not_ready") {
|
|
1744
|
-
return new DeploymentNotReady({
|
|
1739
|
+
return new DeploymentNotReady({
|
|
1740
|
+
url: idOrUrl
|
|
1741
|
+
});
|
|
1745
1742
|
}
|
|
1746
1743
|
if (err.status === 403) {
|
|
1747
1744
|
if (err.code === "alias_in_use") {
|
|
@@ -1762,7 +1759,7 @@ function isDomainExternal(domain2) {
|
|
|
1762
1759
|
}
|
|
1763
1760
|
|
|
1764
1761
|
// src/util/alias/assign-alias.ts
|
|
1765
|
-
async function assignAlias(client,
|
|
1762
|
+
async function assignAlias(client, idOrUrl, alias2, contextName) {
|
|
1766
1763
|
let externalDomain = false;
|
|
1767
1764
|
if (alias2.indexOf(".") !== -1 && !alias2.endsWith(".now.sh") && !alias2.endsWith(".vercel.app")) {
|
|
1768
1765
|
const result = await setupDomain(client, alias2, contextName);
|
|
@@ -1774,7 +1771,7 @@ async function assignAlias(client, deployment, alias2, contextName) {
|
|
|
1774
1771
|
const record = await createAlias(
|
|
1775
1772
|
client,
|
|
1776
1773
|
contextName,
|
|
1777
|
-
|
|
1774
|
+
idOrUrl,
|
|
1778
1775
|
alias2,
|
|
1779
1776
|
externalDomain
|
|
1780
1777
|
);
|
|
@@ -1803,16 +1800,8 @@ async function getAppLastDeployment(client, appName, user, contextName) {
|
|
|
1803
1800
|
}
|
|
1804
1801
|
return null;
|
|
1805
1802
|
}
|
|
1806
|
-
async function getDeploymentForAlias(client,
|
|
1803
|
+
async function getDeploymentForAlias(client, localConfigPath, user, contextName, localConfig) {
|
|
1807
1804
|
output_manager_default.spinner(`Fetching deployment to alias in ${import_chalk5.default.bold(contextName)}`);
|
|
1808
|
-
if (args.length === 2) {
|
|
1809
|
-
const [deploymentId] = args;
|
|
1810
|
-
try {
|
|
1811
|
-
return await getDeployment(client, contextName, deploymentId);
|
|
1812
|
-
} finally {
|
|
1813
|
-
output_manager_default.stopSpinner();
|
|
1814
|
-
}
|
|
1815
|
-
}
|
|
1816
1805
|
const appName = localConfig?.name || path.basename(path.resolve(process.cwd(), localConfigPath || ""));
|
|
1817
1806
|
if (!appName) {
|
|
1818
1807
|
return null;
|
|
@@ -1921,10 +1910,10 @@ var AliasSetTelemetryClient = class extends TelemetryClient {
|
|
|
1921
1910
|
});
|
|
1922
1911
|
}
|
|
1923
1912
|
}
|
|
1924
|
-
|
|
1925
|
-
if (
|
|
1913
|
+
trackCliArgumentIdOrUrl(idOrUrl) {
|
|
1914
|
+
if (idOrUrl) {
|
|
1926
1915
|
this.trackCliArgument({
|
|
1927
|
-
arg: "
|
|
1916
|
+
arg: "id-or-url",
|
|
1928
1917
|
value: this.redactedValue
|
|
1929
1918
|
});
|
|
1930
1919
|
}
|
|
@@ -1962,16 +1951,12 @@ async function set(client, argv) {
|
|
|
1962
1951
|
const { contextName, user } = await getScope(client);
|
|
1963
1952
|
if (args.length > 2) {
|
|
1964
1953
|
output_manager_default.error(
|
|
1965
|
-
`${getCommandName(
|
|
1966
|
-
"alias <deployment> <target>"
|
|
1967
|
-
)} accepts at most two arguments`
|
|
1954
|
+
`${getCommandName("alias <id-or-url> <target>")} accepts at most two arguments`
|
|
1968
1955
|
);
|
|
1969
1956
|
return 1;
|
|
1970
1957
|
}
|
|
1971
1958
|
if (args.length >= 1 && !isValidName(args[0])) {
|
|
1972
|
-
output_manager_default.error(
|
|
1973
|
-
`The provided argument "${args[0]}" is not a valid deployment`
|
|
1974
|
-
);
|
|
1959
|
+
output_manager_default.error(`The provided argument "${args[0]}" is not a valid ID or URL`);
|
|
1975
1960
|
return 1;
|
|
1976
1961
|
}
|
|
1977
1962
|
if (args.length >= 2 && !isValidName(args[1])) {
|
|
@@ -1989,24 +1974,23 @@ async function set(client, argv) {
|
|
|
1989
1974
|
if (args.length === 1) {
|
|
1990
1975
|
const [aliasTarget2] = args;
|
|
1991
1976
|
telemetryClient.trackCliArgumentAlias(aliasTarget2);
|
|
1992
|
-
const
|
|
1977
|
+
const deployment = handleCertError(
|
|
1993
1978
|
await getDeploymentForAlias(
|
|
1994
1979
|
client,
|
|
1995
|
-
args,
|
|
1996
1980
|
opts["--local-config"],
|
|
1997
1981
|
user,
|
|
1998
1982
|
contextName,
|
|
1999
1983
|
localConfig
|
|
2000
1984
|
)
|
|
2001
1985
|
);
|
|
2002
|
-
if (
|
|
2003
|
-
return
|
|
1986
|
+
if (deployment === 1) {
|
|
1987
|
+
return deployment;
|
|
2004
1988
|
}
|
|
2005
|
-
if (
|
|
2006
|
-
output_manager_default.error(
|
|
1989
|
+
if (deployment instanceof Error) {
|
|
1990
|
+
output_manager_default.error(deployment.message);
|
|
2007
1991
|
return 1;
|
|
2008
1992
|
}
|
|
2009
|
-
if (!
|
|
1993
|
+
if (!deployment) {
|
|
2010
1994
|
output_manager_default.error(
|
|
2011
1995
|
`Couldn't find a deployment to alias. Please provide one as an argument.`
|
|
2012
1996
|
);
|
|
@@ -2018,8 +2002,13 @@ async function set(client, argv) {
|
|
|
2018
2002
|
return 1;
|
|
2019
2003
|
}
|
|
2020
2004
|
for (const target of targets) {
|
|
2021
|
-
output_manager_default.log(`Assigning alias ${target} to deployment ${
|
|
2022
|
-
const record2 = await assignAlias(
|
|
2005
|
+
output_manager_default.log(`Assigning alias ${target} to deployment ${deployment.url}`);
|
|
2006
|
+
const record2 = await assignAlias(
|
|
2007
|
+
client,
|
|
2008
|
+
deployment.id,
|
|
2009
|
+
target,
|
|
2010
|
+
contextName
|
|
2011
|
+
);
|
|
2023
2012
|
const handleResult2 = handleSetupDomainError(
|
|
2024
2013
|
handleCreateAliasError(record2)
|
|
2025
2014
|
);
|
|
@@ -2029,31 +2018,20 @@ async function set(client, argv) {
|
|
|
2029
2018
|
output_manager_default.success(
|
|
2030
2019
|
`${import_chalk8.default.bold(
|
|
2031
2020
|
`${isWildcardAlias(target) ? "" : "https://"}${handleResult2.alias}`
|
|
2032
|
-
)} now points to https://${
|
|
2021
|
+
)} now points to https://${deployment.url} ${setStamp()}`
|
|
2033
2022
|
);
|
|
2034
2023
|
}
|
|
2035
2024
|
return 0;
|
|
2036
2025
|
}
|
|
2037
|
-
const [
|
|
2038
|
-
telemetryClient.
|
|
2026
|
+
const [idOrUrl, aliasTarget] = args;
|
|
2027
|
+
telemetryClient.trackCliArgumentIdOrUrl(idOrUrl);
|
|
2039
2028
|
telemetryClient.trackCliArgumentAlias(aliasTarget);
|
|
2040
|
-
|
|
2041
|
-
await getDeployment(client, contextName, deploymentIdOrHost)
|
|
2042
|
-
);
|
|
2043
|
-
if (deployment === 1) {
|
|
2044
|
-
return deployment;
|
|
2045
|
-
}
|
|
2046
|
-
if (deployment === null) {
|
|
2047
|
-
output_manager_default.error(
|
|
2048
|
-
`Couldn't find a deployment to alias. Please provide one as an argument.`
|
|
2049
|
-
);
|
|
2050
|
-
return 1;
|
|
2051
|
-
}
|
|
2052
|
-
output_manager_default.log(`Assigning alias ${aliasTarget} to deployment ${deployment.url}`);
|
|
2029
|
+
output_manager_default.log(`Assigning alias ${aliasTarget} to ${idOrUrl}`);
|
|
2053
2030
|
const isWildcard = isWildcardAlias(aliasTarget);
|
|
2031
|
+
const idOrUrlForRequest = idOrUrl.includes(".") ? toHost(idOrUrl) : idOrUrl;
|
|
2054
2032
|
const record = await assignAlias(
|
|
2055
2033
|
client,
|
|
2056
|
-
|
|
2034
|
+
idOrUrlForRequest,
|
|
2057
2035
|
aliasTarget,
|
|
2058
2036
|
contextName
|
|
2059
2037
|
);
|
|
@@ -2063,7 +2041,9 @@ async function set(client, argv) {
|
|
|
2063
2041
|
}
|
|
2064
2042
|
const prefix = isWildcard ? "" : "https://";
|
|
2065
2043
|
output_manager_default.success(
|
|
2066
|
-
`${import_chalk8.default.bold(
|
|
2044
|
+
`${import_chalk8.default.bold(
|
|
2045
|
+
`${prefix}${handleResult.alias}`
|
|
2046
|
+
)} now points to ${idOrUrl} ${setStamp()}`
|
|
2067
2047
|
);
|
|
2068
2048
|
return 0;
|
|
2069
2049
|
}
|
|
@@ -2158,7 +2138,7 @@ function handleCreateAliasError(errorOrResult) {
|
|
|
2158
2138
|
}
|
|
2159
2139
|
if (error instanceof DeploymentNotFound) {
|
|
2160
2140
|
output_manager_default.error(
|
|
2161
|
-
`Failed to find
|
|
2141
|
+
`Failed to find ID or URL ${import_chalk8.default.dim(error.meta.id)} under ${import_chalk8.default.bold(
|
|
2162
2142
|
error.meta.context
|
|
2163
2143
|
)}`
|
|
2164
2144
|
);
|
|
@@ -2172,7 +2152,7 @@ function handleCreateAliasError(errorOrResult) {
|
|
|
2172
2152
|
}
|
|
2173
2153
|
if (error instanceof DeploymentPermissionDenied) {
|
|
2174
2154
|
output_manager_default.error(
|
|
2175
|
-
`No permission to access
|
|
2155
|
+
`No permission to access ID or URL ${import_chalk8.default.dim(
|
|
2176
2156
|
error.meta.id
|
|
2177
2157
|
)} under ${import_chalk8.default.bold(error.meta.context)}`
|
|
2178
2158
|
);
|
|
@@ -5874,7 +5854,7 @@ async function awaitConnexResult(client, verifier) {
|
|
|
5874
5854
|
output_manager_default.stopSpinner();
|
|
5875
5855
|
const clientId = result.data.clientId;
|
|
5876
5856
|
if (clientId) {
|
|
5877
|
-
output_manager_default.log(`
|
|
5857
|
+
output_manager_default.log(`Connector created: ${clientId}`);
|
|
5878
5858
|
}
|
|
5879
5859
|
output_manager_default.spinner(`${result.progress}...`);
|
|
5880
5860
|
}
|
|
@@ -5921,13 +5901,13 @@ async function create2(client, args, flags) {
|
|
|
5921
5901
|
}
|
|
5922
5902
|
await selectConnexTeam(
|
|
5923
5903
|
client,
|
|
5924
|
-
"Select the team where you want to create this
|
|
5904
|
+
"Select the team where you want to create this connector"
|
|
5925
5905
|
);
|
|
5926
5906
|
let name = flags["--name"];
|
|
5927
5907
|
if (!name) {
|
|
5928
5908
|
if (!client.stdin.isTTY) {
|
|
5929
5909
|
output_manager_default.error(
|
|
5930
|
-
"Missing required flag --name. In non-interactive mode, provide --name for the
|
|
5910
|
+
"Missing required flag --name. In non-interactive mode, provide --name for the connector."
|
|
5931
5911
|
);
|
|
5932
5912
|
return 1;
|
|
5933
5913
|
}
|
|
@@ -6013,11 +5993,11 @@ ${browserUrl}`);
|
|
|
6013
5993
|
);
|
|
6014
5994
|
} else if (hasBeenInstalled) {
|
|
6015
5995
|
output_manager_default.success(
|
|
6016
|
-
`${serviceType}
|
|
5996
|
+
`${serviceType} connector created and installed: ${createdClient.id} (UID ${createdClient.uid})`
|
|
6017
5997
|
);
|
|
6018
5998
|
} else {
|
|
6019
5999
|
output_manager_default.success(
|
|
6020
|
-
`${serviceType}
|
|
6000
|
+
`${serviceType} connector created: ${createdClient.id} (UID ${createdClient.uid})`
|
|
6021
6001
|
);
|
|
6022
6002
|
}
|
|
6023
6003
|
return 0;
|
|
@@ -6054,7 +6034,7 @@ async function list5(client, flags) {
|
|
|
6054
6034
|
if (unscoped) {
|
|
6055
6035
|
await selectConnexTeam(
|
|
6056
6036
|
client,
|
|
6057
|
-
"Select the team whose Connex
|
|
6037
|
+
"Select the team whose Connex connectors you want to list"
|
|
6058
6038
|
);
|
|
6059
6039
|
}
|
|
6060
6040
|
const params = new URLSearchParams();
|
|
@@ -6071,7 +6051,7 @@ async function list5(client, flags) {
|
|
|
6071
6051
|
}
|
|
6072
6052
|
const query = params.toString();
|
|
6073
6053
|
const url = `/v1/connex/clients${query ? `?${query}` : ""}`;
|
|
6074
|
-
output_manager_default.spinner("Fetching Connex
|
|
6054
|
+
output_manager_default.spinner("Fetching Connex connectors\u2026");
|
|
6075
6055
|
let response;
|
|
6076
6056
|
try {
|
|
6077
6057
|
response = await client.fetch(url);
|
|
@@ -6115,17 +6095,17 @@ async function list5(client, flags) {
|
|
|
6115
6095
|
if (clients.length === 0) {
|
|
6116
6096
|
if (unscoped) {
|
|
6117
6097
|
output_manager_default.log(
|
|
6118
|
-
`No Connex
|
|
6098
|
+
`No Connex connectors found. Create one with \`${packageName} connex create <type>\`.`
|
|
6119
6099
|
);
|
|
6120
6100
|
} else {
|
|
6121
6101
|
output_manager_default.log(
|
|
6122
|
-
`No Connex
|
|
6102
|
+
`No Connex connectors linked to ${import_chalk22.default.bold(projectName ?? "this project")}. Run \`${packageName} connex list --all-projects\` to see every connector in the team.`
|
|
6123
6103
|
);
|
|
6124
6104
|
}
|
|
6125
6105
|
return 0;
|
|
6126
6106
|
}
|
|
6127
6107
|
if (!unscoped && projectName) {
|
|
6128
|
-
output_manager_default.log(`Connex
|
|
6108
|
+
output_manager_default.log(`Connex connectors linked to ${import_chalk22.default.bold(projectName)}:`);
|
|
6129
6109
|
}
|
|
6130
6110
|
const headers = ["UID", "ID", "Name", "Type"];
|
|
6131
6111
|
if (unscoped) {
|
|
@@ -6181,7 +6161,9 @@ async function token(client, args, flags) {
|
|
|
6181
6161
|
const asJson = formatResult.jsonOutput;
|
|
6182
6162
|
const clientId = args[0];
|
|
6183
6163
|
if (!clientId) {
|
|
6184
|
-
output_manager_default.error(
|
|
6164
|
+
output_manager_default.error(
|
|
6165
|
+
"Missing connector ID or UID. Usage: vercel connex token <id>"
|
|
6166
|
+
);
|
|
6185
6167
|
return 1;
|
|
6186
6168
|
}
|
|
6187
6169
|
const subject = flags["--subject"];
|
|
@@ -6211,12 +6193,12 @@ async function token(client, args, flags) {
|
|
|
6211
6193
|
const errorCode = result.errorCode;
|
|
6212
6194
|
const errorMessage = result.errorMessage ?? "Failed to get token";
|
|
6213
6195
|
if (errorCode === "not_found") {
|
|
6214
|
-
output_manager_default.error("
|
|
6196
|
+
output_manager_default.error("Connector not found or Connex is not enabled for this team.");
|
|
6215
6197
|
return 1;
|
|
6216
6198
|
}
|
|
6217
6199
|
if (errorCode === "unresolved_token") {
|
|
6218
6200
|
output_manager_default.error(
|
|
6219
|
-
`${errorMessage} This
|
|
6201
|
+
`${errorMessage} This connector does not support getting a token for the requested subject.`
|
|
6220
6202
|
);
|
|
6221
6203
|
return 1;
|
|
6222
6204
|
}
|
|
@@ -6362,7 +6344,7 @@ async function attach(client, args, flags) {
|
|
|
6362
6344
|
const clientIdOrUid = args[0];
|
|
6363
6345
|
if (!clientIdOrUid) {
|
|
6364
6346
|
output_manager_default.error(
|
|
6365
|
-
"Missing
|
|
6347
|
+
"Missing connector ID or UID. Usage: vercel connex attach <client>"
|
|
6366
6348
|
);
|
|
6367
6349
|
return 1;
|
|
6368
6350
|
}
|
|
@@ -6421,7 +6403,7 @@ async function attach(client, args, flags) {
|
|
|
6421
6403
|
projectId = linked.project.id;
|
|
6422
6404
|
projectName = linked.project.name;
|
|
6423
6405
|
}
|
|
6424
|
-
output_manager_default.spinner("Retrieving Connex
|
|
6406
|
+
output_manager_default.spinner("Retrieving Connex connector\u2026");
|
|
6425
6407
|
let target;
|
|
6426
6408
|
try {
|
|
6427
6409
|
target = await client.fetch(
|
|
@@ -6431,7 +6413,9 @@ async function attach(client, args, flags) {
|
|
|
6431
6413
|
output_manager_default.stopSpinner();
|
|
6432
6414
|
const status3 = err.status;
|
|
6433
6415
|
if (status3 === 404) {
|
|
6434
|
-
output_manager_default.error(
|
|
6416
|
+
output_manager_default.error(
|
|
6417
|
+
`No Connex connector found for ${import_chalk23.default.bold(clientIdOrUid)}.`
|
|
6418
|
+
);
|
|
6435
6419
|
return 1;
|
|
6436
6420
|
}
|
|
6437
6421
|
printError(err);
|
|
@@ -6470,7 +6454,7 @@ async function attach(client, args, flags) {
|
|
|
6470
6454
|
return 0;
|
|
6471
6455
|
}
|
|
6472
6456
|
output_manager_default.log(
|
|
6473
|
-
`Connex
|
|
6457
|
+
`Connex connector ${import_chalk23.default.bold(displayName)} is already attached to ${import_chalk23.default.bold(
|
|
6474
6458
|
projectName
|
|
6475
6459
|
)} for environments: ${environments.join(", ")}. Nothing to do.`
|
|
6476
6460
|
);
|
|
@@ -6487,7 +6471,7 @@ async function attach(client, args, flags) {
|
|
|
6487
6471
|
const current = (existingAttachment.environments ?? []).join(", ") || "\u2014";
|
|
6488
6472
|
const next = environments.join(", ");
|
|
6489
6473
|
output_manager_default.log(
|
|
6490
|
-
`Connex
|
|
6474
|
+
`Connex connector ${import_chalk23.default.bold(displayName)} is already attached to ${import_chalk23.default.bold(
|
|
6491
6475
|
projectName
|
|
6492
6476
|
)}.`
|
|
6493
6477
|
);
|
|
@@ -6495,7 +6479,7 @@ async function attach(client, args, flags) {
|
|
|
6495
6479
|
output_manager_default.log(` Will set: ${next}`);
|
|
6496
6480
|
} else {
|
|
6497
6481
|
output_manager_default.log(
|
|
6498
|
-
`Connex
|
|
6482
|
+
`Connex connector ${import_chalk23.default.bold(displayName)} will be attached to ${import_chalk23.default.bold(
|
|
6499
6483
|
projectName
|
|
6500
6484
|
)} for environments: ${environments.join(", ")}.`
|
|
6501
6485
|
);
|
|
@@ -6526,7 +6510,7 @@ async function attach(client, args, flags) {
|
|
|
6526
6510
|
}
|
|
6527
6511
|
if (status3 === 404) {
|
|
6528
6512
|
output_manager_default.error(
|
|
6529
|
-
`No Connex
|
|
6513
|
+
`No Connex connector found for ${import_chalk23.default.bold(displayName)}, or project ${import_chalk23.default.bold(projectName)} is no longer accessible.`
|
|
6530
6514
|
);
|
|
6531
6515
|
return 1;
|
|
6532
6516
|
}
|
|
@@ -6551,7 +6535,7 @@ async function attach(client, args, flags) {
|
|
|
6551
6535
|
return 0;
|
|
6552
6536
|
}
|
|
6553
6537
|
output_manager_default.success(
|
|
6554
|
-
`Attached Connex
|
|
6538
|
+
`Attached Connex connector ${import_chalk23.default.bold(displayName)} to ${import_chalk23.default.bold(projectName)} for environments: ${environments.join(", ")}.`
|
|
6555
6539
|
);
|
|
6556
6540
|
return 0;
|
|
6557
6541
|
}
|
|
@@ -6574,12 +6558,12 @@ async function remove(client, args, flags) {
|
|
|
6574
6558
|
const clientIdOrUid = args[0];
|
|
6575
6559
|
if (!clientIdOrUid) {
|
|
6576
6560
|
output_manager_default.error(
|
|
6577
|
-
"Missing
|
|
6561
|
+
"Missing connector ID or UID. Usage: vercel connex remove <client>"
|
|
6578
6562
|
);
|
|
6579
6563
|
return 1;
|
|
6580
6564
|
}
|
|
6581
|
-
await selectConnexTeam(client, "Select the team for this Connex
|
|
6582
|
-
output_manager_default.spinner("Retrieving Connex
|
|
6565
|
+
await selectConnexTeam(client, "Select the team for this Connex connector");
|
|
6566
|
+
output_manager_default.spinner("Retrieving Connex connector\u2026");
|
|
6583
6567
|
let target;
|
|
6584
6568
|
try {
|
|
6585
6569
|
target = await client.fetch(
|
|
@@ -6589,7 +6573,9 @@ async function remove(client, args, flags) {
|
|
|
6589
6573
|
output_manager_default.stopSpinner();
|
|
6590
6574
|
const status3 = err.status;
|
|
6591
6575
|
if (status3 === 404) {
|
|
6592
|
-
output_manager_default.error(
|
|
6576
|
+
output_manager_default.error(
|
|
6577
|
+
`No Connex connector found for ${import_chalk24.default.bold(clientIdOrUid)}.`
|
|
6578
|
+
);
|
|
6593
6579
|
return 1;
|
|
6594
6580
|
}
|
|
6595
6581
|
output_manager_default.error(
|
|
@@ -6618,7 +6604,7 @@ async function remove(client, args, flags) {
|
|
|
6618
6604
|
const count = projectLinks.length;
|
|
6619
6605
|
const plural14 = count === 1 ? "project" : "projects";
|
|
6620
6606
|
output_manager_default.error(
|
|
6621
|
-
`Cannot delete Connex
|
|
6607
|
+
`Cannot delete Connex connector ${import_chalk24.default.bold(displayName)} while it has ${count} connected ${plural14}. Please disconnect any projects using this connector first or use the \`--disconnect-all\` flag.`
|
|
6622
6608
|
);
|
|
6623
6609
|
return 1;
|
|
6624
6610
|
}
|
|
@@ -6631,7 +6617,7 @@ async function remove(client, args, flags) {
|
|
|
6631
6617
|
if (!skipConfirmation) {
|
|
6632
6618
|
const cascadeNote = projectLinks.length > 0 ? ` ${projectLinks.length} connected ${projectLinks.length === 1 ? "project" : "projects"} will be disconnected.` : "";
|
|
6633
6619
|
output_manager_default.log(
|
|
6634
|
-
`Connex
|
|
6620
|
+
`Connex connector ${import_chalk24.default.bold(displayName)} will be deleted permanently.${cascadeNote}`
|
|
6635
6621
|
);
|
|
6636
6622
|
const confirmed = await client.input.confirm(
|
|
6637
6623
|
`${import_chalk24.default.red("Are you sure?")}`,
|
|
@@ -6643,7 +6629,7 @@ async function remove(client, args, flags) {
|
|
|
6643
6629
|
}
|
|
6644
6630
|
}
|
|
6645
6631
|
try {
|
|
6646
|
-
output_manager_default.spinner("Deleting Connex
|
|
6632
|
+
output_manager_default.spinner("Deleting Connex connector\u2026");
|
|
6647
6633
|
await client.fetch(
|
|
6648
6634
|
`/v1/connex/clients/${encodeURIComponent(target.id)}`,
|
|
6649
6635
|
{ method: "DELETE" }
|
|
@@ -6664,7 +6650,7 @@ async function remove(client, args, flags) {
|
|
|
6664
6650
|
return 0;
|
|
6665
6651
|
}
|
|
6666
6652
|
output_manager_default.success(
|
|
6667
|
-
`Connex
|
|
6653
|
+
`Connex connector ${import_chalk24.default.bold(displayName)} successfully removed.`
|
|
6668
6654
|
);
|
|
6669
6655
|
return 0;
|
|
6670
6656
|
}
|
|
@@ -6681,16 +6667,19 @@ async function openClient(client, args, flags) {
|
|
|
6681
6667
|
const asJson = formatResult.jsonOutput;
|
|
6682
6668
|
const clientIdOrUid = args[0];
|
|
6683
6669
|
if (!clientIdOrUid) {
|
|
6684
|
-
output_manager_default.error("Missing
|
|
6670
|
+
output_manager_default.error("Missing connector ID or UID. Usage: vercel connex open <id>");
|
|
6685
6671
|
return 1;
|
|
6686
6672
|
}
|
|
6687
|
-
await selectConnexTeam(
|
|
6673
|
+
await selectConnexTeam(
|
|
6674
|
+
client,
|
|
6675
|
+
"Select the team whose Connex connector to open"
|
|
6676
|
+
);
|
|
6688
6677
|
const { team } = await getScope(client);
|
|
6689
6678
|
if (!team) {
|
|
6690
6679
|
output_manager_default.error("No team resolved. Run `vercel switch` or pass `--scope`.");
|
|
6691
6680
|
return 1;
|
|
6692
6681
|
}
|
|
6693
|
-
output_manager_default.spinner("Looking up Connex
|
|
6682
|
+
output_manager_default.spinner("Looking up Connex connector\u2026");
|
|
6694
6683
|
let resolvedId;
|
|
6695
6684
|
try {
|
|
6696
6685
|
const resolved = await client.fetch(
|
|
@@ -6702,7 +6691,7 @@ async function openClient(client, args, flags) {
|
|
|
6702
6691
|
const status3 = err.status;
|
|
6703
6692
|
if (status3 === 404) {
|
|
6704
6693
|
output_manager_default.error(
|
|
6705
|
-
`Connex
|
|
6694
|
+
`Connex connector ${import_chalk25.default.bold(`"${clientIdOrUid}"`)} not found on team ${import_chalk25.default.bold(team.slug)}, or Connex is not enabled for this team.`
|
|
6706
6695
|
);
|
|
6707
6696
|
return 1;
|
|
6708
6697
|
}
|
|
@@ -6718,7 +6707,7 @@ async function openClient(client, args, flags) {
|
|
|
6718
6707
|
}
|
|
6719
6708
|
if (client.stdout.isTTY) {
|
|
6720
6709
|
output_manager_default.print(
|
|
6721
|
-
`Opening Connex
|
|
6710
|
+
`Opening Connex connector ${import_chalk25.default.bold(clientIdOrUid)} in the dashboard\u2026
|
|
6722
6711
|
`
|
|
6723
6712
|
);
|
|
6724
6713
|
(0, import_open5.default)(url);
|
|
@@ -31625,9 +31614,8 @@ async function logs(client) {
|
|
|
31625
31614
|
const requestIdOption = parsedArguments.flags["--request-id"];
|
|
31626
31615
|
const expandOption = parsedArguments.flags["--expand"];
|
|
31627
31616
|
const branchFlagValue = parsedArguments.flags["--branch"];
|
|
31628
|
-
const followFlagValue = parsedArguments.flags["--follow"];
|
|
31629
31617
|
const noFollowFlagValue = parsedArguments.flags["--no-follow"];
|
|
31630
|
-
const followOption =
|
|
31618
|
+
const followOption = parsedArguments.flags["--follow"];
|
|
31631
31619
|
telemetry2.trackCliArgumentUrlOrDeploymentId(deploymentArgument);
|
|
31632
31620
|
telemetry2.trackCliOptionProject(projectOption);
|
|
31633
31621
|
telemetry2.trackCliOptionDeployment(deploymentFlag);
|
|
@@ -31640,6 +31628,7 @@ async function logs(client) {
|
|
|
31640
31628
|
telemetry2.trackCliOptionLimit(limitOption);
|
|
31641
31629
|
telemetry2.trackCliFlagJson(jsonOption);
|
|
31642
31630
|
telemetry2.trackCliFlagFollow(followOption);
|
|
31631
|
+
telemetry2.trackCliFlagNoFollow(noFollowFlagValue);
|
|
31643
31632
|
telemetry2.trackCliOptionQuery(queryOption);
|
|
31644
31633
|
telemetry2.trackCliOptionSearch(searchOption);
|
|
31645
31634
|
telemetry2.trackCliOptionRequestId(requestIdOption);
|
|
@@ -32676,7 +32665,7 @@ async function metrics(client) {
|
|
|
32676
32665
|
return 0;
|
|
32677
32666
|
}
|
|
32678
32667
|
telemetry2.trackCliSubcommandSchema(subcommandOriginal);
|
|
32679
|
-
const schemaFn = (await import("./chunks/schema-
|
|
32668
|
+
const schemaFn = (await import("./chunks/schema-4TUQAXX6.js")).default;
|
|
32680
32669
|
return schemaFn(client, telemetry2);
|
|
32681
32670
|
}
|
|
32682
32671
|
default: {
|
|
@@ -32689,7 +32678,7 @@ async function metrics(client) {
|
|
|
32689
32678
|
output_manager_default.print(help(metricsCommand, { columns: client.stderr.columns }));
|
|
32690
32679
|
return 2;
|
|
32691
32680
|
}
|
|
32692
|
-
const queryFn = (await import("./chunks/query-
|
|
32681
|
+
const queryFn = (await import("./chunks/query-AQSXA32P.js")).default;
|
|
32693
32682
|
return queryFn(client, telemetry2);
|
|
32694
32683
|
}
|
|
32695
32684
|
}
|
|
@@ -36502,6 +36491,7 @@ async function getOidcToken(client, argv) {
|
|
|
36502
36491
|
`/projects/${project.id}/token`,
|
|
36503
36492
|
{
|
|
36504
36493
|
method: "POST",
|
|
36494
|
+
accountId: project.accountId,
|
|
36505
36495
|
body: JSON.stringify({
|
|
36506
36496
|
source: "vercel-cli"
|
|
36507
36497
|
}),
|
|
@@ -43596,7 +43586,7 @@ async function main27(client) {
|
|
|
43596
43586
|
return 2;
|
|
43597
43587
|
}
|
|
43598
43588
|
telemetry2.trackCliSubcommandEdit(subcommandOriginal);
|
|
43599
|
-
return (await import("./chunks/edit-
|
|
43589
|
+
return (await import("./chunks/edit-H2BF2MZY.js")).default(client, args);
|
|
43600
43590
|
case "delete":
|
|
43601
43591
|
if (needHelp) {
|
|
43602
43592
|
telemetry2.trackCliFlagHelp("routes", subcommandOriginal);
|
|
@@ -43604,7 +43594,7 @@ async function main27(client) {
|
|
|
43604
43594
|
return 2;
|
|
43605
43595
|
}
|
|
43606
43596
|
telemetry2.trackCliSubcommandDelete(subcommandOriginal);
|
|
43607
|
-
return (await import("./chunks/delete-
|
|
43597
|
+
return (await import("./chunks/delete-WMHTTHG3.js")).default(client, args);
|
|
43608
43598
|
case "enable":
|
|
43609
43599
|
if (needHelp) {
|
|
43610
43600
|
telemetry2.trackCliFlagHelp("routes", subcommandOriginal);
|
|
@@ -43612,7 +43602,7 @@ async function main27(client) {
|
|
|
43612
43602
|
return 2;
|
|
43613
43603
|
}
|
|
43614
43604
|
telemetry2.trackCliSubcommandEnable(subcommandOriginal);
|
|
43615
|
-
return (await import("./chunks/enable-
|
|
43605
|
+
return (await import("./chunks/enable-YYWIMKHP.js")).default(client, args);
|
|
43616
43606
|
case "disable":
|
|
43617
43607
|
if (needHelp) {
|
|
43618
43608
|
telemetry2.trackCliFlagHelp("routes", subcommandOriginal);
|
|
@@ -43620,7 +43610,7 @@ async function main27(client) {
|
|
|
43620
43610
|
return 2;
|
|
43621
43611
|
}
|
|
43622
43612
|
telemetry2.trackCliSubcommandDisable(subcommandOriginal);
|
|
43623
|
-
return (await import("./chunks/disable-
|
|
43613
|
+
return (await import("./chunks/disable-QBDO6UIV.js")).default(client, args);
|
|
43624
43614
|
case "reorder":
|
|
43625
43615
|
if (needHelp) {
|
|
43626
43616
|
telemetry2.trackCliFlagHelp("routes", subcommandOriginal);
|
|
@@ -43628,7 +43618,7 @@ async function main27(client) {
|
|
|
43628
43618
|
return 2;
|
|
43629
43619
|
}
|
|
43630
43620
|
telemetry2.trackCliSubcommandReorder(subcommandOriginal);
|
|
43631
|
-
return (await import("./chunks/reorder-
|
|
43621
|
+
return (await import("./chunks/reorder-YJGPY7SA.js")).default(client, args);
|
|
43632
43622
|
case "export":
|
|
43633
43623
|
if (needHelp) {
|
|
43634
43624
|
telemetry2.trackCliFlagHelp("routes", subcommandOriginal);
|
|
@@ -43636,7 +43626,7 @@ async function main27(client) {
|
|
|
43636
43626
|
return 2;
|
|
43637
43627
|
}
|
|
43638
43628
|
telemetry2.trackCliSubcommandExport(subcommandOriginal);
|
|
43639
|
-
return (await import("./chunks/export-
|
|
43629
|
+
return (await import("./chunks/export-D3XBBQZD.js")).default(client, args);
|
|
43640
43630
|
case "publish":
|
|
43641
43631
|
if (needHelp) {
|
|
43642
43632
|
telemetry2.trackCliFlagHelp("routes", subcommandOriginal);
|
|
@@ -43644,7 +43634,7 @@ async function main27(client) {
|
|
|
43644
43634
|
return 2;
|
|
43645
43635
|
}
|
|
43646
43636
|
telemetry2.trackCliSubcommandPublish(subcommandOriginal);
|
|
43647
|
-
return (await import("./chunks/publish-
|
|
43637
|
+
return (await import("./chunks/publish-LW57QZ56.js")).default(client, args);
|
|
43648
43638
|
case "restore":
|
|
43649
43639
|
if (needHelp) {
|
|
43650
43640
|
telemetry2.trackCliFlagHelp("routes", subcommandOriginal);
|
|
@@ -43652,7 +43642,7 @@ async function main27(client) {
|
|
|
43652
43642
|
return 2;
|
|
43653
43643
|
}
|
|
43654
43644
|
telemetry2.trackCliSubcommandRestore(subcommandOriginal);
|
|
43655
|
-
return (await import("./chunks/restore-
|
|
43645
|
+
return (await import("./chunks/restore-VANQDIFO.js")).default(client, args);
|
|
43656
43646
|
case "discard-staging":
|
|
43657
43647
|
if (needHelp) {
|
|
43658
43648
|
telemetry2.trackCliFlagHelp("routes", subcommandOriginal);
|
|
@@ -43660,7 +43650,7 @@ async function main27(client) {
|
|
|
43660
43650
|
return 2;
|
|
43661
43651
|
}
|
|
43662
43652
|
telemetry2.trackCliSubcommandDiscardStaging(subcommandOriginal);
|
|
43663
|
-
return (await import("./chunks/discard-
|
|
43653
|
+
return (await import("./chunks/discard-GZZ553AR.js")).default(client, args);
|
|
43664
43654
|
default:
|
|
43665
43655
|
output_manager_default.error(getInvalidSubcommand(COMMAND_CONFIG35));
|
|
43666
43656
|
output_manager_default.print(help(routesCommand, { columns: client.stderr.columns }));
|