@konemono/nostr-login 1.7.35 → 1.7.36

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.35",
3
+ "version": "1.7.36",
4
4
  "description": "",
5
5
  "main": "./dist/index.esm.js",
6
6
  "types": "./dist/index.d.ts",
@@ -1,2 +1,2 @@
1
- export const CALL_TIMEOUT = 5000;
1
+ export const CALL_TIMEOUT = 10000;
2
2
  export const NIP46_TIMEOUT = 30000;
@@ -218,6 +218,7 @@ class NostrRpc extends NDKNostrRpc {
218
218
  try {
219
219
  this.processManager?.pause();
220
220
  await this.ensureConnected();
221
+ this.processManager?.resetTimer();
221
222
  } catch (e) {
222
223
  console.error('Failed to ensure connection:', e);
223
224
  if (cb) {
@@ -20,7 +20,7 @@ class ProcessManager extends EventEmitter {
20
20
  this.resetTimer();
21
21
  }
22
22
 
23
- private resetTimer() {
23
+ public resetTimer() {
24
24
  // 既存のタイマーがあればクリア
25
25
  if (this.callTimer) {
26
26
  clearTimeout(this.callTimer);