diff --git a/README.md b/README.md index c63704e..b1ee2df 100644 --- a/README.md +++ b/README.md @@ -210,7 +210,7 @@ Importing the entirety of `nostr-tools` may bloat your build, so you should prob ```js import { generateSecretKey, finalizeEvent, verifyEvent } from 'nostr-tools/pure' -import { SimplePool } from 'nostr-tools/pool-pure' +import { SimplePool } from 'nostr-tools/pool' import { Relay, Subscription } from 'nostr-tools/relay' import { matchFilter } from 'nostr-tools/filter' import { decode, nprofileEncode, neventEncode, npubEncode } from 'nostr-tools/nip19' diff --git a/pool.test.ts b/pool.test.ts index 6a1ea36..c7c003f 100644 --- a/pool.test.ts +++ b/pool.test.ts @@ -2,7 +2,7 @@ import { test, expect, afterAll } from 'bun:test' import { finalizeEvent, type Event } from './pure.ts' import { generateSecretKey, getPublicKey } from './pure.ts' -import SimplePool from './pool-pure.ts' +import { SimplePool } from './pool.ts' let pool = new SimplePool() diff --git a/relay.test.ts b/relay.test.ts index 2eec4bb..fb07f0c 100644 --- a/relay.test.ts +++ b/relay.test.ts @@ -17,6 +17,7 @@ test('connectivity', async () => { test('connectivity, with Relay.connect()', async () => { const relay = await Relay.connect('wss://public.relaying.io') expect(relay.connected).toBeTrue() + relay.close() }) test('querying', async () => {