@breeztech/breez-sdk-spark 0.11.0-dev5 → 0.12.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.
@@ -258,6 +258,15 @@ module.exports.connectWithSigner = function(config, signer, storage_dir) {
258
258
  return ret;
259
259
  };
260
260
 
261
+ /**
262
+ * @param {ConnectRequest} request
263
+ * @returns {Promise<BreezSdk>}
264
+ */
265
+ module.exports.connect = function(request) {
266
+ const ret = wasm.connect(request);
267
+ return ret;
268
+ };
269
+
261
270
  /**
262
271
  * @param {Network} network
263
272
  * @returns {Config}
@@ -267,6 +276,18 @@ module.exports.defaultConfig = function(network) {
267
276
  return ret;
268
277
  };
269
278
 
279
+ /**
280
+ * @param {Logger} logger
281
+ * @param {string | null} [filter]
282
+ * @returns {Promise<void>}
283
+ */
284
+ module.exports.initLogging = function(logger, filter) {
285
+ var ptr0 = isLikeNone(filter) ? 0 : passStringToWasm0(filter, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
286
+ var len0 = WASM_VECTOR_LEN;
287
+ const ret = wasm.initLogging(logger, ptr0, len0);
288
+ return ret;
289
+ };
290
+
270
291
  function takeFromExternrefTable0(idx) {
271
292
  const value = wasm.__wbindgen_export_5.get(idx);
272
293
  wasm.__externref_table_dealloc(idx);
@@ -291,27 +312,6 @@ module.exports.defaultExternalSigner = function(mnemonic, passphrase, network, k
291
312
  return DefaultSigner.__wrap(ret[0]);
292
313
  };
293
314
 
294
- /**
295
- * @param {ConnectRequest} request
296
- * @returns {Promise<BreezSdk>}
297
- */
298
- module.exports.connect = function(request) {
299
- const ret = wasm.connect(request);
300
- return ret;
301
- };
302
-
303
- /**
304
- * @param {Logger} logger
305
- * @param {string | null} [filter]
306
- * @returns {Promise<void>}
307
- */
308
- module.exports.initLogging = function(logger, filter) {
309
- var ptr0 = isLikeNone(filter) ? 0 : passStringToWasm0(filter, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
310
- var len0 = WASM_VECTOR_LEN;
311
- const ret = wasm.initLogging(logger, ptr0, len0);
312
- return ret;
313
- };
314
-
315
315
  function passArray8ToWasm0(arg, malloc) {
316
316
  const ptr = malloc(arg.length * 1, 1) >>> 0;
317
317
  getUint8ArrayMemory0().set(arg, ptr / 1);
@@ -338,7 +338,7 @@ function __wbg_adapter_69(arg0, arg1) {
338
338
  }
339
339
 
340
340
  function __wbg_adapter_373(arg0, arg1, arg2, arg3) {
341
- wasm.closure716_externref_shim(arg0, arg1, arg2, arg3);
341
+ wasm.closure711_externref_shim(arg0, arg1, arg2, arg3);
342
342
  }
343
343
 
344
344
  const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
@@ -2791,28 +2791,28 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
2791
2791
  return ret;
2792
2792
  };
2793
2793
 
2794
- module.exports.__wbindgen_closure_wrapper10359 = function(arg0, arg1, arg2) {
2794
+ module.exports.__wbindgen_closure_wrapper10364 = function(arg0, arg1, arg2) {
2795
2795
  const ret = makeMutClosure(arg0, arg1, 445, __wbg_adapter_69);
2796
2796
  return ret;
2797
2797
  };
2798
2798
 
2799
- module.exports.__wbindgen_closure_wrapper15747 = function(arg0, arg1, arg2) {
2799
+ module.exports.__wbindgen_closure_wrapper15749 = function(arg0, arg1, arg2) {
2800
2800
  const ret = makeMutClosure(arg0, arg1, 445, __wbg_adapter_64);
2801
2801
  return ret;
2802
2802
  };
2803
2803
 
2804
- module.exports.__wbindgen_closure_wrapper5892 = function(arg0, arg1, arg2) {
2804
+ module.exports.__wbindgen_closure_wrapper5886 = function(arg0, arg1, arg2) {
2805
2805
  const ret = makeMutClosure(arg0, arg1, 445, __wbg_adapter_64);
2806
2806
  return ret;
2807
2807
  };
2808
2808
 
2809
- module.exports.__wbindgen_closure_wrapper5900 = function(arg0, arg1, arg2) {
2809
+ module.exports.__wbindgen_closure_wrapper5894 = function(arg0, arg1, arg2) {
2810
2810
  const ret = makeMutClosure(arg0, arg1, 445, __wbg_adapter_64);
2811
2811
  return ret;
2812
2812
  };
2813
2813
 
2814
- module.exports.__wbindgen_closure_wrapper7579 = function(arg0, arg1, arg2) {
2815
- const ret = makeMutClosure(arg0, arg1, 959, __wbg_adapter_69);
2814
+ module.exports.__wbindgen_closure_wrapper7591 = function(arg0, arg1, arg2) {
2815
+ const ret = makeMutClosure(arg0, arg1, 954, __wbg_adapter_69);
2816
2816
  return ret;
2817
2817
  };
2818
2818
 
Binary file
@@ -128,5 +128,5 @@ export const __wbindgen_export_7: WebAssembly.Table;
128
128
  export const __externref_table_dealloc: (a: number) => void;
129
129
  export const closure444_externref_shim: (a: number, b: number, c: any) => void;
130
130
  export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1bbbe552b190da27: (a: number, b: number) => void;
131
- export const closure716_externref_shim: (a: number, b: number, c: any, d: any) => void;
131
+ export const closure711_externref_shim: (a: number, b: number, c: any, d: any) => void;
132
132
  export const __wbindgen_start: () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breeztech/breez-sdk-spark",
3
- "version": "0.11.0-dev5",
3
+ "version": "0.12.1",
4
4
  "description": "Breez Spark SDK",
5
5
  "repository": "https://github.com/breez/spark-sdk",
6
6
  "author": "Breez <contact@breez.technology> (https://github.com/breez)",