@senlinz/import-export-wasm 1.0.0 → 1.0.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.
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@senlinz/import-export-wasm",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
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",
7
7
  "devDependencies": {
8
- "@playwright/test": "1.48.2",
8
+ "@playwright/test": "^1.59.1",
9
9
  "serve": "14.2.4"
10
10
  },
11
11
  "files": [
@@ -262,6 +262,18 @@ export interface InitOutput {
262
262
  readonly __wbg_get_exceldata_rows: (a: number) => [number, number];
263
263
  readonly __wbg_set_exceldata_rows: (a: number, b: number, c: number) => void;
264
264
  readonly exceldata_new: (a: number, b: number) => number;
265
+ readonly __wbg_dynamicexceldata_free: (a: number, b: number) => void;
266
+ readonly __wbg_excelrowdata_free: (a: number, b: number) => void;
267
+ readonly __wbg_get_dynamicexceldata_headers: (a: number) => [number, number];
268
+ readonly __wbg_get_dynamicexceldata_rows: (a: number) => [number, number];
269
+ readonly __wbg_get_dynamicexceldata_sheet_name: (a: number) => [number, number];
270
+ readonly __wbg_get_excelrowdata_columns: (a: number) => [number, number];
271
+ readonly __wbg_set_dynamicexceldata_headers: (a: number, b: number, c: number) => void;
272
+ readonly __wbg_set_dynamicexceldata_rows: (a: number, b: number, c: number) => void;
273
+ readonly __wbg_set_dynamicexceldata_sheet_name: (a: number, b: number, c: number) => void;
274
+ readonly __wbg_set_excelrowdata_columns: (a: number, b: number, c: number) => void;
275
+ readonly dynamicexceldata_new: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
276
+ readonly excelrowdata_new: (a: number, b: number) => number;
265
277
  readonly __wbg_excelcolumndata_free: (a: number, b: number) => void;
266
278
  readonly __wbg_get_excelcolumndata_children: (a: number) => [number, number];
267
279
  readonly __wbg_get_excelcolumndata_key: (a: number) => [number, number];
@@ -273,20 +285,8 @@ export interface InitOutput {
273
285
  readonly excelcolumndata_newGroup: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
274
286
  readonly excelcolumndata_newRootGroup: (a: number, b: number, c: number, d: number) => number;
275
287
  readonly excelcolumndata_withChildren: (a: number, b: number, c: number) => number;
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;
288
+ readonly wasm_bindgen__convert__closures_____invoke__h92faae99925693fa: (a: number, b: number, c: any) => [number, number];
289
+ readonly wasm_bindgen__convert__closures_____invoke__h5ea5d44b66049ea8: (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;
@@ -1531,31 +1531,31 @@ export function importDynamicData(sheet_name, header_row, excel_bytes) {
1531
1531
  function __wbg_get_imports() {
1532
1532
  const import0 = {
1533
1533
  __proto__: null,
1534
- __wbg_Error_3639a60ed15f87e7: function(arg0, arg1) {
1534
+ __wbg_Error_92b29b0548f8b746: function(arg0, arg1) {
1535
1535
  const ret = Error(getStringFromWasm0(arg0, arg1));
1536
1536
  return ret;
1537
1537
  },
1538
- __wbg___wbindgen_debug_string_07cb72cfcc952e2b: function(arg0, arg1) {
1538
+ __wbg___wbindgen_debug_string_c25d447a39f5578f: function(arg0, arg1) {
1539
1539
  const ret = debugString(arg1);
1540
1540
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1541
1541
  const len1 = WASM_VECTOR_LEN;
1542
1542
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1543
1543
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1544
1544
  },
1545
- __wbg___wbindgen_is_function_2f0fd7ceb86e64c5: function(arg0) {
1545
+ __wbg___wbindgen_is_function_1ff95bcc5517c252: function(arg0) {
1546
1546
  const ret = typeof(arg0) === 'function';
1547
1547
  return ret;
1548
1548
  },
1549
- __wbg___wbindgen_is_object_5b22ff2418063a9c: function(arg0) {
1549
+ __wbg___wbindgen_is_object_a27215656b807791: function(arg0) {
1550
1550
  const val = arg0;
1551
1551
  const ret = typeof(val) === 'object' && val !== null;
1552
1552
  return ret;
1553
1553
  },
1554
- __wbg___wbindgen_is_undefined_244a92c34d3b6ec0: function(arg0) {
1554
+ __wbg___wbindgen_is_undefined_c05833b95a3cf397: function(arg0) {
1555
1555
  const ret = arg0 === undefined;
1556
1556
  return ret;
1557
1557
  },
1558
- __wbg___wbindgen_string_get_965592073e5d848c: function(arg0, arg1) {
1558
+ __wbg___wbindgen_string_get_b0ca35b86a603356: function(arg0, arg1) {
1559
1559
  const obj = arg1;
1560
1560
  const ret = typeof(obj) === 'string' ? obj : undefined;
1561
1561
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -1563,13 +1563,13 @@ function __wbg_get_imports() {
1563
1563
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1564
1564
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1565
1565
  },
1566
- __wbg___wbindgen_throw_9c75d47bf9e7731e: function(arg0, arg1) {
1566
+ __wbg___wbindgen_throw_344f42d3211c4765: function(arg0, arg1) {
1567
1567
  throw new Error(getStringFromWasm0(arg0, arg1));
1568
1568
  },
1569
- __wbg__wbg_cb_unref_158e43e869788cdc: function(arg0) {
1569
+ __wbg__wbg_cb_unref_fffb441def202758: function(arg0) {
1570
1570
  arg0._wbg_cb_unref();
1571
1571
  },
1572
- __wbg_call_a41d6421b30a32c5: function() { return handleError(function (arg0, arg1, arg2) {
1572
+ __wbg_call_a6e5c5dce5018821: function() { return handleError(function (arg0, arg1, arg2) {
1573
1573
  const ret = arg0.call(arg1, arg2);
1574
1574
  return ret;
1575
1575
  }, arguments); },
@@ -1605,26 +1605,26 @@ function __wbg_get_imports() {
1605
1605
  const ret = ExcelRowData.__unwrap(arg0);
1606
1606
  return ret;
1607
1607
  },
1608
- __wbg_length_ba3c032602efe310: function(arg0) {
1608
+ __wbg_length_1f0964f4a5e2c6d8: function(arg0) {
1609
1609
  const ret = arg0.length;
1610
1610
  return ret;
1611
1611
  },
1612
- __wbg_new_8454eee672b2ba6e: function(arg0) {
1612
+ __wbg_new_cd45aabdf6073e84: function(arg0) {
1613
1613
  const ret = new Uint8Array(arg0);
1614
1614
  return ret;
1615
1615
  },
1616
- __wbg_new_from_slice_5a173c243af2e823: function(arg0, arg1) {
1616
+ __wbg_new_from_slice_77cdfb7977362f3c: function(arg0, arg1) {
1617
1617
  const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
1618
1618
  return ret;
1619
1619
  },
1620
- __wbg_new_typed_1137602701dc87d4: function(arg0, arg1) {
1620
+ __wbg_new_typed_1824d93f294193e5: function(arg0, arg1) {
1621
1621
  try {
1622
1622
  var state0 = {a: arg0, b: arg1};
1623
1623
  var cb0 = (arg0, arg1) => {
1624
1624
  const a = state0.a;
1625
1625
  state0.a = 0;
1626
1626
  try {
1627
- return wasm_bindgen__convert__closures_____invoke__h9810a10231a362ef(a, state0.b, arg0, arg1);
1627
+ return wasm_bindgen__convert__closures_____invoke__h5ea5d44b66049ea8(a, state0.b, arg0, arg1);
1628
1628
  } finally {
1629
1629
  state0.a = a;
1630
1630
  }
@@ -1635,51 +1635,51 @@ function __wbg_get_imports() {
1635
1635
  state0.a = 0;
1636
1636
  }
1637
1637
  },
1638
- __wbg_now_4f457f10f864aec5: function() {
1638
+ __wbg_now_86c0d4ba3fa605b8: function() {
1639
1639
  const ret = Date.now();
1640
1640
  return ret;
1641
1641
  },
1642
- __wbg_prototypesetcall_fd4050e806e1d519: function(arg0, arg1, arg2) {
1642
+ __wbg_prototypesetcall_4770620bbe4688a0: function(arg0, arg1, arg2) {
1643
1643
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
1644
1644
  },
1645
- __wbg_queueMicrotask_40ac6ffc2848ba77: function(arg0) {
1646
- queueMicrotask(arg0);
1647
- },
1648
- __wbg_queueMicrotask_74d092439f6494c1: function(arg0) {
1645
+ __wbg_queueMicrotask_0ab5b2d2393e99b9: function(arg0) {
1649
1646
  const ret = arg0.queueMicrotask;
1650
1647
  return ret;
1651
1648
  },
1652
- __wbg_resolve_9feb5d906ca62419: function(arg0) {
1649
+ __wbg_queueMicrotask_6a09b7bc46549209: function(arg0) {
1650
+ queueMicrotask(arg0);
1651
+ },
1652
+ __wbg_resolve_2191a4dfe481c25b: function(arg0) {
1653
1653
  const ret = Promise.resolve(arg0);
1654
1654
  return ret;
1655
1655
  },
1656
- __wbg_static_accessor_GLOBAL_THIS_1c7f1bd6c6941fdb: function() {
1657
- const ret = typeof globalThis === 'undefined' ? null : globalThis;
1656
+ __wbg_static_accessor_GLOBAL_4ef717fb391d88b7: function() {
1657
+ const ret = typeof global === 'undefined' ? null : global;
1658
1658
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1659
1659
  },
1660
- __wbg_static_accessor_GLOBAL_e039bc914f83e74e: function() {
1661
- const ret = typeof global === 'undefined' ? null : global;
1660
+ __wbg_static_accessor_GLOBAL_THIS_8d1badc68b5a74f4: function() {
1661
+ const ret = typeof globalThis === 'undefined' ? null : globalThis;
1662
1662
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1663
1663
  },
1664
- __wbg_static_accessor_SELF_8bf8c48c28420ad5: function() {
1664
+ __wbg_static_accessor_SELF_146583524fe1469b: function() {
1665
1665
  const ret = typeof self === 'undefined' ? null : self;
1666
1666
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1667
1667
  },
1668
- __wbg_static_accessor_WINDOW_6aeee9b51652ee0f: function() {
1668
+ __wbg_static_accessor_WINDOW_f2829a2234d7819e: function() {
1669
1669
  const ret = typeof window === 'undefined' ? null : window;
1670
1670
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1671
1671
  },
1672
- __wbg_then_20a157d939b514f5: function(arg0, arg1) {
1673
- const ret = arg0.then(arg1);
1672
+ __wbg_then_16d107c451e9905d: function(arg0, arg1, arg2) {
1673
+ const ret = arg0.then(arg1, arg2);
1674
1674
  return ret;
1675
1675
  },
1676
- __wbg_then_5ef9b762bc91555c: function(arg0, arg1, arg2) {
1677
- const ret = arg0.then(arg1, arg2);
1676
+ __wbg_then_6ec10ae38b3e92f7: function(arg0, arg1) {
1677
+ const ret = arg0.then(arg1);
1678
1678
  return ret;
1679
1679
  },
1680
1680
  __wbindgen_cast_0000000000000001: function(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);
1681
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 455, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
1682
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h92faae99925693fa);
1683
1683
  return ret;
1684
1684
  },
1685
1685
  __wbindgen_cast_0000000000000002: function(arg0) {
@@ -1708,15 +1708,15 @@ function __wbg_get_imports() {
1708
1708
  };
1709
1709
  }
1710
1710
 
1711
- function wasm_bindgen__convert__closures_____invoke__hdaf915f93ddc966d(arg0, arg1, arg2) {
1712
- const ret = wasm.wasm_bindgen__convert__closures_____invoke__hdaf915f93ddc966d(arg0, arg1, arg2);
1711
+ function wasm_bindgen__convert__closures_____invoke__h92faae99925693fa(arg0, arg1, arg2) {
1712
+ const ret = wasm.wasm_bindgen__convert__closures_____invoke__h92faae99925693fa(arg0, arg1, arg2);
1713
1713
  if (ret[1]) {
1714
1714
  throw takeFromExternrefTable0(ret[0]);
1715
1715
  }
1716
1716
  }
1717
1717
 
1718
- function wasm_bindgen__convert__closures_____invoke__h9810a10231a362ef(arg0, arg1, arg2, arg3) {
1719
- wasm.wasm_bindgen__convert__closures_____invoke__h9810a10231a362ef(arg0, arg1, arg2, arg3);
1718
+ function wasm_bindgen__convert__closures_____invoke__h5ea5d44b66049ea8(arg0, arg1, arg2, arg3) {
1719
+ wasm.wasm_bindgen__convert__closures_____invoke__h5ea5d44b66049ea8(arg0, arg1, arg2, arg3);
1720
1720
  }
1721
1721
 
1722
1722
  const DynamicExcelDataFinalization = (typeof FinalizationRegistry === 'undefined')
Binary file