contentful-export 7.21.10 → 7.21.12

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.
@@ -44,7 +44,8 @@ async function downloadAsset({
44
44
  try {
45
45
  // download asset
46
46
  const assetRequest = await httpClient.get(url, {
47
- responseType: 'blob'
47
+ responseType: "stream",
48
+ transformResponse: [data => data]
48
49
  });
49
50
 
50
51
  // Wait for stream to be consumed before returning local file
@@ -104,7 +105,7 @@ function downloadAssets(options) {
104
105
  httpClient
105
106
  }));
106
107
  }
107
- return startingPromise.then(downloadAsset).then(downLoadedFile => {
108
+ return startingPromise.then(downloadAsset).then(_downLoadedFile => {
108
109
  task.output = `${_figures.default.tick} downloaded ${entityName} (${url})`;
109
110
  successCount++;
110
111
  }).catch(error => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentful-export",
3
- "version": "7.21.10",
3
+ "version": "7.21.12",
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",