@konemono/nostr-login 1.10.16 → 1.11.1
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/dist/index.esm.js +23 -12
- package/dist/index.esm.js.map +1 -1
- package/dist/modules/Nip46.d.ts +12 -0
- package/dist/unpkg.js +23 -12
- package/package.json +1 -1
- package/src/modules/AuthNostrService.ts +24 -43
- package/src/modules/ModalManager.ts +3 -2
- package/src/modules/Nip46.ts +85 -2
- package/src/modules/Signer.ts +2 -1
- package/src/utils/index.ts +5 -4
- package/src/utils/nip44.ts +2 -1
package/dist/modules/Nip46.d.ts
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
import NDK, { NDKEvent, NDKFilter, NDKNip46Signer, NDKNostrRpc, NDKRpcRequest, NDKRpcResponse, NDKSubscription } from '@nostr-dev-kit/ndk';
|
|
2
2
|
import { PrivateKeySigner } from './Signer';
|
|
3
|
+
/**
|
|
4
|
+
* NDKのリレー接続を待機する
|
|
5
|
+
*/
|
|
6
|
+
export declare function waitForConnection(ndk: NDK, timeout: number): Promise<void>;
|
|
7
|
+
/**
|
|
8
|
+
* NDKの接続を強制的に確立する
|
|
9
|
+
*/
|
|
10
|
+
export declare function ensureNDKConnection(ndk: NDK, timeout: number): Promise<void>;
|
|
11
|
+
/**
|
|
12
|
+
* NIP-46専用リレーも含めて接続を確立する
|
|
13
|
+
*/
|
|
14
|
+
export declare function ensureNIP46Connection(ndk: NDK, timeout: number): Promise<void>;
|
|
3
15
|
declare class NostrRpc extends NDKNostrRpc {
|
|
4
16
|
protected _ndk: NDK;
|
|
5
17
|
protected _signer: PrivateKeySigner;
|