xladmin-import-export 0.1.0 → 0.1.1

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -94,6 +94,9 @@ async function buildImportFormData(payload) {
94
94
  return formData;
95
95
  }
96
96
  async function createStableUploadFile(file) {
97
+ if (typeof file.arrayBuffer !== "function") {
98
+ return file;
99
+ }
97
100
  const buffer = await file.arrayBuffer();
98
101
  return new File([buffer], file.name, {
99
102
  type: file.type,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xladmin-import-export",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Optional import/export extension for xladmin.",
5
5
  "license": "MIT",
6
6
  "type": "module",