@cartridge/controller-wasm 0.9.2 → 0.9.4

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,7 +1,12 @@
1
1
  {
2
2
  "name": "@cartridge/controller-wasm",
3
- "version": "0.9.2",
3
+ "version": "0.9.4",
4
4
  "description": "Wasm bindings for Cartridge Controller and Session Account",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/cartridge-gg/controller-rs",
8
+ "directory": "account-wasm"
9
+ },
5
10
  "type": "module",
6
11
  "main": "./pkg-controller/account_wasm.js",
7
12
  "module": "./pkg-controller/account_wasm.js",
@@ -47,7 +52,5 @@
47
52
  "devDependencies": {
48
53
  "wasm-pack": "^0.13.0"
49
54
  },
50
- "packageManager": "pnpm@9.12.3+sha512.cce0f9de9c5a7c95bef944169cc5dfe8741abfb145078c0d508b868056848a87c81e626246cb60967cbd7fd29a6c062ef73ff840d96b3c86c40ac92cf4a813ee",
51
- "repository": "https://github.com/cartridge-gg/controller-rs",
52
- "license": "MIT"
55
+ "packageManager": "pnpm@9.12.3+sha512.cce0f9de9c5a7c95bef944169cc5dfe8741abfb145078c0d508b868056848a87c81e626246cb60967cbd7fd29a6c062ef73ff840d96b3c86c40ac92cf4a813ee"
53
56
  }
@@ -1387,10 +1387,21 @@ export function __wbg_jscontrollererror_new(arg0) {
1387
1387
  const ret = JsControllerError.__wrap(arg0);
1388
1388
  return addHeapObject(ret);
1389
1389
  }
1390
+ export function __wbg_key_0167bc764945979a() { return handleError(function (arg0, arg1, arg2) {
1391
+ const ret = getObject(arg1).key(arg2 >>> 0);
1392
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1393
+ var len1 = WASM_VECTOR_LEN;
1394
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1395
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1396
+ }, arguments); }
1390
1397
  export function __wbg_length_32ed9a279acd054c(arg0) {
1391
1398
  const ret = getObject(arg0).length;
1392
1399
  return ret;
1393
1400
  }
1401
+ export function __wbg_length_7724867d8e59c610() { return handleError(function (arg0) {
1402
+ const ret = getObject(arg0).length;
1403
+ return ret;
1404
+ }, arguments); }
1394
1405
  export function __wbg_localStorage_a22d31b9eacc4594() { return handleError(function (arg0) {
1395
1406
  const ret = getObject(arg0).localStorage;
1396
1407
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
@@ -1445,7 +1456,7 @@ export function __wbg_new_b5d9e2fb389fef91(arg0, arg1) {
1445
1456
  const a = state0.a;
1446
1457
  state0.a = 0;
1447
1458
  try {
1448
- return __wasm_bindgen_func_elem_10920(a, state0.b, arg0, arg1);
1459
+ return __wasm_bindgen_func_elem_10954(a, state0.b, arg0, arg1);
1449
1460
  } finally {
1450
1461
  state0.a = a;
1451
1462
  }
@@ -1714,17 +1725,17 @@ export function __wbg_versions_4e31226f5e8dc909(arg0) {
1714
1725
  }
1715
1726
  export function __wbindgen_cast_0000000000000001(arg0, arg1) {
1716
1727
  // Cast intrinsic for `Closure(Closure { dtor_idx: 1, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 2, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
1717
- const ret = makeClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_235, __wasm_bindgen_func_elem_3294);
1728
+ const ret = makeClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_237, __wasm_bindgen_func_elem_3297);
1718
1729
  return addHeapObject(ret);
1719
1730
  }
1720
1731
  export function __wbindgen_cast_0000000000000002(arg0, arg1) {
1721
1732
  // Cast intrinsic for `Closure(Closure { dtor_idx: 1003, function: Function { arguments: [Externref], shim_idx: 1004, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1722
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_8813, __wasm_bindgen_func_elem_8828);
1733
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_8814, __wasm_bindgen_func_elem_8829);
1723
1734
  return addHeapObject(ret);
1724
1735
  }
1725
1736
  export function __wbindgen_cast_0000000000000003(arg0, arg1) {
1726
- // Cast intrinsic for `Closure(Closure { dtor_idx: 968, function: Function { arguments: [], shim_idx: 969, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1727
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_8669, __wasm_bindgen_func_elem_8678);
1737
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 969, function: Function { arguments: [], shim_idx: 970, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1738
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_8670, __wasm_bindgen_func_elem_8679);
1728
1739
  return addHeapObject(ret);
1729
1740
  }
1730
1741
  export function __wbindgen_cast_0000000000000004(arg0) {
@@ -1754,20 +1765,20 @@ export function __wbindgen_object_clone_ref(arg0) {
1754
1765
  export function __wbindgen_object_drop_ref(arg0) {
1755
1766
  takeObject(arg0);
1756
1767
  }
1757
- function __wasm_bindgen_func_elem_8678(arg0, arg1) {
1758
- wasm.__wasm_bindgen_func_elem_8678(arg0, arg1);
1768
+ function __wasm_bindgen_func_elem_8679(arg0, arg1) {
1769
+ wasm.__wasm_bindgen_func_elem_8679(arg0, arg1);
1759
1770
  }
1760
1771
 
1761
- function __wasm_bindgen_func_elem_3294(arg0, arg1, arg2) {
1762
- wasm.__wasm_bindgen_func_elem_3294(arg0, arg1, addHeapObject(arg2));
1772
+ function __wasm_bindgen_func_elem_3297(arg0, arg1, arg2) {
1773
+ wasm.__wasm_bindgen_func_elem_3297(arg0, arg1, addHeapObject(arg2));
1763
1774
  }
1764
1775
 
1765
- function __wasm_bindgen_func_elem_8828(arg0, arg1, arg2) {
1766
- wasm.__wasm_bindgen_func_elem_8828(arg0, arg1, addHeapObject(arg2));
1776
+ function __wasm_bindgen_func_elem_8829(arg0, arg1, arg2) {
1777
+ wasm.__wasm_bindgen_func_elem_8829(arg0, arg1, addHeapObject(arg2));
1767
1778
  }
1768
1779
 
1769
- function __wasm_bindgen_func_elem_10920(arg0, arg1, arg2, arg3) {
1770
- wasm.__wasm_bindgen_func_elem_10920(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
1780
+ function __wasm_bindgen_func_elem_10954(arg0, arg1, arg2, arg3) {
1781
+ wasm.__wasm_bindgen_func_elem_10954(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
1771
1782
  }
1772
1783
 
1773
1784
 
Binary file
@@ -559,7 +559,7 @@ export function __wbg_new_b5d9e2fb389fef91(arg0, arg1) {
559
559
  const a = state0.a;
560
560
  state0.a = 0;
561
561
  try {
562
- return __wasm_bindgen_func_elem_5826(a, state0.b, arg0, arg1);
562
+ return __wasm_bindgen_func_elem_5847(a, state0.b, arg0, arg1);
563
563
  } finally {
564
564
  state0.a = a;
565
565
  }
@@ -781,12 +781,12 @@ export function __wbg_versions_4e31226f5e8dc909(arg0) {
781
781
  }
782
782
  export function __wbindgen_cast_0000000000000001(arg0, arg1) {
783
783
  // Cast intrinsic for `Closure(Closure { dtor_idx: 464, function: Function { arguments: [], shim_idx: 465, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
784
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_3889, __wasm_bindgen_func_elem_3898);
784
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_3885, __wasm_bindgen_func_elem_3894);
785
785
  return addHeapObject(ret);
786
786
  }
787
787
  export function __wbindgen_cast_0000000000000002(arg0, arg1) {
788
- // Cast intrinsic for `Closure(Closure { dtor_idx: 499, function: Function { arguments: [Externref], shim_idx: 500, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
789
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_4028, __wasm_bindgen_func_elem_4043);
788
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 498, function: Function { arguments: [Externref], shim_idx: 499, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
789
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_4024, __wasm_bindgen_func_elem_4039);
790
790
  return addHeapObject(ret);
791
791
  }
792
792
  export function __wbindgen_cast_0000000000000003(arg0) {
@@ -811,16 +811,16 @@ export function __wbindgen_object_clone_ref(arg0) {
811
811
  export function __wbindgen_object_drop_ref(arg0) {
812
812
  takeObject(arg0);
813
813
  }
814
- function __wasm_bindgen_func_elem_3898(arg0, arg1) {
815
- wasm.__wasm_bindgen_func_elem_3898(arg0, arg1);
814
+ function __wasm_bindgen_func_elem_3894(arg0, arg1) {
815
+ wasm.__wasm_bindgen_func_elem_3894(arg0, arg1);
816
816
  }
817
817
 
818
- function __wasm_bindgen_func_elem_4043(arg0, arg1, arg2) {
819
- wasm.__wasm_bindgen_func_elem_4043(arg0, arg1, addHeapObject(arg2));
818
+ function __wasm_bindgen_func_elem_4039(arg0, arg1, arg2) {
819
+ wasm.__wasm_bindgen_func_elem_4039(arg0, arg1, addHeapObject(arg2));
820
820
  }
821
821
 
822
- function __wasm_bindgen_func_elem_5826(arg0, arg1, arg2, arg3) {
823
- wasm.__wasm_bindgen_func_elem_5826(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
822
+ function __wasm_bindgen_func_elem_5847(arg0, arg1, arg2, arg3) {
823
+ wasm.__wasm_bindgen_func_elem_5847(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
824
824
  }
825
825
 
826
826
 
Binary file