@automattic/vip 2.40.0-dev.0 → 2.40.0-dev.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.
@@ -242,16 +242,18 @@ Downloading errors details from ${fileErrorsUrl}...
242
242
  }
243
243
  }
244
244
  async function promptFailureDetailsDownload(fileErrorsUrl) {
245
- progressTracker.suffix += `${_chalk.default.yellow(`⚠️ Error details can be found on ${_chalk.default.bold(fileErrorsUrl)}\n${_chalk.default.italic.yellow('(This link will be valid for the next 15 minutes. The report is retained for 7 days from the completion of the import.)')}. `)}\n`;
246
- progressTracker.print({
247
- clearAfter: true
248
- });
249
245
  const failureDetails = await (0, _enquirer.prompt)({
250
246
  type: 'confirm',
251
247
  name: 'download',
252
248
  message: 'Download file import errors report now?'
253
249
  });
254
250
  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 data is retained for 7 days since the completion of the import)')} `;
253
+ progressTracker.suffix += `\n\n${_chalk.default.bold.yellow(fileErrorsUrl)}`;
254
+ progressTracker.print({
255
+ clearAfter: true
256
+ });
255
257
  return;
256
258
  }
257
259
  const failureDetailsErrors = await fetchFailureDetails(fileErrorsUrl);
@@ -284,9 +286,10 @@ Downloading errors details from ${fileErrorsUrl}...
284
286
  // Errors were observed and are present in the dto
285
287
  // Fall back to exporting errors to local file
286
288
  await printFailureDetails(fileErrors, results);
287
- } else {
289
+ } else if ('ABORTED' !== overallStatus) {
288
290
  // Errors are not present in the dto
289
291
  // And file error details report link is not available
292
+ // do not print this message if the import was aborted
290
293
  printFileErrorsReportLinkExpiredError(results);
291
294
  }
292
295
  }
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@automattic/vip",
3
- "version": "2.40.0-dev.0",
3
+ "version": "2.40.0-dev.1",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@automattic/vip",
9
- "version": "2.40.0-dev.0",
9
+ "version": "2.40.0-dev.1",
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.0",
3
+ "version": "2.40.0-dev.1",
4
4
  "description": "The VIP Javascript library & CLI",
5
5
  "main": "index.js",
6
6
  "bin": {