vercel 50.31.0 → 50.31.2
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-6BQDSUW6.js → chunk-2MDXGVZV.js} +1 -1
- package/dist/chunks/{chunk-QVLCQV6Z.js → chunk-43L4BNYM.js} +1 -1
- package/dist/chunks/{chunk-KRQOJLQS.js → chunk-4MTNDNUR.js} +52 -40
- package/dist/chunks/{chunk-TCKKAVXJ.js → chunk-4QETQOUQ.js} +3 -3
- package/dist/chunks/{chunk-5WP2BYPE.js → chunk-AABYT6JI.js} +4 -4
- package/dist/chunks/{chunk-3XOBMJP4.js → chunk-CUUJWNAY.js} +2 -2
- package/dist/chunks/{chunk-Y7RWCZ56.js → chunk-EFKVLLXG.js} +5 -5
- package/dist/chunks/{chunk-QLZZBARH.js → chunk-F2FJ3QZG.js} +1 -1
- package/dist/chunks/{chunk-DECPS6UF.js → chunk-FTXIZBTY.js} +1 -1
- package/dist/chunks/{chunk-6NXY2OLP.js → chunk-GEYBIZGF.js} +4 -4
- package/dist/chunks/{chunk-PZC4VEFN.js → chunk-HXZPHN34.js} +3 -3
- package/dist/chunks/{chunk-ZER7BAFS.js → chunk-IGWOW3XS.js} +1 -1
- package/dist/chunks/{chunk-JM7YTFXQ.js → chunk-JW7XOJYM.js} +3 -3
- package/dist/chunks/{chunk-5C6CQLVT.js → chunk-LF56WF3E.js} +2 -2
- package/dist/chunks/{chunk-GTDGTWEY.js → chunk-MH27YRIK.js} +1 -1
- package/dist/chunks/{chunk-FFNOBWQ4.js → chunk-NN6I6YMJ.js} +1 -1
- package/dist/chunks/{chunk-NJQGGQDK.js → chunk-UEWMMW2T.js} +1 -1
- package/dist/chunks/{chunk-ENFI7RR4.js → chunk-VKQV2LPP.js} +1 -1
- package/dist/chunks/{chunk-RQUG6O67.js → chunk-XGUZYJXE.js} +2 -2
- package/dist/chunks/{chunk-KDZYLR6U.js → chunk-XIQUACWR.js} +1 -1
- package/dist/chunks/{chunk-TRQ5N5DU.js → chunk-XNH2ODPG.js} +207 -35
- package/dist/chunks/{compile-vercel-config-SE235FKA.js → compile-vercel-config-VEZ3PRGB.js} +2 -2
- package/dist/chunks/{delete-R5E7M2HE.js → delete-DIL4SDG6.js} +2 -2
- package/dist/chunks/{disable-UMDIVQEI.js → disable-PZO6GYWY.js} +2 -2
- package/dist/chunks/{discard-R4N4UHES.js → discard-SXBAOPZJ.js} +2 -2
- package/dist/chunks/{edit-FNTDTSNB.js → edit-AB47LXEE.js} +3 -3
- package/dist/chunks/{enable-32W3N6KI.js → enable-JU6NHQFS.js} +2 -2
- package/dist/chunks/{export-A75S2N6F.js → export-ZKYFXNPW.js} +2 -2
- package/dist/chunks/{list-VF6TIK53.js → list-5FH7EZG5.js} +4 -4
- package/dist/chunks/{list-Y2VR65SX.js → list-NWJQIUJG.js} +8 -10
- package/dist/chunks/{publish-PB4E4HM4.js → publish-UAISKZPC.js} +2 -2
- package/dist/chunks/{query-GX4TELM3.js → query-DIK6TLAL.js} +2 -2
- package/dist/chunks/{reorder-HSZAJKBB.js → reorder-4VKIZJOA.js} +2 -2
- package/dist/chunks/{restore-Y4IVRAFY.js → restore-5VMKSP2J.js} +2 -2
- package/dist/commands/build/index.js +12 -12
- package/dist/commands/deploy/index.js +13 -13
- package/dist/commands/dev/index.js +11 -11
- package/dist/commands/env/index.js +6 -6
- package/dist/commands/link/index.js +8 -8
- package/dist/commands/list/index.js +3 -3
- package/dist/commands-bulk.js +2177 -1251
- package/dist/index.js +15 -20
- package/dist/version.mjs +1 -1
- package/package.json +16 -16
|
@@ -10316,7 +10316,6 @@ var require_frameworks = __commonJS({
|
|
|
10316
10316
|
{
|
|
10317
10317
|
name: "Django",
|
|
10318
10318
|
slug: "django",
|
|
10319
|
-
experimental: true,
|
|
10320
10319
|
logo: "https://api-frameworks.vercel.sh/framework-logos/django.svg",
|
|
10321
10320
|
tagline: "Django is a high-level Python web framework that encourages rapid development and clean, pragmatic design. ",
|
|
10322
10321
|
description: "A Django project served via the Python Runtime.",
|
|
@@ -11937,7 +11936,6 @@ var require_frameworks = __commonJS({
|
|
|
11937
11936
|
{
|
|
11938
11937
|
name: "Python",
|
|
11939
11938
|
slug: "python",
|
|
11940
|
-
experimental: true,
|
|
11941
11939
|
runtimeFramework: true,
|
|
11942
11940
|
logo: "https://api-frameworks.vercel.sh/framework-logos/python.svg",
|
|
11943
11941
|
tagline: "Python is a programming language that lets you work quickly and integrate systems more effectively.",
|
|
@@ -37201,27 +37199,23 @@ function findChanges(oldEnv, newEnv) {
|
|
|
37201
37199
|
} else if (oldEnv[key] !== newEnv[key]) {
|
|
37202
37200
|
changed.push(key);
|
|
37203
37201
|
}
|
|
37204
|
-
delete oldEnv[key];
|
|
37205
37202
|
}
|
|
37206
|
-
const removed = Object.keys(oldEnv);
|
|
37207
37203
|
return {
|
|
37208
37204
|
added,
|
|
37209
|
-
changed
|
|
37210
|
-
removed
|
|
37205
|
+
changed
|
|
37211
37206
|
};
|
|
37212
37207
|
}
|
|
37213
37208
|
function buildDeltaString(oldEnv, newEnv) {
|
|
37214
|
-
const { added, changed
|
|
37209
|
+
const { added, changed } = findChanges(oldEnv, newEnv);
|
|
37215
37210
|
let deltaString = "";
|
|
37216
|
-
deltaString += import_chalk5.default.
|
|
37211
|
+
deltaString += import_chalk5.default.yellow(addDeltaSection("M", changed));
|
|
37217
37212
|
deltaString += import_chalk5.default.green(addDeltaSection("+", added));
|
|
37218
|
-
deltaString += import_chalk5.default.red(addDeltaSection("-", removed));
|
|
37219
37213
|
return deltaString ? import_chalk5.default.gray("Changes:\n") + deltaString + "\n" : deltaString;
|
|
37220
37214
|
}
|
|
37221
|
-
function addDeltaSection(prefix, arr
|
|
37215
|
+
function addDeltaSection(prefix, arr) {
|
|
37222
37216
|
if (arr.length === 0)
|
|
37223
37217
|
return "";
|
|
37224
|
-
return arr.sort().map((item) => `${prefix} ${item}
|
|
37218
|
+
return arr.sort().map((item) => `${prefix} ${item}`).join("\n") + "\n";
|
|
37225
37219
|
}
|
|
37226
37220
|
|
|
37227
37221
|
// src/commands/env/pull.ts
|
|
@@ -37588,33 +37582,26 @@ async function envPullCommandLogic(client, filename, skipConfirmation, environme
|
|
|
37588
37582
|
const fullPath = resolve2(cwd, filename);
|
|
37589
37583
|
const head = tryReadHeadSync(fullPath, Buffer.byteLength(CONTENTS_PREFIX));
|
|
37590
37584
|
const exists = typeof head !== "undefined";
|
|
37585
|
+
const requiresConfirmation = exists && head !== CONTENTS_PREFIX && !skipConfirmation && !client.nonInteractive;
|
|
37591
37586
|
if (head === CONTENTS_PREFIX) {
|
|
37592
37587
|
output_manager_default.log(`Overwriting existing ${import_chalk7.default.bold(filename)} file`);
|
|
37593
|
-
} else if (exists && !skipConfirmation) {
|
|
37594
|
-
|
|
37595
|
-
|
|
37596
|
-
|
|
37597
|
-
|
|
37598
|
-
|
|
37599
|
-
|
|
37600
|
-
{
|
|
37601
|
-
|
|
37602
|
-
|
|
37603
|
-
|
|
37604
|
-
|
|
37605
|
-
|
|
37606
|
-
|
|
37607
|
-
|
|
37608
|
-
|
|
37609
|
-
|
|
37610
|
-
}
|
|
37611
|
-
if (!await client.input.confirm(
|
|
37612
|
-
`Found existing file ${param(filename)}. Do you want to overwrite?`,
|
|
37613
|
-
false
|
|
37614
|
-
)) {
|
|
37615
|
-
output_manager_default.log("Canceled");
|
|
37616
|
-
return;
|
|
37617
|
-
}
|
|
37588
|
+
} else if (exists && !skipConfirmation && client.nonInteractive) {
|
|
37589
|
+
outputActionRequired(client, {
|
|
37590
|
+
status: "action_required",
|
|
37591
|
+
reason: "env_file_exists",
|
|
37592
|
+
message: `File ${param(filename)} already exists and was not created by Vercel CLI. Use --yes to apply the downloaded changes or specify a different filename.`,
|
|
37593
|
+
next: [
|
|
37594
|
+
{
|
|
37595
|
+
command: getCommandNamePlain(`env pull ${filename} --yes`),
|
|
37596
|
+
when: "Apply the downloaded changes to this file"
|
|
37597
|
+
},
|
|
37598
|
+
{
|
|
37599
|
+
command: getCommandNamePlain("env pull <filename>"),
|
|
37600
|
+
when: "Use a different filename"
|
|
37601
|
+
}
|
|
37602
|
+
]
|
|
37603
|
+
});
|
|
37604
|
+
return;
|
|
37618
37605
|
}
|
|
37619
37606
|
const projectSlugLink = formatProject(link.org.slug, link.project.name);
|
|
37620
37607
|
const downloadMessage = gitBranch ? `Downloading \`${import_chalk7.default.cyan(
|
|
@@ -37633,20 +37620,34 @@ async function envPullCommandLogic(client, filename, skipConfirmation, environme
|
|
|
37633
37620
|
})).env;
|
|
37634
37621
|
let deltaString = "";
|
|
37635
37622
|
let oldEnv;
|
|
37623
|
+
const downloadedEnv = getDownloadedEnv(records);
|
|
37636
37624
|
if (exists) {
|
|
37637
37625
|
oldEnv = await createEnvObject(fullPath);
|
|
37638
37626
|
if (oldEnv) {
|
|
37639
|
-
|
|
37640
|
-
|
|
37627
|
+
deltaString = buildDeltaString(oldEnv, {
|
|
37628
|
+
...oldEnv,
|
|
37629
|
+
...downloadedEnv
|
|
37630
|
+
});
|
|
37641
37631
|
}
|
|
37642
37632
|
}
|
|
37643
|
-
const
|
|
37644
|
-
|
|
37633
|
+
const envToWrite = oldEnv ? {
|
|
37634
|
+
...oldEnv,
|
|
37635
|
+
...downloadedEnv
|
|
37636
|
+
} : downloadedEnv;
|
|
37645
37637
|
if (deltaString) {
|
|
37646
37638
|
output_manager_default.print("\n" + deltaString);
|
|
37647
37639
|
} else if (oldEnv && exists) {
|
|
37648
37640
|
output_manager_default.log("No changes found.");
|
|
37649
37641
|
}
|
|
37642
|
+
if (requiresConfirmation && deltaString !== "" && !await client.input.confirm(
|
|
37643
|
+
`Apply these changes to ${param(filename)}?`,
|
|
37644
|
+
false
|
|
37645
|
+
)) {
|
|
37646
|
+
output_manager_default.log("Canceled");
|
|
37647
|
+
return;
|
|
37648
|
+
}
|
|
37649
|
+
const contents = CONTENTS_PREFIX + Object.keys(envToWrite).sort().map((key) => `${key}="${escapeValue(envToWrite[key])}"`).join("\n") + "\n";
|
|
37650
|
+
await (0, import_fs_extra4.outputFile)(fullPath, contents, "utf8");
|
|
37650
37651
|
let isGitIgnoreUpdated = false;
|
|
37651
37652
|
if (filename === ".env.local") {
|
|
37652
37653
|
const rootPath = link.repoRoot ?? cwd;
|
|
@@ -37663,6 +37664,17 @@ async function envPullCommandLogic(client, filename, skipConfirmation, environme
|
|
|
37663
37664
|
function escapeValue(value) {
|
|
37664
37665
|
return value ? value.replace(new RegExp("\n", "g"), "\\n").replace(new RegExp("\r", "g"), "\\r") : "";
|
|
37665
37666
|
}
|
|
37667
|
+
function getDownloadedEnv(records) {
|
|
37668
|
+
return (0, import_json_parse_better_errors.default)(
|
|
37669
|
+
JSON.stringify(
|
|
37670
|
+
Object.fromEntries(
|
|
37671
|
+
Object.entries(records).filter(
|
|
37672
|
+
([key]) => !VARIABLES_TO_IGNORE.includes(key)
|
|
37673
|
+
)
|
|
37674
|
+
)
|
|
37675
|
+
).replace(/\\"/g, "")
|
|
37676
|
+
);
|
|
37677
|
+
}
|
|
37666
37678
|
|
|
37667
37679
|
// src/util/projects/find-project-root.ts
|
|
37668
37680
|
var import_chalk8 = __toESM(require_source(), 1);
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
} from "./chunk-IB5L4LKZ.js";
|
|
10
10
|
import {
|
|
11
11
|
require_dist as require_dist2
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-XGUZYJXE.js";
|
|
13
13
|
import {
|
|
14
14
|
require_execa
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-CUUJWNAY.js";
|
|
16
16
|
import {
|
|
17
17
|
VERCEL_DIR,
|
|
18
18
|
readJSONFile,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
require_dist2 as require_dist4,
|
|
22
22
|
require_lib,
|
|
23
23
|
require_minimatch2 as require_minimatch
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-4MTNDNUR.js";
|
|
25
25
|
import {
|
|
26
26
|
require_pluralize
|
|
27
27
|
} from "./chunk-7EHTK7LP.js";
|
|
@@ -9,17 +9,17 @@ import {
|
|
|
9
9
|
} from "./chunk-V5P25P7F.js";
|
|
10
10
|
import {
|
|
11
11
|
require_dist as require_dist2
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-XGUZYJXE.js";
|
|
13
13
|
import {
|
|
14
14
|
require_lib as require_lib2
|
|
15
15
|
} from "./chunk-QXRJ52T4.js";
|
|
16
16
|
import {
|
|
17
17
|
getLocalPathConfig
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-VKQV2LPP.js";
|
|
19
19
|
import {
|
|
20
20
|
DEFAULT_VERCEL_CONFIG_FILENAME,
|
|
21
21
|
VERCEL_CONFIG_EXTENSIONS
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-NN6I6YMJ.js";
|
|
23
23
|
import {
|
|
24
24
|
VERCEL_DIR,
|
|
25
25
|
createPrompt,
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
useKeypress,
|
|
42
42
|
usePrefix,
|
|
43
43
|
useState
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-4MTNDNUR.js";
|
|
45
45
|
import {
|
|
46
46
|
APIError,
|
|
47
47
|
NowError,
|
|
@@ -6,10 +6,10 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
require_end_of_stream
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-F2FJ3QZG.js";
|
|
10
10
|
import {
|
|
11
11
|
require_once
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-4MTNDNUR.js";
|
|
13
13
|
import {
|
|
14
14
|
require_signal_exit
|
|
15
15
|
} from "./chunk-FDJURQMQ.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
require_dist as require_dist2,
|
|
11
11
|
sleep,
|
|
12
12
|
ua_default
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-AABYT6JI.js";
|
|
14
14
|
import {
|
|
15
15
|
suggestNextCommands
|
|
16
16
|
} from "./chunk-XR53KVJD.js";
|
|
@@ -20,20 +20,20 @@ import {
|
|
|
20
20
|
} from "./chunk-2IQTNMUG.js";
|
|
21
21
|
import {
|
|
22
22
|
getScope
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-XIQUACWR.js";
|
|
24
24
|
import {
|
|
25
25
|
CommandTimeout
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-XNH2ODPG.js";
|
|
27
27
|
import {
|
|
28
28
|
require_dist as require_dist3
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-XGUZYJXE.js";
|
|
30
30
|
import {
|
|
31
31
|
require_lib
|
|
32
32
|
} from "./chunk-QXRJ52T4.js";
|
|
33
33
|
import {
|
|
34
34
|
getProjectByNameOrId,
|
|
35
35
|
param
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-4MTNDNUR.js";
|
|
37
37
|
import {
|
|
38
38
|
stamp_default
|
|
39
39
|
} from "./chunk-SOTR4CXR.js";
|
|
@@ -6,13 +6,13 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
writeProjectSettings
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-IGWOW3XS.js";
|
|
10
10
|
import {
|
|
11
11
|
ensureLink
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-LF56WF3E.js";
|
|
13
13
|
import {
|
|
14
14
|
pullCommand
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-43L4BNYM.js";
|
|
16
16
|
import {
|
|
17
17
|
help
|
|
18
18
|
} from "./chunk-DOBFJJLK.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
envPullCommandLogic,
|
|
23
23
|
humanizePath,
|
|
24
24
|
parseTarget
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-4MTNDNUR.js";
|
|
26
26
|
import {
|
|
27
27
|
TelemetryClient
|
|
28
28
|
} from "./chunk-XB2KZC2B.js";
|
|
@@ -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-VKQV2LPP.js";
|
|
10
10
|
import {
|
|
11
11
|
compileVercelConfig
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-NN6I6YMJ.js";
|
|
13
13
|
import {
|
|
14
14
|
VERCEL_DIR_PROJECT,
|
|
15
15
|
VERCEL_DIR_README,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
selectAndParseRemoteUrl,
|
|
32
32
|
selectOrg,
|
|
33
33
|
tryDetectServices
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-4MTNDNUR.js";
|
|
35
35
|
import {
|
|
36
36
|
table
|
|
37
37
|
} from "./chunk-LWBSOTJP.js";
|
|
@@ -6,13 +6,13 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
getUpdateCommand
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-2MDXGVZV.js";
|
|
10
10
|
import {
|
|
11
11
|
login
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-AABYT6JI.js";
|
|
13
13
|
import {
|
|
14
14
|
loginCommand
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-XNH2ODPG.js";
|
|
16
16
|
import {
|
|
17
17
|
help
|
|
18
18
|
} from "./chunk-DOBFJJLK.js";
|
|
@@ -6,14 +6,14 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
setupAndLink
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-HXZPHN34.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-4MTNDNUR.js";
|
|
17
17
|
import {
|
|
18
18
|
getCommandName,
|
|
19
19
|
getCommandNamePlain
|
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
} from "./chunk-QXRJ52T4.js";
|
|
10
10
|
import {
|
|
11
11
|
require_end_of_stream
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-F2FJ3QZG.js";
|
|
13
13
|
import {
|
|
14
14
|
require_graceful_fs,
|
|
15
15
|
require_inherits,
|
|
16
16
|
require_minimatch,
|
|
17
17
|
require_once
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-4MTNDNUR.js";
|
|
19
19
|
import {
|
|
20
20
|
require_ms
|
|
21
21
|
} from "./chunk-GGP5R3FU.js";
|