vercel 54.5.0 → 54.6.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-46BTOFC7.js → add-4JTZ2IN2.js} +4 -4
- package/dist/chunks/{chunk-T7VHC2DK.js → chunk-6PVIXIDG.js} +1 -1
- package/dist/chunks/{chunk-2G6J2HUB.js → chunk-7O3VXZBW.js} +1 -1
- package/dist/chunks/{chunk-CJLBNVOS.js → chunk-AQMLIXGD.js} +1 -1
- package/dist/chunks/{chunk-UHKS7F5B.js → chunk-B43F7BHW.js} +12 -3
- package/dist/chunks/{chunk-N4LMPL2S.js → chunk-BT4S267X.js} +2 -2
- package/dist/chunks/{chunk-P46TZBIB.js → chunk-C7WFNC2H.js} +1 -1
- package/dist/chunks/{chunk-C7WEABOB.js → chunk-HXXKDZQ6.js} +1 -1
- package/dist/chunks/{chunk-R57BN3NG.js → chunk-IZ6WAFPZ.js} +1 -1
- package/dist/chunks/{chunk-5ARQ77PP.js → chunk-JD4N3RDP.js} +1 -1
- package/dist/chunks/{chunk-AOAIT4LV.js → chunk-KNTWCQDY.js} +8 -4
- package/dist/chunks/{chunk-KUSGUF2H.js → chunk-KSWKCPMW.js} +7 -7
- package/dist/chunks/{chunk-SFQW4CWI.js → chunk-LT7RPFRM.js} +2 -2
- package/dist/chunks/{chunk-JRHPTYRV.js → chunk-MOA7PCJA.js} +1 -1
- package/dist/chunks/{chunk-Z5MIIHYS.js → chunk-OLXE4TRH.js} +4 -4
- package/dist/chunks/{chunk-W5RSXTBT.js → chunk-PKUYGVBJ.js} +96 -60
- package/dist/chunks/{chunk-O7SISYLM.js → chunk-TPCECDGK.js} +3 -3
- package/dist/chunks/{chunk-3ANW6BWX.js → chunk-V23PMSXG.js} +13 -3
- package/dist/chunks/{chunk-K6HMCETK.js → chunk-XFSFHTAB.js} +6 -2
- package/dist/chunks/{chunk-3H6ATFDE.js → chunk-XR64AS27.js} +2 -2
- package/dist/chunks/{compile-vercel-config-IGS2TTEP.js → compile-vercel-config-TJYP77GR.js} +1 -1
- package/dist/chunks/{delete-EILO23N4.js → delete-KMJUZ2FR.js} +2 -2
- package/dist/chunks/{disable-6U4YJ6X2.js → disable-JNVD32GK.js} +2 -2
- package/dist/chunks/{discard-AOB3DOVR.js → discard-IHJUBIIP.js} +2 -2
- package/dist/chunks/{edit-QWXEDZ7C.js → edit-SHG24GD3.js} +3 -3
- package/dist/chunks/{enable-OOYZYWHO.js → enable-BPPOFBS5.js} +2 -2
- package/dist/chunks/{export-TCODS24A.js → export-NXMANIFJ.js} +2 -2
- package/dist/chunks/{inspect-XPF7BVFT.js → inspect-3QUNVUYY.js} +3 -3
- package/dist/chunks/{list-23UC6BLI.js → list-3EEABCQ5.js} +3 -3
- package/dist/chunks/{list-G4RXHND6.js → list-DIFVR5IT.js} +2 -2
- package/dist/chunks/{ls-N2ZJCAX4.js → ls-W3EW6GXH.js} +4 -4
- package/dist/chunks/{publish-CRI5AIVR.js → publish-MJWCDLBZ.js} +2 -2
- package/dist/chunks/{query-VZWNY434.js → query-C6RJSZM3.js} +2 -2
- package/dist/chunks/{reorder-QGRIL3X5.js → reorder-PPF7SVNU.js} +2 -2
- package/dist/chunks/{restore-2BNDRBBI.js → restore-EOJNTA2T.js} +2 -2
- package/dist/chunks/{rm-XBWBYUZ5.js → rm-WEZ4K7UG.js} +4 -4
- package/dist/chunks/{rule-inspect-2Y4KL333.js → rule-inspect-PXCF73V3.js} +4 -4
- package/dist/chunks/{rules-OXB4XIRQ.js → rules-DF7IFF4R.js} +6 -6
- package/dist/chunks/{schema-E5XSUUO4.js → schema-3UFDQZFG.js} +2 -2
- package/dist/chunks/{update-I7WT4SY6.js → update-FNAEWCUN.js} +4 -4
- package/dist/commands/build/index.js +9 -9
- package/dist/commands/deploy/index.js +10 -10
- package/dist/commands/dev/index.js +9 -16
- package/dist/commands/env/index.js +4 -4
- package/dist/commands/link/index.js +7 -7
- package/dist/commands/list/index.js +3 -3
- package/dist/commands-bulk.js +31 -31
- package/dist/index.js +14 -16
- package/dist/vc.js +2 -1
- package/dist/version.mjs +1 -1
- package/package.json +21 -21
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
handleRulesApiError,
|
|
10
10
|
parseRulesFlagsAndScope,
|
|
11
11
|
rulesCollectionPath
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-IZ6WAFPZ.js";
|
|
13
|
+
import "./chunk-LT7RPFRM.js";
|
|
14
14
|
import "./chunk-HTOH3MSD.js";
|
|
15
15
|
import {
|
|
16
16
|
validateJsonOutput
|
|
@@ -21,8 +21,8 @@ import {
|
|
|
21
21
|
import {
|
|
22
22
|
AGENT_REASON
|
|
23
23
|
} from "./chunk-L6Q2EQPI.js";
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-C7WFNC2H.js";
|
|
25
|
+
import "./chunk-PKUYGVBJ.js";
|
|
26
26
|
import "./chunk-4CIXZOP4.js";
|
|
27
27
|
import {
|
|
28
28
|
buildCommandWithGlobalFlags,
|
|
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
require_lib
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-PKUYGVBJ.js";
|
|
10
10
|
import {
|
|
11
11
|
packageName
|
|
12
12
|
} from "./chunk-UGXBNJMO.js";
|
|
@@ -14,10 +14,16 @@ import {
|
|
|
14
14
|
__toESM
|
|
15
15
|
} from "./chunk-TZ2YI2VH.js";
|
|
16
16
|
|
|
17
|
+
// src/util/native-install.ts
|
|
18
|
+
function isNativeBinaryInstall() {
|
|
19
|
+
return process.env.VERCEL_VC_NATIVE === "1";
|
|
20
|
+
}
|
|
21
|
+
|
|
17
22
|
// src/util/get-update-command.ts
|
|
18
23
|
var import_fs_extra = __toESM(require_lib(), 1);
|
|
19
24
|
import { sep, dirname, join, resolve } from "path";
|
|
20
25
|
import { scanParentDirs } from "@vercel/build-utils";
|
|
26
|
+
var nativePackageName = "@vercel/vc-native";
|
|
21
27
|
async function getConfigPrefix() {
|
|
22
28
|
const paths = [
|
|
23
29
|
process.env.npm_config_userconfig || process.env.NPM_CONFIG_USERCONFIG,
|
|
@@ -65,7 +71,8 @@ async function isGlobal() {
|
|
|
65
71
|
}
|
|
66
72
|
}
|
|
67
73
|
async function getUpdateCommand() {
|
|
68
|
-
const
|
|
74
|
+
const nativeInstall = isNativeBinaryInstall();
|
|
75
|
+
const pkgAndVersion = `${nativeInstall ? nativePackageName : packageName}@latest`;
|
|
69
76
|
const entrypoint = await (0, import_fs_extra.realpath)(process.argv[1]);
|
|
70
77
|
let { cliType, lockfilePath } = await scanParentDirs(
|
|
71
78
|
dirname(dirname(entrypoint))
|
|
@@ -82,10 +89,12 @@ async function getUpdateCommand() {
|
|
|
82
89
|
install = "i -g";
|
|
83
90
|
}
|
|
84
91
|
}
|
|
85
|
-
|
|
92
|
+
const force = nativeInstall && cliType === "npm" ? " --force" : "";
|
|
93
|
+
return `${cliType} ${install} ${pkgAndVersion}${force}`;
|
|
86
94
|
}
|
|
87
95
|
|
|
88
96
|
export {
|
|
97
|
+
isNativeBinaryInstall,
|
|
89
98
|
isGlobal,
|
|
90
99
|
getUpdateCommand
|
|
91
100
|
};
|
|
@@ -7,12 +7,12 @@ const __dirname = __dirname_(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
printProjectNotFoundError,
|
|
9
9
|
setupAndLink
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-TPCECDGK.js";
|
|
11
11
|
import {
|
|
12
12
|
getLinkedProject,
|
|
13
13
|
param,
|
|
14
14
|
resolveProjectCwd
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-PKUYGVBJ.js";
|
|
16
16
|
import {
|
|
17
17
|
buildCommandWithYes,
|
|
18
18
|
outputActionRequired
|
|
@@ -6,18 +6,19 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
getUpdateCommand,
|
|
9
|
-
isGlobal
|
|
10
|
-
|
|
9
|
+
isGlobal,
|
|
10
|
+
isNativeBinaryInstall
|
|
11
|
+
} from "./chunk-B43F7BHW.js";
|
|
11
12
|
import {
|
|
12
13
|
getGlobalPathConfig,
|
|
13
14
|
login,
|
|
14
15
|
writeToConfigFile
|
|
15
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-V23PMSXG.js";
|
|
16
17
|
import {
|
|
17
18
|
apiCommand,
|
|
18
19
|
listSubcommand2 as listSubcommand,
|
|
19
20
|
loginCommand
|
|
20
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-XR64AS27.js";
|
|
21
22
|
import {
|
|
22
23
|
help
|
|
23
24
|
} from "./chunk-TTOZFGDX.js";
|
|
@@ -2626,6 +2627,9 @@ function setAutoUpdate(client, enabled) {
|
|
|
2626
2627
|
writeToConfigFile(client.config);
|
|
2627
2628
|
}
|
|
2628
2629
|
async function canAutoUpdate(client, exitCode, command) {
|
|
2630
|
+
if (isNativeBinaryInstall()) {
|
|
2631
|
+
return false;
|
|
2632
|
+
}
|
|
2629
2633
|
if (!isAutoUpdateEnabled(client.config)) {
|
|
2630
2634
|
return false;
|
|
2631
2635
|
}
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
printIndications,
|
|
10
10
|
require_dist as require_dist2,
|
|
11
11
|
sleep
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-V23PMSXG.js";
|
|
13
13
|
import {
|
|
14
14
|
suggestNextCommands
|
|
15
15
|
} from "./chunk-LOS7HHU3.js";
|
|
@@ -19,23 +19,23 @@ import {
|
|
|
19
19
|
} from "./chunk-NYJXGEIR.js";
|
|
20
20
|
import {
|
|
21
21
|
CommandTimeout
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-XR64AS27.js";
|
|
23
23
|
import {
|
|
24
24
|
ua_default
|
|
25
25
|
} from "./chunk-76ZNZKIN.js";
|
|
26
26
|
import {
|
|
27
27
|
showPluginTipIfNeeded
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-HXXKDZQ6.js";
|
|
29
29
|
import {
|
|
30
30
|
getScope
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-C7WFNC2H.js";
|
|
32
32
|
import {
|
|
33
33
|
getProjectByNameOrId,
|
|
34
34
|
param,
|
|
35
35
|
printAlignedLabel,
|
|
36
36
|
require_dist as require_dist3,
|
|
37
37
|
require_pluralize
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-PKUYGVBJ.js";
|
|
39
39
|
import {
|
|
40
40
|
require_ms,
|
|
41
41
|
stamp_default
|
|
@@ -1584,7 +1584,7 @@ var import_ansi_escapes = __toESM(require_ansi_escapes(), 1);
|
|
|
1584
1584
|
import { URLSearchParams } from "url";
|
|
1585
1585
|
async function printEvents(client, urlOrDeploymentId, { mode, onEvent, quiet, findOpts }, abortController) {
|
|
1586
1586
|
const { log, debug } = output_manager_default;
|
|
1587
|
-
const
|
|
1587
|
+
const scope = mode === "deploy" ? await getScope(client) : null;
|
|
1588
1588
|
let o = 0;
|
|
1589
1589
|
await (0, import_async_retry.default)(
|
|
1590
1590
|
async (bail, attemptNumber) => {
|
|
@@ -1620,7 +1620,7 @@ async function printEvents(client, urlOrDeploymentId, { mode, onEvent, quiet, fi
|
|
|
1620
1620
|
try {
|
|
1621
1621
|
const json = await getDeployment(
|
|
1622
1622
|
client,
|
|
1623
|
-
contextName,
|
|
1623
|
+
scope.contextName,
|
|
1624
1624
|
urlOrDeploymentId
|
|
1625
1625
|
);
|
|
1626
1626
|
if (json.readyState === "READY") {
|
|
@@ -12,11 +12,11 @@ import {
|
|
|
12
12
|
} from "./chunk-L6Q2EQPI.js";
|
|
13
13
|
import {
|
|
14
14
|
getScope
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-C7WFNC2H.js";
|
|
16
16
|
import {
|
|
17
17
|
getLinkedProject,
|
|
18
18
|
getProjectByNameOrId
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-PKUYGVBJ.js";
|
|
20
20
|
import {
|
|
21
21
|
buildCommandWithGlobalFlags,
|
|
22
22
|
outputAgentError
|
|
@@ -6,14 +6,14 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
writeProjectSettings
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7O3VXZBW.js";
|
|
10
10
|
import {
|
|
11
11
|
ensureLink
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-BT4S267X.js";
|
|
13
13
|
import {
|
|
14
14
|
autoInstallVercelPlugin,
|
|
15
15
|
pullCommand
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-HXXKDZQ6.js";
|
|
17
17
|
import {
|
|
18
18
|
help
|
|
19
19
|
} from "./chunk-TTOZFGDX.js";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
envPullCommandLogic,
|
|
24
24
|
humanizePath,
|
|
25
25
|
parseTarget
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-PKUYGVBJ.js";
|
|
27
27
|
import {
|
|
28
28
|
TelemetryClient
|
|
29
29
|
} from "./chunk-4CIXZOP4.js";
|
|
@@ -23974,23 +23974,12 @@ var require_resolve2 = __commonJS({
|
|
|
23974
23974
|
for (const service of resolved) {
|
|
23975
23975
|
if (!service.env)
|
|
23976
23976
|
continue;
|
|
23977
|
-
validateEnvRefs(
|
|
23978
|
-
service.env,
|
|
23979
|
-
`Service "${service.name}" env`,
|
|
23980
|
-
servicesByName,
|
|
23981
|
-
errors,
|
|
23982
|
-
service.name
|
|
23983
|
-
);
|
|
23984
|
-
}
|
|
23985
|
-
if (options.rootEnv) {
|
|
23986
|
-
validateEnvRefs(options.rootEnv, "env", servicesByName, errors);
|
|
23987
|
-
for (const service of resolved) {
|
|
23988
|
-
service.env = { ...options.rootEnv, ...service.env ?? {} };
|
|
23989
|
-
}
|
|
23977
|
+
validateEnvRefs(service.env, service.name, servicesByName, errors);
|
|
23990
23978
|
}
|
|
23991
23979
|
return { services: resolved, errors };
|
|
23992
23980
|
}
|
|
23993
|
-
function validateEnvRefs(env,
|
|
23981
|
+
function validateEnvRefs(env, serviceName, servicesByName, errors) {
|
|
23982
|
+
const pathPrefix = `Service "${serviceName}" env`;
|
|
23994
23983
|
for (const [envVarName, envVar] of Object.entries(env)) {
|
|
23995
23984
|
if (envVar.type !== "service-ref")
|
|
23996
23985
|
continue;
|
|
@@ -24000,7 +23989,7 @@ var require_resolve2 = __commonJS({
|
|
|
24000
23989
|
errors.push({
|
|
24001
23990
|
code: "UNKNOWN_SERVICE_REF",
|
|
24002
23991
|
message: `${pathPrefix}["${envVarName}"] references unknown service "${refName}".`,
|
|
24003
|
-
|
|
23992
|
+
serviceName
|
|
24004
23993
|
});
|
|
24005
23994
|
continue;
|
|
24006
23995
|
}
|
|
@@ -24008,7 +23997,7 @@ var require_resolve2 = __commonJS({
|
|
|
24008
23997
|
errors.push({
|
|
24009
23998
|
code: "INVALID_SERVICE_REF_TYPE",
|
|
24010
23999
|
message: `${pathPrefix}["${envVarName}"] references service "${refName}" which is a ${target.type} service and has no URL. Only web services can be referenced.`,
|
|
24011
|
-
|
|
24000
|
+
serviceName
|
|
24012
24001
|
});
|
|
24013
24002
|
}
|
|
24014
24003
|
}
|
|
@@ -27925,12 +27914,6 @@ var require_detect_services = __commonJS({
|
|
|
27925
27914
|
workers: []
|
|
27926
27915
|
};
|
|
27927
27916
|
}
|
|
27928
|
-
function isEnvVars(env) {
|
|
27929
|
-
if (!env)
|
|
27930
|
-
return false;
|
|
27931
|
-
const first = Object.values(env)[0];
|
|
27932
|
-
return typeof first === "object" && first !== null;
|
|
27933
|
-
}
|
|
27934
27917
|
function withResolvedResult(resolved, inferred = null) {
|
|
27935
27918
|
return {
|
|
27936
27919
|
services: resolved.services,
|
|
@@ -28023,8 +28006,7 @@ var require_detect_services = __commonJS({
|
|
|
28023
28006
|
{
|
|
28024
28007
|
requireFileEntrypointForBackendRuntimes: Boolean(
|
|
28025
28008
|
hasNonEmptyPublicServicesConfig
|
|
28026
|
-
)
|
|
28027
|
-
rootEnv: isEnvVars(vercelConfig?.env) ? vercelConfig?.env : void 0
|
|
28009
|
+
)
|
|
28028
28010
|
}
|
|
28029
28011
|
);
|
|
28030
28012
|
const routes = generateServicesRoutes2(result.services);
|
|
@@ -36631,7 +36613,7 @@ var require_package = __commonJS({
|
|
|
36631
36613
|
"../client/package.json"(exports, module) {
|
|
36632
36614
|
module.exports = {
|
|
36633
36615
|
name: "@vercel/client",
|
|
36634
|
-
version: "17.5.
|
|
36616
|
+
version: "17.5.6",
|
|
36635
36617
|
main: "dist/index.js",
|
|
36636
36618
|
typings: "dist/index.d.ts",
|
|
36637
36619
|
homepage: "https://vercel.com",
|
|
@@ -50078,6 +50060,18 @@ async function getProjectByNameOrId(client, projectNameOrId, accountId, includeR
|
|
|
50078
50060
|
|
|
50079
50061
|
// src/util/get-user.ts
|
|
50080
50062
|
async function getUser(client) {
|
|
50063
|
+
if (client.user) {
|
|
50064
|
+
return client.user;
|
|
50065
|
+
}
|
|
50066
|
+
if (client.userPromise) {
|
|
50067
|
+
return client.userPromise;
|
|
50068
|
+
}
|
|
50069
|
+
client.userPromise = fetchUser(client).finally(() => {
|
|
50070
|
+
client.userPromise = void 0;
|
|
50071
|
+
});
|
|
50072
|
+
return client.userPromise;
|
|
50073
|
+
}
|
|
50074
|
+
async function fetchUser(client) {
|
|
50081
50075
|
try {
|
|
50082
50076
|
const res = await client.fetch("/v2/user", {
|
|
50083
50077
|
useCurrentTeam: false
|
|
@@ -50094,9 +50088,12 @@ async function getUser(client) {
|
|
|
50094
50088
|
}
|
|
50095
50089
|
}
|
|
50096
50090
|
client.telemetryEventStore.updateUserId(res.user.id);
|
|
50091
|
+
client.user = res.user;
|
|
50097
50092
|
return res.user;
|
|
50098
50093
|
} catch (error) {
|
|
50099
50094
|
if (error instanceof APIError && error.status === 403) {
|
|
50095
|
+
client.user = void 0;
|
|
50096
|
+
client.userPromise = void 0;
|
|
50100
50097
|
if (client.authConfig.userId) {
|
|
50101
50098
|
client.updateAuthConfig({ userId: void 0 });
|
|
50102
50099
|
try {
|
|
@@ -51528,6 +51525,28 @@ async function getOriginUrl(configPath) {
|
|
|
51528
51525
|
// src/util/teams/get-teams.ts
|
|
51529
51526
|
import { URLSearchParams as URLSearchParams2 } from "url";
|
|
51530
51527
|
async function getTeams(client, opts = {}) {
|
|
51528
|
+
const { apiVersion = 1 } = opts;
|
|
51529
|
+
if (apiVersion === 1) {
|
|
51530
|
+
if (client.teams) {
|
|
51531
|
+
return client.teams;
|
|
51532
|
+
}
|
|
51533
|
+
if (client.teamsPromise) {
|
|
51534
|
+
return client.teamsPromise;
|
|
51535
|
+
}
|
|
51536
|
+
client.teamsPromise = fetchTeams(client, opts).then((result) => {
|
|
51537
|
+
const teams = Array.isArray(result) ? result : result.teams;
|
|
51538
|
+
client.teams = teams;
|
|
51539
|
+
return teams;
|
|
51540
|
+
});
|
|
51541
|
+
try {
|
|
51542
|
+
return await client.teamsPromise;
|
|
51543
|
+
} finally {
|
|
51544
|
+
client.teamsPromise = void 0;
|
|
51545
|
+
}
|
|
51546
|
+
}
|
|
51547
|
+
return fetchTeams(client, opts);
|
|
51548
|
+
}
|
|
51549
|
+
async function fetchTeams(client, opts = {}) {
|
|
51531
51550
|
const { apiVersion = 1 } = opts;
|
|
51532
51551
|
let query = "";
|
|
51533
51552
|
if (opts.apiVersion === 2) {
|
|
@@ -51547,7 +51566,11 @@ async function getTeams(client, opts = {}) {
|
|
|
51547
51566
|
}
|
|
51548
51567
|
);
|
|
51549
51568
|
if (apiVersion === 1) {
|
|
51550
|
-
|
|
51569
|
+
const teams = body.teams || [];
|
|
51570
|
+
for (const team of teams) {
|
|
51571
|
+
teamCache.set(team.id, team);
|
|
51572
|
+
}
|
|
51573
|
+
return teams;
|
|
51551
51574
|
}
|
|
51552
51575
|
return body;
|
|
51553
51576
|
} catch (error) {
|
|
@@ -51583,6 +51606,40 @@ async function selectOrg(client, question, autoConfirm) {
|
|
|
51583
51606
|
const {
|
|
51584
51607
|
config: { currentTeam }
|
|
51585
51608
|
} = client;
|
|
51609
|
+
if (autoConfirm && !client.nonInteractive) {
|
|
51610
|
+
if (currentTeam) {
|
|
51611
|
+
output_manager_default.spinner("Loading team\u2026", 1e3);
|
|
51612
|
+
try {
|
|
51613
|
+
const team = await getTeamById(client, currentTeam);
|
|
51614
|
+
return { type: "team", id: team.id, slug: team.slug };
|
|
51615
|
+
} catch (err) {
|
|
51616
|
+
output_manager_default.debug(`Unable to load current team directly: ${err}`);
|
|
51617
|
+
} finally {
|
|
51618
|
+
output_manager_default.stopSpinner();
|
|
51619
|
+
}
|
|
51620
|
+
}
|
|
51621
|
+
output_manager_default.spinner("Loading user\u2026", 1e3);
|
|
51622
|
+
let user2;
|
|
51623
|
+
try {
|
|
51624
|
+
user2 = await getUser(client);
|
|
51625
|
+
} finally {
|
|
51626
|
+
output_manager_default.stopSpinner();
|
|
51627
|
+
}
|
|
51628
|
+
if (user2.version !== "northstar") {
|
|
51629
|
+
return { type: "user", id: user2.id, slug: user2.username };
|
|
51630
|
+
}
|
|
51631
|
+
if (user2.defaultTeamId) {
|
|
51632
|
+
output_manager_default.spinner("Loading team\u2026", 1e3);
|
|
51633
|
+
try {
|
|
51634
|
+
const team = await getTeamById(client, user2.defaultTeamId);
|
|
51635
|
+
return { type: "team", id: team.id, slug: team.slug };
|
|
51636
|
+
} catch (err) {
|
|
51637
|
+
output_manager_default.debug(`Unable to load default team directly: ${err}`);
|
|
51638
|
+
} finally {
|
|
51639
|
+
output_manager_default.stopSpinner();
|
|
51640
|
+
}
|
|
51641
|
+
}
|
|
51642
|
+
}
|
|
51586
51643
|
output_manager_default.spinner("Loading teams\u2026", 1e3);
|
|
51587
51644
|
let user;
|
|
51588
51645
|
let teams;
|
|
@@ -52720,13 +52777,7 @@ var parseEnv = (env) => {
|
|
|
52720
52777
|
return o;
|
|
52721
52778
|
}, startingDict);
|
|
52722
52779
|
}
|
|
52723
|
-
|
|
52724
|
-
for (const [key, value] of Object.entries(env)) {
|
|
52725
|
-
if (typeof value === "string") {
|
|
52726
|
-
result[key] = value;
|
|
52727
|
-
}
|
|
52728
|
-
}
|
|
52729
|
-
return result;
|
|
52780
|
+
return env;
|
|
52730
52781
|
};
|
|
52731
52782
|
|
|
52732
52783
|
// src/util/env/diff-env-files.ts
|
|
@@ -53733,38 +53784,24 @@ var envVarNamesSchema = {
|
|
|
53733
53784
|
maxLength: 256
|
|
53734
53785
|
};
|
|
53735
53786
|
var envVarSchema = {
|
|
53736
|
-
|
|
53737
|
-
|
|
53738
|
-
|
|
53739
|
-
|
|
53740
|
-
|
|
53741
|
-
|
|
53742
|
-
|
|
53743
|
-
|
|
53744
|
-
|
|
53745
|
-
|
|
53746
|
-
maxLength: 64,
|
|
53747
|
-
pattern: "^[a-zA-Z]([a-zA-Z0-9_-]*[a-zA-Z0-9])?$"
|
|
53748
|
-
}
|
|
53749
|
-
}
|
|
53787
|
+
type: "object",
|
|
53788
|
+
additionalProperties: false,
|
|
53789
|
+
required: ["type", "service"],
|
|
53790
|
+
properties: {
|
|
53791
|
+
type: { const: "service-ref" },
|
|
53792
|
+
service: {
|
|
53793
|
+
type: "string",
|
|
53794
|
+
minLength: 1,
|
|
53795
|
+
maxLength: 64,
|
|
53796
|
+
pattern: "^[a-zA-Z]([a-zA-Z0-9_-]*[a-zA-Z0-9])?$"
|
|
53750
53797
|
}
|
|
53751
|
-
|
|
53798
|
+
}
|
|
53752
53799
|
};
|
|
53753
53800
|
var envVarRecordSchema = {
|
|
53754
53801
|
type: "object",
|
|
53755
53802
|
additionalProperties: envVarSchema,
|
|
53756
53803
|
propertyNames: envVarNamesSchema
|
|
53757
53804
|
};
|
|
53758
|
-
var topLevelEnvSchema = {
|
|
53759
|
-
oneOf: [
|
|
53760
|
-
{
|
|
53761
|
-
type: "object",
|
|
53762
|
-
additionalProperties: { type: "string" },
|
|
53763
|
-
propertyNames: envVarNamesSchema
|
|
53764
|
-
},
|
|
53765
|
-
envVarRecordSchema
|
|
53766
|
-
]
|
|
53767
|
-
};
|
|
53768
53805
|
var experimentalServicesCommonProperties = {
|
|
53769
53806
|
entrypoint: {
|
|
53770
53807
|
type: "string",
|
|
@@ -54080,7 +54117,6 @@ var vercelConfigSchema = {
|
|
|
54080
54117
|
images: imagesSchema,
|
|
54081
54118
|
crons: cronsSchema,
|
|
54082
54119
|
bunVersion: { type: "string" },
|
|
54083
|
-
env: topLevelEnvSchema,
|
|
54084
54120
|
services: servicesSchema,
|
|
54085
54121
|
experimentalServices: experimentalServicesSchema,
|
|
54086
54122
|
experimentalServiceGroups: experimentalServiceGroupsSchema
|
|
@@ -55030,6 +55066,7 @@ export {
|
|
|
55030
55066
|
envCommand,
|
|
55031
55067
|
param,
|
|
55032
55068
|
getUser,
|
|
55069
|
+
getTeamById,
|
|
55033
55070
|
getTeams,
|
|
55034
55071
|
isBackspaceKey,
|
|
55035
55072
|
isEnterKey,
|
|
@@ -55052,7 +55089,6 @@ export {
|
|
|
55052
55089
|
require_fast_deep_equal,
|
|
55053
55090
|
require_ajv,
|
|
55054
55091
|
getProjectByNameOrId,
|
|
55055
|
-
getTeamById,
|
|
55056
55092
|
isDirectory,
|
|
55057
55093
|
require_pluralize,
|
|
55058
55094
|
require_slugify,
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
} from "./chunk-L6Q2EQPI.js";
|
|
11
11
|
import {
|
|
12
12
|
getLocalPathConfig
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-6PVIXIDG.js";
|
|
14
14
|
import {
|
|
15
15
|
getScope
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-C7WFNC2H.js";
|
|
17
17
|
import {
|
|
18
18
|
VERCEL_DIR_PROJECT,
|
|
19
19
|
VERCEL_DIR_README,
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
selectAndParseRemoteUrl,
|
|
48
48
|
selectOrg,
|
|
49
49
|
writeServicesConfig
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-PKUYGVBJ.js";
|
|
51
51
|
import {
|
|
52
52
|
buildCommandWithGlobalFlags,
|
|
53
53
|
outputAgentError,
|
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
} from "./chunk-76ZNZKIN.js";
|
|
13
13
|
import {
|
|
14
14
|
getLocalPathConfig
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-6PVIXIDG.js";
|
|
16
16
|
import {
|
|
17
17
|
autoInstallVercelPlugin
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-HXXKDZQ6.js";
|
|
19
19
|
import {
|
|
20
20
|
DEFAULT_VERCEL_CONFIG_FILENAME,
|
|
21
21
|
VERCEL_CONFIG_EXTENSIONS,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
useKeypress,
|
|
40
40
|
usePrefix,
|
|
41
41
|
useState
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-PKUYGVBJ.js";
|
|
43
43
|
import {
|
|
44
44
|
require_load_json_file
|
|
45
45
|
} from "./chunk-4CIXZOP4.js";
|
|
@@ -2539,9 +2539,19 @@ ${error.stack}`);
|
|
|
2539
2539
|
writeToConfigFile(this.config);
|
|
2540
2540
|
}
|
|
2541
2541
|
updateAuthConfig(authConfig) {
|
|
2542
|
+
if (authConfig.token && authConfig.token !== this.authConfig.token) {
|
|
2543
|
+
this.user = void 0;
|
|
2544
|
+
this.userPromise = void 0;
|
|
2545
|
+
this.teams = void 0;
|
|
2546
|
+
this.teamsPromise = void 0;
|
|
2547
|
+
}
|
|
2542
2548
|
this.authConfig = { ...this.authConfig, ...authConfig };
|
|
2543
2549
|
}
|
|
2544
2550
|
emptyAuthConfig() {
|
|
2551
|
+
this.user = void 0;
|
|
2552
|
+
this.userPromise = void 0;
|
|
2553
|
+
this.teams = void 0;
|
|
2554
|
+
this.teamsPromise = void 0;
|
|
2545
2555
|
this.authConfig = this.authConfig.skipWrite ? { skipWrite: true } : {};
|
|
2546
2556
|
}
|
|
2547
2557
|
writeToAuthConfigFile() {
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
require_lib,
|
|
19
19
|
require_minimatch,
|
|
20
20
|
require_pluralize
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-PKUYGVBJ.js";
|
|
22
22
|
import {
|
|
23
23
|
CantParseJSONFile,
|
|
24
24
|
cmd,
|
|
@@ -11226,7 +11226,8 @@ import {
|
|
|
11226
11226
|
getLambdaOptionsFromFunction,
|
|
11227
11227
|
normalizePath,
|
|
11228
11228
|
isBackendBuilder,
|
|
11229
|
-
isExperimentalBackendsEnabled
|
|
11229
|
+
isExperimentalBackendsEnabled,
|
|
11230
|
+
isExternalSymlink
|
|
11230
11231
|
} from "@vercel/build-utils";
|
|
11231
11232
|
|
|
11232
11233
|
// src/util/build/merge.ts
|
|
@@ -11905,6 +11906,9 @@ function filesWithoutFsRefs(files, repoRootPath, sharedDest, standalone) {
|
|
|
11905
11906
|
if (!filePathMap)
|
|
11906
11907
|
filePathMap = {};
|
|
11907
11908
|
if (standalone && sharedDest) {
|
|
11909
|
+
if (isExternalSymlink(file)) {
|
|
11910
|
+
continue;
|
|
11911
|
+
}
|
|
11908
11912
|
shared[path2] = file;
|
|
11909
11913
|
filePathMap[normalizePath(path2)] = normalizePath(
|
|
11910
11914
|
relative2(repoRootPath, join4(sharedDest, path2))
|
|
@@ -25,10 +25,10 @@ import {
|
|
|
25
25
|
import {
|
|
26
26
|
buildCommand,
|
|
27
27
|
pullCommand
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-HXXKDZQ6.js";
|
|
29
29
|
import {
|
|
30
30
|
envCommand
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-PKUYGVBJ.js";
|
|
32
32
|
import {
|
|
33
33
|
confirmOption,
|
|
34
34
|
forceOption,
|