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:
|
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(
|
108
|
+
return startingPromise.then(downloadAsset).then(_downLoadedFile => {
|
108
109
|
task.output = `${_figures.default.tick} downloaded ${entityName} (${url})`;
|
109
110
|
successCount++;
|
110
111
|
}).catch(error => {
|