@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 CHANGED
@@ -13,7 +13,6 @@ var fse = require('fs-extra');
13
13
  var _ = require('lodash');
14
14
  var utils = require('@strapi/utils');
15
15
  var chalk = require('chalk');
16
- var webStream = require('stream/web');
17
16
  var ws = require('ws');
18
17
  var zip = require('zlib');
19
18
  var tar = require('tar');
@@ -39,7 +38,6 @@ function _interopNamespaceDefault(e) {
39
38
  }
40
39
 
41
40
  var fse__namespace = /*#__PURE__*/_interopNamespaceDefault(fse);
42
- var webStream__namespace = /*#__PURE__*/_interopNamespaceDefault(webStream);
43
41
 
44
42
  // different key values depending on algorithm chosen
45
43
  const getEncryptionStrategy = (algorithm)=>{
@@ -2750,7 +2748,7 @@ function getFileStream(filepath, strapi1, isLocal = false) {
2750
2748
  }
2751
2749
  if (res.body) {
2752
2750
  // pipe the image data
2753
- stream$1.Readable.fromWeb(new webStream__namespace.ReadableStream(res.body)).pipe(readableStream);
2751
+ stream$1.Readable.fromWeb(res.body).pipe(readableStream);
2754
2752
  } else {
2755
2753
  readableStream.emit('error', new Error('Empty data found for file'));
2756
2754
  }