@breeztech/breez-sdk-spark 0.15.1 → 0.17.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/breez-sdk-spark.tgz +0 -0
- package/bundler/breez_sdk_spark_wasm.d.ts +604 -237
- package/bundler/breez_sdk_spark_wasm.js +1 -1
- package/bundler/breez_sdk_spark_wasm_bg.js +729 -434
- package/bundler/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/bundler/breez_sdk_spark_wasm_bg.wasm.d.ts +63 -49
- package/bundler/storage/index.js +356 -34
- package/deno/breez_sdk_spark_wasm.d.ts +604 -237
- package/deno/breez_sdk_spark_wasm.js +729 -434
- package/deno/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/deno/breez_sdk_spark_wasm_bg.wasm.d.ts +63 -49
- package/nodejs/breez_sdk_spark_wasm.d.ts +604 -237
- package/nodejs/breez_sdk_spark_wasm.js +741 -441
- package/nodejs/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/nodejs/breez_sdk_spark_wasm_bg.wasm.d.ts +63 -49
- package/nodejs/index.js +10 -10
- package/nodejs/index.mjs +13 -8
- package/nodejs/mysql-session-store/errors.cjs +13 -0
- package/nodejs/{mysql-session-manager → mysql-session-store}/index.cjs +24 -21
- package/nodejs/{mysql-session-manager → mysql-session-store}/migrations.cjs +17 -11
- package/nodejs/mysql-session-store/package.json +9 -0
- package/nodejs/mysql-storage/index.cjs +358 -125
- package/nodejs/mysql-storage/migrations.cjs +67 -2
- package/nodejs/mysql-token-store/index.cjs +99 -79
- package/nodejs/mysql-token-store/migrations.cjs +59 -2
- package/nodejs/mysql-tree-store/index.cjs +15 -9
- package/nodejs/mysql-tree-store/migrations.cjs +16 -2
- package/nodejs/package.json +2 -2
- package/nodejs/postgres-session-store/errors.cjs +13 -0
- package/nodejs/{postgres-session-manager → postgres-session-store}/index.cjs +23 -23
- package/nodejs/{postgres-session-manager → postgres-session-store}/migrations.cjs +14 -14
- package/nodejs/postgres-session-store/package.json +9 -0
- package/nodejs/postgres-storage/index.cjs +296 -119
- package/nodejs/postgres-storage/migrations.cjs +51 -0
- package/nodejs/postgres-token-store/index.cjs +89 -64
- package/nodejs/postgres-token-store/migrations.cjs +44 -0
- package/nodejs/storage/index.cjs +285 -125
- package/nodejs/storage/migrations.cjs +47 -0
- package/package.json +6 -1
- package/ssr/index.js +57 -28
- package/web/breez_sdk_spark_wasm.d.ts +667 -286
- package/web/breez_sdk_spark_wasm.js +729 -434
- package/web/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/web/breez_sdk_spark_wasm_bg.wasm.d.ts +63 -49
- package/web/passkey-prf-provider/index.d.ts +203 -0
- package/web/passkey-prf-provider/index.js +733 -0
- package/web/storage/index.js +356 -34
- package/nodejs/mysql-session-manager/errors.cjs +0 -13
- package/nodejs/mysql-session-manager/package.json +0 -9
- package/nodejs/postgres-session-manager/errors.cjs +0 -13
- package/nodejs/postgres-session-manager/package.json +0 -9
package/ssr/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// SSR-safe entry point for Breez SDK
|
|
2
|
-
// Safe to import during server-side rendering
|
|
2
|
+
// Safe to import during server-side rendering: no WASM, no browser APIs, no Node.js APIs.
|
|
3
3
|
// Call init() on the client before using any SDK functions.
|
|
4
4
|
|
|
5
5
|
let _module = null;
|
|
@@ -33,14 +33,9 @@ export function connectWithSigner(...args) {
|
|
|
33
33
|
return _module.connectWithSigner(...args);
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
export function
|
|
37
|
-
if (!_module) _notInitialized('
|
|
38
|
-
return _module.
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export function createPostgresConnectionPool(...args) {
|
|
42
|
-
if (!_module) _notInitialized('createPostgresConnectionPool');
|
|
43
|
-
return _module.createPostgresConnectionPool(...args);
|
|
36
|
+
export function createTurnkeySigner(...args) {
|
|
37
|
+
if (!_module) _notInitialized('createTurnkeySigner');
|
|
38
|
+
return _module.createTurnkeySigner(...args);
|
|
44
39
|
}
|
|
45
40
|
|
|
46
41
|
export function defaultConfig(...args) {
|
|
@@ -48,9 +43,9 @@ export function defaultConfig(...args) {
|
|
|
48
43
|
return _module.defaultConfig(...args);
|
|
49
44
|
}
|
|
50
45
|
|
|
51
|
-
export function
|
|
52
|
-
if (!_module) _notInitialized('
|
|
53
|
-
return _module.
|
|
46
|
+
export function defaultExternalSigners(...args) {
|
|
47
|
+
if (!_module) _notInitialized('defaultExternalSigners');
|
|
48
|
+
return _module.defaultExternalSigners(...args);
|
|
54
49
|
}
|
|
55
50
|
|
|
56
51
|
export function defaultMysqlStorageConfig(...args) {
|
|
@@ -68,6 +63,11 @@ export function defaultServerConfig(...args) {
|
|
|
68
63
|
return _module.defaultServerConfig(...args);
|
|
69
64
|
}
|
|
70
65
|
|
|
66
|
+
export function defaultStorage(...args) {
|
|
67
|
+
if (!_module) _notInitialized('defaultStorage');
|
|
68
|
+
return _module.defaultStorage(...args);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
71
|
export function getSparkStatus(...args) {
|
|
72
72
|
if (!_module) _notInitialized('getSparkStatus');
|
|
73
73
|
return _module.getSparkStatus(...args);
|
|
@@ -78,6 +78,11 @@ export function initLogging(...args) {
|
|
|
78
78
|
return _module.initLogging(...args);
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
+
export function mysqlStorage(...args) {
|
|
82
|
+
if (!_module) _notInitialized('mysqlStorage');
|
|
83
|
+
return _module.mysqlStorage(...args);
|
|
84
|
+
}
|
|
85
|
+
|
|
81
86
|
export function newRestChainService(...args) {
|
|
82
87
|
if (!_module) _notInitialized('newRestChainService');
|
|
83
88
|
return _module.newRestChainService(...args);
|
|
@@ -88,6 +93,16 @@ export function newSharedSdkContext(...args) {
|
|
|
88
93
|
return _module.newSharedSdkContext(...args);
|
|
89
94
|
}
|
|
90
95
|
|
|
96
|
+
export function postgresStorage(...args) {
|
|
97
|
+
if (!_module) _notInitialized('postgresStorage');
|
|
98
|
+
return _module.postgresStorage(...args);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function start(...args) {
|
|
102
|
+
if (!_module) _notInitialized('start');
|
|
103
|
+
return _module.start(...args);
|
|
104
|
+
}
|
|
105
|
+
|
|
91
106
|
export function task_worker_entry_point(...args) {
|
|
92
107
|
if (!_module) _notInitialized('task_worker_entry_point');
|
|
93
108
|
return _module.task_worker_entry_point(...args);
|
|
@@ -112,10 +127,24 @@ export class BreezSdk {
|
|
|
112
127
|
}
|
|
113
128
|
}
|
|
114
129
|
|
|
115
|
-
export class
|
|
130
|
+
export class ExternalBreezSignerHandle {
|
|
131
|
+
constructor(...args) {
|
|
132
|
+
if (!_module) _notInitialized('new ExternalBreezSignerHandle');
|
|
133
|
+
return new _module.ExternalBreezSignerHandle(...args);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export class ExternalSigners {
|
|
116
138
|
constructor(...args) {
|
|
117
|
-
if (!_module) _notInitialized('new
|
|
118
|
-
return new _module.
|
|
139
|
+
if (!_module) _notInitialized('new ExternalSigners');
|
|
140
|
+
return new _module.ExternalSigners(...args);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export class ExternalSparkSignerHandle {
|
|
145
|
+
constructor(...args) {
|
|
146
|
+
if (!_module) _notInitialized('new ExternalSparkSignerHandle');
|
|
147
|
+
return new _module.ExternalSparkSignerHandle(...args);
|
|
119
148
|
}
|
|
120
149
|
}
|
|
121
150
|
|
|
@@ -140,24 +169,17 @@ export class IntoUnderlyingSource {
|
|
|
140
169
|
}
|
|
141
170
|
}
|
|
142
171
|
|
|
143
|
-
export class
|
|
172
|
+
export class PasskeyClient {
|
|
144
173
|
constructor(...args) {
|
|
145
|
-
if (!_module) _notInitialized('new
|
|
146
|
-
return new _module.
|
|
174
|
+
if (!_module) _notInitialized('new PasskeyClient');
|
|
175
|
+
return new _module.PasskeyClient(...args);
|
|
147
176
|
}
|
|
148
177
|
}
|
|
149
178
|
|
|
150
|
-
export class
|
|
179
|
+
export class PasskeyLabels {
|
|
151
180
|
constructor(...args) {
|
|
152
|
-
if (!_module) _notInitialized('new
|
|
153
|
-
return new _module.
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
export class PostgresConnectionPool {
|
|
158
|
-
constructor(...args) {
|
|
159
|
-
if (!_module) _notInitialized('new PostgresConnectionPool');
|
|
160
|
-
return new _module.PostgresConnectionPool(...args);
|
|
181
|
+
if (!_module) _notInitialized('new PasskeyLabels');
|
|
182
|
+
return new _module.PasskeyLabels(...args);
|
|
161
183
|
}
|
|
162
184
|
}
|
|
163
185
|
|
|
@@ -182,3 +204,10 @@ export class WasmSdkContext {
|
|
|
182
204
|
}
|
|
183
205
|
}
|
|
184
206
|
|
|
207
|
+
export class WasmStorageConfig {
|
|
208
|
+
constructor(...args) {
|
|
209
|
+
if (!_module) _notInitialized('new WasmStorageConfig');
|
|
210
|
+
return new _module.WasmStorageConfig(...args);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|