@senlinz/import-export-wasm 0.1.1 → 1.0.0
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/README.md +2 -0
- package/README.zh.md +1 -0
- package/package.json +3 -2
- package/pkg/imexport_wasm.d.ts +19 -19
- package/pkg/imexport_wasm.js +54 -59
- package/pkg/imexport_wasm_bg.wasm +0 -0
package/README.md
CHANGED
|
@@ -75,6 +75,7 @@ The browser example is covered by Playwright tests in [`./tests/wasm.test.js`](.
|
|
|
75
75
|
## Runtime notes
|
|
76
76
|
|
|
77
77
|
- Browser usage requires the generated JS/WASM assets from `wasm-pack build`.
|
|
78
|
+
- The generated `pkg/` directory is a build artifact and is not tracked in git.
|
|
78
79
|
- Image export requires `.withImageFetcher(...)`.
|
|
79
80
|
- Invalid schemas and invalid exported number/date values now fail with explicit errors.
|
|
80
81
|
|
|
@@ -82,6 +83,7 @@ The browser example is covered by Playwright tests in [`./tests/wasm.test.js`](.
|
|
|
82
83
|
|
|
83
84
|
```bash
|
|
84
85
|
cargo test --lib
|
|
86
|
+
cargo bench --features benchmarks
|
|
85
87
|
wasm-pack build --release --target web
|
|
86
88
|
corepack pnpm install
|
|
87
89
|
corepack pnpm exec playwright install chromium
|
package/README.zh.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@senlinz/import-export-wasm",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Rust WebAssembly for import/export excel files",
|
|
5
5
|
"main": "pkg/imexport_wasm.js",
|
|
6
6
|
"types": "pkg/imexport_wasm.d.ts",
|
|
@@ -39,7 +39,8 @@
|
|
|
39
39
|
"build": "wasm-pack build --release --target web",
|
|
40
40
|
"publish-dry-run": "pnpm publish --dry-run --no-git-checks",
|
|
41
41
|
"cargo-test": "cargo test --lib",
|
|
42
|
-
"
|
|
42
|
+
"cargo-bench": "cargo bench --features benchmarks",
|
|
43
|
+
"e2e-serve": "serve -l 8080 .",
|
|
43
44
|
"e2e-test": "playwright test -c playwright.config.js"
|
|
44
45
|
}
|
|
45
46
|
}
|
package/pkg/imexport_wasm.d.ts
CHANGED
|
@@ -248,7 +248,7 @@ export interface InitOutput {
|
|
|
248
248
|
readonly excelcolumninfo_withParent: (a: number, b: number, c: number) => number;
|
|
249
249
|
readonly excelcolumninfo_withValueFormat: (a: number, b: number, c: number) => number;
|
|
250
250
|
readonly excelcolumninfo_withWidth: (a: number, b: number) => number;
|
|
251
|
-
readonly excelinfo_bind_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => number;
|
|
251
|
+
readonly excelinfo_bind_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => [number, number, number];
|
|
252
252
|
readonly excelinfo_withDefaultRowHeight: (a: number, b: number) => number;
|
|
253
253
|
readonly excelinfo_withHeaderRowHeight: (a: number, b: number) => number;
|
|
254
254
|
readonly excelinfo_withImageFetcher: (a: number, b: any) => number;
|
|
@@ -258,18 +258,10 @@ export interface InitOutput {
|
|
|
258
258
|
readonly excelinfo_withTitle: (a: number, b: number, c: number) => number;
|
|
259
259
|
readonly excelinfo_withTitleFormat: (a: number, b: number) => number;
|
|
260
260
|
readonly excelinfo_withTitleHeight: (a: number, b: number) => number;
|
|
261
|
-
readonly
|
|
262
|
-
readonly
|
|
263
|
-
readonly
|
|
264
|
-
readonly
|
|
265
|
-
readonly __wbg_set_dynamicexceldata_headers: (a: number, b: number, c: number) => void;
|
|
266
|
-
readonly __wbg_set_dynamicexceldata_rows: (a: number, b: number, c: number) => void;
|
|
267
|
-
readonly __wbg_set_dynamicexceldata_sheet_name: (a: number, b: number, c: number) => void;
|
|
268
|
-
readonly dynamicexceldata_new: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
269
|
-
readonly __wbg_excelrowdata_free: (a: number, b: number) => void;
|
|
270
|
-
readonly __wbg_get_excelrowdata_columns: (a: number) => [number, number];
|
|
271
|
-
readonly __wbg_set_excelrowdata_columns: (a: number, b: number, c: number) => void;
|
|
272
|
-
readonly excelrowdata_new: (a: number, b: number) => number;
|
|
261
|
+
readonly __wbg_exceldata_free: (a: number, b: number) => void;
|
|
262
|
+
readonly __wbg_get_exceldata_rows: (a: number) => [number, number];
|
|
263
|
+
readonly __wbg_set_exceldata_rows: (a: number, b: number, c: number) => void;
|
|
264
|
+
readonly exceldata_new: (a: number, b: number) => number;
|
|
273
265
|
readonly __wbg_excelcolumndata_free: (a: number, b: number) => void;
|
|
274
266
|
readonly __wbg_get_excelcolumndata_children: (a: number) => [number, number];
|
|
275
267
|
readonly __wbg_get_excelcolumndata_key: (a: number) => [number, number];
|
|
@@ -281,12 +273,20 @@ export interface InitOutput {
|
|
|
281
273
|
readonly excelcolumndata_newGroup: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
282
274
|
readonly excelcolumndata_newRootGroup: (a: number, b: number, c: number, d: number) => number;
|
|
283
275
|
readonly excelcolumndata_withChildren: (a: number, b: number, c: number) => number;
|
|
284
|
-
readonly
|
|
285
|
-
readonly
|
|
286
|
-
readonly
|
|
287
|
-
readonly
|
|
288
|
-
readonly
|
|
289
|
-
readonly
|
|
276
|
+
readonly __wbg_excelrowdata_free: (a: number, b: number) => void;
|
|
277
|
+
readonly __wbg_get_excelrowdata_columns: (a: number) => [number, number];
|
|
278
|
+
readonly __wbg_set_excelrowdata_columns: (a: number, b: number, c: number) => void;
|
|
279
|
+
readonly excelrowdata_new: (a: number, b: number) => number;
|
|
280
|
+
readonly __wbg_dynamicexceldata_free: (a: number, b: number) => void;
|
|
281
|
+
readonly __wbg_get_dynamicexceldata_headers: (a: number) => [number, number];
|
|
282
|
+
readonly __wbg_get_dynamicexceldata_rows: (a: number) => [number, number];
|
|
283
|
+
readonly __wbg_get_dynamicexceldata_sheet_name: (a: number) => [number, number];
|
|
284
|
+
readonly __wbg_set_dynamicexceldata_headers: (a: number, b: number, c: number) => void;
|
|
285
|
+
readonly __wbg_set_dynamicexceldata_rows: (a: number, b: number, c: number) => void;
|
|
286
|
+
readonly __wbg_set_dynamicexceldata_sheet_name: (a: number, b: number, c: number) => void;
|
|
287
|
+
readonly dynamicexceldata_new: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
288
|
+
readonly wasm_bindgen__convert__closures_____invoke__hdaf915f93ddc966d: (a: number, b: number, c: any) => [number, number];
|
|
289
|
+
readonly wasm_bindgen__convert__closures_____invoke__h9810a10231a362ef: (a: number, b: number, c: any, d: any) => void;
|
|
290
290
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
291
291
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
292
292
|
readonly __wbindgen_exn_store: (a: number) => void;
|
package/pkg/imexport_wasm.js
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
export class DynamicExcelData {
|
|
4
4
|
static __wrap(ptr) {
|
|
5
|
-
ptr = ptr >>> 0;
|
|
6
5
|
const obj = Object.create(DynamicExcelData.prototype);
|
|
7
6
|
obj.__wbg_ptr = ptr;
|
|
8
7
|
DynamicExcelDataFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -31,7 +30,7 @@ export class DynamicExcelData {
|
|
|
31
30
|
const ptr2 = passArrayJsValueToWasm0(rows, wasm.__wbindgen_malloc);
|
|
32
31
|
const len2 = WASM_VECTOR_LEN;
|
|
33
32
|
const ret = wasm.dynamicexceldata_new(ptr0, len0, ptr1, len1, ptr2, len2);
|
|
34
|
-
this.__wbg_ptr = ret
|
|
33
|
+
this.__wbg_ptr = ret;
|
|
35
34
|
DynamicExcelDataFinalization.register(this, this.__wbg_ptr, this);
|
|
36
35
|
return this;
|
|
37
36
|
}
|
|
@@ -97,7 +96,6 @@ if (Symbol.dispose) DynamicExcelData.prototype[Symbol.dispose] = DynamicExcelDat
|
|
|
97
96
|
|
|
98
97
|
export class ExcelCellFormat {
|
|
99
98
|
static __wrap(ptr) {
|
|
100
|
-
ptr = ptr >>> 0;
|
|
101
99
|
const obj = Object.create(ExcelCellFormat.prototype);
|
|
102
100
|
obj.__wbg_ptr = ptr;
|
|
103
101
|
ExcelCellFormatFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -121,7 +119,7 @@ export class ExcelCellFormat {
|
|
|
121
119
|
}
|
|
122
120
|
constructor() {
|
|
123
121
|
const ret = wasm.excelcellformat_new();
|
|
124
|
-
this.__wbg_ptr = ret
|
|
122
|
+
this.__wbg_ptr = ret;
|
|
125
123
|
ExcelCellFormatFinalization.register(this, this.__wbg_ptr, this);
|
|
126
124
|
return this;
|
|
127
125
|
}
|
|
@@ -506,7 +504,6 @@ if (Symbol.dispose) ExcelCellFormat.prototype[Symbol.dispose] = ExcelCellFormat.
|
|
|
506
504
|
|
|
507
505
|
export class ExcelColumnData {
|
|
508
506
|
static __wrap(ptr) {
|
|
509
|
-
ptr = ptr >>> 0;
|
|
510
507
|
const obj = Object.create(ExcelColumnData.prototype);
|
|
511
508
|
obj.__wbg_ptr = ptr;
|
|
512
509
|
ExcelColumnDataFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -538,7 +535,7 @@ export class ExcelColumnData {
|
|
|
538
535
|
const ptr1 = passStringToWasm0(value, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
539
536
|
const len1 = WASM_VECTOR_LEN;
|
|
540
537
|
const ret = wasm.excelcolumndata_bind_new(ptr0, len0, ptr1, len1);
|
|
541
|
-
this.__wbg_ptr = ret
|
|
538
|
+
this.__wbg_ptr = ret;
|
|
542
539
|
ExcelColumnDataFinalization.register(this, this.__wbg_ptr, this);
|
|
543
540
|
return this;
|
|
544
541
|
}
|
|
@@ -650,7 +647,6 @@ if (Symbol.dispose) ExcelColumnData.prototype[Symbol.dispose] = ExcelColumnData.
|
|
|
650
647
|
|
|
651
648
|
export class ExcelColumnInfo {
|
|
652
649
|
static __wrap(ptr) {
|
|
653
|
-
ptr = ptr >>> 0;
|
|
654
650
|
const obj = Object.create(ExcelColumnInfo.prototype);
|
|
655
651
|
obj.__wbg_ptr = ptr;
|
|
656
652
|
ExcelColumnInfoFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -682,7 +678,7 @@ export class ExcelColumnInfo {
|
|
|
682
678
|
const ptr1 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
683
679
|
const len1 = WASM_VECTOR_LEN;
|
|
684
680
|
const ret = wasm.excelcolumninfo_bind_new(ptr0, len0, ptr1, len1);
|
|
685
|
-
this.__wbg_ptr = ret
|
|
681
|
+
this.__wbg_ptr = ret;
|
|
686
682
|
ExcelColumnInfoFinalization.register(this, this.__wbg_ptr, this);
|
|
687
683
|
return this;
|
|
688
684
|
}
|
|
@@ -1011,7 +1007,6 @@ if (Symbol.dispose) ExcelColumnInfo.prototype[Symbol.dispose] = ExcelColumnInfo.
|
|
|
1011
1007
|
|
|
1012
1008
|
export class ExcelData {
|
|
1013
1009
|
static __wrap(ptr) {
|
|
1014
|
-
ptr = ptr >>> 0;
|
|
1015
1010
|
const obj = Object.create(ExcelData.prototype);
|
|
1016
1011
|
obj.__wbg_ptr = ptr;
|
|
1017
1012
|
ExcelDataFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -1034,7 +1029,7 @@ export class ExcelData {
|
|
|
1034
1029
|
const ptr0 = passArrayJsValueToWasm0(rows, wasm.__wbindgen_malloc);
|
|
1035
1030
|
const len0 = WASM_VECTOR_LEN;
|
|
1036
1031
|
const ret = wasm.exceldata_new(ptr0, len0);
|
|
1037
|
-
this.__wbg_ptr = ret
|
|
1032
|
+
this.__wbg_ptr = ret;
|
|
1038
1033
|
ExcelDataFinalization.register(this, this.__wbg_ptr, this);
|
|
1039
1034
|
return this;
|
|
1040
1035
|
}
|
|
@@ -1060,7 +1055,6 @@ if (Symbol.dispose) ExcelData.prototype[Symbol.dispose] = ExcelData.prototype.fr
|
|
|
1060
1055
|
|
|
1061
1056
|
export class ExcelInfo {
|
|
1062
1057
|
static __wrap(ptr) {
|
|
1063
|
-
ptr = ptr >>> 0;
|
|
1064
1058
|
const obj = Object.create(ExcelInfo.prototype);
|
|
1065
1059
|
obj.__wbg_ptr = ptr;
|
|
1066
1060
|
ExcelInfoFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -1095,7 +1089,10 @@ export class ExcelInfo {
|
|
|
1095
1089
|
const ptr4 = passStringToWasm0(create_time, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1096
1090
|
const len4 = WASM_VECTOR_LEN;
|
|
1097
1091
|
const ret = wasm.excelinfo_bind_new(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4);
|
|
1098
|
-
|
|
1092
|
+
if (ret[2]) {
|
|
1093
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1094
|
+
}
|
|
1095
|
+
this.__wbg_ptr = ret[0];
|
|
1099
1096
|
ExcelInfoFinalization.register(this, this.__wbg_ptr, this);
|
|
1100
1097
|
return this;
|
|
1101
1098
|
}
|
|
@@ -1415,7 +1412,6 @@ if (Symbol.dispose) ExcelInfo.prototype[Symbol.dispose] = ExcelInfo.prototype.fr
|
|
|
1415
1412
|
|
|
1416
1413
|
export class ExcelRowData {
|
|
1417
1414
|
static __wrap(ptr) {
|
|
1418
|
-
ptr = ptr >>> 0;
|
|
1419
1415
|
const obj = Object.create(ExcelRowData.prototype);
|
|
1420
1416
|
obj.__wbg_ptr = ptr;
|
|
1421
1417
|
ExcelRowDataFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -1444,7 +1440,7 @@ export class ExcelRowData {
|
|
|
1444
1440
|
const ptr0 = passArrayJsValueToWasm0(columns, wasm.__wbindgen_malloc);
|
|
1445
1441
|
const len0 = WASM_VECTOR_LEN;
|
|
1446
1442
|
const ret = wasm.excelrowdata_new(ptr0, len0);
|
|
1447
|
-
this.__wbg_ptr = ret
|
|
1443
|
+
this.__wbg_ptr = ret;
|
|
1448
1444
|
ExcelRowDataFinalization.register(this, this.__wbg_ptr, this);
|
|
1449
1445
|
return this;
|
|
1450
1446
|
}
|
|
@@ -1526,41 +1522,40 @@ export function importDynamicData(sheet_name, header_row, excel_bytes) {
|
|
|
1526
1522
|
var len0 = WASM_VECTOR_LEN;
|
|
1527
1523
|
const ptr1 = passArray8ToWasm0(excel_bytes, wasm.__wbindgen_malloc);
|
|
1528
1524
|
const len1 = WASM_VECTOR_LEN;
|
|
1529
|
-
const ret = wasm.importDynamicData(ptr0, len0, isLikeNone(header_row) ?
|
|
1525
|
+
const ret = wasm.importDynamicData(ptr0, len0, isLikeNone(header_row) ? Number.MAX_SAFE_INTEGER : (header_row) >>> 0, ptr1, len1);
|
|
1530
1526
|
if (ret[2]) {
|
|
1531
1527
|
throw takeFromExternrefTable0(ret[1]);
|
|
1532
1528
|
}
|
|
1533
1529
|
return DynamicExcelData.__wrap(ret[0]);
|
|
1534
1530
|
}
|
|
1535
|
-
|
|
1536
1531
|
function __wbg_get_imports() {
|
|
1537
1532
|
const import0 = {
|
|
1538
1533
|
__proto__: null,
|
|
1539
|
-
|
|
1534
|
+
__wbg_Error_3639a60ed15f87e7: function(arg0, arg1) {
|
|
1540
1535
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
1541
1536
|
return ret;
|
|
1542
1537
|
},
|
|
1543
|
-
|
|
1538
|
+
__wbg___wbindgen_debug_string_07cb72cfcc952e2b: function(arg0, arg1) {
|
|
1544
1539
|
const ret = debugString(arg1);
|
|
1545
1540
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1546
1541
|
const len1 = WASM_VECTOR_LEN;
|
|
1547
1542
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1548
1543
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1549
1544
|
},
|
|
1550
|
-
|
|
1545
|
+
__wbg___wbindgen_is_function_2f0fd7ceb86e64c5: function(arg0) {
|
|
1551
1546
|
const ret = typeof(arg0) === 'function';
|
|
1552
1547
|
return ret;
|
|
1553
1548
|
},
|
|
1554
|
-
|
|
1549
|
+
__wbg___wbindgen_is_object_5b22ff2418063a9c: function(arg0) {
|
|
1555
1550
|
const val = arg0;
|
|
1556
1551
|
const ret = typeof(val) === 'object' && val !== null;
|
|
1557
1552
|
return ret;
|
|
1558
1553
|
},
|
|
1559
|
-
|
|
1554
|
+
__wbg___wbindgen_is_undefined_244a92c34d3b6ec0: function(arg0) {
|
|
1560
1555
|
const ret = arg0 === undefined;
|
|
1561
1556
|
return ret;
|
|
1562
1557
|
},
|
|
1563
|
-
|
|
1558
|
+
__wbg___wbindgen_string_get_965592073e5d848c: function(arg0, arg1) {
|
|
1564
1559
|
const obj = arg1;
|
|
1565
1560
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
1566
1561
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -1568,13 +1563,13 @@ function __wbg_get_imports() {
|
|
|
1568
1563
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1569
1564
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1570
1565
|
},
|
|
1571
|
-
|
|
1566
|
+
__wbg___wbindgen_throw_9c75d47bf9e7731e: function(arg0, arg1) {
|
|
1572
1567
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1573
1568
|
},
|
|
1574
|
-
|
|
1569
|
+
__wbg__wbg_cb_unref_158e43e869788cdc: function(arg0) {
|
|
1575
1570
|
arg0._wbg_cb_unref();
|
|
1576
1571
|
},
|
|
1577
|
-
|
|
1572
|
+
__wbg_call_a41d6421b30a32c5: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1578
1573
|
const ret = arg0.call(arg1, arg2);
|
|
1579
1574
|
return ret;
|
|
1580
1575
|
}, arguments); },
|
|
@@ -1610,26 +1605,26 @@ function __wbg_get_imports() {
|
|
|
1610
1605
|
const ret = ExcelRowData.__unwrap(arg0);
|
|
1611
1606
|
return ret;
|
|
1612
1607
|
},
|
|
1613
|
-
|
|
1608
|
+
__wbg_length_ba3c032602efe310: function(arg0) {
|
|
1614
1609
|
const ret = arg0.length;
|
|
1615
1610
|
return ret;
|
|
1616
1611
|
},
|
|
1617
|
-
|
|
1612
|
+
__wbg_new_8454eee672b2ba6e: function(arg0) {
|
|
1618
1613
|
const ret = new Uint8Array(arg0);
|
|
1619
1614
|
return ret;
|
|
1620
1615
|
},
|
|
1621
|
-
|
|
1616
|
+
__wbg_new_from_slice_5a173c243af2e823: function(arg0, arg1) {
|
|
1622
1617
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
1623
1618
|
return ret;
|
|
1624
1619
|
},
|
|
1625
|
-
|
|
1620
|
+
__wbg_new_typed_1137602701dc87d4: function(arg0, arg1) {
|
|
1626
1621
|
try {
|
|
1627
1622
|
var state0 = {a: arg0, b: arg1};
|
|
1628
1623
|
var cb0 = (arg0, arg1) => {
|
|
1629
1624
|
const a = state0.a;
|
|
1630
1625
|
state0.a = 0;
|
|
1631
1626
|
try {
|
|
1632
|
-
return
|
|
1627
|
+
return wasm_bindgen__convert__closures_____invoke__h9810a10231a362ef(a, state0.b, arg0, arg1);
|
|
1633
1628
|
} finally {
|
|
1634
1629
|
state0.a = a;
|
|
1635
1630
|
}
|
|
@@ -1640,51 +1635,51 @@ function __wbg_get_imports() {
|
|
|
1640
1635
|
state0.a = 0;
|
|
1641
1636
|
}
|
|
1642
1637
|
},
|
|
1643
|
-
|
|
1638
|
+
__wbg_now_4f457f10f864aec5: function() {
|
|
1644
1639
|
const ret = Date.now();
|
|
1645
1640
|
return ret;
|
|
1646
1641
|
},
|
|
1647
|
-
|
|
1642
|
+
__wbg_prototypesetcall_fd4050e806e1d519: function(arg0, arg1, arg2) {
|
|
1648
1643
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
1649
1644
|
},
|
|
1650
|
-
|
|
1645
|
+
__wbg_queueMicrotask_40ac6ffc2848ba77: function(arg0) {
|
|
1651
1646
|
queueMicrotask(arg0);
|
|
1652
1647
|
},
|
|
1653
|
-
|
|
1648
|
+
__wbg_queueMicrotask_74d092439f6494c1: function(arg0) {
|
|
1654
1649
|
const ret = arg0.queueMicrotask;
|
|
1655
1650
|
return ret;
|
|
1656
1651
|
},
|
|
1657
|
-
|
|
1652
|
+
__wbg_resolve_9feb5d906ca62419: function(arg0) {
|
|
1658
1653
|
const ret = Promise.resolve(arg0);
|
|
1659
1654
|
return ret;
|
|
1660
1655
|
},
|
|
1661
|
-
|
|
1662
|
-
const ret = typeof
|
|
1656
|
+
__wbg_static_accessor_GLOBAL_THIS_1c7f1bd6c6941fdb: function() {
|
|
1657
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
1663
1658
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1664
1659
|
},
|
|
1665
|
-
|
|
1666
|
-
const ret = typeof
|
|
1660
|
+
__wbg_static_accessor_GLOBAL_e039bc914f83e74e: function() {
|
|
1661
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
1667
1662
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1668
1663
|
},
|
|
1669
|
-
|
|
1664
|
+
__wbg_static_accessor_SELF_8bf8c48c28420ad5: function() {
|
|
1670
1665
|
const ret = typeof self === 'undefined' ? null : self;
|
|
1671
1666
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1672
1667
|
},
|
|
1673
|
-
|
|
1668
|
+
__wbg_static_accessor_WINDOW_6aeee9b51652ee0f: function() {
|
|
1674
1669
|
const ret = typeof window === 'undefined' ? null : window;
|
|
1675
1670
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1676
1671
|
},
|
|
1677
|
-
|
|
1672
|
+
__wbg_then_20a157d939b514f5: function(arg0, arg1) {
|
|
1678
1673
|
const ret = arg0.then(arg1);
|
|
1679
1674
|
return ret;
|
|
1680
1675
|
},
|
|
1681
|
-
|
|
1676
|
+
__wbg_then_5ef9b762bc91555c: function(arg0, arg1, arg2) {
|
|
1682
1677
|
const ret = arg0.then(arg1, arg2);
|
|
1683
1678
|
return ret;
|
|
1684
1679
|
},
|
|
1685
1680
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
1686
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
1687
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1681
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 367, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1682
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hdaf915f93ddc966d);
|
|
1688
1683
|
return ret;
|
|
1689
1684
|
},
|
|
1690
1685
|
__wbindgen_cast_0000000000000002: function(arg0) {
|
|
@@ -1713,38 +1708,38 @@ function __wbg_get_imports() {
|
|
|
1713
1708
|
};
|
|
1714
1709
|
}
|
|
1715
1710
|
|
|
1716
|
-
function
|
|
1717
|
-
const ret = wasm.
|
|
1711
|
+
function wasm_bindgen__convert__closures_____invoke__hdaf915f93ddc966d(arg0, arg1, arg2) {
|
|
1712
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__hdaf915f93ddc966d(arg0, arg1, arg2);
|
|
1718
1713
|
if (ret[1]) {
|
|
1719
1714
|
throw takeFromExternrefTable0(ret[0]);
|
|
1720
1715
|
}
|
|
1721
1716
|
}
|
|
1722
1717
|
|
|
1723
|
-
function
|
|
1724
|
-
wasm.
|
|
1718
|
+
function wasm_bindgen__convert__closures_____invoke__h9810a10231a362ef(arg0, arg1, arg2, arg3) {
|
|
1719
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h9810a10231a362ef(arg0, arg1, arg2, arg3);
|
|
1725
1720
|
}
|
|
1726
1721
|
|
|
1727
1722
|
const DynamicExcelDataFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1728
1723
|
? { register: () => {}, unregister: () => {} }
|
|
1729
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_dynamicexceldata_free(ptr
|
|
1724
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_dynamicexceldata_free(ptr, 1));
|
|
1730
1725
|
const ExcelCellFormatFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1731
1726
|
? { register: () => {}, unregister: () => {} }
|
|
1732
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_excelcellformat_free(ptr
|
|
1727
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_excelcellformat_free(ptr, 1));
|
|
1733
1728
|
const ExcelColumnDataFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1734
1729
|
? { register: () => {}, unregister: () => {} }
|
|
1735
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_excelcolumndata_free(ptr
|
|
1730
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_excelcolumndata_free(ptr, 1));
|
|
1736
1731
|
const ExcelColumnInfoFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1737
1732
|
? { register: () => {}, unregister: () => {} }
|
|
1738
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_excelcolumninfo_free(ptr
|
|
1733
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_excelcolumninfo_free(ptr, 1));
|
|
1739
1734
|
const ExcelDataFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1740
1735
|
? { register: () => {}, unregister: () => {} }
|
|
1741
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_exceldata_free(ptr
|
|
1736
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_exceldata_free(ptr, 1));
|
|
1742
1737
|
const ExcelInfoFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1743
1738
|
? { register: () => {}, unregister: () => {} }
|
|
1744
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_excelinfo_free(ptr
|
|
1739
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_excelinfo_free(ptr, 1));
|
|
1745
1740
|
const ExcelRowDataFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1746
1741
|
? { register: () => {}, unregister: () => {} }
|
|
1747
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_excelrowdata_free(ptr
|
|
1742
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_excelrowdata_free(ptr, 1));
|
|
1748
1743
|
|
|
1749
1744
|
function addToExternrefTable0(obj) {
|
|
1750
1745
|
const idx = wasm.__externref_table_alloc();
|
|
@@ -1852,8 +1847,7 @@ function getDataViewMemory0() {
|
|
|
1852
1847
|
}
|
|
1853
1848
|
|
|
1854
1849
|
function getStringFromWasm0(ptr, len) {
|
|
1855
|
-
|
|
1856
|
-
return decodeText(ptr, len);
|
|
1850
|
+
return decodeText(ptr >>> 0, len);
|
|
1857
1851
|
}
|
|
1858
1852
|
|
|
1859
1853
|
let cachedUint8ArrayMemory0 = null;
|
|
@@ -1994,8 +1988,9 @@ if (!('encodeInto' in cachedTextEncoder)) {
|
|
|
1994
1988
|
|
|
1995
1989
|
let WASM_VECTOR_LEN = 0;
|
|
1996
1990
|
|
|
1997
|
-
let wasmModule, wasm;
|
|
1991
|
+
let wasmModule, wasmInstance, wasm;
|
|
1998
1992
|
function __wbg_finalize_init(instance, module) {
|
|
1993
|
+
wasmInstance = instance;
|
|
1999
1994
|
wasm = instance.exports;
|
|
2000
1995
|
wasmModule = module;
|
|
2001
1996
|
cachedDataViewMemory0 = null;
|
|
Binary file
|