@adminforth/import-export 1.4.26 → 1.4.27

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/build.log CHANGED
@@ -11,5 +11,5 @@ custom/package.json
11
11
  custom/pnpm-lock.yaml
12
12
  custom/tsconfig.json
13
13
 
14
- sent 17,877 bytes received 134 bytes 36,022.00 bytes/sec
15
- total size is 17,395 speedup is 0.97
14
+ sent 17,871 bytes received 134 bytes 36,010.00 bytes/sec
15
+ total size is 17,389 speedup is 0.97
@@ -116,7 +116,7 @@ async function postData(data: Record<string, string[]>, skipDuplicates: boolean
116
116
  adminforth.list.refresh();
117
117
  }
118
118
  adminforth.alert({
119
- message: `Imported ${resp.importedCount || 0} records. Updated ${resp.updatedCount || 0} records. ${resp.errors?.length ? `Errors: ${resp.errors.join(', ')}` : ''}`,
119
+ message: `Imported ${resp.importedCount || 0} records. Updated ${resp.updatedCount || 0} records. ${resp.errors?.length ? `First error: ${resp.errors[0]}` : ''}`,
120
120
  variant: resp.errors?.length ? (
121
121
  resp.importedCount ? 'warning' : 'danger'
122
122
  ) : 'success'
@@ -138,7 +138,7 @@ async function postDataNewOnly(data: Record<string, string[]>) {
138
138
  adminforth.list.refresh();
139
139
  }
140
140
  adminforth.alert({
141
- message: `Imported ${resp.importedCount || 0} records. ${resp.errors?.length ? `Errors: ${resp.errors.join(', ')}` : ''}`,
141
+ message: `Imported ${resp.importedCount || 0} records. ${resp.errors?.length ? `First error: ${resp.errors[0]}` : ''}`,
142
142
  variant: resp.errors?.length ? 'warning' : 'success'
143
143
  });
144
144
 
@@ -116,7 +116,7 @@ async function postData(data: Record<string, string[]>, skipDuplicates: boolean
116
116
  adminforth.list.refresh();
117
117
  }
118
118
  adminforth.alert({
119
- message: `Imported ${resp.importedCount || 0} records. Updated ${resp.updatedCount || 0} records. ${resp.errors?.length ? `Errors: ${resp.errors.join(', ')}` : ''}`,
119
+ message: `Imported ${resp.importedCount || 0} records. Updated ${resp.updatedCount || 0} records. ${resp.errors?.length ? `First error: ${resp.errors[0]}` : ''}`,
120
120
  variant: resp.errors?.length ? (
121
121
  resp.importedCount ? 'warning' : 'danger'
122
122
  ) : 'success'
@@ -138,7 +138,7 @@ async function postDataNewOnly(data: Record<string, string[]>) {
138
138
  adminforth.list.refresh();
139
139
  }
140
140
  adminforth.alert({
141
- message: `Imported ${resp.importedCount || 0} records. ${resp.errors?.length ? `Errors: ${resp.errors.join(', ')}` : ''}`,
141
+ message: `Imported ${resp.importedCount || 0} records. ${resp.errors?.length ? `First error: ${resp.errors[0]}` : ''}`,
142
142
  variant: resp.errors?.length ? 'warning' : 'success'
143
143
  });
144
144
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/import-export",
3
- "version": "1.4.26",
3
+ "version": "1.4.27",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",