vercel 39.1.3 → 39.2.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/index.js +57 -44
- package/package.json +9 -10
package/dist/index.js
CHANGED
@@ -17174,7 +17174,7 @@ var init_command5 = __esm({
|
|
17174
17174
|
type: String,
|
17175
17175
|
argument: "FORMAT",
|
17176
17176
|
deprecated: false,
|
17177
|
-
description: "Compress the deployment code into
|
17177
|
+
description: "Compress the deployment code into an archive before uploading it"
|
17178
17178
|
},
|
17179
17179
|
{
|
17180
17180
|
name: "no-wait",
|
@@ -33587,7 +33587,7 @@ var require_package = __commonJS2({
|
|
33587
33587
|
"../client/package.json"(exports2, module2) {
|
33588
33588
|
module2.exports = {
|
33589
33589
|
name: "@vercel/client",
|
33590
|
-
version: "13.
|
33590
|
+
version: "13.5.0",
|
33591
33591
|
main: "dist/index.js",
|
33592
33592
|
typings: "dist/index.d.ts",
|
33593
33593
|
homepage: "https://vercel.com",
|
@@ -33626,7 +33626,7 @@ var require_package = __commonJS2({
|
|
33626
33626
|
typescript: "4.9.5"
|
33627
33627
|
},
|
33628
33628
|
dependencies: {
|
33629
|
-
"@vercel/build-utils": "8.
|
33629
|
+
"@vercel/build-utils": "8.7.0",
|
33630
33630
|
"@vercel/error-utils": "2.0.3",
|
33631
33631
|
"@vercel/routing-utils": "3.1.0",
|
33632
33632
|
"async-retry": "1.2.3",
|
@@ -39828,23 +39828,38 @@ var require_create_deployment = __commonJS2({
|
|
39828
39828
|
const workPath = typeof path11 === "string" ? path11 : path11[0];
|
39829
39829
|
let files;
|
39830
39830
|
try {
|
39831
|
-
if (clientOptions.archive === "tgz") {
|
39831
|
+
if (clientOptions.archive === "tgz" || clientOptions.archive === "split-tgz") {
|
39832
39832
|
debug2("Packing tarball");
|
39833
39833
|
const tarStream = import_tar_fs2.default.pack(workPath, {
|
39834
39834
|
entries: fileList.map((file) => (0, import_path41.relative)(workPath, file))
|
39835
39835
|
}).pipe((0, import_zlib.createGzip)());
|
39836
|
-
|
39837
|
-
|
39838
|
-
|
39839
|
-
|
39840
|
-
(
|
39841
|
-
|
39842
|
-
|
39843
|
-
|
39844
|
-
|
39845
|
-
|
39846
|
-
|
39847
|
-
|
39836
|
+
if (clientOptions.archive === "split-tgz") {
|
39837
|
+
const chunkedTarBuffers = await (0, import_build_utils19.streamToBufferChunks)(tarStream);
|
39838
|
+
debug2(`Packed tarball into ${chunkedTarBuffers.length} chunks`);
|
39839
|
+
files = new Map(
|
39840
|
+
chunkedTarBuffers.map((chunk, index) => [
|
39841
|
+
(0, import_hashes.hash)(chunk),
|
39842
|
+
{
|
39843
|
+
names: [(0, import_path41.join)(workPath, `.vercel/source.tgz.part${index + 1}`)],
|
39844
|
+
data: chunk,
|
39845
|
+
mode: 438
|
39846
|
+
}
|
39847
|
+
])
|
39848
|
+
);
|
39849
|
+
} else {
|
39850
|
+
const tarBuffer = await (0, import_build_utils19.streamToBuffer)(tarStream);
|
39851
|
+
debug2("Packed tarball");
|
39852
|
+
files = /* @__PURE__ */ new Map([
|
39853
|
+
[
|
39854
|
+
(0, import_hashes.hash)(tarBuffer),
|
39855
|
+
{
|
39856
|
+
names: [(0, import_path41.join)(workPath, ".vercel/source.tgz")],
|
39857
|
+
data: tarBuffer,
|
39858
|
+
mode: 438
|
39859
|
+
}
|
39860
|
+
]
|
39861
|
+
]);
|
39862
|
+
}
|
39848
39863
|
} else {
|
39849
39864
|
files = await (0, import_hashes.hashes)(fileList);
|
39850
39865
|
}
|
@@ -39908,7 +39923,7 @@ var require_types = __commonJS2({
|
|
39908
39923
|
});
|
39909
39924
|
module2.exports = __toCommonJS4(types_exports);
|
39910
39925
|
var import_utils4 = require_utils4();
|
39911
|
-
var VALID_ARCHIVE_FORMATS4 = ["tgz"];
|
39926
|
+
var VALID_ARCHIVE_FORMATS4 = ["tgz", "split-tgz"];
|
39912
39927
|
var fileNameSymbol8 = Symbol("fileName");
|
39913
39928
|
}
|
39914
39929
|
});
|
@@ -88357,7 +88372,7 @@ var require_frameworks = __commonJS2({
|
|
88357
88372
|
},
|
88358
88373
|
devCommand: {
|
88359
88374
|
placeholder: "vite dev",
|
88360
|
-
value: "vite dev"
|
88375
|
+
value: "vite dev --port $PORT"
|
88361
88376
|
},
|
88362
88377
|
outputDirectory: {
|
88363
88378
|
value: "public"
|
@@ -151022,7 +151037,7 @@ async function add4(client2, argv) {
|
|
151022
151037
|
const choices = [
|
151023
151038
|
...envTargetChoices.filter((c) => !existingTargets.has(c.value)),
|
151024
151039
|
...customEnvironments.filter((c) => !existingCustomEnvs.has(c.id)).map((c) => ({
|
151025
|
-
name: c.
|
151040
|
+
name: c.slug,
|
151026
151041
|
value: c.id
|
151027
151042
|
}))
|
151028
151043
|
];
|
@@ -151130,19 +151145,20 @@ var init_ellipsis = __esm({
|
|
151130
151145
|
// src/util/target/format-environment.ts
|
151131
151146
|
function formatEnvironment(orgSlug, projectSlug, environment) {
|
151132
151147
|
const projectUrl = `https://vercel.com/${orgSlug}/${projectSlug}`;
|
151133
|
-
const boldName = import_chalk81.default.bold(environment.
|
151148
|
+
const boldName = import_chalk81.default.bold((0, import_title4.default)(environment.slug));
|
151134
151149
|
return output_manager_default.link(
|
151135
151150
|
boldName,
|
151136
151151
|
`${projectUrl}/settings/environments/${environment.id}`,
|
151137
151152
|
{ fallback: () => boldName, color: false }
|
151138
151153
|
);
|
151139
151154
|
}
|
151140
|
-
var import_chalk81;
|
151155
|
+
var import_chalk81, import_title4;
|
151141
151156
|
var init_format_environment = __esm({
|
151142
151157
|
"src/util/target/format-environment.ts"() {
|
151143
151158
|
"use strict";
|
151144
151159
|
import_chalk81 = __toESM3(require_source());
|
151145
151160
|
init_output_manager();
|
151161
|
+
import_title4 = __toESM3(require_lib4());
|
151146
151162
|
}
|
151147
151163
|
});
|
151148
151164
|
|
@@ -151151,18 +151167,18 @@ function formatEnvironments(link4, env, customEnvironments) {
|
|
151151
151167
|
const defaultTargets = (Array.isArray(env.target) ? env.target : [env.target || ""]).map((t) => {
|
151152
151168
|
return formatEnvironment(link4.org.slug, link4.project.name, {
|
151153
151169
|
id: t,
|
151154
|
-
|
151170
|
+
slug: (0, import_title5.default)(t)
|
151155
151171
|
});
|
151156
151172
|
});
|
151157
151173
|
const customTargets = env.customEnvironmentIds ? env.customEnvironmentIds.map((id) => customEnvironments.find((e2) => e2.id === id)).filter(Boolean).map((e2) => formatEnvironment(link4.org.slug, link4.project.name, e2)) : [];
|
151158
151174
|
const targetsString = [...defaultTargets, ...customTargets].join(", ");
|
151159
151175
|
return env.gitBranch ? `${targetsString} (${env.gitBranch})` : targetsString;
|
151160
151176
|
}
|
151161
|
-
var
|
151177
|
+
var import_title5;
|
151162
151178
|
var init_format_environments = __esm({
|
151163
151179
|
"src/util/env/format-environments.ts"() {
|
151164
151180
|
"use strict";
|
151165
|
-
|
151181
|
+
import_title5 = __toESM3(require_lib4());
|
151166
151182
|
init_format_environment();
|
151167
151183
|
}
|
151168
151184
|
});
|
@@ -153072,7 +153088,7 @@ async function inspect3(client2) {
|
|
153072
153088
|
}
|
153073
153089
|
function stateString(s) {
|
153074
153090
|
const CIRCLE = "\u25CF ";
|
153075
|
-
const sTitle = s && (0,
|
153091
|
+
const sTitle = s && (0, import_title6.default)(s);
|
153076
153092
|
switch (s) {
|
153077
153093
|
case "INITIALIZING":
|
153078
153094
|
case "BUILDING":
|
@@ -153117,8 +153133,8 @@ async function printDetails({
|
|
153117
153133
|
`);
|
153118
153134
|
print(` ${import_chalk90.default.cyan("name")} ${name}
|
153119
153135
|
`);
|
153120
|
-
const
|
153121
|
-
const target =
|
153136
|
+
const customEnvironmentSlug = deployment.customEnvironment?.slug;
|
153137
|
+
const target = customEnvironmentSlug ?? deployment.target ?? "preview";
|
153122
153138
|
print(` ${import_chalk90.default.cyan("target")} `);
|
153123
153139
|
print(
|
153124
153140
|
deployment.customEnvironment && deployment.team?.slug ? `${link4(
|
@@ -153177,14 +153193,14 @@ function exitCode(state) {
|
|
153177
153193
|
}
|
153178
153194
|
return 0;
|
153179
153195
|
}
|
153180
|
-
var import_error_utils26, import_chalk90, import_ms18,
|
153196
|
+
var import_error_utils26, import_chalk90, import_ms18, import_title6, import_url19;
|
153181
153197
|
var init_inspect4 = __esm({
|
153182
153198
|
"src/commands/inspect/index.ts"() {
|
153183
153199
|
"use strict";
|
153184
153200
|
import_error_utils26 = __toESM3(require_dist2());
|
153185
153201
|
import_chalk90 = __toESM3(require_source());
|
153186
153202
|
import_ms18 = __toESM3(require_ms2());
|
153187
|
-
|
153203
|
+
import_title6 = __toESM3(require_lib4());
|
153188
153204
|
import_url19 = require("url");
|
153189
153205
|
init_is_deploying();
|
153190
153206
|
init_logs();
|
@@ -154129,7 +154145,7 @@ ${table(
|
|
154129
154145
|
}
|
154130
154146
|
function resourceStatus(status2) {
|
154131
154147
|
const CIRCLE = "\u25CF ";
|
154132
|
-
const statusTitleCase = (0,
|
154148
|
+
const statusTitleCase = (0, import_title7.default)(status2);
|
154133
154149
|
switch (status2) {
|
154134
154150
|
case "initializing":
|
154135
154151
|
return import_chalk92.default.yellow(CIRCLE) + statusTitleCase;
|
@@ -154170,7 +154186,7 @@ function integrationLink(integration, team) {
|
|
154170
154186
|
color: false
|
154171
154187
|
});
|
154172
154188
|
}
|
154173
|
-
var import_chalk92,
|
154189
|
+
var import_chalk92, import_title7;
|
154174
154190
|
var init_list4 = __esm({
|
154175
154191
|
"src/commands/integration/list.ts"() {
|
154176
154192
|
"use strict";
|
@@ -154183,7 +154199,7 @@ var init_list4 = __esm({
|
|
154183
154199
|
init_get_args();
|
154184
154200
|
init_handle_error();
|
154185
154201
|
init_table();
|
154186
|
-
|
154202
|
+
import_title7 = __toESM3(require_lib4());
|
154187
154203
|
init_build_sso_link();
|
154188
154204
|
init_list3();
|
154189
154205
|
init_output_manager();
|
@@ -155447,7 +155463,7 @@ async function list3(client2) {
|
|
155447
155463
|
const createdAt = (0, import_ms19.default)(
|
155448
155464
|
Date.now() - (dep?.undeletedAt ?? dep.createdAt)
|
155449
155465
|
);
|
155450
|
-
const targetName = dep.customEnvironment?.
|
155466
|
+
const targetName = dep.customEnvironment?.slug || (dep.target === "production" ? "Production" : "Preview");
|
155451
155467
|
const targetSlug = dep.customEnvironment?.id || dep.target || "preview";
|
155452
155468
|
return [
|
155453
155469
|
import_chalk97.default.gray(createdAt),
|
@@ -155455,7 +155471,7 @@ async function list3(client2) {
|
|
155455
155471
|
stateString2(dep.readyState || ""),
|
155456
155472
|
formatEnvironment(contextName, project.name, {
|
155457
155473
|
id: targetSlug,
|
155458
|
-
|
155474
|
+
slug: targetName
|
155459
155475
|
}),
|
155460
155476
|
...!showPolicy ? [import_chalk97.default.gray(getDeploymentDuration(dep))] : [],
|
155461
155477
|
...!showPolicy ? [import_chalk97.default.gray(dep.creator?.username)] : [],
|
@@ -155500,7 +155516,7 @@ function getDeploymentDuration(dep) {
|
|
155500
155516
|
}
|
155501
155517
|
function stateString2(s) {
|
155502
155518
|
const CIRCLE = "\u25CF ";
|
155503
|
-
const sTitle = (0,
|
155519
|
+
const sTitle = (0, import_title8.default)(s);
|
155504
155520
|
switch (s) {
|
155505
155521
|
case "INITIALIZING":
|
155506
155522
|
case "BUILDING":
|
@@ -155532,13 +155548,13 @@ function filterUniqueApps() {
|
|
155532
155548
|
return true;
|
155533
155549
|
};
|
155534
155550
|
}
|
155535
|
-
var import_ms19, import_chalk97,
|
155551
|
+
var import_ms19, import_chalk97, import_title8, import_error_utils27;
|
155536
155552
|
var init_list6 = __esm({
|
155537
155553
|
"src/commands/list/index.ts"() {
|
155538
155554
|
"use strict";
|
155539
155555
|
import_ms19 = __toESM3(require_ms2());
|
155540
155556
|
import_chalk97 = __toESM3(require_source());
|
155541
|
-
|
155557
|
+
import_title8 = __toESM3(require_lib4());
|
155542
155558
|
init_table();
|
155543
155559
|
init_get_args();
|
155544
155560
|
init_error2();
|
@@ -158108,7 +158124,6 @@ function withDefaultEnvironmentsIncluded(environments) {
|
|
158108
158124
|
updatedAt: 0,
|
158109
158125
|
type: "production",
|
158110
158126
|
description: "",
|
158111
|
-
name: "Production",
|
158112
158127
|
domains: []
|
158113
158128
|
},
|
158114
158129
|
{
|
@@ -158118,7 +158133,6 @@ function withDefaultEnvironmentsIncluded(environments) {
|
|
158118
158133
|
updatedAt: 0,
|
158119
158134
|
type: "preview",
|
158120
158135
|
description: "",
|
158121
|
-
name: "Preview",
|
158122
158136
|
domains: []
|
158123
158137
|
},
|
158124
158138
|
...environments,
|
@@ -158129,7 +158143,6 @@ function withDefaultEnvironmentsIncluded(environments) {
|
|
158129
158143
|
updatedAt: 0,
|
158130
158144
|
type: "development",
|
158131
158145
|
description: "",
|
158132
|
-
name: "Development",
|
158133
158146
|
domains: []
|
158134
158147
|
}
|
158135
158148
|
];
|
@@ -158770,16 +158783,16 @@ async function change(client2, argv) {
|
|
158770
158783
|
const teamChoices = teams2.slice(0).sort((a, b) => {
|
158771
158784
|
return a.name.toLowerCase().localeCompare(b.name.toLowerCase());
|
158772
158785
|
}).map((team) => {
|
158773
|
-
let
|
158786
|
+
let title9 = `${team.name} (${team.slug})`;
|
158774
158787
|
const selected = team.id === currentTeam?.id;
|
158775
158788
|
if (selected) {
|
158776
|
-
|
158789
|
+
title9 += ` ${import_chalk116.default.bold("(current)")}`;
|
158777
158790
|
}
|
158778
158791
|
if (team.limited) {
|
158779
|
-
|
158792
|
+
title9 += ` ${emoji("locked")}`;
|
158780
158793
|
}
|
158781
158794
|
return {
|
158782
|
-
name:
|
158795
|
+
name: title9,
|
158783
158796
|
value: team.slug,
|
158784
158797
|
short: team.slug,
|
158785
158798
|
selected
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "vercel",
|
3
|
-
"version": "39.
|
3
|
+
"version": "39.2.0",
|
4
4
|
"preferGlobal": true,
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"description": "The command-line interface for Vercel",
|
@@ -21,17 +21,17 @@
|
|
21
21
|
"node": ">= 16"
|
22
22
|
},
|
23
23
|
"dependencies": {
|
24
|
-
"@vercel/build-utils": "8.
|
24
|
+
"@vercel/build-utils": "8.7.0",
|
25
25
|
"@vercel/fun": "1.1.0",
|
26
26
|
"@vercel/go": "3.2.1",
|
27
27
|
"@vercel/hydrogen": "1.0.9",
|
28
28
|
"@vercel/next": "4.4.0",
|
29
|
-
"@vercel/node": "3.2.
|
29
|
+
"@vercel/node": "3.2.29",
|
30
30
|
"@vercel/python": "4.5.1",
|
31
31
|
"@vercel/redwood": "2.1.8",
|
32
32
|
"@vercel/remix-builder": "2.2.14",
|
33
33
|
"@vercel/ruby": "2.1.0",
|
34
|
-
"@vercel/static-build": "2.5.
|
34
|
+
"@vercel/static-build": "2.5.37",
|
35
35
|
"chokidar": "4.0.0"
|
36
36
|
},
|
37
37
|
"devDependencies": {
|
@@ -53,7 +53,6 @@
|
|
53
53
|
"@types/debug": "0.0.31",
|
54
54
|
"@types/dotenv": "6.1.1",
|
55
55
|
"@types/escape-html": "0.0.20",
|
56
|
-
"@types/express": "4.17.13",
|
57
56
|
"@types/fs-extra": "9.0.13",
|
58
57
|
"@types/glob": "7.1.1",
|
59
58
|
"@types/http-proxy": "1.16.2",
|
@@ -80,11 +79,11 @@
|
|
80
79
|
"@types/yauzl-promise": "2.1.0",
|
81
80
|
"@vercel-internals/constants": "1.0.4",
|
82
81
|
"@vercel-internals/get-package-json": "1.0.0",
|
83
|
-
"@vercel-internals/types": "
|
84
|
-
"@vercel/client": "13.
|
82
|
+
"@vercel-internals/types": "3.0.0",
|
83
|
+
"@vercel/client": "13.5.0",
|
85
84
|
"@vercel/error-utils": "2.0.3",
|
86
|
-
"@vercel/frameworks": "3.
|
87
|
-
"@vercel/fs-detectors": "5.2.
|
85
|
+
"@vercel/frameworks": "3.4.0",
|
86
|
+
"@vercel/fs-detectors": "5.2.12",
|
88
87
|
"@vercel/routing-utils": "3.1.0",
|
89
88
|
"@vitest/expect": "2.1.3",
|
90
89
|
"ajv": "6.12.2",
|
@@ -111,7 +110,7 @@
|
|
111
110
|
"esm": "3.1.4",
|
112
111
|
"execa": "3.2.0",
|
113
112
|
"expect": "29.5.0",
|
114
|
-
"express": "4.
|
113
|
+
"express": "4.21.1",
|
115
114
|
"fast-deep-equal": "3.1.3",
|
116
115
|
"find-up": "4.1.0",
|
117
116
|
"fs-extra": "10.0.0",
|