nostr-tools 1.3.0 → 1.3.1
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/README.md +1 -6
- package/lib/nostr.bundle.js +1254 -437
- package/lib/nostr.bundle.js.map +4 -4
- package/lib/nostr.cjs.js +86 -55
- package/lib/nostr.cjs.js.map +3 -3
- package/lib/nostr.esm.js +86 -55
- package/lib/nostr.esm.js.map +3 -3
- package/lib/nostr.js.map +7 -0
- package/magic.ts +140 -0
- package/package.json +1 -1
- package/pool.test.js +52 -48
- package/pool.ts +84 -55
- package/relay.test.js +37 -11
- package/relay.ts +7 -2
package/README.md
CHANGED
|
@@ -134,12 +134,7 @@ const pool = new SimplePool()
|
|
|
134
134
|
|
|
135
135
|
let relays = ['wss://relay.example.com', 'wss://relay.example2.com']
|
|
136
136
|
|
|
137
|
-
|
|
138
|
-
let relay = pool.ensureRelay(url)
|
|
139
|
-
await relay.connect()
|
|
140
|
-
})
|
|
141
|
-
|
|
142
|
-
let relay = pool.ensureRelay('wss://relay.example3.com')
|
|
137
|
+
let relay = await pool.ensureRelay('wss://relay.example3.com')
|
|
143
138
|
|
|
144
139
|
let subs = pool.sub([...relays, relay], {
|
|
145
140
|
authors: ['32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245']
|