chore: Bump version and document NIP-46 usage

This commit is contained in:
tajava2006
2025-08-25 22:04:47 +09:00
committed by fiatjaf_
parent 8866042edf
commit 0e6e7af934
4 changed files with 8 additions and 8 deletions

View File

@@ -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