vercel 52.0.0 → 52.2.1
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-32PTAGQE.js → add-6TZOFI3R.js} +8 -8
- package/dist/chunks/{chunk-JJBN66Y6.js → chunk-2OWOUKOK.js} +1 -1
- package/dist/chunks/{chunk-K7R6WOLC.js → chunk-3QA5ZIDF.js} +3 -3
- package/dist/chunks/{chunk-TAOVG4PS.js → chunk-4Q5VS23S.js} +3 -3
- package/dist/chunks/{chunk-VGWGLBUC.js → chunk-5EDL2IVB.js} +2 -2
- package/dist/chunks/{chunk-I5IBRE7Q.js → chunk-5R6AOACI.js} +4 -4
- package/dist/chunks/{chunk-BNSXPMDP.js → chunk-5WC7QCYE.js} +4 -4
- package/dist/chunks/{chunk-EG4NYQUS.js → chunk-64DDAGJR.js} +1 -1
- package/dist/chunks/{chunk-YLGCZTHB.js → chunk-6TMKD3SZ.js} +3 -3
- package/dist/chunks/{chunk-BHDZCUTT.js → chunk-77JGNI4Z.js} +2 -2
- package/dist/chunks/{chunk-GJEZXG32.js → chunk-7FQKQPBD.js} +7 -7
- package/dist/chunks/{chunk-GE6G37P4.js → chunk-ABDTA3V2.js} +1 -1
- package/dist/chunks/{chunk-G6RXZLQ2.js → chunk-DFUTSURK.js} +2 -2
- package/dist/chunks/{chunk-2OPPBD5D.js → chunk-DQWTHIXD.js} +12 -12
- package/dist/chunks/{chunk-PEB65MJA.js → chunk-EKSIQ3UW.js} +5 -5
- package/dist/chunks/{chunk-FOWUL5QD.js → chunk-G5EHVWFI.js} +2 -2
- package/dist/chunks/{chunk-CRZM5WM2.js → chunk-HMM7V4AU.js} +2 -2
- package/dist/chunks/{chunk-XKHLPA6V.js → chunk-IABMY4Q3.js} +22 -20
- package/dist/chunks/{chunk-GLDQ23LD.js → chunk-IEKDY4FP.js} +1 -1
- package/dist/chunks/{chunk-UC4NDDAU.js → chunk-J7KBPHDC.js} +6 -6
- package/dist/chunks/{chunk-4PQA6H63.js → chunk-JCLLQ23G.js} +1 -1
- package/dist/chunks/{chunk-RFMC2QXQ.js → chunk-JNOMOD7R.js} +15 -11
- package/dist/chunks/{chunk-V67XYW74.js → chunk-KHSD7WPG.js} +4 -2
- package/dist/chunks/{chunk-UWKTUK3W.js → chunk-LN5ZMLBU.js} +2 -2
- package/dist/chunks/{chunk-N45K6NXC.js → chunk-MSJX3VKI.js} +1 -1
- package/dist/chunks/{chunk-VPI2ZRPP.js → chunk-NAUUP4G6.js} +3 -3
- package/dist/chunks/{chunk-BJQTGP42.js → chunk-NCUOSZ6X.js} +2 -2
- package/dist/chunks/{chunk-DVQ4SIWF.js → chunk-P3H4MP5H.js} +2 -2
- package/dist/chunks/{chunk-LDXYSGPZ.js → chunk-QPPVRYOB.js} +2 -2
- package/dist/chunks/{chunk-US5SYA7N.js → chunk-QWJ7O2C7.js} +2 -2
- package/dist/chunks/{chunk-LY3PUG7C.js → chunk-RC7YZO6Q.js} +23 -6
- package/dist/chunks/{chunk-OP4YIHHX.js → chunk-RCK5HPNI.js} +1 -1
- package/dist/chunks/{chunk-FVWOH3F3.js → chunk-SCAOSA7F.js} +3 -3
- package/dist/chunks/{chunk-QQWE4QMB.js → chunk-U3F7M3YG.js} +2 -2
- package/dist/chunks/{chunk-3Q7JX627.js → chunk-VROU4JKW.js} +4 -4
- package/dist/chunks/{chunk-ECRBC4HL.js → chunk-XZ7CVBQ4.js} +26 -0
- package/dist/chunks/{chunk-HUUTUVP5.js → chunk-Z4FJ42GO.js} +9 -9
- package/dist/chunks/{compile-vercel-config-RAC75XPY.js → compile-vercel-config-THZQEC4T.js} +4 -4
- package/dist/chunks/{delete-VBCRT33S.js → delete-S4BNBMHT.js} +6 -6
- package/dist/chunks/{disable-4AGI6NFV.js → disable-UP64WKDO.js} +6 -6
- package/dist/chunks/{discard-JUCF555L.js → discard-6B5FPH6F.js} +6 -6
- package/dist/chunks/{edit-NNTNLAVV.js → edit-NAVDTRJX.js} +7 -7
- package/dist/chunks/{enable-DCCSTYJV.js → enable-X5XOP7MC.js} +6 -6
- package/dist/chunks/{export-2VCMSLPY.js → export-EVJLYZFA.js} +6 -6
- package/dist/chunks/{inspect-TGMNTP57.js → inspect-ZSFXZM57.js} +8 -8
- package/dist/chunks/{list-2EQRO64T.js → list-CSE74VTU.js} +6 -6
- package/dist/chunks/{list-JQLSGKZN.js → list-II2MKBZK.js} +9 -9
- package/dist/chunks/{ls-XCMOFSVP.js → ls-WPJAKB5Y.js} +8 -8
- package/dist/chunks/{publish-JY65X2KM.js → publish-YMSSQNFI.js} +6 -6
- package/dist/chunks/{query-ID2PPUU6.js → query-RXC5UHQX.js} +8 -8
- package/dist/chunks/{reorder-HYBSLO2T.js → reorder-ZKTJ4D6E.js} +6 -6
- package/dist/chunks/{restore-33F7XKHU.js → restore-KM6OQHZY.js} +6 -6
- package/dist/chunks/{rm-D4MBLVAI.js → rm-SJ26XXVR.js} +8 -8
- package/dist/chunks/{rule-inspect-ZQQK2DV3.js → rule-inspect-KYT5ICO4.js} +8 -8
- package/dist/chunks/{rules-R2BZLO6I.js → rules-VT5K2MFX.js} +8 -8
- package/dist/chunks/{schema-3G43CXHB.js → schema-CQHTQCYK.js} +9 -9
- package/dist/chunks/{types-QNN5CDCB.js → types-FAFL42RV.js} +4 -4
- package/dist/chunks/{update-MI26ZSNY.js → update-JDLTS73Z.js} +8 -8
- package/dist/commands/build/index.js +15 -15
- package/dist/commands/deploy/index.js +24 -24
- package/dist/commands/dev/index.js +14 -14
- package/dist/commands/env/index.js +18 -18
- package/dist/commands/link/index.js +18 -18
- package/dist/commands/list/index.js +10 -10
- package/dist/commands-bulk.js +117 -64
- package/dist/index.js +22 -22
- package/dist/version.mjs +1 -1
- package/package.json +14 -14
|
@@ -9,35 +9,35 @@ import {
|
|
|
9
9
|
handleRulesApiError,
|
|
10
10
|
parseRulesFlagsAndScope,
|
|
11
11
|
rulesCollectionPath
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-G5EHVWFI.js";
|
|
13
|
+
import "./chunk-VROU4JKW.js";
|
|
14
14
|
import "./chunk-HTOH3MSD.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-KHSD7WPG.js";
|
|
16
16
|
import {
|
|
17
17
|
validateJsonOutput
|
|
18
18
|
} from "./chunk-XPKWKPWA.js";
|
|
19
19
|
import {
|
|
20
20
|
rulesAddSubcommand
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-P3H4MP5H.js";
|
|
22
22
|
import {
|
|
23
23
|
AGENT_REASON
|
|
24
24
|
} from "./chunk-E3NE4SKN.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-NAUUP4G6.js";
|
|
26
26
|
import "./chunk-U3WLEFHU.js";
|
|
27
27
|
import {
|
|
28
28
|
buildCommandWithGlobalFlags,
|
|
29
29
|
outputAgentError
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-IABMY4Q3.js";
|
|
31
31
|
import "./chunk-CO5D46AG.js";
|
|
32
32
|
import {
|
|
33
33
|
getFlagsSpecification,
|
|
34
34
|
parseArguments,
|
|
35
35
|
printError
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-JNOMOD7R.js";
|
|
37
37
|
import {
|
|
38
38
|
isAPIError,
|
|
39
39
|
packageName
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-XZ7CVBQ4.js";
|
|
41
41
|
import {
|
|
42
42
|
output_manager_default
|
|
43
43
|
} from "./chunk-ZQKJVHXY.js";
|
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
getEnvTargetPlaceholder,
|
|
12
12
|
global_path_default
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-NAUUP4G6.js";
|
|
14
14
|
import {
|
|
15
15
|
yesOption
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-JNOMOD7R.js";
|
|
17
17
|
import {
|
|
18
18
|
packageName
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-XZ7CVBQ4.js";
|
|
20
20
|
import {
|
|
21
21
|
output_manager_default
|
|
22
22
|
} from "./chunk-ZQKJVHXY.js";
|
|
@@ -6,14 +6,14 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
rulesAggregateCommand
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-P3H4MP5H.js";
|
|
10
10
|
import {
|
|
11
11
|
formatOption,
|
|
12
12
|
limitOption
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-JNOMOD7R.js";
|
|
14
14
|
import {
|
|
15
15
|
packageName
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-XZ7CVBQ4.js";
|
|
17
17
|
|
|
18
18
|
// src/commands/alerts/command.ts
|
|
19
19
|
var listSubcommand = {
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
formatOption,
|
|
11
11
|
nextOption,
|
|
12
12
|
yesOption
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-JNOMOD7R.js";
|
|
14
14
|
import {
|
|
15
15
|
packageName
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-XZ7CVBQ4.js";
|
|
17
17
|
|
|
18
18
|
// src/commands/list/command.ts
|
|
19
19
|
var listCommand = {
|
|
@@ -6,20 +6,20 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
setupAndLink
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-EKSIQ3UW.js";
|
|
10
10
|
import {
|
|
11
11
|
getLinkedProject,
|
|
12
12
|
param,
|
|
13
13
|
resolveProjectCwd
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-NAUUP4G6.js";
|
|
15
15
|
import {
|
|
16
16
|
buildCommandWithYes,
|
|
17
17
|
outputActionRequired
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-IABMY4Q3.js";
|
|
19
19
|
import {
|
|
20
20
|
getCommandName,
|
|
21
21
|
getCommandNamePlain
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-XZ7CVBQ4.js";
|
|
23
23
|
import {
|
|
24
24
|
output_manager_default
|
|
25
25
|
} from "./chunk-ZQKJVHXY.js";
|
|
@@ -10,21 +10,21 @@ import {
|
|
|
10
10
|
} from "./chunk-E3NE4SKN.js";
|
|
11
11
|
import {
|
|
12
12
|
getLinkedProject
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-NAUUP4G6.js";
|
|
14
14
|
import {
|
|
15
15
|
buildCommandWithYes,
|
|
16
16
|
outputAgentError
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-IABMY4Q3.js";
|
|
18
18
|
import {
|
|
19
19
|
getFlagsSpecification,
|
|
20
20
|
getGlobalFlagsOnlyFromArgs,
|
|
21
21
|
parseArguments,
|
|
22
22
|
printError
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-JNOMOD7R.js";
|
|
24
24
|
import {
|
|
25
25
|
getCommandName,
|
|
26
26
|
getCommandNamePlain
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-XZ7CVBQ4.js";
|
|
28
28
|
import {
|
|
29
29
|
output_manager_default
|
|
30
30
|
} from "./chunk-ZQKJVHXY.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-IB5L4LKZ.js";
|
|
10
10
|
import {
|
|
11
11
|
require_execa
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-64DDAGJR.js";
|
|
13
13
|
import {
|
|
14
14
|
VERCEL_DIR,
|
|
15
15
|
readJSONFile,
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
require_lib,
|
|
19
19
|
require_minimatch,
|
|
20
20
|
require_pluralize
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-NAUUP4G6.js";
|
|
22
22
|
import {
|
|
23
23
|
CantParseJSONFile,
|
|
24
24
|
cmd,
|
|
25
25
|
code
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-XZ7CVBQ4.js";
|
|
27
27
|
import {
|
|
28
28
|
output_manager_default,
|
|
29
29
|
require_dist
|
|
@@ -6,10 +6,10 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
formatOption
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-JNOMOD7R.js";
|
|
10
10
|
import {
|
|
11
11
|
packageName
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-XZ7CVBQ4.js";
|
|
13
13
|
|
|
14
14
|
// src/commands/metrics/command.ts
|
|
15
15
|
var schemaSubcommand = {
|
|
@@ -6,21 +6,21 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
getUpdateCommand
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-QWJ7O2C7.js";
|
|
10
10
|
import {
|
|
11
11
|
login
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-RC7YZO6Q.js";
|
|
13
13
|
import {
|
|
14
14
|
apiCommand,
|
|
15
15
|
listSubcommand2 as listSubcommand,
|
|
16
16
|
loginCommand
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-DQWTHIXD.js";
|
|
18
18
|
import {
|
|
19
19
|
help
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-QPPVRYOB.js";
|
|
21
21
|
import {
|
|
22
22
|
global_path_default
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-NAUUP4G6.js";
|
|
24
24
|
import {
|
|
25
25
|
TelemetryClient
|
|
26
26
|
} from "./chunk-U3WLEFHU.js";
|
|
@@ -32,10 +32,10 @@ import {
|
|
|
32
32
|
parseArguments,
|
|
33
33
|
printError,
|
|
34
34
|
require_strip_ansi
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-JNOMOD7R.js";
|
|
36
36
|
import {
|
|
37
37
|
packageName
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-XZ7CVBQ4.js";
|
|
39
39
|
import {
|
|
40
40
|
output_manager_default
|
|
41
41
|
} from "./chunk-ZQKJVHXY.js";
|
|
@@ -6,10 +6,10 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
table
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ABDTA3V2.js";
|
|
10
10
|
import {
|
|
11
11
|
require_strip_ansi
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-JNOMOD7R.js";
|
|
13
13
|
import {
|
|
14
14
|
require_source
|
|
15
15
|
} from "./chunk-S7KYDPEM.js";
|
|
@@ -6,29 +6,29 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
routesCommand
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-HMM7V4AU.js";
|
|
10
10
|
import {
|
|
11
11
|
metricsCommand
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-77JGNI4Z.js";
|
|
13
13
|
import {
|
|
14
14
|
devCommand
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-NCUOSZ6X.js";
|
|
16
16
|
import {
|
|
17
17
|
activityCommand
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-LN5ZMLBU.js";
|
|
19
19
|
import {
|
|
20
20
|
alertsCommand
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-4Q5VS23S.js";
|
|
22
22
|
import {
|
|
23
23
|
listCommand
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-5EDL2IVB.js";
|
|
25
25
|
import {
|
|
26
26
|
buildCommand,
|
|
27
27
|
pullCommand
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-3QA5ZIDF.js";
|
|
29
29
|
import {
|
|
30
30
|
envCommand
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-NAUUP4G6.js";
|
|
32
32
|
import {
|
|
33
33
|
confirmOption,
|
|
34
34
|
forceOption,
|
|
@@ -37,10 +37,10 @@ import {
|
|
|
37
37
|
limitOption,
|
|
38
38
|
nextOption,
|
|
39
39
|
yesOption
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-JNOMOD7R.js";
|
|
41
41
|
import {
|
|
42
42
|
packageName
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-XZ7CVBQ4.js";
|
|
44
44
|
import {
|
|
45
45
|
output_manager_default
|
|
46
46
|
} from "./chunk-ZQKJVHXY.js";
|
|
@@ -2172,9 +2172,9 @@ var tokensSubcommand = {
|
|
|
2172
2172
|
name: "remove",
|
|
2173
2173
|
shorthand: null,
|
|
2174
2174
|
type: [String],
|
|
2175
|
-
argument: "
|
|
2175
|
+
argument: "ID_OR_TOKEN",
|
|
2176
2176
|
deprecated: false,
|
|
2177
|
-
description: "Revoke one or more token
|
|
2177
|
+
description: "Revoke one or more tokens by id or plaintext token (repeatable). Requires `--yes` in non-interactive mode"
|
|
2178
2178
|
}
|
|
2179
2179
|
],
|
|
2180
2180
|
examples: []
|
|
@@ -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-
|
|
9
|
+
} from "./chunk-SCAOSA7F.js";
|
|
10
10
|
import {
|
|
11
11
|
table
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ABDTA3V2.js";
|
|
13
13
|
import {
|
|
14
14
|
VERCEL_DIR_PROJECT,
|
|
15
15
|
VERCEL_DIR_README,
|
|
@@ -37,15 +37,15 @@ import {
|
|
|
37
37
|
selectAndParseRemoteUrl,
|
|
38
38
|
selectOrg,
|
|
39
39
|
writeServicesConfig
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-NAUUP4G6.js";
|
|
41
41
|
import {
|
|
42
42
|
printError
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-JNOMOD7R.js";
|
|
44
44
|
import {
|
|
45
45
|
CantParseJSONFile,
|
|
46
46
|
ProjectNotFound,
|
|
47
47
|
isAPIError
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-XZ7CVBQ4.js";
|
|
49
49
|
import {
|
|
50
50
|
output_manager_default
|
|
51
51
|
} from "./chunk-ZQKJVHXY.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-
|
|
9
|
+
} from "./chunk-VROU4JKW.js";
|
|
10
10
|
import {
|
|
11
11
|
handleValidationError,
|
|
12
12
|
outputError,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
import {
|
|
19
19
|
buildCommandWithGlobalFlags,
|
|
20
20
|
outputAgentError
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-IABMY4Q3.js";
|
|
22
22
|
|
|
23
23
|
// src/commands/alerts/rules/parse-scope.ts
|
|
24
24
|
async function parseRulesFlagsAndScope(client, flags, jsonOutput) {
|
|
@@ -6,10 +6,10 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
yesOption
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-JNOMOD7R.js";
|
|
10
10
|
import {
|
|
11
11
|
packageName
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-XZ7CVBQ4.js";
|
|
13
13
|
|
|
14
14
|
// src/commands/routes/command.ts
|
|
15
15
|
var listSubcommand = {
|
|
@@ -8,8 +8,9 @@ import {
|
|
|
8
8
|
LinkRequiredError,
|
|
9
9
|
ProjectNotFound,
|
|
10
10
|
isAPIError,
|
|
11
|
-
packageName
|
|
12
|
-
|
|
11
|
+
packageName,
|
|
12
|
+
stripSensitiveAuthArgs
|
|
13
|
+
} from "./chunk-XZ7CVBQ4.js";
|
|
13
14
|
import {
|
|
14
15
|
require_dist
|
|
15
16
|
} from "./chunk-ZQKJVHXY.js";
|
|
@@ -20,10 +21,10 @@ import {
|
|
|
20
21
|
// src/util/agent-output.ts
|
|
21
22
|
var import_error_utils = __toESM(require_dist(), 1);
|
|
22
23
|
function buildCommandWithYes(argv, pkgName = packageName) {
|
|
23
|
-
const args = argv.slice(2);
|
|
24
|
+
const args = stripSensitiveAuthArgs(argv.slice(2));
|
|
24
25
|
const hasYes = args.some((a) => a === "--yes" || a === "-y");
|
|
25
|
-
const out = hasYes ?
|
|
26
|
-
return `${pkgName} ${out.join(" ")}
|
|
26
|
+
const out = hasYes ? args : [...args, "--yes"];
|
|
27
|
+
return `${pkgName} ${out.join(" ")}`.trim();
|
|
27
28
|
}
|
|
28
29
|
var GLOBAL_FLAG_NAMES = /* @__PURE__ */ new Set([
|
|
29
30
|
"--cwd",
|
|
@@ -34,12 +35,12 @@ var GLOBAL_FLAG_NAMES = /* @__PURE__ */ new Set([
|
|
|
34
35
|
"--scope",
|
|
35
36
|
"--team",
|
|
36
37
|
"-S",
|
|
37
|
-
"-T"
|
|
38
|
-
|
|
38
|
+
"-T"
|
|
39
|
+
// --token/-t are intentionally excluded and stripped via stripSensitiveAuthArgs.
|
|
39
40
|
]);
|
|
40
41
|
var BOOLEAN_GLOBAL_FLAG_NAMES = /* @__PURE__ */ new Set(["--yes", "-y", "--non-interactive"]);
|
|
41
42
|
function getGlobalFlagsFromArgv(argv) {
|
|
42
|
-
const args = argv.slice(2);
|
|
43
|
+
const args = stripSensitiveAuthArgs(argv.slice(2));
|
|
43
44
|
const out = [];
|
|
44
45
|
for (let i = 0; i < args.length; i++) {
|
|
45
46
|
const arg = args[i];
|
|
@@ -56,12 +57,13 @@ function getGlobalFlagsFromArgv(argv) {
|
|
|
56
57
|
return out;
|
|
57
58
|
}
|
|
58
59
|
function omitGlobalFlagsFromArgs(args) {
|
|
60
|
+
const safeArgs = stripSensitiveAuthArgs(args);
|
|
59
61
|
const out = [];
|
|
60
|
-
for (let i = 0; i <
|
|
61
|
-
const arg =
|
|
62
|
+
for (let i = 0; i < safeArgs.length; i++) {
|
|
63
|
+
const arg = safeArgs[i];
|
|
62
64
|
const name = arg.startsWith("--") ? arg.split("=")[0] : arg;
|
|
63
65
|
if (GLOBAL_FLAG_NAMES.has(name)) {
|
|
64
|
-
const skipSeparateValue = !BOOLEAN_GLOBAL_FLAG_NAMES.has(name) && !arg.includes("=") && i + 1 <
|
|
66
|
+
const skipSeparateValue = !BOOLEAN_GLOBAL_FLAG_NAMES.has(name) && !arg.includes("=") && i + 1 < safeArgs.length && !safeArgs[i + 1].startsWith("-");
|
|
65
67
|
if (skipSeparateValue) {
|
|
66
68
|
i++;
|
|
67
69
|
}
|
|
@@ -110,14 +112,14 @@ function getPreservedArgsForEnvAdd(argv) {
|
|
|
110
112
|
const args = argv.slice(2);
|
|
111
113
|
const addIdx = args.indexOf("add");
|
|
112
114
|
if (addIdx === -1 || args[addIdx - 1] !== "env")
|
|
113
|
-
return args;
|
|
115
|
+
return stripSensitiveAuthArgs(args);
|
|
114
116
|
let i = addIdx + 1;
|
|
115
117
|
let positionals = 0;
|
|
116
118
|
while (i < args.length && positionals < 3 && !args[i].startsWith("-")) {
|
|
117
119
|
positionals++;
|
|
118
120
|
i++;
|
|
119
121
|
}
|
|
120
|
-
return args.slice(i);
|
|
122
|
+
return stripSensitiveAuthArgs(args.slice(i));
|
|
121
123
|
}
|
|
122
124
|
function buildEnvAddCommandWithPreservedArgs(argv, commandTemplate, pkgName = packageName) {
|
|
123
125
|
let preserved = getPreservedArgsForEnvAdd(argv);
|
|
@@ -146,24 +148,24 @@ function getPreservedArgsForEnvPull(argv) {
|
|
|
146
148
|
const args = argv.slice(2);
|
|
147
149
|
const pullIdx = args.indexOf("pull");
|
|
148
150
|
if (pullIdx === -1 || args[pullIdx - 1] !== "env")
|
|
149
|
-
return args;
|
|
151
|
+
return stripSensitiveAuthArgs(args);
|
|
150
152
|
let i = pullIdx + 1;
|
|
151
153
|
if (i < args.length && !args[i].startsWith("-"))
|
|
152
154
|
i++;
|
|
153
|
-
return args.slice(i);
|
|
155
|
+
return stripSensitiveAuthArgs(args.slice(i));
|
|
154
156
|
}
|
|
155
157
|
function getPreservedArgsForEnvRm(argv) {
|
|
156
158
|
const args = argv.slice(2);
|
|
157
159
|
const rmIdx = args.indexOf("rm");
|
|
158
160
|
if (rmIdx === -1 || args[rmIdx - 1] !== "env")
|
|
159
|
-
return args;
|
|
161
|
+
return stripSensitiveAuthArgs(args);
|
|
160
162
|
let i = rmIdx + 1;
|
|
161
163
|
let positionals = 0;
|
|
162
164
|
while (i < args.length && positionals < 3 && !args[i].startsWith("-")) {
|
|
163
165
|
positionals++;
|
|
164
166
|
i++;
|
|
165
167
|
}
|
|
166
|
-
return args.slice(i);
|
|
168
|
+
return stripSensitiveAuthArgs(args.slice(i));
|
|
167
169
|
}
|
|
168
170
|
function buildEnvRmCommandWithPreservedArgs(argv, commandTemplate, pkgName = packageName) {
|
|
169
171
|
let preserved = getPreservedArgsForEnvRm(argv);
|
|
@@ -179,14 +181,14 @@ function getPreservedArgsForEnvUpdate(argv) {
|
|
|
179
181
|
const args = argv.slice(2);
|
|
180
182
|
const updateIdx = args.indexOf("update");
|
|
181
183
|
if (updateIdx === -1 || args[updateIdx - 1] !== "env")
|
|
182
|
-
return args;
|
|
184
|
+
return stripSensitiveAuthArgs(args);
|
|
183
185
|
let i = updateIdx + 1;
|
|
184
186
|
let positionals = 0;
|
|
185
187
|
while (i < args.length && positionals < 3 && !args[i].startsWith("-")) {
|
|
186
188
|
positionals++;
|
|
187
189
|
i++;
|
|
188
190
|
}
|
|
189
|
-
return args.slice(i);
|
|
191
|
+
return stripSensitiveAuthArgs(args.slice(i));
|
|
190
192
|
}
|
|
191
193
|
function buildEnvUpdateCommandWithPreservedArgs(argv, commandTemplate, pkgName = packageName) {
|
|
192
194
|
let preserved = getPreservedArgsForEnvUpdate(argv);
|
|
@@ -212,7 +214,7 @@ function buildEnvUpdateCommandWithPreservedArgs(argv, commandTemplate, pkgName =
|
|
|
212
214
|
return `${base} ${preserved.join(" ")}`;
|
|
213
215
|
}
|
|
214
216
|
function buildCommandWithScope(argv, scopeSlug, pkgName = packageName) {
|
|
215
|
-
const args = argv.slice(2);
|
|
217
|
+
const args = stripSensitiveAuthArgs(argv.slice(2));
|
|
216
218
|
const out = [];
|
|
217
219
|
for (let i = 0; i < args.length; i++) {
|
|
218
220
|
if (args[i] === "--scope" || args[i] === "--team" || args[i] === "-S" || args[i] === "-T") {
|
|
@@ -6,24 +6,24 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
writeProjectSettings
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-RCK5HPNI.js";
|
|
10
10
|
import {
|
|
11
11
|
ensureLink
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-5R6AOACI.js";
|
|
13
13
|
import {
|
|
14
14
|
autoInstallVercelPlugin,
|
|
15
15
|
pullCommand
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-3QA5ZIDF.js";
|
|
17
17
|
import {
|
|
18
18
|
help
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-QPPVRYOB.js";
|
|
20
20
|
import {
|
|
21
21
|
VERCEL_DIR,
|
|
22
22
|
VERCEL_DIR_PROJECT,
|
|
23
23
|
envPullCommandLogic,
|
|
24
24
|
humanizePath,
|
|
25
25
|
parseTarget
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-NAUUP4G6.js";
|
|
27
27
|
import {
|
|
28
28
|
TelemetryClient
|
|
29
29
|
} from "./chunk-U3WLEFHU.js";
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
getFlagsSpecification,
|
|
35
35
|
parseArguments,
|
|
36
36
|
printError
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-JNOMOD7R.js";
|
|
38
38
|
import {
|
|
39
39
|
emoji,
|
|
40
40
|
output_manager_default,
|
|
@@ -7,9 +7,11 @@ const __dirname = __dirname_(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
getCommandName,
|
|
9
9
|
getCommandNamePlain,
|
|
10
|
+
normalizeFlagName,
|
|
10
11
|
parseRetryAfterHeaderAsMillis,
|
|
11
|
-
require_bytes
|
|
12
|
-
|
|
12
|
+
require_bytes,
|
|
13
|
+
stripSensitiveAuthArgs
|
|
14
|
+
} from "./chunk-XZ7CVBQ4.js";
|
|
13
15
|
import {
|
|
14
16
|
output_manager_default
|
|
15
17
|
} from "./chunk-ZQKJVHXY.js";
|
|
@@ -339,7 +341,7 @@ var GLOBAL_CLI_FLAG_NAMES = (() => {
|
|
|
339
341
|
return set;
|
|
340
342
|
})();
|
|
341
343
|
function globalCliFlagTakesValue(flagName) {
|
|
342
|
-
const normalized =
|
|
344
|
+
const normalized = normalizeFlagName(flagName);
|
|
343
345
|
for (const opt of globalCommandOptions) {
|
|
344
346
|
if (`--${opt.name}` === normalized) {
|
|
345
347
|
return opt.type === String;
|
|
@@ -362,23 +364,24 @@ var SUBCOMMAND_FLAG_TAKES_VALUE = /* @__PURE__ */ new Set([
|
|
|
362
364
|
"--per-page"
|
|
363
365
|
]);
|
|
364
366
|
function suggestionFlagTakesSeparateValue(flagName) {
|
|
365
|
-
const name =
|
|
367
|
+
const name = normalizeFlagName(flagName);
|
|
366
368
|
if (globalCliFlagTakesValue(name))
|
|
367
369
|
return true;
|
|
368
370
|
return SUBCOMMAND_FLAG_TAKES_VALUE.has(name);
|
|
369
371
|
}
|
|
370
372
|
function getSameSubcommandSuggestionFlags(args) {
|
|
373
|
+
const safeArgs = stripSensitiveAuthArgs(args);
|
|
371
374
|
const out = [];
|
|
372
|
-
for (let i = 0; i <
|
|
373
|
-
const a =
|
|
375
|
+
for (let i = 0; i < safeArgs.length; i++) {
|
|
376
|
+
const a = safeArgs[i];
|
|
374
377
|
if (!a.startsWith("-"))
|
|
375
378
|
continue;
|
|
376
379
|
out.push(a);
|
|
377
380
|
if (a.includes("="))
|
|
378
381
|
continue;
|
|
379
382
|
const name = a;
|
|
380
|
-
if (suggestionFlagTakesSeparateValue(name) && i + 1 <
|
|
381
|
-
out.push(
|
|
383
|
+
if (suggestionFlagTakesSeparateValue(name) && i + 1 < safeArgs.length && !safeArgs[i + 1].startsWith("-")) {
|
|
384
|
+
out.push(safeArgs[++i]);
|
|
382
385
|
}
|
|
383
386
|
}
|
|
384
387
|
return out;
|
|
@@ -451,9 +454,10 @@ for (const opt of globalCommandOptions) {
|
|
|
451
454
|
}
|
|
452
455
|
}
|
|
453
456
|
function getGlobalFlagsOnlyFromArgs(args) {
|
|
457
|
+
const safeArgs = stripSensitiveAuthArgs(args);
|
|
454
458
|
const out = [];
|
|
455
|
-
for (let i = 0; i <
|
|
456
|
-
const a =
|
|
459
|
+
for (let i = 0; i < safeArgs.length; i++) {
|
|
460
|
+
const a = safeArgs[i];
|
|
457
461
|
let opt;
|
|
458
462
|
if (a.startsWith("--") && a.includes("=")) {
|
|
459
463
|
const name = a.slice(2).split("=")[0];
|
|
@@ -467,7 +471,7 @@ function getGlobalFlagsOnlyFromArgs(args) {
|
|
|
467
471
|
continue;
|
|
468
472
|
out.push(a);
|
|
469
473
|
if (opt.type === String && !a.includes("=")) {
|
|
470
|
-
const next =
|
|
474
|
+
const next = safeArgs[i + 1];
|
|
471
475
|
if (next && !next.startsWith("-")) {
|
|
472
476
|
out.push(next);
|
|
473
477
|
i++;
|