@breeztech/breez-sdk-spark 0.19.2 → 0.20.0-dev1

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.
@@ -0,0 +1,519 @@
1
+ {
2
+ "name": "breez-sdk-spark-itest",
3
+ "version": "0.0.0",
4
+ "lockfileVersion": 3,
5
+ "requires": true,
6
+ "packages": {
7
+ "": {
8
+ "name": "breez-sdk-spark-itest",
9
+ "version": "0.0.0",
10
+ "dependencies": {
11
+ "@breeztech/breez-sdk-spark": "file:..",
12
+ "better-sqlite3": "^9.2.2",
13
+ "bip39": "^3.1.0",
14
+ "dotenv": "^16.0.0"
15
+ },
16
+ "engines": {
17
+ "node": ">=22"
18
+ }
19
+ },
20
+ "..": {
21
+ "name": "@breeztech/breez-sdk-spark",
22
+ "version": "0.1.0",
23
+ "license": "MIT",
24
+ "engines": {
25
+ "node": ">=22"
26
+ },
27
+ "optionalDependencies": {
28
+ "better-sqlite3": "^12.2.0",
29
+ "pg": "^8.18.0"
30
+ }
31
+ },
32
+ "node_modules/@breeztech/breez-sdk-spark": {
33
+ "resolved": "..",
34
+ "link": true
35
+ },
36
+ "node_modules/@noble/hashes": {
37
+ "version": "1.8.0",
38
+ "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.8.0.tgz",
39
+ "integrity": "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==",
40
+ "license": "MIT",
41
+ "engines": {
42
+ "node": "^14.21.3 || >=16"
43
+ },
44
+ "funding": {
45
+ "url": "https://paulmillr.com/funding/"
46
+ }
47
+ },
48
+ "node_modules/base64-js": {
49
+ "version": "1.5.1",
50
+ "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz",
51
+ "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==",
52
+ "funding": [
53
+ {
54
+ "type": "github",
55
+ "url": "https://github.com/sponsors/feross"
56
+ },
57
+ {
58
+ "type": "patreon",
59
+ "url": "https://www.patreon.com/feross"
60
+ },
61
+ {
62
+ "type": "consulting",
63
+ "url": "https://feross.org/support"
64
+ }
65
+ ],
66
+ "license": "MIT"
67
+ },
68
+ "node_modules/better-sqlite3": {
69
+ "version": "9.6.0",
70
+ "resolved": "https://registry.npmjs.org/better-sqlite3/-/better-sqlite3-9.6.0.tgz",
71
+ "integrity": "sha512-yR5HATnqeYNVnkaUTf4bOP2dJSnyhP4puJN/QPRyx4YkBEEUxib422n2XzPqDEHjQQqazoYoADdAm5vE15+dAQ==",
72
+ "hasInstallScript": true,
73
+ "license": "MIT",
74
+ "dependencies": {
75
+ "bindings": "^1.5.0",
76
+ "prebuild-install": "^7.1.1"
77
+ }
78
+ },
79
+ "node_modules/bindings": {
80
+ "version": "1.5.0",
81
+ "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz",
82
+ "integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==",
83
+ "license": "MIT",
84
+ "dependencies": {
85
+ "file-uri-to-path": "1.0.0"
86
+ }
87
+ },
88
+ "node_modules/bip39": {
89
+ "version": "3.1.0",
90
+ "resolved": "https://registry.npmjs.org/bip39/-/bip39-3.1.0.tgz",
91
+ "integrity": "sha512-c9kiwdk45Do5GL0vJMe7tS95VjCii65mYAH7DfWl3uW8AVzXKQVUm64i3hzVybBDMp9r7j9iNxR85+ul8MdN/A==",
92
+ "license": "ISC",
93
+ "dependencies": {
94
+ "@noble/hashes": "^1.2.0"
95
+ }
96
+ },
97
+ "node_modules/bl": {
98
+ "version": "4.1.0",
99
+ "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz",
100
+ "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==",
101
+ "license": "MIT",
102
+ "dependencies": {
103
+ "buffer": "^5.5.0",
104
+ "inherits": "^2.0.4",
105
+ "readable-stream": "^3.4.0"
106
+ }
107
+ },
108
+ "node_modules/buffer": {
109
+ "version": "5.7.1",
110
+ "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz",
111
+ "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==",
112
+ "funding": [
113
+ {
114
+ "type": "github",
115
+ "url": "https://github.com/sponsors/feross"
116
+ },
117
+ {
118
+ "type": "patreon",
119
+ "url": "https://www.patreon.com/feross"
120
+ },
121
+ {
122
+ "type": "consulting",
123
+ "url": "https://feross.org/support"
124
+ }
125
+ ],
126
+ "license": "MIT",
127
+ "dependencies": {
128
+ "base64-js": "^1.3.1",
129
+ "ieee754": "^1.1.13"
130
+ }
131
+ },
132
+ "node_modules/chownr": {
133
+ "version": "1.1.4",
134
+ "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz",
135
+ "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==",
136
+ "license": "ISC"
137
+ },
138
+ "node_modules/decompress-response": {
139
+ "version": "6.0.0",
140
+ "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz",
141
+ "integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==",
142
+ "license": "MIT",
143
+ "dependencies": {
144
+ "mimic-response": "^3.1.0"
145
+ },
146
+ "engines": {
147
+ "node": ">=10"
148
+ },
149
+ "funding": {
150
+ "url": "https://github.com/sponsors/sindresorhus"
151
+ }
152
+ },
153
+ "node_modules/deep-extend": {
154
+ "version": "0.6.0",
155
+ "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz",
156
+ "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==",
157
+ "license": "MIT",
158
+ "engines": {
159
+ "node": ">=4.0.0"
160
+ }
161
+ },
162
+ "node_modules/detect-libc": {
163
+ "version": "2.1.2",
164
+ "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz",
165
+ "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==",
166
+ "license": "Apache-2.0",
167
+ "engines": {
168
+ "node": ">=8"
169
+ }
170
+ },
171
+ "node_modules/dotenv": {
172
+ "version": "16.6.1",
173
+ "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.6.1.tgz",
174
+ "integrity": "sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==",
175
+ "license": "BSD-2-Clause",
176
+ "engines": {
177
+ "node": ">=12"
178
+ },
179
+ "funding": {
180
+ "url": "https://dotenvx.com"
181
+ }
182
+ },
183
+ "node_modules/end-of-stream": {
184
+ "version": "1.4.5",
185
+ "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.5.tgz",
186
+ "integrity": "sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==",
187
+ "license": "MIT",
188
+ "dependencies": {
189
+ "once": "^1.4.0"
190
+ }
191
+ },
192
+ "node_modules/expand-template": {
193
+ "version": "2.0.3",
194
+ "resolved": "https://registry.npmjs.org/expand-template/-/expand-template-2.0.3.tgz",
195
+ "integrity": "sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==",
196
+ "license": "(MIT OR WTFPL)",
197
+ "engines": {
198
+ "node": ">=6"
199
+ }
200
+ },
201
+ "node_modules/file-uri-to-path": {
202
+ "version": "1.0.0",
203
+ "resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz",
204
+ "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==",
205
+ "license": "MIT"
206
+ },
207
+ "node_modules/fs-constants": {
208
+ "version": "1.0.0",
209
+ "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz",
210
+ "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==",
211
+ "license": "MIT"
212
+ },
213
+ "node_modules/github-from-package": {
214
+ "version": "0.0.0",
215
+ "resolved": "https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz",
216
+ "integrity": "sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw==",
217
+ "license": "MIT"
218
+ },
219
+ "node_modules/ieee754": {
220
+ "version": "1.2.1",
221
+ "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz",
222
+ "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==",
223
+ "funding": [
224
+ {
225
+ "type": "github",
226
+ "url": "https://github.com/sponsors/feross"
227
+ },
228
+ {
229
+ "type": "patreon",
230
+ "url": "https://www.patreon.com/feross"
231
+ },
232
+ {
233
+ "type": "consulting",
234
+ "url": "https://feross.org/support"
235
+ }
236
+ ],
237
+ "license": "BSD-3-Clause"
238
+ },
239
+ "node_modules/inherits": {
240
+ "version": "2.0.4",
241
+ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
242
+ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
243
+ "license": "ISC"
244
+ },
245
+ "node_modules/ini": {
246
+ "version": "1.3.8",
247
+ "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz",
248
+ "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==",
249
+ "license": "ISC"
250
+ },
251
+ "node_modules/mimic-response": {
252
+ "version": "3.1.0",
253
+ "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz",
254
+ "integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==",
255
+ "license": "MIT",
256
+ "engines": {
257
+ "node": ">=10"
258
+ },
259
+ "funding": {
260
+ "url": "https://github.com/sponsors/sindresorhus"
261
+ }
262
+ },
263
+ "node_modules/minimist": {
264
+ "version": "1.2.8",
265
+ "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz",
266
+ "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==",
267
+ "license": "MIT",
268
+ "funding": {
269
+ "url": "https://github.com/sponsors/ljharb"
270
+ }
271
+ },
272
+ "node_modules/mkdirp-classic": {
273
+ "version": "0.5.3",
274
+ "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz",
275
+ "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==",
276
+ "license": "MIT"
277
+ },
278
+ "node_modules/napi-build-utils": {
279
+ "version": "2.0.0",
280
+ "resolved": "https://registry.npmjs.org/napi-build-utils/-/napi-build-utils-2.0.0.tgz",
281
+ "integrity": "sha512-GEbrYkbfF7MoNaoh2iGG84Mnf/WZfB0GdGEsM8wz7Expx/LlWf5U8t9nvJKXSp3qr5IsEbK04cBGhol/KwOsWA==",
282
+ "license": "MIT"
283
+ },
284
+ "node_modules/node-abi": {
285
+ "version": "3.94.0",
286
+ "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-3.94.0.tgz",
287
+ "integrity": "sha512-W5ZNO5KRPB5TkYmGVD9F6YqhsglXJzE6etpbmT+f6EQElhiX/UTG551cnsRGvLG3fyZEg9HwaDmNmj5nwJ4z9g==",
288
+ "license": "MIT",
289
+ "dependencies": {
290
+ "semver": "^7.3.5"
291
+ },
292
+ "engines": {
293
+ "node": ">=10"
294
+ }
295
+ },
296
+ "node_modules/once": {
297
+ "version": "1.4.0",
298
+ "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
299
+ "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
300
+ "license": "ISC",
301
+ "dependencies": {
302
+ "wrappy": "1"
303
+ }
304
+ },
305
+ "node_modules/prebuild-install": {
306
+ "version": "7.1.3",
307
+ "resolved": "https://registry.npmjs.org/prebuild-install/-/prebuild-install-7.1.3.tgz",
308
+ "integrity": "sha512-8Mf2cbV7x1cXPUILADGI3wuhfqWvtiLA1iclTDbFRZkgRQS0NqsPZphna9V+HyTEadheuPmjaJMsbzKQFOzLug==",
309
+ "deprecated": "No longer maintained. Please contact the author of the relevant native addon; alternatives are available.",
310
+ "license": "MIT",
311
+ "dependencies": {
312
+ "detect-libc": "^2.0.0",
313
+ "expand-template": "^2.0.3",
314
+ "github-from-package": "0.0.0",
315
+ "minimist": "^1.2.3",
316
+ "mkdirp-classic": "^0.5.3",
317
+ "napi-build-utils": "^2.0.0",
318
+ "node-abi": "^3.3.0",
319
+ "pump": "^3.0.0",
320
+ "rc": "^1.2.7",
321
+ "simple-get": "^4.0.0",
322
+ "tar-fs": "^2.0.0",
323
+ "tunnel-agent": "^0.6.0"
324
+ },
325
+ "bin": {
326
+ "prebuild-install": "bin.js"
327
+ },
328
+ "engines": {
329
+ "node": ">=10"
330
+ }
331
+ },
332
+ "node_modules/pump": {
333
+ "version": "3.0.4",
334
+ "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.4.tgz",
335
+ "integrity": "sha512-VS7sjc6KR7e1ukRFhQSY5LM2uBWAUPiOPa/A3mkKmiMwSmRFUITt0xuj+/lesgnCv+dPIEYlkzrcyXgquIHMcA==",
336
+ "license": "MIT",
337
+ "dependencies": {
338
+ "end-of-stream": "^1.1.0",
339
+ "once": "^1.3.1"
340
+ }
341
+ },
342
+ "node_modules/rc": {
343
+ "version": "1.2.8",
344
+ "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz",
345
+ "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==",
346
+ "license": "(BSD-2-Clause OR MIT OR Apache-2.0)",
347
+ "dependencies": {
348
+ "deep-extend": "^0.6.0",
349
+ "ini": "~1.3.0",
350
+ "minimist": "^1.2.0",
351
+ "strip-json-comments": "~2.0.1"
352
+ },
353
+ "bin": {
354
+ "rc": "cli.js"
355
+ }
356
+ },
357
+ "node_modules/readable-stream": {
358
+ "version": "3.6.2",
359
+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz",
360
+ "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==",
361
+ "license": "MIT",
362
+ "dependencies": {
363
+ "inherits": "^2.0.3",
364
+ "string_decoder": "^1.1.1",
365
+ "util-deprecate": "^1.0.1"
366
+ },
367
+ "engines": {
368
+ "node": ">= 6"
369
+ }
370
+ },
371
+ "node_modules/safe-buffer": {
372
+ "version": "5.2.1",
373
+ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
374
+ "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
375
+ "funding": [
376
+ {
377
+ "type": "github",
378
+ "url": "https://github.com/sponsors/feross"
379
+ },
380
+ {
381
+ "type": "patreon",
382
+ "url": "https://www.patreon.com/feross"
383
+ },
384
+ {
385
+ "type": "consulting",
386
+ "url": "https://feross.org/support"
387
+ }
388
+ ],
389
+ "license": "MIT"
390
+ },
391
+ "node_modules/semver": {
392
+ "version": "7.8.5",
393
+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz",
394
+ "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==",
395
+ "license": "ISC",
396
+ "bin": {
397
+ "semver": "bin/semver.js"
398
+ },
399
+ "engines": {
400
+ "node": ">=10"
401
+ }
402
+ },
403
+ "node_modules/simple-concat": {
404
+ "version": "1.0.1",
405
+ "resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz",
406
+ "integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==",
407
+ "funding": [
408
+ {
409
+ "type": "github",
410
+ "url": "https://github.com/sponsors/feross"
411
+ },
412
+ {
413
+ "type": "patreon",
414
+ "url": "https://www.patreon.com/feross"
415
+ },
416
+ {
417
+ "type": "consulting",
418
+ "url": "https://feross.org/support"
419
+ }
420
+ ],
421
+ "license": "MIT"
422
+ },
423
+ "node_modules/simple-get": {
424
+ "version": "4.0.1",
425
+ "resolved": "https://registry.npmjs.org/simple-get/-/simple-get-4.0.1.tgz",
426
+ "integrity": "sha512-brv7p5WgH0jmQJr1ZDDfKDOSeWWg+OVypG99A/5vYGPqJ6pxiaHLy8nxtFjBA7oMa01ebA9gfh1uMCFqOuXxvA==",
427
+ "funding": [
428
+ {
429
+ "type": "github",
430
+ "url": "https://github.com/sponsors/feross"
431
+ },
432
+ {
433
+ "type": "patreon",
434
+ "url": "https://www.patreon.com/feross"
435
+ },
436
+ {
437
+ "type": "consulting",
438
+ "url": "https://feross.org/support"
439
+ }
440
+ ],
441
+ "license": "MIT",
442
+ "dependencies": {
443
+ "decompress-response": "^6.0.0",
444
+ "once": "^1.3.1",
445
+ "simple-concat": "^1.0.0"
446
+ }
447
+ },
448
+ "node_modules/string_decoder": {
449
+ "version": "1.3.0",
450
+ "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz",
451
+ "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==",
452
+ "license": "MIT",
453
+ "dependencies": {
454
+ "safe-buffer": "~5.2.0"
455
+ }
456
+ },
457
+ "node_modules/strip-json-comments": {
458
+ "version": "2.0.1",
459
+ "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz",
460
+ "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==",
461
+ "license": "MIT",
462
+ "engines": {
463
+ "node": ">=0.10.0"
464
+ }
465
+ },
466
+ "node_modules/tar-fs": {
467
+ "version": "2.1.5",
468
+ "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.5.tgz",
469
+ "integrity": "sha512-OboTd8mmMhZDNPV+UjQcK9yKAatXu2aJ+r1w4im1Otd4M4fl2hwvdoXUxIYHFTHWK/3y3FarBP70v3vwmGlOxw==",
470
+ "license": "MIT",
471
+ "dependencies": {
472
+ "chownr": "^1.1.1",
473
+ "mkdirp-classic": "^0.5.2",
474
+ "pump": "^3.0.0",
475
+ "tar-stream": "^2.1.4"
476
+ }
477
+ },
478
+ "node_modules/tar-stream": {
479
+ "version": "2.2.0",
480
+ "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz",
481
+ "integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==",
482
+ "license": "MIT",
483
+ "dependencies": {
484
+ "bl": "^4.0.3",
485
+ "end-of-stream": "^1.4.1",
486
+ "fs-constants": "^1.0.0",
487
+ "inherits": "^2.0.3",
488
+ "readable-stream": "^3.1.1"
489
+ },
490
+ "engines": {
491
+ "node": ">=6"
492
+ }
493
+ },
494
+ "node_modules/tunnel-agent": {
495
+ "version": "0.6.0",
496
+ "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz",
497
+ "integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==",
498
+ "license": "Apache-2.0",
499
+ "dependencies": {
500
+ "safe-buffer": "^5.0.1"
501
+ },
502
+ "engines": {
503
+ "node": "*"
504
+ }
505
+ },
506
+ "node_modules/util-deprecate": {
507
+ "version": "1.0.2",
508
+ "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
509
+ "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==",
510
+ "license": "MIT"
511
+ },
512
+ "node_modules/wrappy": {
513
+ "version": "1.0.2",
514
+ "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
515
+ "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",
516
+ "license": "ISC"
517
+ }
518
+ }
519
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "breez-sdk-spark-itest",
3
+ "version": "0.0.0",
4
+ "private": true,
5
+ "description": "End-to-end tests for the WASM bindings: shared CLI scenarios and an npm-API smoke suite",
6
+ "engines": {
7
+ "node": ">=22"
8
+ },
9
+ "scripts": {
10
+ "test": "node --test --test-concurrency=1"
11
+ },
12
+ "dependencies": {
13
+ "@breeztech/breez-sdk-spark": "file:..",
14
+ "better-sqlite3": "^9.2.2",
15
+ "bip39": "^3.1.0",
16
+ "dotenv": "^16.0.0"
17
+ }
18
+ }
@@ -0,0 +1,47 @@
1
+ 'use strict'
2
+
3
+ // Runs the shared behavioral scenarios from
4
+ // crates/breez-sdk/cli/tests/scenarios/ against the wasm CLI port. Mirrors
5
+ // the gating of the Rust runner: the whole suite skips unless
6
+ // FAUCET_USERNAME is set, and docker-requiring scenarios skip when the
7
+ // docker daemon is unreachable.
8
+
9
+ require('dotenv').config()
10
+
11
+ const fs = require('fs')
12
+ const path = require('path')
13
+ const test = require('node:test')
14
+
15
+ const { WASM_CLI_DIR, loadScenarios, runScenario } = require('./helpers/scenario')
16
+ const { dockerAvailable } = require('./helpers/lnurl-fixture')
17
+
18
+ const portReady = fs.existsSync(
19
+ path.join(WASM_CLI_DIR, 'node_modules/@breeztech/breez-sdk-spark')
20
+ )
21
+ const faucetConfigured = Boolean(process.env.FAUCET_USERNAME)
22
+ const haveDocker = dockerAvailable()
23
+
24
+ for (const [name, scenario] of loadScenarios()) {
25
+ test(`scenario ${name}`, async (t) => {
26
+ // A typo'd name must fail, not silently un-gate the scenario. 'faucet'
27
+ // itself is enforced by the suite-wide gate below; 'docker' is probed.
28
+ const unknown = (scenario.requires ?? []).find((r) => r !== 'faucet' && r !== 'docker')
29
+ if (unknown !== undefined) {
30
+ throw new Error(`unknown requirement '${unknown}'`)
31
+ }
32
+ if (!faucetConfigured) {
33
+ t.skip('FAUCET_USERNAME not set')
34
+ return
35
+ }
36
+ if ((scenario.requires ?? []).includes('docker') && !haveDocker) {
37
+ t.skip('docker not available')
38
+ return
39
+ }
40
+ if (!portReady) {
41
+ throw new Error(
42
+ `wasm CLI port has no installed bindings at ${WASM_CLI_DIR}; run 'make wasm-itest'`
43
+ )
44
+ }
45
+ await runScenario(scenario)
46
+ })
47
+ }