contentful-export 7.21.8 → 7.21.10

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.
@@ -71,8 +71,9 @@ function downloadAssets(options) {
71
71
  proxy: options.proxy
72
72
  });
73
73
  return _bluebird.default.map(ctx.data.assets, asset => {
74
+ const entityName = (0, _contentfulBatchLibs.getEntityName)(asset);
74
75
  if (!asset.fields.file) {
75
- task.output = `${_figures.default.warning} asset ${(0, _contentfulBatchLibs.getEntityName)(asset)} has no file(s)`;
76
+ task.output = `${_figures.default.warning} asset ${entityName} has no file(s)`;
76
77
  warningCount++;
77
78
  return;
78
79
  }
@@ -80,7 +81,7 @@ function downloadAssets(options) {
80
81
  return _bluebird.default.mapSeries(locales, locale => {
81
82
  const url = asset.fields.file[locale].url;
82
83
  if (!url) {
83
- task.output = `${_figures.default.cross} asset '${(0, _contentfulBatchLibs.getEntityName)(asset)}' doesn't contain an url in path asset.fields.file[${locale}].url`;
84
+ task.output = `${_figures.default.cross} asset '${entityName}' doesn't contain an url in path asset.fields.file[${locale}].url`;
84
85
  errorCount++;
85
86
  return _bluebird.default.resolve();
86
87
  }
@@ -104,7 +105,7 @@ function downloadAssets(options) {
104
105
  }));
105
106
  }
106
107
  return startingPromise.then(downloadAsset).then(downLoadedFile => {
107
- task.output = `${_figures.default.tick} downloaded ${(0, _contentfulBatchLibs.getEntityName)(downLoadedFile)} (${url})`;
108
+ task.output = `${_figures.default.tick} downloaded ${entityName} (${url})`;
108
109
  successCount++;
109
110
  }).catch(error => {
110
111
  task.output = `${_figures.default.cross} error downloading ${url}: ${error.message}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentful-export",
3
- "version": "7.21.8",
3
+ "version": "7.21.10",
4
4
  "description": "this tool allows you to export a space to a JSON dump",
5
5
  "main": "dist/index.js",
6
6
  "types": "types.d.ts",