pim-import 5.12.1 → 5.12.2
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/libs/s3.js +2 -1
- package/package.json +1 -1
package/dist/libs/s3.js
CHANGED
|
@@ -116,7 +116,8 @@ const getFileFromS3 = async (path, returnUrl = false) => {
|
|
|
116
116
|
(0, exports.checkConfig)();
|
|
117
117
|
const url = `https://${exports.config.bucket}.s3.${exports.config.region}.amazonaws.com/${path}`;
|
|
118
118
|
try {
|
|
119
|
-
const
|
|
119
|
+
const opts = !returnUrl ? {} : { responseType: "arraybuffer" };
|
|
120
|
+
const res = await axios_1.default.get(url, opts);
|
|
120
121
|
if (returnUrl) {
|
|
121
122
|
return url;
|
|
122
123
|
}
|