mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-08 16:28:49 +00:00
mark getRelays and get_relays as deprecated.
This commit is contained in:
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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user