@tari-project/ootle-wasm 0.46.0 → 0.47.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/ootle_wasm_bg.js CHANGED
@@ -1291,12 +1291,27 @@ export function __wbg_Error_67e7344beaa85059(arg0, arg1) {
1291
1291
  const ret = Error(getStringFromWasm0(arg0, arg1));
1292
1292
  return ret;
1293
1293
  }
1294
+ export function __wbg___wbindgen_bigint_get_as_i64_b482365c149396c8(arg0, arg1) {
1295
+ const v = arg1;
1296
+ const ret = typeof(v) === 'bigint' ? v : undefined;
1297
+ getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
1298
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
1299
+ }
1300
+ export function __wbg___wbindgen_jsval_eq_9fdcd3c0a860dd3b(arg0, arg1) {
1301
+ const ret = arg0 === arg1;
1302
+ return ret;
1303
+ }
1294
1304
  export function __wbg___wbindgen_throw_5d9e815e6fdf150f(arg0, arg1) {
1295
1305
  throw new Error(getStringFromWasm0(arg0, arg1));
1296
1306
  }
1297
1307
  export function __wbg_getRandomValues_47873ea553f6780e() { return handleError(function (arg0, arg1) {
1298
1308
  globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
1299
1309
  }, arguments); }
1310
+ export function __wbindgen_generic_0000000000000001(arg0) {
1311
+ // Cast intrinsic for `U64 -> Externref`.
1312
+ const ret = BigInt.asUintN(64, arg0);
1313
+ return ret;
1314
+ }
1300
1315
  export function __wbindgen_init_externref_table() {
1301
1316
  const table = wasm.__wbindgen_externrefs;
1302
1317
  const offset = table.grow(4);
@@ -1339,6 +1354,14 @@ function getArrayU8FromWasm0(ptr, len) {
1339
1354
  return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
1340
1355
  }
1341
1356
 
1357
+ let cachedDataViewMemory0 = null;
1358
+ function getDataViewMemory0() {
1359
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
1360
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
1361
+ }
1362
+ return cachedDataViewMemory0;
1363
+ }
1364
+
1342
1365
  function getStringFromWasm0(ptr, len) {
1343
1366
  return decodeText(ptr >>> 0, len);
1344
1367
  }
Binary file
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "The Tari Development Community"
6
6
  ],
7
7
  "description": "WASM bindings for Tari Ootle client-side crypto — thin wasm-bindgen shell over ootle-wasm-core",
8
- "version": "0.46.0",
8
+ "version": "0.47.0",
9
9
  "license": "BSD-3-Clause",
10
10
  "repository": {
11
11
  "type": "git",