vercel 50.34.2 → 50.34.3
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/{chunk-ZWEZD4HE.js → chunk-2B73MZTZ.js} +1 -1
- package/dist/chunks/{chunk-7EHTK7LP.js → chunk-3ASOFJTM.js} +36 -0
- package/dist/chunks/{chunk-YFISAMQF.js → chunk-7C3TWDAN.js} +7 -7
- package/dist/chunks/{chunk-5X2QQI4Y.js → chunk-7VUZ5VVT.js} +1 -1
- package/dist/chunks/{chunk-DJAXYEGB.js → chunk-AQ7NTSF2.js} +2 -2
- package/dist/chunks/{chunk-NK6KMEYH.js → chunk-EYJUCT27.js} +2 -2
- package/dist/chunks/{chunk-7T3BJ5FK.js → chunk-FJWTUCYK.js} +6 -35
- package/dist/chunks/{chunk-RLLFICPR.js → chunk-FVUPBXPH.js} +2 -2
- package/dist/chunks/{chunk-JC4Y7GCY.js → chunk-GEGS6S4G.js} +8 -8
- package/dist/chunks/{chunk-Y4TJLLMY.js → chunk-GJKEGSBH.js} +1 -1
- package/dist/chunks/{chunk-RV55YESO.js → chunk-I5MMJLMS.js} +3 -3
- package/dist/chunks/{chunk-4CH3GRTQ.js → chunk-ICIBJ66I.js} +2 -2
- package/dist/chunks/{chunk-YQR7X2LL.js → chunk-KAEQ7YVI.js} +4 -4
- package/dist/chunks/{chunk-ZX3DVMZU.js → chunk-KL5M3C5S.js} +2 -2
- package/dist/chunks/{chunk-IQZUWWYU.js → chunk-LTBRK27Q.js} +3 -3
- package/dist/chunks/{chunk-ONQVVMEM.js → chunk-M5SK37EQ.js} +1 -1
- package/dist/chunks/{chunk-JROBFZSI.js → chunk-MR5QNBWQ.js} +1 -1
- package/dist/chunks/{chunk-NEZW5RL2.js → chunk-MXPZBZ2X.js} +10 -0
- package/dist/chunks/{chunk-NS4YUFUD.js → chunk-O22Z3FMV.js} +2 -2
- package/dist/chunks/{chunk-7NEEY4GT.js → chunk-OCHQWS33.js} +3 -3
- package/dist/chunks/{chunk-CNIXN3FM.js → chunk-OD4DMLO7.js} +1 -1
- package/dist/chunks/{chunk-EST2W2RS.js → chunk-OHTLC46O.js} +4 -4
- package/dist/chunks/{chunk-2C3YVTP2.js → chunk-OIS5SBTC.js} +2 -2
- package/dist/chunks/chunk-OQVICKJE.js +252 -0
- package/dist/chunks/{chunk-RNT5JEAQ.js → chunk-ORWD35TP.js} +1 -1
- package/dist/chunks/{chunk-HJR5RISI.js → chunk-PRFBCCG3.js} +1 -1
- package/dist/chunks/{chunk-WLKUBTU2.js → chunk-RUFDGFR6.js} +1 -1
- package/dist/chunks/{chunk-BCKMITCG.js → chunk-UCOKJMA5.js} +2 -2
- package/dist/chunks/{chunk-S23T6GGG.js → chunk-UYMK2BOV.js} +6 -6
- package/dist/chunks/{chunk-QWORIVK5.js → chunk-WCXDGBGE.js} +1 -1
- package/dist/chunks/{chunk-MXLADLCU.js → chunk-XFDX3ZUB.js} +9 -9
- package/dist/chunks/{chunk-5MLBV6EQ.js → chunk-XXUJIT6K.js} +1 -1
- package/dist/chunks/{chunk-SVMRMING.js → chunk-YCMIF7CZ.js} +7 -5
- package/dist/chunks/{chunk-OU6C3ORP.js → chunk-YKTKHFLC.js} +1 -1
- package/dist/chunks/{compile-vercel-config-7OUMD4U5.js → compile-vercel-config-YAV22JWA.js} +4 -4
- package/dist/chunks/{delete-H7ZLOR5J.js → delete-OWLJICTF.js} +6 -6
- package/dist/chunks/{disable-GWOJ2UCC.js → disable-KURVGOJR.js} +6 -6
- package/dist/chunks/{discard-EOJAG2ZH.js → discard-MLPLPLHC.js} +6 -6
- package/dist/chunks/{edit-IEKFEQSF.js → edit-OWV6AAT3.js} +8 -8
- package/dist/chunks/{enable-VLNGVG6C.js → enable-3LSQ47OV.js} +6 -6
- package/dist/chunks/{export-XLEVWQVD.js → export-GOI3ALLT.js} +6 -6
- package/dist/chunks/{list-BU7O2NZP.js → list-4CRN6YVE.js} +6 -6
- package/dist/chunks/{list-Q5EB52C3.js → list-A4NUC7J6.js} +7 -7
- package/dist/chunks/{publish-ZTF3MEVX.js → publish-M7MCTEBX.js} +6 -6
- package/dist/chunks/{query-LAPVHDND.js → query-4BIURBSO.js} +90 -57
- package/dist/chunks/{reorder-P6PXQUDG.js → reorder-C73VHWJV.js} +6 -6
- package/dist/chunks/{restore-6UE5POEG.js → restore-33RIU4CH.js} +6 -6
- package/dist/chunks/{routes-GMIJ6HLQ.js → routes-ZFV6XUH4.js} +2 -2
- package/dist/chunks/{schema-FOYE2R6S.js → schema-HFD5JPLP.js} +45 -29
- package/dist/chunks/{types-PR63MVC6.js → types-MCOZ4ZK7.js} +3 -3
- package/dist/commands/build/index.js +15 -15
- package/dist/commands/deploy/index.js +23 -23
- package/dist/commands/dev/index.js +14 -14
- package/dist/commands/env/index.js +17 -17
- package/dist/commands/link/index.js +17 -17
- package/dist/commands/list/index.js +10 -10
- package/dist/commands-bulk.js +50 -50
- package/dist/index.js +38 -22
- package/dist/version.mjs +1 -1
- package/package.json +12 -12
- package/dist/chunks/chunk-BQ3DXZNT.js +0 -968
|
@@ -4,6 +4,11 @@ import { dirname as __dirname_ } from 'node:path';
|
|
|
4
4
|
const require = __createRequire(import.meta.url);
|
|
5
5
|
const __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
|
+
import {
|
|
8
|
+
APIError,
|
|
9
|
+
InvalidToken,
|
|
10
|
+
MissingUser
|
|
11
|
+
} from "./chunk-FVUPBXPH.js";
|
|
7
12
|
import {
|
|
8
13
|
__commonJS,
|
|
9
14
|
__require
|
|
@@ -354,6 +359,37 @@ var require_pluralize = __commonJS({
|
|
|
354
359
|
}
|
|
355
360
|
});
|
|
356
361
|
|
|
362
|
+
// src/util/get-user.ts
|
|
363
|
+
async function getUser(client) {
|
|
364
|
+
try {
|
|
365
|
+
const res = await client.fetch("/v2/user", {
|
|
366
|
+
useCurrentTeam: false
|
|
367
|
+
});
|
|
368
|
+
if (!res.user) {
|
|
369
|
+
throw new MissingUser();
|
|
370
|
+
}
|
|
371
|
+
return res.user;
|
|
372
|
+
} catch (error) {
|
|
373
|
+
if (error instanceof APIError && error.status === 403) {
|
|
374
|
+
throw new InvalidToken(client.authConfig.tokenSource);
|
|
375
|
+
}
|
|
376
|
+
throw error;
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
// src/util/teams/get-team-by-id.ts
|
|
381
|
+
var teamCache = /* @__PURE__ */ new Map();
|
|
382
|
+
async function getTeamById(client, teamId) {
|
|
383
|
+
let team = teamCache.get(teamId);
|
|
384
|
+
if (!team) {
|
|
385
|
+
team = await client.fetch(`/teams/${teamId}`);
|
|
386
|
+
teamCache.set(teamId, team);
|
|
387
|
+
}
|
|
388
|
+
return team;
|
|
389
|
+
}
|
|
390
|
+
|
|
357
391
|
export {
|
|
392
|
+
getUser,
|
|
393
|
+
getTeamById,
|
|
358
394
|
require_pluralize
|
|
359
395
|
};
|
|
@@ -6,26 +6,26 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
writeProjectSettings
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-RUFDGFR6.js";
|
|
10
10
|
import {
|
|
11
11
|
ensureLink
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-LTBRK27Q.js";
|
|
13
13
|
import {
|
|
14
14
|
pullCommand
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-UCOKJMA5.js";
|
|
16
16
|
import {
|
|
17
17
|
help
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-I5MMJLMS.js";
|
|
19
19
|
import {
|
|
20
20
|
VERCEL_DIR,
|
|
21
21
|
VERCEL_DIR_PROJECT,
|
|
22
22
|
envPullCommandLogic,
|
|
23
23
|
humanizePath,
|
|
24
24
|
parseTarget
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-FJWTUCYK.js";
|
|
26
26
|
import {
|
|
27
27
|
TelemetryClient
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-MXPZBZ2X.js";
|
|
29
29
|
import {
|
|
30
30
|
stamp_default
|
|
31
31
|
} from "./chunk-SOTR4CXR.js";
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
getFlagsSpecification,
|
|
34
34
|
parseArguments,
|
|
35
35
|
printError
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-FVUPBXPH.js";
|
|
37
37
|
import {
|
|
38
38
|
emoji,
|
|
39
39
|
output_manager_default,
|
|
@@ -6,12 +6,12 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
VERCEL_DIR
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-FJWTUCYK.js";
|
|
10
10
|
import {
|
|
11
11
|
ConflictingConfigFiles,
|
|
12
12
|
InvalidLocalConfig,
|
|
13
13
|
getArgs
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-FVUPBXPH.js";
|
|
15
15
|
|
|
16
16
|
// src/util/config/local-path.ts
|
|
17
17
|
import path from "path";
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
buildCommandWithYes,
|
|
9
9
|
getLinkedProject,
|
|
10
10
|
outputAgentError
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-FJWTUCYK.js";
|
|
12
12
|
import {
|
|
13
13
|
getCommandName,
|
|
14
14
|
getCommandNamePlain,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
getGlobalFlagsOnlyFromArgs,
|
|
17
17
|
parseArguments,
|
|
18
18
|
printError
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-FVUPBXPH.js";
|
|
20
20
|
import {
|
|
21
21
|
output_manager_default
|
|
22
22
|
} from "./chunk-FDJURQMQ.js";
|
|
@@ -7,13 +7,15 @@ const __dirname = __dirname_(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
TelemetryClient,
|
|
9
9
|
require_dist as require_dist2
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-MXPZBZ2X.js";
|
|
11
11
|
import {
|
|
12
12
|
stamp_default
|
|
13
13
|
} from "./chunk-SOTR4CXR.js";
|
|
14
14
|
import {
|
|
15
|
+
getTeamById,
|
|
16
|
+
getUser,
|
|
15
17
|
require_pluralize
|
|
16
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-3ASOFJTM.js";
|
|
17
19
|
import {
|
|
18
20
|
require_ms
|
|
19
21
|
} from "./chunk-GGP5R3FU.js";
|
|
@@ -22,7 +24,6 @@ import {
|
|
|
22
24
|
CantParseJSONFile,
|
|
23
25
|
ConflictingConfigFiles,
|
|
24
26
|
InvalidToken,
|
|
25
|
-
MissingUser,
|
|
26
27
|
ProjectNotFound,
|
|
27
28
|
code,
|
|
28
29
|
forceOption,
|
|
@@ -39,7 +40,7 @@ import {
|
|
|
39
40
|
require_string_width,
|
|
40
41
|
require_strip_ansi,
|
|
41
42
|
yesOption
|
|
42
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-FVUPBXPH.js";
|
|
43
44
|
import {
|
|
44
45
|
emoji,
|
|
45
46
|
eraseLines,
|
|
@@ -54460,35 +54461,6 @@ async function getProjectByNameOrId(client, projectNameOrId, accountId, includeR
|
|
|
54460
54461
|
}
|
|
54461
54462
|
}
|
|
54462
54463
|
|
|
54463
|
-
// src/util/get-user.ts
|
|
54464
|
-
async function getUser(client) {
|
|
54465
|
-
try {
|
|
54466
|
-
const res = await client.fetch("/v2/user", {
|
|
54467
|
-
useCurrentTeam: false
|
|
54468
|
-
});
|
|
54469
|
-
if (!res.user) {
|
|
54470
|
-
throw new MissingUser();
|
|
54471
|
-
}
|
|
54472
|
-
return res.user;
|
|
54473
|
-
} catch (error) {
|
|
54474
|
-
if (error instanceof APIError && error.status === 403) {
|
|
54475
|
-
throw new InvalidToken(client.authConfig.tokenSource);
|
|
54476
|
-
}
|
|
54477
|
-
throw error;
|
|
54478
|
-
}
|
|
54479
|
-
}
|
|
54480
|
-
|
|
54481
|
-
// src/util/teams/get-team-by-id.ts
|
|
54482
|
-
var teamCache = /* @__PURE__ */ new Map();
|
|
54483
|
-
async function getTeamById(client, teamId) {
|
|
54484
|
-
let team = teamCache.get(teamId);
|
|
54485
|
-
if (!team) {
|
|
54486
|
-
team = await client.fetch(`/teams/${teamId}`);
|
|
54487
|
-
teamCache.set(teamId, team);
|
|
54488
|
-
}
|
|
54489
|
-
return team;
|
|
54490
|
-
}
|
|
54491
|
-
|
|
54492
54464
|
// src/util/config/global-path.ts
|
|
54493
54465
|
var import_xdg_app_paths = __toESM(require_xdg_app_paths(), 1);
|
|
54494
54466
|
import { homedir } from "os";
|
|
@@ -59027,7 +58999,6 @@ export {
|
|
|
59027
58999
|
updateSubcommand,
|
|
59028
59000
|
envCommand,
|
|
59029
59001
|
param,
|
|
59030
|
-
getUser,
|
|
59031
59002
|
getTeams,
|
|
59032
59003
|
isBackspaceKey,
|
|
59033
59004
|
isEnterKey,
|
|
@@ -59054,7 +59025,6 @@ export {
|
|
|
59054
59025
|
require_dist7 as require_dist,
|
|
59055
59026
|
require_fast_deep_equal,
|
|
59056
59027
|
getProjectByNameOrId,
|
|
59057
|
-
getTeamById,
|
|
59058
59028
|
require_slugify,
|
|
59059
59029
|
createGitMeta,
|
|
59060
59030
|
parseGitConfig,
|
|
@@ -59113,6 +59083,7 @@ export {
|
|
|
59113
59083
|
VERCEL_DIR_PROJECT,
|
|
59114
59084
|
getVercelDirectory,
|
|
59115
59085
|
getProjectLink,
|
|
59086
|
+
getLinkFromDir,
|
|
59116
59087
|
getLinkedProject,
|
|
59117
59088
|
linkFolderToProject
|
|
59118
59089
|
};
|
|
@@ -1253,9 +1253,9 @@ var AliasInUse = class extends NowError {
|
|
|
1253
1253
|
var CertMissing = class extends NowError {
|
|
1254
1254
|
constructor(domain) {
|
|
1255
1255
|
super({
|
|
1256
|
-
code: "
|
|
1256
|
+
code: "CERT_MISSING",
|
|
1257
1257
|
meta: { domain },
|
|
1258
|
-
message: `The
|
|
1258
|
+
message: `The certificate for domain ${domain} is missing`
|
|
1259
1259
|
});
|
|
1260
1260
|
}
|
|
1261
1261
|
};
|
|
@@ -9,35 +9,35 @@ import {
|
|
|
9
9
|
printIndications,
|
|
10
10
|
require_dist as require_dist2,
|
|
11
11
|
sleep
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-YCMIF7CZ.js";
|
|
13
13
|
import {
|
|
14
14
|
suggestNextCommands
|
|
15
15
|
} from "./chunk-XR53KVJD.js";
|
|
16
16
|
import {
|
|
17
17
|
getDeployment,
|
|
18
18
|
mapCertError
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-ORWD35TP.js";
|
|
20
20
|
import {
|
|
21
21
|
getScope
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-KL5M3C5S.js";
|
|
23
23
|
import {
|
|
24
24
|
CommandTimeout
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-XFDX3ZUB.js";
|
|
26
26
|
import {
|
|
27
27
|
ua_default
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-PRFBCCG3.js";
|
|
29
29
|
import {
|
|
30
30
|
getProjectByNameOrId,
|
|
31
31
|
param,
|
|
32
32
|
require_dist as require_dist3,
|
|
33
33
|
require_lib3 as require_lib
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-FJWTUCYK.js";
|
|
35
35
|
import {
|
|
36
36
|
stamp_default
|
|
37
37
|
} from "./chunk-SOTR4CXR.js";
|
|
38
38
|
import {
|
|
39
39
|
require_pluralize
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-3ASOFJTM.js";
|
|
41
41
|
import {
|
|
42
42
|
require_ms
|
|
43
43
|
} from "./chunk-GGP5R3FU.js";
|
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
require_bytes,
|
|
61
61
|
require_strip_ansi,
|
|
62
62
|
responseError
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-FVUPBXPH.js";
|
|
64
64
|
import {
|
|
65
65
|
emoji,
|
|
66
66
|
eraseLines,
|
|
@@ -6,14 +6,14 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
require_dist
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MXPZBZ2X.js";
|
|
10
10
|
import {
|
|
11
11
|
noBorderChars,
|
|
12
12
|
require_cli_table3
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-YKTKHFLC.js";
|
|
14
14
|
import {
|
|
15
15
|
globalCommandOptions
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-FVUPBXPH.js";
|
|
17
17
|
import {
|
|
18
18
|
require_source
|
|
19
19
|
} from "./chunk-S7KYDPEM.js";
|
|
@@ -6,11 +6,11 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
STANDARD_ENVIRONMENTS
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-FJWTUCYK.js";
|
|
10
10
|
import {
|
|
11
11
|
getCommandName,
|
|
12
12
|
require_lib
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-FVUPBXPH.js";
|
|
14
14
|
import {
|
|
15
15
|
output_manager_default
|
|
16
16
|
} from "./chunk-FDJURQMQ.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-WCXDGBGE.js";
|
|
13
13
|
import {
|
|
14
14
|
VERCEL_DIR,
|
|
15
15
|
readJSONFile,
|
|
@@ -17,15 +17,15 @@ import {
|
|
|
17
17
|
require_dist3,
|
|
18
18
|
require_lib,
|
|
19
19
|
require_minimatch
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-FJWTUCYK.js";
|
|
21
21
|
import {
|
|
22
22
|
require_pluralize
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-3ASOFJTM.js";
|
|
24
24
|
import {
|
|
25
25
|
CantParseJSONFile,
|
|
26
26
|
cmd,
|
|
27
27
|
code
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-FVUPBXPH.js";
|
|
29
29
|
import {
|
|
30
30
|
output_manager_default,
|
|
31
31
|
require_dist
|
|
@@ -7,10 +7,10 @@ const __dirname = __dirname_(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
getTeamById,
|
|
9
9
|
getUser
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-3ASOFJTM.js";
|
|
11
11
|
import {
|
|
12
12
|
TeamDeleted
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-FVUPBXPH.js";
|
|
14
14
|
|
|
15
15
|
// src/util/get-scope.ts
|
|
16
16
|
async function getScope(client, opts = {}) {
|
|
@@ -6,18 +6,18 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
setupAndLink
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-OHTLC46O.js";
|
|
10
10
|
import {
|
|
11
11
|
buildCommandWithYes,
|
|
12
12
|
getLinkedProject,
|
|
13
13
|
outputActionRequired,
|
|
14
14
|
param,
|
|
15
15
|
resolveProjectCwd
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-FJWTUCYK.js";
|
|
17
17
|
import {
|
|
18
18
|
getCommandName,
|
|
19
19
|
getCommandNamePlain
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-FVUPBXPH.js";
|
|
21
21
|
import {
|
|
22
22
|
output_manager_default
|
|
23
23
|
} from "./chunk-FDJURQMQ.js";
|
|
@@ -210,6 +210,7 @@ var TelemetryEventStore = class {
|
|
|
210
210
|
constructor(opts) {
|
|
211
211
|
this.teamId = "NO_TEAM_ID";
|
|
212
212
|
this.userId = "NO_USER_ID";
|
|
213
|
+
this.projectId = "NO_PROJECT_ID";
|
|
213
214
|
this.isDebug = opts?.isDebug || false;
|
|
214
215
|
this.sessionId = randomUUID();
|
|
215
216
|
this.events = [];
|
|
@@ -219,6 +220,7 @@ var TelemetryEventStore = class {
|
|
|
219
220
|
event.sessionId = this.sessionId;
|
|
220
221
|
event.teamId = this.teamId;
|
|
221
222
|
event.userId = this.userId;
|
|
223
|
+
event.projectId = this.projectId;
|
|
222
224
|
this.events.push(event);
|
|
223
225
|
}
|
|
224
226
|
updateTeamId(teamId) {
|
|
@@ -231,6 +233,11 @@ var TelemetryEventStore = class {
|
|
|
231
233
|
this.userId = userId;
|
|
232
234
|
}
|
|
233
235
|
}
|
|
236
|
+
updateProjectId(projectId) {
|
|
237
|
+
if (projectId) {
|
|
238
|
+
this.projectId = projectId;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
234
241
|
get hasUserId() {
|
|
235
242
|
return this.userId !== "NO_USER_ID";
|
|
236
243
|
}
|
|
@@ -252,6 +259,7 @@ var TelemetryEventStore = class {
|
|
|
252
259
|
for (const event of this.events) {
|
|
253
260
|
event.teamId = this.teamId;
|
|
254
261
|
event.userId = this.userId;
|
|
262
|
+
event.projectId = this.projectId;
|
|
255
263
|
output_manager_default.log(JSON.stringify(event));
|
|
256
264
|
}
|
|
257
265
|
return;
|
|
@@ -266,11 +274,13 @@ var TelemetryEventStore = class {
|
|
|
266
274
|
delete event.sessionId;
|
|
267
275
|
delete event.teamId;
|
|
268
276
|
delete event.userId;
|
|
277
|
+
delete event.projectId;
|
|
269
278
|
const { eventTime, ...rest } = event;
|
|
270
279
|
return {
|
|
271
280
|
event_time: eventTime,
|
|
272
281
|
team_id: this.teamId,
|
|
273
282
|
user_id: this.userId,
|
|
283
|
+
project_id: this.projectId,
|
|
274
284
|
...rest
|
|
275
285
|
};
|
|
276
286
|
});
|
|
@@ -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-YKTKHFLC.js";
|
|
10
10
|
import {
|
|
11
11
|
require_strip_ansi
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-FVUPBXPH.js";
|
|
13
13
|
import {
|
|
14
14
|
require_source
|
|
15
15
|
} from "./chunk-S7KYDPEM.js";
|
|
@@ -7,7 +7,7 @@ const __dirname = __dirname_(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
formatOption,
|
|
9
9
|
packageName
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-FVUPBXPH.js";
|
|
11
11
|
|
|
12
12
|
// src/commands/metrics/command.ts
|
|
13
13
|
var schemaSubcommand = {
|
|
@@ -139,8 +139,8 @@ var metricsCommand = {
|
|
|
139
139
|
shorthand: "p",
|
|
140
140
|
type: String,
|
|
141
141
|
deprecated: false,
|
|
142
|
-
description: "Project name (default: linked project)",
|
|
143
|
-
argument: "
|
|
142
|
+
description: "Project name or ID (default: linked project)",
|
|
143
|
+
argument: "NAME_OR_ID"
|
|
144
144
|
},
|
|
145
145
|
{
|
|
146
146
|
name: "all",
|
|
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
TelemetryClient
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MXPZBZ2X.js";
|
|
10
10
|
|
|
11
11
|
// src/util/telemetry/commands/routes/index.ts
|
|
12
12
|
var RoutesTelemetryClient = class extends TelemetryClient {
|
|
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
getLocalPathConfig
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-AQ7NTSF2.js";
|
|
10
10
|
import {
|
|
11
11
|
VERCEL_DIR_PROJECT,
|
|
12
12
|
VERCEL_DIR_README,
|
|
@@ -31,16 +31,16 @@ import {
|
|
|
31
31
|
selectAndParseRemoteUrl,
|
|
32
32
|
selectOrg,
|
|
33
33
|
writeServicesConfig
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-FJWTUCYK.js";
|
|
35
35
|
import {
|
|
36
36
|
table
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-YKTKHFLC.js";
|
|
38
38
|
import {
|
|
39
39
|
CantParseJSONFile,
|
|
40
40
|
ProjectNotFound,
|
|
41
41
|
isAPIError,
|
|
42
42
|
printError
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-FVUPBXPH.js";
|
|
44
44
|
import {
|
|
45
45
|
output_manager_default
|
|
46
46
|
} from "./chunk-FDJURQMQ.js";
|
|
@@ -6,10 +6,10 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
require_lib
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-FJWTUCYK.js";
|
|
10
10
|
import {
|
|
11
11
|
packageName
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-FVUPBXPH.js";
|
|
13
13
|
import {
|
|
14
14
|
__toESM
|
|
15
15
|
} from "./chunk-TZ2YI2VH.js";
|