Skip to content

Commit

Permalink
nip46: export queryBunkerProfile()
Browse files Browse the repository at this point in the history
  • Loading branch information
fiatjaf committed Oct 26, 2024
1 parent e2ec7a4 commit 66d0b8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions nip46.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export async function parseBunkerInput(input: string): Promise<BunkerPointer | n
return queryBunkerProfile(input)
}

async function queryBunkerProfile(nip05: string): Promise<BunkerPointer | null> {
export async function queryBunkerProfile(nip05: string): Promise<BunkerPointer | null> {
const match = nip05.match(NIP05_REGEX)
if (!match) return null

Expand Down Expand Up @@ -292,9 +292,6 @@ export async function createAccount(
return rpc
}

// @deprecated use fetchBunkerProviders instead
export const fetchCustodialBunkers = fetchBunkerProviders

/**
* Fetches info on available providers that announce themselves using NIP-89 events.
* @returns A promise that resolves to an array of available bunker objects.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"type": "module",
"name": "nostr-tools",
"version": "2.9.2",
"version": "2.9.3",
"description": "Tools for making a Nostr client.",
"repository": {
"type": "git",
Expand Down

0 comments on commit 66d0b8a

Please sign in to comment.