mark getRelays and get_relays as deprecated.
This commit is contained in:
parent
86f37d6003
commit
c1172caf1d
1
nip07.ts
1
nip07.ts
|
@ -4,6 +4,7 @@ import { RelayRecord } from './relay.ts'
|
|||
export interface WindowNostr {
|
||||
getPublicKey(): Promise<string>
|
||||
signEvent(event: EventTemplate): Promise<NostrEvent>
|
||||
/** @deprecated removed from NIP */
|
||||
getRelays(): Promise<RelayRecord>
|
||||
nip04?: {
|
||||
encrypt(pubkey: string, plaintext: string): Promise<string>
|
||||
|
|
2
nip46.ts
2
nip46.ts
|
@ -223,7 +223,7 @@ export class BunkerSigner {
|
|||
}
|
||||
|
||||
/**
|
||||
* Calls the "get_relays" method on the bunker.
|
||||
* @deprecated removed from NIP
|
||||
*/
|
||||
async getRelays(): Promise<RelayRecord> {
|
||||
return JSON.parse(await this.sendRequest('get_relays', []))
|
||||
|
|
3
nip55.ts
3
nip55.ts
|
@ -90,6 +90,9 @@ export function signEventUri({ eventJson, ...params }: EventUriParams): string {
|
|||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated removed from NIP
|
||||
*/
|
||||
export function getRelaysUri(params: BaseParams & { id?: string; currentUser?: string }): string {
|
||||
return buildDefaultUri('get_relays', params)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue