@breeztech/breez-sdk-spark 0.5.1 → 0.6.0-rc1
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/breez-sdk-spark.tgz +0 -0
- package/bundler/breez_sdk_spark_wasm.d.ts +424 -408
- package/bundler/breez_sdk_spark_wasm_bg.js +24 -17
- package/bundler/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/bundler/breez_sdk_spark_wasm_bg.wasm.d.ts +3 -3
- package/bundler/storage/index.js +139 -11
- package/deno/breez_sdk_spark_wasm.d.ts +424 -408
- package/deno/breez_sdk_spark_wasm.js +23 -17
- package/deno/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/deno/breez_sdk_spark_wasm_bg.wasm.d.ts +3 -3
- package/nodejs/breez_sdk_spark_wasm.d.ts +424 -408
- package/nodejs/breez_sdk_spark_wasm.js +24 -17
- package/nodejs/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/nodejs/breez_sdk_spark_wasm_bg.wasm.d.ts +3 -3
- package/nodejs/storage/index.cjs +49 -0
- package/nodejs/storage/migrations.cjs +15 -0
- package/package.json +1 -1
- package/web/breez_sdk_spark_wasm.d.ts +427 -411
- package/web/breez_sdk_spark_wasm.js +23 -17
- package/web/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/web/breez_sdk_spark_wasm_bg.wasm.d.ts +3 -3
- package/web/storage/index.js +139 -11
|
@@ -217,20 +217,20 @@ export function initLogging(logger, filter) {
|
|
|
217
217
|
}
|
|
218
218
|
|
|
219
219
|
/**
|
|
220
|
-
* @param {
|
|
221
|
-
* @returns {
|
|
220
|
+
* @param {Network} network
|
|
221
|
+
* @returns {Config}
|
|
222
222
|
*/
|
|
223
|
-
export function
|
|
224
|
-
const ret = wasm.
|
|
223
|
+
export function defaultConfig(network) {
|
|
224
|
+
const ret = wasm.defaultConfig(network);
|
|
225
225
|
return ret;
|
|
226
226
|
}
|
|
227
227
|
|
|
228
228
|
/**
|
|
229
|
-
* @param {
|
|
230
|
-
* @returns {
|
|
229
|
+
* @param {ConnectRequest} request
|
|
230
|
+
* @returns {Promise<BreezSdk>}
|
|
231
231
|
*/
|
|
232
|
-
export function
|
|
233
|
-
const ret = wasm.
|
|
232
|
+
export function connect(request) {
|
|
233
|
+
const ret = wasm.connect(request);
|
|
234
234
|
return ret;
|
|
235
235
|
}
|
|
236
236
|
|
|
@@ -251,15 +251,15 @@ export function task_worker_entry_point(ptr) {
|
|
|
251
251
|
}
|
|
252
252
|
|
|
253
253
|
function __wbg_adapter_58(arg0, arg1) {
|
|
254
|
-
wasm.
|
|
254
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd4a74686750ed5d4(arg0, arg1);
|
|
255
255
|
}
|
|
256
256
|
|
|
257
257
|
function __wbg_adapter_61(arg0, arg1, arg2) {
|
|
258
|
-
wasm.
|
|
258
|
+
wasm.closure979_externref_shim(arg0, arg1, arg2);
|
|
259
259
|
}
|
|
260
260
|
|
|
261
|
-
function
|
|
262
|
-
wasm.
|
|
261
|
+
function __wbg_adapter_227(arg0, arg1, arg2, arg3) {
|
|
262
|
+
wasm.closure561_externref_shim(arg0, arg1, arg2, arg3);
|
|
263
263
|
}
|
|
264
264
|
|
|
265
265
|
const __wbindgen_enum_ReadableStreamType = ["bytes"];
|
|
@@ -1337,7 +1337,7 @@ const imports = {
|
|
|
1337
1337
|
const a = state0.a;
|
|
1338
1338
|
state0.a = 0;
|
|
1339
1339
|
try {
|
|
1340
|
-
return
|
|
1340
|
+
return __wbg_adapter_227(a, state0.b, arg0, arg1);
|
|
1341
1341
|
} finally {
|
|
1342
1342
|
state0.a = a;
|
|
1343
1343
|
}
|
|
@@ -1496,6 +1496,12 @@ const imports = {
|
|
|
1496
1496
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1497
1497
|
}
|
|
1498
1498
|
}, arguments) },
|
|
1499
|
+
__wbg_setLnurlMetadata_0bf15cc7efb6cc11: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1500
|
+
var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
|
|
1501
|
+
wasm.__wbindgen_free(arg1, arg2 * 4, 4);
|
|
1502
|
+
const ret = arg0.setLnurlMetadata(v0);
|
|
1503
|
+
return ret;
|
|
1504
|
+
}, arguments) },
|
|
1499
1505
|
__wbg_setPaymentMetadata_0bbf82aa72b85deb: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1500
1506
|
let deferred0_0;
|
|
1501
1507
|
let deferred0_1;
|
|
@@ -1722,12 +1728,12 @@ const imports = {
|
|
|
1722
1728
|
const ret = false;
|
|
1723
1729
|
return ret;
|
|
1724
1730
|
},
|
|
1725
|
-
|
|
1726
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1731
|
+
__wbindgen_closure_wrapper11748: function(arg0, arg1, arg2) {
|
|
1732
|
+
const ret = makeMutClosure(arg0, arg1, 980, __wbg_adapter_61);
|
|
1727
1733
|
return ret;
|
|
1728
1734
|
},
|
|
1729
|
-
|
|
1730
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1735
|
+
__wbindgen_closure_wrapper9873: function(arg0, arg1, arg2) {
|
|
1736
|
+
const ret = makeMutClosure(arg0, arg1, 752, __wbg_adapter_58);
|
|
1731
1737
|
return ret;
|
|
1732
1738
|
},
|
|
1733
1739
|
__wbindgen_debug_string: function(arg0, arg1) {
|
|
Binary file
|
|
@@ -82,7 +82,7 @@ export const __wbindgen_export_5: WebAssembly.Table;
|
|
|
82
82
|
export const __externref_drop_slice: (a: number, b: number) => void;
|
|
83
83
|
export const __wbindgen_export_7: WebAssembly.Table;
|
|
84
84
|
export const __externref_table_dealloc: (a: number) => void;
|
|
85
|
-
export const
|
|
86
|
-
export const
|
|
87
|
-
export const
|
|
85
|
+
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd4a74686750ed5d4: (a: number, b: number) => void;
|
|
86
|
+
export const closure979_externref_shim: (a: number, b: number, c: any) => void;
|
|
87
|
+
export const closure561_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
88
88
|
export const __wbindgen_start: () => void;
|