|
@@ -1,9 +1,9 @@
|
|
|
|
|
|
|
|
|
|
-exceltoxlxstream = function (file) {
|
|
|
|
|
|
+exceltoxlxstream = async function (file) {
|
|
if (file) {
|
|
if (file) {
|
|
const reader = new FileReader();
|
|
const reader = new FileReader();
|
|
- reader.onload = function (e) {
|
|
|
|
|
|
+ reader.onload = async function (e) {
|
|
const data = new Uint8Array(e.target.result);
|
|
const data = new Uint8Array(e.target.result);
|
|
const workbook = XLSX.read(data, { type: 'array' });
|
|
const workbook = XLSX.read(data, { type: 'array' });
|
|
const fileStream = XLSX.write(workbook, { type: 'array', bookType: 'xlsx' });
|
|
const fileStream = XLSX.write(workbook, { type: 'array', bookType: 'xlsx' });
|