vercel 50.37.0 → 50.37.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-SW7U2OXX.js → chunk-AACAZGTQ.js} +74 -24
- package/dist/chunks/{chunk-CWBKLBR2.js → chunk-BU4VHI53.js} +10 -2
- package/dist/chunks/{chunk-E7RW367E.js → chunk-EYGNU2BP.js} +1 -1
- package/dist/chunks/{chunk-PJHY33GP.js → chunk-FUK3AUXL.js} +1 -1
- package/dist/chunks/{chunk-C5ACDCLJ.js → chunk-GCUHLRDW.js} +6 -2
- package/dist/chunks/{chunk-UGI6LMSC.js → chunk-JFTBLO4O.js} +1 -1
- package/dist/chunks/{chunk-HZ6LG6OH.js → chunk-JMFV5L7Q.js} +1 -1
- package/dist/chunks/{chunk-P3G2KTJ2.js → chunk-JO7R3RHJ.js} +2 -2
- package/dist/chunks/{chunk-7I4RCTDA.js → chunk-LJ7BOV6R.js} +3 -3
- package/dist/chunks/{chunk-JH6LZK7A.js → chunk-LRHAZC7D.js} +2 -2
- package/dist/chunks/{chunk-2WVX3V24.js → chunk-MRUCUMUG.js} +1 -1
- package/dist/chunks/{chunk-L2ZZW3WX.js → chunk-THQD57D2.js} +1 -1
- package/dist/chunks/{chunk-2T6KPRKM.js → chunk-TI3A6VCV.js} +7 -3
- package/dist/chunks/{chunk-NBIJPOHN.js → chunk-UNW5ZUOV.js} +1 -1
- package/dist/chunks/{chunk-MLBLTXG6.js → chunk-V53ANR46.js} +2 -2
- package/dist/chunks/{chunk-AK2A272Y.js → chunk-VYDMHA6I.js} +1 -1
- package/dist/chunks/{chunk-PVBLFHPA.js → chunk-YXB74E75.js} +4 -4
- package/dist/chunks/chunk-ZZ6SYVWP.js +384 -0
- package/dist/chunks/{compile-vercel-config-4FAUCHDT.js → compile-vercel-config-3WQCE36T.js} +1 -1
- package/dist/chunks/{delete-OPLTWYAU.js → delete-NLXFDNK3.js} +2 -2
- package/dist/chunks/{disable-GQ4F6F4L.js → disable-4Q2PFIYP.js} +2 -2
- package/dist/chunks/{discard-2JHTJHSD.js → discard-F67SSE33.js} +2 -2
- package/dist/chunks/{edit-HZYQQRFJ.js → edit-NHROI2WQ.js} +3 -3
- package/dist/chunks/{enable-DKVG6AFJ.js → enable-IXODGTFQ.js} +2 -2
- package/dist/chunks/{export-BRTWVMHU.js → export-2INYWRQL.js} +2 -2
- package/dist/chunks/{list-LYZGQGG3.js → list-7FHIHZVP.js} +1 -1
- package/dist/chunks/{list-EGK22QMH.js → list-AL6XZUSS.js} +1 -1
- package/dist/chunks/{publish-5EAOWRVO.js → publish-NR3GCDKE.js} +2 -2
- package/dist/chunks/{query-6D2W2QM6.js → query-FQAS3PGV.js} +1 -1
- package/dist/chunks/{reorder-IMQLQXLM.js → reorder-E4MBA7OH.js} +2 -2
- package/dist/chunks/{restore-W4I65HFL.js → restore-56IUEBCN.js} +2 -2
- package/dist/commands/build/index.js +9 -9
- package/dist/commands/deploy/index.js +23 -13
- package/dist/commands/dev/index.js +8 -8
- package/dist/commands/env/index.js +5 -5
- package/dist/commands/link/index.js +17 -6
- package/dist/commands/list/index.js +2 -2
- package/dist/commands-bulk.js +1111 -1204
- package/dist/index.js +9 -8
- package/dist/version.mjs +1 -1
- package/package.json +16 -16
|
@@ -40960,7 +40960,7 @@ var require_package = __commonJS({
|
|
|
40960
40960
|
"../client/package.json"(exports2, module2) {
|
|
40961
40961
|
module2.exports = {
|
|
40962
40962
|
name: "@vercel/client",
|
|
40963
|
-
version: "17.2.
|
|
40963
|
+
version: "17.2.65",
|
|
40964
40964
|
main: "dist/index.js",
|
|
40965
40965
|
typings: "dist/index.d.ts",
|
|
40966
40966
|
homepage: "https://vercel.com",
|
|
@@ -53935,9 +53935,9 @@ var require_tar_fs = __commonJS({
|
|
|
53935
53935
|
}
|
|
53936
53936
|
});
|
|
53937
53937
|
|
|
53938
|
-
// ../client/dist/
|
|
53939
|
-
var
|
|
53940
|
-
"../client/dist/
|
|
53938
|
+
// ../client/dist/utils/archive.js
|
|
53939
|
+
var require_archive = __commonJS({
|
|
53940
|
+
"../client/dist/utils/archive.js"(exports2, module2) {
|
|
53941
53941
|
"use strict";
|
|
53942
53942
|
var __create = Object.create;
|
|
53943
53943
|
var __defProp = Object.defineProperty;
|
|
@@ -53966,6 +53966,59 @@ var require_create_deployment = __commonJS({
|
|
|
53966
53966
|
mod
|
|
53967
53967
|
));
|
|
53968
53968
|
var __toCommonJS2 = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
53969
|
+
var archive_exports = {};
|
|
53970
|
+
__export2(archive_exports, {
|
|
53971
|
+
createTgzFiles: () => createTgzFiles
|
|
53972
|
+
});
|
|
53973
|
+
module2.exports = __toCommonJS2(archive_exports);
|
|
53974
|
+
var import_node_path2 = __require("path");
|
|
53975
|
+
var import_node_zlib = __require("zlib");
|
|
53976
|
+
var import_build_utils5 = __require("@vercel/build-utils");
|
|
53977
|
+
var import_tar_fs = __toESM2(require_tar_fs());
|
|
53978
|
+
var import_hashes = require_hashes();
|
|
53979
|
+
async function createTgzFiles(workPath, fileList, debug, exclude) {
|
|
53980
|
+
const filesToArchive = exclude ? fileList.filter((file) => !exclude.includes(file)) : fileList;
|
|
53981
|
+
debug?.("Packing tarball");
|
|
53982
|
+
const tarStream = import_tar_fs.default.pack(workPath, {
|
|
53983
|
+
entries: filesToArchive.map((file) => (0, import_node_path2.relative)(workPath, file))
|
|
53984
|
+
}).pipe((0, import_node_zlib.createGzip)());
|
|
53985
|
+
const chunkedTarBuffers = await (0, import_build_utils5.streamToBufferChunks)(tarStream);
|
|
53986
|
+
debug?.(`Packed tarball into ${chunkedTarBuffers.length} chunks`);
|
|
53987
|
+
return new Map(
|
|
53988
|
+
chunkedTarBuffers.map((chunk, index) => [
|
|
53989
|
+
(0, import_hashes.hash)(chunk),
|
|
53990
|
+
{
|
|
53991
|
+
names: [(0, import_node_path2.join)(workPath, `.vercel/source.tgz.part${index + 1}`)],
|
|
53992
|
+
data: chunk,
|
|
53993
|
+
mode: 438
|
|
53994
|
+
}
|
|
53995
|
+
])
|
|
53996
|
+
);
|
|
53997
|
+
}
|
|
53998
|
+
}
|
|
53999
|
+
});
|
|
54000
|
+
|
|
54001
|
+
// ../client/dist/create-deployment.js
|
|
54002
|
+
var require_create_deployment = __commonJS({
|
|
54003
|
+
"../client/dist/create-deployment.js"(exports2, module2) {
|
|
54004
|
+
"use strict";
|
|
54005
|
+
var __defProp = Object.defineProperty;
|
|
54006
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
54007
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
54008
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
54009
|
+
var __export2 = (target, all) => {
|
|
54010
|
+
for (var name in all)
|
|
54011
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
54012
|
+
};
|
|
54013
|
+
var __copyProps = (to, from, except, desc) => {
|
|
54014
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
54015
|
+
for (let key of __getOwnPropNames(from))
|
|
54016
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
54017
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
54018
|
+
}
|
|
54019
|
+
return to;
|
|
54020
|
+
};
|
|
54021
|
+
var __toCommonJS2 = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
53969
54022
|
var create_deployment_exports = {};
|
|
53970
54023
|
__export2(create_deployment_exports, {
|
|
53971
54024
|
default: () => buildCreateDeployment
|
|
@@ -53979,9 +54032,7 @@ var require_create_deployment = __commonJS({
|
|
|
53979
54032
|
var import_utils4 = require_utils10();
|
|
53980
54033
|
var import_errors3 = require_errors();
|
|
53981
54034
|
var import_error_utils5 = require_dist();
|
|
53982
|
-
var
|
|
53983
|
-
var import_tar_fs = __toESM2(require_tar_fs());
|
|
53984
|
-
var import_zlib = __require("zlib");
|
|
54035
|
+
var import_archive = require_archive();
|
|
53985
54036
|
function buildCreateDeployment() {
|
|
53986
54037
|
return async function* createDeployment(clientOptions, deploymentOptions = {}) {
|
|
53987
54038
|
const { path: path2 } = clientOptions;
|
|
@@ -54056,22 +54107,7 @@ var require_create_deployment = __commonJS({
|
|
|
54056
54107
|
let files;
|
|
54057
54108
|
try {
|
|
54058
54109
|
if (clientOptions.archive === "tgz") {
|
|
54059
|
-
|
|
54060
|
-
const tarStream = import_tar_fs.default.pack(workPath, {
|
|
54061
|
-
entries: fileList.map((file) => (0, import_path12.relative)(workPath, file))
|
|
54062
|
-
}).pipe((0, import_zlib.createGzip)());
|
|
54063
|
-
const chunkedTarBuffers = await (0, import_build_utils5.streamToBufferChunks)(tarStream);
|
|
54064
|
-
debug(`Packed tarball into ${chunkedTarBuffers.length} chunks`);
|
|
54065
|
-
files = new Map(
|
|
54066
|
-
chunkedTarBuffers.map((chunk, index) => [
|
|
54067
|
-
(0, import_hashes.hash)(chunk),
|
|
54068
|
-
{
|
|
54069
|
-
names: [(0, import_path12.join)(workPath, `.vercel/source.tgz.part${index + 1}`)],
|
|
54070
|
-
data: chunk,
|
|
54071
|
-
mode: 438
|
|
54072
|
-
}
|
|
54073
|
-
])
|
|
54074
|
-
);
|
|
54110
|
+
files = await (0, import_archive.createTgzFiles)(workPath, fileList, debug);
|
|
54075
54111
|
} else {
|
|
54076
54112
|
files = await (0, import_hashes.hashes)(fileList);
|
|
54077
54113
|
}
|
|
@@ -54150,6 +54186,7 @@ var require_continue = __commonJS({
|
|
|
54150
54186
|
var import_ready_state = require_ready_state();
|
|
54151
54187
|
var import_upload = require_upload();
|
|
54152
54188
|
var import_errors3 = require_errors();
|
|
54189
|
+
var import_archive = require_archive();
|
|
54153
54190
|
async function* continueDeployment2(options) {
|
|
54154
54191
|
const debug = (0, import_utils4.createDebug)(options.debug);
|
|
54155
54192
|
debug(`Continuing deployment: ${options.deploymentId}`);
|
|
@@ -54168,7 +54205,20 @@ var require_continue = __commonJS({
|
|
|
54168
54205
|
{ isDirectory: true, prebuilt: true, vercelOutputDir: outputDir },
|
|
54169
54206
|
debug
|
|
54170
54207
|
);
|
|
54171
|
-
const
|
|
54208
|
+
const provisionJsonPath = (0, import_path12.join)(outputDir, "provision.json");
|
|
54209
|
+
const unbundledFiles = fileList.filter((f) => f === provisionJsonPath);
|
|
54210
|
+
let files;
|
|
54211
|
+
if (options.archive === "tgz") {
|
|
54212
|
+
files = await (0, import_archive.createTgzFiles)(options.path, fileList, debug, unbundledFiles);
|
|
54213
|
+
if (unbundledFiles.length > 0) {
|
|
54214
|
+
const individualFiles = await (0, import_hashes.hashes)(unbundledFiles);
|
|
54215
|
+
for (const [sha, entry] of individualFiles) {
|
|
54216
|
+
files.set(sha, entry);
|
|
54217
|
+
}
|
|
54218
|
+
}
|
|
54219
|
+
} else {
|
|
54220
|
+
files = await (0, import_hashes.hashes)(fileList);
|
|
54221
|
+
}
|
|
54172
54222
|
debug(`Calculated ${files.size} unique hashes`);
|
|
54173
54223
|
yield { type: "hashes-calculated", payload: (0, import_hashes.mapToObject)(files) };
|
|
54174
54224
|
let deployment;
|
|
@@ -25,10 +25,10 @@ import {
|
|
|
25
25
|
import {
|
|
26
26
|
buildCommand,
|
|
27
27
|
pullCommand
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-UNW5ZUOV.js";
|
|
29
29
|
import {
|
|
30
30
|
envCommand
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-AACAZGTQ.js";
|
|
32
32
|
import {
|
|
33
33
|
confirmOption,
|
|
34
34
|
forceOption,
|
|
@@ -165,6 +165,14 @@ var continueSubcommand = {
|
|
|
165
165
|
argument: "ID",
|
|
166
166
|
deprecated: false,
|
|
167
167
|
description: "The deployment ID to continue (e.g. dpl_xxx)"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
name: "archive",
|
|
171
|
+
shorthand: null,
|
|
172
|
+
type: String,
|
|
173
|
+
argument: "FORMAT",
|
|
174
|
+
deprecated: false,
|
|
175
|
+
description: "Compress the deployment code into an archive before uploading it"
|
|
168
176
|
}
|
|
169
177
|
],
|
|
170
178
|
examples: [
|
|
@@ -7,12 +7,15 @@ const __dirname = __dirname_(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
highlight
|
|
9
9
|
} from "./chunk-V5P25P7F.js";
|
|
10
|
+
import {
|
|
11
|
+
autoInstallAgentTooling
|
|
12
|
+
} from "./chunk-ZZ6SYVWP.js";
|
|
10
13
|
import {
|
|
11
14
|
ua_default
|
|
12
15
|
} from "./chunk-5ZVJYXLU.js";
|
|
13
16
|
import {
|
|
14
17
|
getLocalPathConfig
|
|
15
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-FUK3AUXL.js";
|
|
16
19
|
import {
|
|
17
20
|
DEFAULT_VERCEL_CONFIG_FILENAME,
|
|
18
21
|
VERCEL_CONFIG_EXTENSIONS,
|
|
@@ -37,7 +40,7 @@ import {
|
|
|
37
40
|
useKeypress,
|
|
38
41
|
usePrefix,
|
|
39
42
|
useState
|
|
40
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-AACAZGTQ.js";
|
|
41
44
|
import {
|
|
42
45
|
getUser
|
|
43
46
|
} from "./chunk-AY4LBM3J.js";
|
|
@@ -3756,6 +3759,7 @@ async function login(client, telemetry) {
|
|
|
3756
3759
|
connect a Git Repository (${import_chalk3.default.bold(output_manager_default.link("vercel.link/git", "https://vercel.link/git", { color: false }))}).
|
|
3757
3760
|
`);
|
|
3758
3761
|
telemetry.trackState("success");
|
|
3762
|
+
await autoInstallAgentTooling(client);
|
|
3759
3763
|
return 0;
|
|
3760
3764
|
}
|
|
3761
3765
|
async function wait(intervalMs) {
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-IB5L4LKZ.js";
|
|
10
10
|
import {
|
|
11
11
|
require_execa
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-EYGNU2BP.js";
|
|
13
13
|
import {
|
|
14
14
|
VERCEL_DIR,
|
|
15
15
|
readJSONFile,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
require_dist3,
|
|
18
18
|
require_lib,
|
|
19
19
|
require_minimatch
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-AACAZGTQ.js";
|
|
21
21
|
import {
|
|
22
22
|
require_pluralize
|
|
23
23
|
} from "./chunk-AY4LBM3J.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-JFTBLO4O.js";
|
|
10
10
|
import {
|
|
11
11
|
login
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-GCUHLRDW.js";
|
|
13
13
|
import {
|
|
14
14
|
loginCommand
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-BU4VHI53.js";
|
|
16
16
|
import {
|
|
17
17
|
help
|
|
18
18
|
} from "./chunk-O5OD4JWH.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-V53ANR46.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-AACAZGTQ.js";
|
|
17
17
|
import {
|
|
18
18
|
getCommandName,
|
|
19
19
|
getCommandNamePlain
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
printIndications,
|
|
10
10
|
require_dist as require_dist2,
|
|
11
11
|
sleep
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-GCUHLRDW.js";
|
|
13
13
|
import {
|
|
14
14
|
suggestNextCommands
|
|
15
15
|
} from "./chunk-XR53KVJD.js";
|
|
@@ -20,9 +20,12 @@ import {
|
|
|
20
20
|
import {
|
|
21
21
|
getScope
|
|
22
22
|
} from "./chunk-QIZEWDZG.js";
|
|
23
|
+
import {
|
|
24
|
+
showPluginTipIfNeeded
|
|
25
|
+
} from "./chunk-ZZ6SYVWP.js";
|
|
23
26
|
import {
|
|
24
27
|
CommandTimeout
|
|
25
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-BU4VHI53.js";
|
|
26
29
|
import {
|
|
27
30
|
ua_default
|
|
28
31
|
} from "./chunk-5ZVJYXLU.js";
|
|
@@ -31,7 +34,7 @@ import {
|
|
|
31
34
|
param,
|
|
32
35
|
require_dist as require_dist3,
|
|
33
36
|
require_lib3 as require_lib
|
|
34
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-AACAZGTQ.js";
|
|
35
38
|
import {
|
|
36
39
|
stamp_default
|
|
37
40
|
} from "./chunk-SOTR4CXR.js";
|
|
@@ -5164,6 +5167,7 @@ async function printDeploymentStatus({
|
|
|
5164
5167
|
].filter(Boolean)
|
|
5165
5168
|
);
|
|
5166
5169
|
}
|
|
5170
|
+
await showPluginTipIfNeeded();
|
|
5167
5171
|
return 0;
|
|
5168
5172
|
}
|
|
5169
5173
|
|
|
@@ -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-FUK3AUXL.js";
|
|
10
10
|
import {
|
|
11
11
|
VERCEL_DIR_PROJECT,
|
|
12
12
|
VERCEL_DIR_README,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
selectAndParseRemoteUrl,
|
|
32
32
|
selectOrg,
|
|
33
33
|
writeServicesConfig
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-AACAZGTQ.js";
|
|
35
35
|
import {
|
|
36
36
|
table
|
|
37
37
|
} from "./chunk-CTY6ZEQZ.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-VYDMHA6I.js";
|
|
10
10
|
import {
|
|
11
11
|
ensureLink
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-LRHAZC7D.js";
|
|
13
13
|
import {
|
|
14
14
|
pullCommand
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-UNW5ZUOV.js";
|
|
16
16
|
import {
|
|
17
17
|
help
|
|
18
18
|
} from "./chunk-O5OD4JWH.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
envPullCommandLogic,
|
|
23
23
|
humanizePath,
|
|
24
24
|
parseTarget
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-AACAZGTQ.js";
|
|
26
26
|
import {
|
|
27
27
|
TelemetryClient
|
|
28
28
|
} from "./chunk-MXPZBZ2X.js";
|