@nkhang1902/strapi-plugin-export-import-clsx 1.3.4 → 1.3.6

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.3.4",
3
+ "version": "1.3.6",
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": {
@@ -88,7 +88,9 @@ module.exports = ({ strapi }) => ({
88
88
  throw new Error(`Sheet name "${sheetName}" does not match the target content type "${targetContentType.split(".")[1]}"`);
89
89
  }
90
90
  const worksheet = workbook.Sheets[sheetName];
91
- const rows = XLSX.utils.sheet_to_json(worksheet);
91
+ const rows = XLSX.utils.sheet_to_json(worksheet, {
92
+ defval: null
93
+ });
92
94
 
93
95
  if (!rows.length) return;
94
96
 
@@ -295,7 +297,6 @@ module.exports = ({ strapi }) => ({
295
297
  sanitizeEntryBeforeWrite(data, uid) {
296
298
  const schema = strapi.contentTypes[uid];
297
299
  const cleaned = {};
298
- console.log('data', data);
299
300
  for (const [key, attr] of Object.entries(schema.attributes)) {
300
301
  const value = data[key];
301
302