mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-08 16:28:49 +00:00
chore: Bump version and document NIP-46 usage
This commit is contained in:
8
nip46.ts
8
nip46.ts
@@ -97,7 +97,7 @@ export type ParsedNostrConnectURI = {
|
||||
name?: string
|
||||
url?: string
|
||||
image?: string
|
||||
};
|
||||
}
|
||||
originalString: string
|
||||
}
|
||||
|
||||
@@ -185,7 +185,6 @@ export function parseNostrConnectURI(uri: string): ParsedNostrConnectURI {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
export type BunkerSignerParams = {
|
||||
pool?: AbstractSimplePool
|
||||
onauth?: (url: string) => void
|
||||
@@ -236,7 +235,7 @@ export class BunkerSigner implements Signer {
|
||||
public static fromBunker(
|
||||
clientSecretKey: Uint8Array,
|
||||
bp: BunkerPointer,
|
||||
params: BunkerSignerParams = {}
|
||||
params: BunkerSignerParams = {},
|
||||
): BunkerSigner {
|
||||
if (bp.relays.length === 0) {
|
||||
throw new Error('No relays specified for this bunker')
|
||||
@@ -304,12 +303,11 @@ export class BunkerSigner implements Signer {
|
||||
reject(new Error('Subscription closed before connection was established.'))
|
||||
},
|
||||
maxWait,
|
||||
}
|
||||
},
|
||||
)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
private setupSubscription(params: BunkerSignerParams) {
|
||||
const listeners = this.listeners
|
||||
const waitingForAuth = this.waitingForAuth
|
||||
|
||||
Reference in New Issue
Block a user