@breeztech/breez-sdk-spark 0.8.3-dev1 → 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.
@@ -242,15 +242,6 @@ module.exports.defaultExternalSigner = function(mnemonic, passphrase, network, k
242
242
  return DefaultSigner.__wrap(ret[0]);
243
243
  };
244
244
 
245
- /**
246
- * @param {ConnectRequest} request
247
- * @returns {Promise<BreezSdk>}
248
- */
249
- module.exports.connect = function(request) {
250
- const ret = wasm.connect(request);
251
- return ret;
252
- };
253
-
254
245
  /**
255
246
  * @param {Logger} logger
256
247
  * @param {string | null} [filter]
@@ -263,19 +254,6 @@ module.exports.initLogging = function(logger, filter) {
263
254
  return ret;
264
255
  };
265
256
 
266
- /**
267
- * @param {Config} config
268
- * @param {ExternalSigner} signer
269
- * @param {string} storage_dir
270
- * @returns {Promise<BreezSdk>}
271
- */
272
- module.exports.connectWithSigner = function(config, signer, storage_dir) {
273
- const ptr0 = passStringToWasm0(storage_dir, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
274
- const len0 = WASM_VECTOR_LEN;
275
- const ret = wasm.connectWithSigner(config, signer, ptr0, len0);
276
- return ret;
277
- };
278
-
279
257
  /**
280
258
  * @param {Network} network
281
259
  * @returns {Config}
@@ -296,6 +274,28 @@ module.exports.getSparkStatus = function() {
296
274
  return ret;
297
275
  };
298
276
 
277
+ /**
278
+ * @param {Config} config
279
+ * @param {ExternalSigner} signer
280
+ * @param {string} storage_dir
281
+ * @returns {Promise<BreezSdk>}
282
+ */
283
+ module.exports.connectWithSigner = function(config, signer, storage_dir) {
284
+ const ptr0 = passStringToWasm0(storage_dir, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
285
+ const len0 = WASM_VECTOR_LEN;
286
+ const ret = wasm.connectWithSigner(config, signer, ptr0, len0);
287
+ return ret;
288
+ };
289
+
290
+ /**
291
+ * @param {ConnectRequest} request
292
+ * @returns {Promise<BreezSdk>}
293
+ */
294
+ module.exports.connect = function(request) {
295
+ const ret = wasm.connect(request);
296
+ return ret;
297
+ };
298
+
299
299
  function passArray8ToWasm0(arg, malloc) {
300
300
  const ptr = malloc(arg.length * 1, 1) >>> 0;
301
301
  getUint8ArrayMemory0().set(arg, ptr / 1);
@@ -314,15 +314,15 @@ module.exports.task_worker_entry_point = function(ptr) {
314
314
  };
315
315
 
316
316
  function __wbg_adapter_64(arg0, arg1) {
317
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h127c718764a2a72f(arg0, arg1);
317
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h4867a1ac48fc7b64(arg0, arg1);
318
318
  }
319
319
 
320
320
  function __wbg_adapter_67(arg0, arg1, arg2) {
321
- wasm.closure1090_externref_shim(arg0, arg1, arg2);
321
+ wasm.closure1082_externref_shim(arg0, arg1, arg2);
322
322
  }
323
323
 
324
324
  function __wbg_adapter_285(arg0, arg1, arg2, arg3) {
325
- wasm.closure670_externref_shim(arg0, arg1, arg2, arg3);
325
+ wasm.closure667_externref_shim(arg0, arg1, arg2, arg3);
326
326
  }
327
327
 
328
328
  const __wbindgen_enum_ReadableStreamType = ["bytes"];
@@ -2405,13 +2405,13 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
2405
2405
  return ret;
2406
2406
  };
2407
2407
 
2408
- module.exports.__wbindgen_closure_wrapper11879 = function(arg0, arg1, arg2) {
2409
- const ret = makeMutClosure(arg0, arg1, 851, __wbg_adapter_64);
2408
+ module.exports.__wbindgen_closure_wrapper11841 = function(arg0, arg1, arg2) {
2409
+ const ret = makeMutClosure(arg0, arg1, 845, __wbg_adapter_64);
2410
2410
  return ret;
2411
2411
  };
2412
2412
 
2413
- module.exports.__wbindgen_closure_wrapper13824 = function(arg0, arg1, arg2) {
2414
- const ret = makeMutClosure(arg0, arg1, 1091, __wbg_adapter_67);
2413
+ module.exports.__wbindgen_closure_wrapper13789 = function(arg0, arg1, arg2) {
2414
+ const ret = makeMutClosure(arg0, arg1, 1083, __wbg_adapter_67);
2415
2415
  return ret;
2416
2416
  };
2417
2417
 
Binary file
@@ -113,7 +113,7 @@ export const __wbindgen_export_5: WebAssembly.Table;
113
113
  export const __externref_drop_slice: (a: number, b: number) => void;
114
114
  export const __wbindgen_export_7: WebAssembly.Table;
115
115
  export const __externref_table_dealloc: (a: number) => void;
116
- export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h127c718764a2a72f: (a: number, b: number) => void;
117
- export const closure1090_externref_shim: (a: number, b: number, c: any) => void;
118
- export const closure670_externref_shim: (a: number, b: number, c: any, d: any) => void;
116
+ export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h4867a1ac48fc7b64: (a: number, b: number) => void;
117
+ export const closure1082_externref_shim: (a: number, b: number, c: any) => void;
118
+ export const closure667_externref_shim: (a: number, b: number, c: any, d: any) => void;
119
119
  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.8.3-dev1",
3
+ "version": "0.9.0",
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)",