nostr-tools 0.22.1 → 0.22.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/nip05.js +1 -5
  2. package/package.json +1 -1
  3. package/relay.js +1 -1
package/nip05.js CHANGED
@@ -15,11 +15,7 @@ export async function searchDomain(domain, query = '') {
15
15
  export async function queryName(fullname) {
16
16
  try {
17
17
  let [name, domain] = fullname.split('@')
18
-
19
- if (!domain) {
20
- domain = name
21
- name = '_'
22
- }
18
+ if (!domain) return null
23
19
 
24
20
  let res = await (
25
21
  await fetch(`https://${domain}/.well-known/nostr.json?name=${name}`)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nostr-tools",
3
- "version": "0.22.1",
3
+ "version": "0.22.2",
4
4
  "description": "Tools for making a Nostr client.",
5
5
  "repository": {
6
6
  "type": "git",
package/relay.js CHANGED
@@ -160,7 +160,7 @@ export function relayConnect(url, onNotice = () => {}, onError = () => {}) {
160
160
  unsub()
161
161
  clearTimeout(willUnsub)
162
162
  },
163
- filter: {id: event.id}
163
+ filter: {ids: [event.id]}
164
164
  },
165
165
  `monitor-${event.id.slice(0, 5)}`
166
166
  )