@nkhang1902/strapi-plugin-export-import-clsx 1.2.91 → 1.3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nkhang1902/strapi-plugin-export-import-clsx",
3
- "version": "1.2.91",
3
+ "version": "1.3.0",
4
4
  "description": "A powerful Strapi plugin for exporting and importing data with Excel support and advanced filtering",
5
5
  "main": "./strapi-server.js",
6
6
  "scripts": {
@@ -306,7 +306,7 @@ module.exports = ({ strapi }) => ({
306
306
  continue
307
307
  }
308
308
  if (SYSTEM_KEYS.includes(key)) continue;
309
- if (customFields.includes(key) && !ALLOWED_JSONB_FIELDS.includes(key)) continue;
309
+ if (customFields.includes(key) && !ALLOWED_OBJECT_FIELDS.includes(key) && !ALLOWED_OBJECT_ARRAY_FIELDS.includes(key)) continue;
310
310
  if ([...skipFields, "wishlist", "availableSlot"].includes(key))
311
311
  continue;
312
312
 
@@ -318,11 +318,6 @@ module.exports = ({ strapi }) => ({
318
318
  continue;
319
319
  }
320
320
 
321
- if (value !== null && typeof value !== "object") {
322
- result[key] = value;
323
- continue;
324
- }
325
-
326
321
  if (!Array.isArray(value) && typeof value === "object") {
327
322
  let temp = handleObject(key, value);
328
323
  if (temp !== undefined) {
@@ -343,6 +338,8 @@ module.exports = ({ strapi }) => ({
343
338
  }
344
339
  continue;
345
340
  }
341
+
342
+ result[key] = value;
346
343
  }
347
344
  return result;
348
345
  } else {