@konemono/nostr-login 1.7.48 → 1.7.49

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.7.48",
3
+ "version": "1.7.49",
4
4
  "description": "",
5
5
  "main": "./dist/index.esm.js",
6
6
  "types": "./dist/index.d.ts",
@@ -580,7 +580,7 @@ class AuthNostrService extends EventEmitter implements Signer {
580
580
  clearInterval(timer);
581
581
  resolve();
582
582
  }
583
- }, 5000);
583
+ }, 3000);
584
584
  });
585
585
 
586
586
  console.log(
@@ -146,6 +146,9 @@ class NostrRpc extends NDKNostrRpc {
146
146
  // 1. Promiseを変数に格納
147
147
  const responsePromise = this.setResponseHandler(id, cb);
148
148
 
149
+ //ちょっと待つ
150
+ await new Promise(r => setTimeout(r, 100));
151
+
149
152
  const event = await this.createRequestEvent(id, remotePubkey, method, params, kind);
150
153
 
151
154
  // 2. 送信