@konemono/nostr-login 1.11.7 → 1.11.9
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 +2 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/modules/Nip46.d.ts +1 -1
- package/dist/unpkg.js +2 -2
- package/package.json +1 -2
- package/src/modules/AuthNostrService.ts +1 -3
- package/src/modules/Nip46.ts +19 -50
package/dist/modules/Nip46.d.ts
CHANGED
|
@@ -22,11 +22,11 @@ declare class NostrRpc extends NDKNostrRpc {
|
|
|
22
22
|
ping(remotePubkey: string): Promise<void>;
|
|
23
23
|
pingWithTimeout(remotePubkey: string, timeoutMs?: number): Promise<void>;
|
|
24
24
|
protected getId(): string;
|
|
25
|
+
once: <EventKey extends string | symbol = string>(event: EventKey, listener: (...args: any[]) => void) => this;
|
|
25
26
|
sendRequest(remotePubkey: string, method: string, params?: string[], kind?: number, cb?: (res: NDKRpcResponse) => void): Promise<NDKRpcResponse>;
|
|
26
27
|
protected setResponseHandler(id: string, cb?: (res: NDKRpcResponse) => void): Promise<NDKRpcResponse>;
|
|
27
28
|
protected createRequestEvent(id: string, remotePubkey: string, method: string, params?: string[], kind?: number): Promise<NDKEvent>;
|
|
28
29
|
on: <EventKey extends string | symbol = string>(event: EventKey, listener: (...args: any[]) => void) => this;
|
|
29
|
-
once: <EventKey extends string | symbol = string>(event: EventKey, listener: (...args: any[]) => void) => this;
|
|
30
30
|
emit: <EventKey extends string | symbol = string>(event: EventKey, ...args: any[]) => boolean;
|
|
31
31
|
}
|
|
32
32
|
export declare class IframeNostrRpc extends NostrRpc {
|