vercel 44.2.0 → 44.2.1
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 +35 -9
- package/package.json +3 -3
package/dist/index.js
CHANGED
@@ -147955,12 +147955,12 @@ async function processDeployment({
|
|
147955
147955
|
);
|
147956
147956
|
}
|
147957
147957
|
if (event.type === "created") {
|
147958
|
-
const
|
147959
|
-
now.url =
|
147958
|
+
const deployment2 = event.payload;
|
147959
|
+
now.url = deployment2.url;
|
147960
147960
|
stopSpinner();
|
147961
|
-
printInspectUrl(
|
147962
|
-
const isProdDeployment =
|
147963
|
-
const previewUrl = `https://${
|
147961
|
+
printInspectUrl(deployment2.inspectorUrl, deployStamp);
|
147962
|
+
const isProdDeployment = deployment2.target === "production";
|
147963
|
+
const previewUrl = `https://${deployment2.url}`;
|
147964
147964
|
output_manager_default.print(
|
147965
147965
|
prependEmoji(
|
147966
147966
|
`${isProdDeployment ? "Production" : "Preview"}: ${import_chalk59.default.bold(
|
@@ -147974,13 +147974,13 @@ async function processDeployment({
|
|
147974
147974
|
process.stdout.write(`https://${event.payload.url}`);
|
147975
147975
|
}
|
147976
147976
|
if (noWait) {
|
147977
|
-
return
|
147977
|
+
return deployment2;
|
147978
147978
|
}
|
147979
147979
|
if (withLogs) {
|
147980
147980
|
let promise;
|
147981
147981
|
({ abortController, promise } = displayBuildLogs(
|
147982
147982
|
client2,
|
147983
|
-
|
147983
|
+
deployment2,
|
147984
147984
|
true
|
147985
147985
|
));
|
147986
147986
|
promise.catch(
|
@@ -147988,7 +147988,7 @@ async function processDeployment({
|
|
147988
147988
|
);
|
147989
147989
|
}
|
147990
147990
|
output_manager_default.spinner(
|
147991
|
-
|
147991
|
+
deployment2.readyState === "QUEUED" ? "Queued" : "Building",
|
147992
147992
|
0
|
147993
147993
|
);
|
147994
147994
|
}
|
@@ -147999,6 +147999,19 @@ async function processDeployment({
|
|
147999
147999
|
stopSpinner();
|
148000
148000
|
return event.payload;
|
148001
148001
|
}
|
148002
|
+
const deployment = event.payload;
|
148003
|
+
const project = await getProjectByNameOrId(
|
148004
|
+
client2,
|
148005
|
+
deployment?.projectId || ""
|
148006
|
+
);
|
148007
|
+
if (project instanceof ProjectNotFound) {
|
148008
|
+
throw project;
|
148009
|
+
}
|
148010
|
+
if (event.type === "ready" && project.rollingRelease) {
|
148011
|
+
output_manager_default.spinner("Releasing", 0);
|
148012
|
+
output_manager_default.stopSpinner();
|
148013
|
+
return event.payload;
|
148014
|
+
}
|
148002
148015
|
if (event.type === "ready" && (event.payload.checksState ? event.payload.checksState === "completed" : true) && !withLogs) {
|
148003
148016
|
output_manager_default.spinner("Completing", 0);
|
148004
148017
|
}
|
@@ -148064,6 +148077,8 @@ var init_process_deployment = __esm({
|
|
148064
148077
|
init_progress();
|
148065
148078
|
init_ua();
|
148066
148079
|
init_output_manager();
|
148080
|
+
init_get_project_by_id_or_name();
|
148081
|
+
init_errors_ts();
|
148067
148082
|
archiveSuggestionText = "Try using `--archive=tgz` to limit the amount of files you upload.";
|
148068
148083
|
UploadErrorMissingArchive = class extends Error {
|
148069
148084
|
constructor() {
|
@@ -180123,7 +180138,11 @@ async function redeploy(client2) {
|
|
180123
180138
|
deployment.readyState === "QUEUED" ? "Queued" : "Building",
|
180124
180139
|
0
|
180125
180140
|
);
|
180126
|
-
|
180141
|
+
const project = await getProjectByNameOrId(client2, deployment.projectId);
|
180142
|
+
if (project instanceof ProjectNotFound) {
|
180143
|
+
throw project;
|
180144
|
+
}
|
180145
|
+
if (deployment.readyState === "READY" && deployment.aliasAssigned && !project.rollingRelease) {
|
180127
180146
|
output_manager_default.spinner("Completing", 0);
|
180128
180147
|
} else {
|
180129
180148
|
try {
|
@@ -180143,6 +180162,11 @@ async function redeploy(client2) {
|
|
180143
180162
|
)) {
|
180144
180163
|
if (event.type === "building") {
|
180145
180164
|
output_manager_default.spinner("Building", 0);
|
180165
|
+
} else if (event.type === "ready" && project.rollingRelease) {
|
180166
|
+
output_manager_default.spinner("Releasing", 0);
|
180167
|
+
output_manager_default.stopSpinner();
|
180168
|
+
deployment = event.payload;
|
180169
|
+
break;
|
180146
180170
|
} else if (event.type === "ready" && (event.payload.checksState ? event.payload.checksState === "completed" : true)) {
|
180147
180171
|
output_manager_default.spinner("Completing", 0);
|
180148
180172
|
} else if (event.type === "checks-running") {
|
@@ -180207,6 +180231,8 @@ var init_redeploy2 = __esm({
|
|
180207
180231
|
init_output_manager();
|
180208
180232
|
init_redeploy();
|
180209
180233
|
init_get_custom_environments();
|
180234
|
+
init_get_project_by_id_or_name();
|
180235
|
+
init_errors_ts();
|
180210
180236
|
}
|
180211
180237
|
});
|
180212
180238
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "vercel",
|
3
|
-
"version": "44.2.
|
3
|
+
"version": "44.2.1",
|
4
4
|
"preferGlobal": true,
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"description": "The command-line interface for Vercel",
|
@@ -160,9 +160,9 @@
|
|
160
160
|
"write-json-file": "2.2.0",
|
161
161
|
"xdg-app-paths": "5.1.0",
|
162
162
|
"yauzl-promise": "2.1.3",
|
163
|
-
"@vercel-internals/get-package-json": "1.0.0",
|
164
163
|
"@vercel-internals/constants": "1.0.4",
|
165
|
-
"@vercel-internals/types": "3.0.6"
|
164
|
+
"@vercel-internals/types": "3.0.6",
|
165
|
+
"@vercel-internals/get-package-json": "1.0.0"
|
166
166
|
},
|
167
167
|
"scripts": {
|
168
168
|
"test": "jest --reporters=default --reporters=jest-junit --env node --verbose --bail",
|