@konemono/nostr-login 1.10.6 → 1.10.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konemono/nostr-login",
3
- "version": "1.10.6",
3
+ "version": "1.10.7",
4
4
  "description": "",
5
5
  "main": "./dist/index.esm.js",
6
6
  "types": "./dist/index.d.ts",
@@ -327,9 +327,13 @@ class ModalManager extends EventEmitter {
327
327
  login(event.detail);
328
328
  });
329
329
 
330
- this.modal.addEventListener('nlRelaysChanged', (event: any) => {
330
+ this.modal.addEventListener('nlRelaysChanged', async (event: any) => {
331
331
  this.customNip46Relays = event.detail;
332
332
  console.log('Custom Nip46 relays updated:', this.customNip46Relays);
333
+ // Regenerate connection services with new relays
334
+ if (this.modal) {
335
+ [this.modal.connectionString, this.modal.connectionStringServices] = await this.authNostrService.getNostrConnectServices(this.customNip46Relays);
336
+ }
333
337
  });
334
338
 
335
339
  this.modal.addEventListener('nlSignup', (event: any) => {