vercel 44.2.2 → 44.2.4
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 +9 -35
- package/package.json +1 -1
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 deployment = event.payload;
|
147959
|
+
now.url = deployment.url;
|
147960
147960
|
stopSpinner();
|
147961
|
-
printInspectUrl(
|
147962
|
-
const isProdDeployment =
|
147963
|
-
const previewUrl = `https://${
|
147961
|
+
printInspectUrl(deployment.inspectorUrl, deployStamp);
|
147962
|
+
const isProdDeployment = deployment.target === "production";
|
147963
|
+
const previewUrl = `https://${deployment.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 deployment;
|
147978
147978
|
}
|
147979
147979
|
if (withLogs) {
|
147980
147980
|
let promise;
|
147981
147981
|
({ abortController, promise } = displayBuildLogs(
|
147982
147982
|
client2,
|
147983
|
-
|
147983
|
+
deployment,
|
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
|
+
deployment.readyState === "QUEUED" ? "Queued" : "Building",
|
147992
147992
|
0
|
147993
147993
|
);
|
147994
147994
|
}
|
@@ -147999,19 +147999,6 @@ 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
|
-
}
|
148015
148002
|
if (event.type === "ready" && (event.payload.checksState ? event.payload.checksState === "completed" : true) && !withLogs) {
|
148016
148003
|
output_manager_default.spinner("Completing", 0);
|
148017
148004
|
}
|
@@ -148077,8 +148064,6 @@ var init_process_deployment = __esm({
|
|
148077
148064
|
init_progress();
|
148078
148065
|
init_ua();
|
148079
148066
|
init_output_manager();
|
148080
|
-
init_get_project_by_id_or_name();
|
148081
|
-
init_errors_ts();
|
148082
148067
|
archiveSuggestionText = "Try using `--archive=tgz` to limit the amount of files you upload.";
|
148083
148068
|
UploadErrorMissingArchive = class extends Error {
|
148084
148069
|
constructor() {
|
@@ -180142,11 +180127,7 @@ async function redeploy(client2) {
|
|
180142
180127
|
deployment.readyState === "QUEUED" ? "Queued" : "Building",
|
180143
180128
|
0
|
180144
180129
|
);
|
180145
|
-
|
180146
|
-
if (project instanceof ProjectNotFound) {
|
180147
|
-
throw project;
|
180148
|
-
}
|
180149
|
-
if (deployment.readyState === "READY" && deployment.aliasAssigned && !project.rollingRelease) {
|
180130
|
+
if (deployment.readyState === "READY" && deployment.aliasAssigned) {
|
180150
180131
|
output_manager_default.spinner("Completing", 0);
|
180151
180132
|
} else {
|
180152
180133
|
try {
|
@@ -180166,11 +180147,6 @@ async function redeploy(client2) {
|
|
180166
180147
|
)) {
|
180167
180148
|
if (event.type === "building") {
|
180168
180149
|
output_manager_default.spinner("Building", 0);
|
180169
|
-
} else if (event.type === "ready" && project.rollingRelease) {
|
180170
|
-
output_manager_default.spinner("Releasing", 0);
|
180171
|
-
output_manager_default.stopSpinner();
|
180172
|
-
deployment = event.payload;
|
180173
|
-
break;
|
180174
180150
|
} else if (event.type === "ready" && (event.payload.checksState ? event.payload.checksState === "completed" : true)) {
|
180175
180151
|
output_manager_default.spinner("Completing", 0);
|
180176
180152
|
} else if (event.type === "checks-running") {
|
@@ -180235,8 +180211,6 @@ var init_redeploy2 = __esm({
|
|
180235
180211
|
init_output_manager();
|
180236
180212
|
init_redeploy();
|
180237
180213
|
init_get_custom_environments();
|
180238
|
-
init_get_project_by_id_or_name();
|
180239
|
-
init_errors_ts();
|
180240
180214
|
}
|
180241
180215
|
});
|
180242
180216
|
|