pim-import 5.12.0 → 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 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 res = await axios_1.default.get(url);
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
  }
@@ -17,7 +17,7 @@ const products_1 = require("../../algolia/products");
17
17
  const designers_1 = require("./designers");
18
18
  const notifications_1 = require("../../libs/notifications");
19
19
  const PIM_DUPLICATE_SEPARATOR = "~";
20
- const S3_PIM_PAYLOAD_PATH = `pim/payload/${process.env.FPI_CTF_ENVIRONMENT || ""}/`;
20
+ const S3_PIM_PAYLOAD_PATH = `pim/payload/${process.env.FPI_CTF_ENVIRONMENT ? process.env.FPI_CTF_ENVIRONMENT + "/" : ""}`;
21
21
  const isTermsToAdd = async (productDetails, catalog) => {
22
22
  if (!productDetails.code.includes(PIM_DUPLICATE_SEPARATOR)) {
23
23
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pim-import",
3
- "version": "5.12.0",
3
+ "version": "5.12.2",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",