@automattic/vip 3.22.2 → 3.22.3
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.
|
@@ -350,13 +350,11 @@ class ExportSQLCommand {
|
|
|
350
350
|
}
|
|
351
351
|
size = Number(bytesWrittenMeta.value);
|
|
352
352
|
}
|
|
353
|
-
const downloadURLString = `\n${_chalk.default.green('Download URL')}:\n${url}\n\n`;
|
|
354
353
|
if (this.skipDownload) {
|
|
355
354
|
this.progressTracker.stepSkipped(this.steps.CONFIRM_ENOUGH_STORAGE);
|
|
356
355
|
this.progressTracker.stepSkipped(this.steps.DOWNLOAD);
|
|
357
356
|
this.progressTracker.print();
|
|
358
357
|
this.progressTracker.stopPrinting();
|
|
359
|
-
console.log(downloadURLString);
|
|
360
358
|
return;
|
|
361
359
|
}
|
|
362
360
|
const storageConfirmed = await this.progressTracker.handleContinuePrompt(async setPromptShown => {
|
|
@@ -397,6 +395,9 @@ class ExportSQLCommand {
|
|
|
397
395
|
exit.withError(`Error downloading exported file: ${error.message}`);
|
|
398
396
|
}
|
|
399
397
|
}
|
|
398
|
+
generateDownloadURLOutputString(url) {
|
|
399
|
+
return `${_chalk.default.green('Download URL')}: ${url}`;
|
|
400
|
+
}
|
|
400
401
|
async runBackup() {
|
|
401
402
|
if (this.generateBackup) {
|
|
402
403
|
await this.runBackupJob();
|
|
@@ -448,7 +449,7 @@ class ExportSQLCommand {
|
|
|
448
449
|
await (0, _utils.pollUntil)(this.getExportJob.bind(this), EXPORT_SQL_PROGRESS_POLL_INTERVAL, this.isCreated.bind(this));
|
|
449
450
|
this.progressTracker.stepSuccess(this.steps.CREATE);
|
|
450
451
|
const url = await generateDownloadLink(this.app.id, this.env.id, latestBackup.id);
|
|
451
|
-
this.progressTracker.stepSuccess(this.steps.DOWNLOAD_LINK, [url]);
|
|
452
|
+
this.progressTracker.stepSuccess(this.steps.DOWNLOAD_LINK, [this.generateDownloadURLOutputString(url)]);
|
|
452
453
|
return url;
|
|
453
454
|
}
|
|
454
455
|
async generateLiveBackupCopy() {
|
|
@@ -473,7 +474,7 @@ class ExportSQLCommand {
|
|
|
473
474
|
copyId
|
|
474
475
|
});
|
|
475
476
|
this.progressTracker.stepSuccess(this.steps.CREATE);
|
|
476
|
-
this.progressTracker.stepSuccess(this.steps.DOWNLOAD_LINK, [result.url]);
|
|
477
|
+
this.progressTracker.stepSuccess(this.steps.DOWNLOAD_LINK, [this.generateDownloadURLOutputString(result.url)]);
|
|
477
478
|
return result;
|
|
478
479
|
} catch (err) {
|
|
479
480
|
const message = err instanceof Error ? err.message : 'Unknown error';
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automattic/vip",
|
|
3
|
-
"version": "3.22.
|
|
3
|
+
"version": "3.22.3",
|
|
4
4
|
"lockfileVersion": 2,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@automattic/vip",
|
|
9
|
-
"version": "3.22.
|
|
9
|
+
"version": "3.22.3",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"dependencies": {
|