@nkhang1902/strapi-plugin-export-import-clsx 1.3.3 → 1.3.5

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.3",
3
+ "version": "1.3.5",
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": {
@@ -89,6 +89,7 @@ module.exports = ({ strapi }) => ({
89
89
  }
90
90
  const worksheet = workbook.Sheets[sheetName];
91
91
  const rows = XLSX.utils.sheet_to_json(worksheet);
92
+ console.log(rows)
92
93
 
93
94
  if (!rows.length) return;
94
95
 
@@ -278,8 +279,6 @@ module.exports = ({ strapi }) => ({
278
279
 
279
280
  for (const [key, attr] of Object.entries(schema.attributes)) {
280
281
  const value = data?.[key];
281
- const fieldPath = `${path}.${key}`;
282
-
283
282
  if (attr.type === 'component') {
284
283
  cleaned[key] = attr.repeatable
285
284
  ? (value || []).map((v, i) =>
@@ -297,7 +296,6 @@ module.exports = ({ strapi }) => ({
297
296
  sanitizeEntryBeforeWrite(data, uid) {
298
297
  const schema = strapi.contentTypes[uid];
299
298
  const cleaned = {};
300
- console.log('data', data);
301
299
  for (const [key, attr] of Object.entries(schema.attributes)) {
302
300
  const value = data[key];
303
301