Compare commits

..

1 Commits

Author SHA1 Message Date
fiatjaf
f6bcda8d8d support _ names in nip05. 2022-01-17 17:12:48 -03:00
2 changed files with 7 additions and 1 deletions

View File

@@ -15,6 +15,12 @@ export async function searchDomain(domain, query = '') {
export async function queryName(fullname) {
try {
let [name, domain] = fullname.split('@')
if (!domain) {
domain = name
name = '_'
}
let res = await (
await fetch(`https://${domain}/.well-known/nostr.json?name=${name}`)
).json()

View File

@@ -1,6 +1,6 @@
{
"name": "nostr-tools",
"version": "0.20.0",
"version": "0.20.1",
"description": "Tools for making a Nostr client.",
"repository": {
"type": "git",