nostr-tools 1.3.1 → 1.3.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.
- package/.github/workflows/test.yml +4 -2
- package/README.md +5 -0
- package/justfile +3 -0
- package/lib/nostr.bundle.js +415 -1195
- package/lib/nostr.bundle.js.map +4 -4
- package/lib/nostr.cjs.js +23 -17
- package/lib/nostr.cjs.js.map +2 -2
- package/lib/nostr.esm.js +23 -17
- package/lib/nostr.esm.js.map +2 -2
- package/package.json +1 -1
- package/pool.test.js +11 -1
- package/pool.ts +23 -15
- package/relay.ts +3 -3
- package/lib/nostr.js.map +0 -7
package/README.md
CHANGED
|
@@ -158,6 +158,11 @@ let events = await pool.list(relays, [{kinds: [0, 1]}])
|
|
|
158
158
|
let event = await pool.get(relays, {
|
|
159
159
|
ids: ['44e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245']
|
|
160
160
|
})
|
|
161
|
+
|
|
162
|
+
let relaysForEvent = pool.seenOn(
|
|
163
|
+
'44e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245'
|
|
164
|
+
)
|
|
165
|
+
// relaysForEvent will be an array of URLs from relays a given event was seen on
|
|
161
166
|
```
|
|
162
167
|
|
|
163
168
|
### Querying profile data from a NIP-05 address
|