lwk_node 0.8.8 → 0.9.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/lwk_wasm.js CHANGED
@@ -213,23 +213,28 @@ function getArrayU8FromWasm0(ptr, len) {
213
213
  return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
214
214
  }
215
215
 
216
- function getArrayJsValueFromWasm0(ptr, len) {
217
- ptr = ptr >>> 0;
218
- const mem = getDataViewMemory0();
219
- const result = [];
220
- for (let i = ptr; i < ptr + 4 * len; i += 4) {
221
- result.push(wasm.__wbindgen_export_4.get(mem.getUint32(i, true)));
222
- }
223
- wasm.__externref_drop_slice(ptr, len);
224
- return result;
225
- }
226
-
227
216
  function _assertClass(instance, klass) {
228
217
  if (!(instance instanceof klass)) {
229
218
  throw new Error(`expected instance of ${klass.name}`);
230
219
  }
231
220
  }
232
221
 
222
+ let cachedUint32ArrayMemory0 = null;
223
+
224
+ function getUint32ArrayMemory0() {
225
+ if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) {
226
+ cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer);
227
+ }
228
+ return cachedUint32ArrayMemory0;
229
+ }
230
+
231
+ function passArray32ToWasm0(arg, malloc) {
232
+ const ptr = malloc(arg.length * 4, 4) >>> 0;
233
+ getUint32ArrayMemory0().set(arg, ptr / 4);
234
+ WASM_VECTOR_LEN = arg.length;
235
+ return ptr;
236
+ }
237
+
233
238
  function passArrayJsValueToWasm0(array, malloc) {
234
239
  const ptr = malloc(array.length * 4, 4) >>> 0;
235
240
  const mem = getDataViewMemory0();
@@ -240,6 +245,17 @@ function passArrayJsValueToWasm0(array, malloc) {
240
245
  return ptr;
241
246
  }
242
247
 
248
+ function getArrayJsValueFromWasm0(ptr, len) {
249
+ ptr = ptr >>> 0;
250
+ const mem = getDataViewMemory0();
251
+ const result = [];
252
+ for (let i = ptr; i < ptr + 4 * len; i += 4) {
253
+ result.push(wasm.__wbindgen_export_4.get(mem.getUint32(i, true)));
254
+ }
255
+ wasm.__externref_drop_slice(ptr, len);
256
+ return result;
257
+ }
258
+
243
259
  function passArray8ToWasm0(arg, malloc) {
244
260
  const ptr = malloc(arg.length * 1, 1) >>> 0;
245
261
  getUint8ArrayMemory0().set(arg, ptr / 1);
@@ -247,32 +263,16 @@ function passArray8ToWasm0(arg, malloc) {
247
263
  return ptr;
248
264
  }
249
265
 
250
- let cachedUint32ArrayMemory0 = null;
251
-
252
- function getUint32ArrayMemory0() {
253
- if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) {
254
- cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer);
255
- }
256
- return cachedUint32ArrayMemory0;
257
- }
258
-
259
266
  function getArrayU32FromWasm0(ptr, len) {
260
267
  ptr = ptr >>> 0;
261
268
  return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
262
269
  }
263
-
264
- function passArray32ToWasm0(arg, malloc) {
265
- const ptr = malloc(arg.length * 4, 4) >>> 0;
266
- getUint32ArrayMemory0().set(arg, ptr / 4);
267
- WASM_VECTOR_LEN = arg.length;
268
- return ptr;
269
- }
270
270
  function __wbg_adapter_36(arg0, arg1, arg2) {
271
- wasm.closure1004_externref_shim(arg0, arg1, arg2);
271
+ wasm.closure975_externref_shim(arg0, arg1, arg2);
272
272
  }
273
273
 
274
274
  function __wbg_adapter_373(arg0, arg1, arg2, arg3) {
275
- wasm.closure1703_externref_shim(arg0, arg1, arg2, arg3);
275
+ wasm.closure1677_externref_shim(arg0, arg1, arg2, arg3);
276
276
  }
277
277
 
278
278
  /**
@@ -3837,8 +3837,8 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
3837
3837
  return ret;
3838
3838
  };
3839
3839
 
3840
- module.exports.__wbindgen_closure_wrapper9199 = function(arg0, arg1, arg2) {
3841
- const ret = makeMutClosure(arg0, arg1, 1005, __wbg_adapter_36);
3840
+ module.exports.__wbindgen_closure_wrapper8869 = function(arg0, arg1, arg2) {
3841
+ const ret = makeMutClosure(arg0, arg1, 976, __wbg_adapter_36);
3842
3842
  return ret;
3843
3843
  };
3844
3844
 
package/lwk_wasm_bg.wasm CHANGED
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lwk_node",
3
3
  "description": "Liquid Wallet Kit - WASM",
4
- "version": "0.8.8",
4
+ "version": "0.9.0",
5
5
  "license": "MIT OR BSD-2-Clause",
6
6
  "files": [
7
7
  "lwk_wasm_bg.wasm",
@@ -10,4 +10,4 @@
10
10
  ],
11
11
  "main": "lwk_wasm.js",
12
12
  "types": "lwk_wasm.d.ts"
13
- }
13
+ }