@nkhang1902/strapi-plugin-export-import-clsx 1.3.4 → 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
|
+
"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
|
|
|
@@ -295,7 +296,6 @@ module.exports = ({ strapi }) => ({
|
|
|
295
296
|
sanitizeEntryBeforeWrite(data, uid) {
|
|
296
297
|
const schema = strapi.contentTypes[uid];
|
|
297
298
|
const cleaned = {};
|
|
298
|
-
console.log('data', data);
|
|
299
299
|
for (const [key, attr] of Object.entries(schema.attributes)) {
|
|
300
300
|
const value = data[key];
|
|
301
301
|
|