@strapi/data-transfer 5.12.0-beta.1 → 5.12.0
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.
- package/dist/index.js +1 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
|
@@ -12,7 +12,6 @@ import fse__default, { createReadStream, stat, createWriteStream, rm } from 'fs-
|
|
|
12
12
|
import _ from 'lodash';
|
|
13
13
|
import { contentTypes, async } from '@strapi/utils';
|
|
14
14
|
import chalk from 'chalk';
|
|
15
|
-
import * as webStream from 'stream/web';
|
|
16
15
|
import { WebSocket } from 'ws';
|
|
17
16
|
import zip$1 from 'zlib';
|
|
18
17
|
import tar from 'tar';
|
|
@@ -2729,7 +2728,7 @@ function getFileStream(filepath, strapi1, isLocal = false) {
|
|
|
2729
2728
|
}
|
|
2730
2729
|
if (res.body) {
|
|
2731
2730
|
// pipe the image data
|
|
2732
|
-
Readable.fromWeb(
|
|
2731
|
+
Readable.fromWeb(res.body).pipe(readableStream);
|
|
2733
2732
|
} else {
|
|
2734
2733
|
readableStream.emit('error', new Error('Empty data found for file'));
|
|
2735
2734
|
}
|