vercel 44.2.0 → 44.2.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/index.js +51 -21
- 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() {
|
@@ -178574,21 +178589,25 @@ async function pull2(client2) {
|
|
178574
178589
|
printError(error3);
|
178575
178590
|
return 1;
|
178576
178591
|
}
|
178577
|
-
|
178578
|
-
|
178579
|
-
output_manager_default.stopSpinner();
|
178580
|
-
output_manager_default.error(`No deployment found for project ${import_chalk107.default.bold(project.name)}`);
|
178581
|
-
return 1;
|
178582
|
-
}
|
178583
|
-
const microfrontendsConfigUrl = `/v1/microfrontends/${dpl}/config`;
|
178592
|
+
let rawConfig;
|
178593
|
+
const dpl = parsedArgs.flags["--dpl"];
|
178584
178594
|
try {
|
178585
|
-
|
178586
|
-
|
178587
|
-
|
178595
|
+
if (dpl) {
|
178596
|
+
const { config: config2 } = await client2.fetch(`/v1/microfrontends/${dpl}/config`, {
|
178597
|
+
method: "GET"
|
178598
|
+
});
|
178599
|
+
rawConfig = config2;
|
178600
|
+
} else {
|
178601
|
+
const projectId = project.id;
|
178602
|
+
const { config: config2 } = await client2.fetch(`/v1/microfrontends/projects/${projectId}/production-mfe-config`, {
|
178603
|
+
method: "GET"
|
178604
|
+
});
|
178605
|
+
rawConfig = config2;
|
178606
|
+
}
|
178588
178607
|
const sanitizedConfig = {
|
178589
|
-
...
|
178608
|
+
...rawConfig,
|
178590
178609
|
applications: Object.fromEntries(
|
178591
|
-
Object.entries(
|
178610
|
+
Object.entries(rawConfig.applications).map(([name, app]) => [
|
178592
178611
|
name,
|
178593
178612
|
{
|
178594
178613
|
...app,
|
@@ -180123,7 +180142,11 @@ async function redeploy(client2) {
|
|
180123
180142
|
deployment.readyState === "QUEUED" ? "Queued" : "Building",
|
180124
180143
|
0
|
180125
180144
|
);
|
180126
|
-
|
180145
|
+
const project = await getProjectByNameOrId(client2, deployment.projectId);
|
180146
|
+
if (project instanceof ProjectNotFound) {
|
180147
|
+
throw project;
|
180148
|
+
}
|
180149
|
+
if (deployment.readyState === "READY" && deployment.aliasAssigned && !project.rollingRelease) {
|
180127
180150
|
output_manager_default.spinner("Completing", 0);
|
180128
180151
|
} else {
|
180129
180152
|
try {
|
@@ -180143,6 +180166,11 @@ async function redeploy(client2) {
|
|
180143
180166
|
)) {
|
180144
180167
|
if (event.type === "building") {
|
180145
180168
|
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;
|
180146
180174
|
} else if (event.type === "ready" && (event.payload.checksState ? event.payload.checksState === "completed" : true)) {
|
180147
180175
|
output_manager_default.spinner("Completing", 0);
|
180148
180176
|
} else if (event.type === "checks-running") {
|
@@ -180207,6 +180235,8 @@ var init_redeploy2 = __esm({
|
|
180207
180235
|
init_output_manager();
|
180208
180236
|
init_redeploy();
|
180209
180237
|
init_get_custom_environments();
|
180238
|
+
init_get_project_by_id_or_name();
|
180239
|
+
init_errors_ts();
|
180210
180240
|
}
|
180211
180241
|
});
|
180212
180242
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "vercel",
|
3
|
-
"version": "44.2.
|
3
|
+
"version": "44.2.2",
|
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",
|