@automattic/vip 2.40.0-dev.2 → 2.40.0-dev.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.
@@ -231,13 +231,16 @@ ${maybeExitPrompt}
231
231
  async function fetchFailureDetails(fileErrorsUrl) {
232
232
  progressTracker.suffix += `
233
233
  =============================================================
234
- Downloading errors details from ${fileErrorsUrl}...
234
+ Downloading errors details from ${fileErrorsUrl}
235
235
  \n`;
236
+ progressTracker.print({
237
+ clearAfter: true
238
+ });
236
239
  try {
237
240
  const response = await fetch(fileErrorsUrl);
238
241
  return await response.json();
239
242
  } catch (err) {
240
- progressTracker.suffix += `${_chalk.default.red(`Could not download file import errors report\n${err.message}`)}`;
243
+ progressTracker.suffix += `${_chalk.default.red(`Could not download import errors report\n${err.message}`)}`;
241
244
  throw err;
242
245
  }
243
246
  }
@@ -245,12 +248,13 @@ Downloading errors details from ${fileErrorsUrl}...
245
248
  const failureDetails = await (0, _enquirer.prompt)({
246
249
  type: 'confirm',
247
250
  name: 'download',
248
- message: 'Download file import errors report now? (Report will be downloadable for up to 7 days from the completion of the import)'
251
+ message: 'Download import errors report now? (Report will be downloadable for up to 7 days from the completion of the import)'
249
252
  });
250
253
  if (!failureDetails.download) {
251
- progressTracker.suffix += `${_chalk.default.yellow(`⚠️ Click on the following link to download the file import errors report`)}`;
252
- progressTracker.suffix += `\n${_chalk.default.italic.yellow('(The link will be valid for the next 15 minutes & the report will be downloadable for up to 7 days from the completion of the import)')} `;
253
- progressTracker.suffix += `\n\n${_chalk.default.bold.yellow(fileErrorsUrl)}\n`;
254
+ progressTracker.suffix += `${_chalk.default.yellow(`⚠️ An error report file has been generated for this media import. Access it within the next 15 minutes by clicking on the URL below.`)}`;
255
+ progressTracker.suffix += `\n${_chalk.default.yellow(`Or, generate a new URL by running the ${_chalk.default.bgYellow('vip import media status')} command.`)} `;
256
+ progressTracker.suffix += `\n${_chalk.default.yellow('The report will be downloadable for up to 7 days after the completion of the import or until a new media import is performed.')}`;
257
+ progressTracker.suffix += `\n\n${_chalk.default.underline(fileErrorsUrl)}\n`;
254
258
  progressTracker.print({
255
259
  clearAfter: true
256
260
  });
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@automattic/vip",
3
- "version": "2.40.0-dev.2",
3
+ "version": "2.40.0-dev.3",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@automattic/vip",
9
- "version": "2.40.0-dev.2",
9
+ "version": "2.40.0-dev.3",
10
10
  "hasInstallScript": true,
11
11
  "license": "MIT",
12
12
  "dependencies": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automattic/vip",
3
- "version": "2.40.0-dev.2",
3
+ "version": "2.40.0-dev.3",
4
4
  "description": "The VIP Javascript library & CLI",
5
5
  "main": "index.js",
6
6
  "bin": {