@helia/ipns 8.2.3 → 8.2.4-34d3ecd7
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 +4 -3
- package/dist/index.min.js +11 -11
- package/dist/index.min.js.map +4 -4
- package/dist/src/index.d.ts +4 -3
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +4 -3
- package/dist/src/index.js.map +1 -1
- package/dist/src/routing/index.d.ts +1 -1
- package/dist/src/routing/index.d.ts.map +1 -1
- package/dist/src/routing/pubsub.d.ts +20 -1
- package/dist/src/routing/pubsub.d.ts.map +1 -1
- package/dist/src/routing/pubsub.js.map +1 -1
- package/package.json +15 -22
- package/src/index.ts +4 -3
- package/src/routing/index.ts +1 -1
- package/src/routing/pubsub.ts +24 -1
- package/dist/typedoc-urls.json +0 -48
package/README.md
CHANGED
|
@@ -150,13 +150,14 @@ import { createHelia, libp2pDefaults } from 'helia'
|
|
|
150
150
|
import { ipns } from '@helia/ipns'
|
|
151
151
|
import { pubsub } from '@helia/ipns/routing'
|
|
152
152
|
import { unixfs } from '@helia/unixfs'
|
|
153
|
-
import {
|
|
153
|
+
import { floodsub } from '@libp2p/floodsub'
|
|
154
154
|
import { generateKeyPair } from '@libp2p/crypto/keys'
|
|
155
|
-
import type {
|
|
155
|
+
import type { PubSub } from '@helia/ipns/routing'
|
|
156
|
+
import type { Libp2p } from '@libp2p/interface'
|
|
156
157
|
import type { DefaultLibp2pServices } from 'helia'
|
|
157
158
|
|
|
158
159
|
const libp2pOptions = libp2pDefaults()
|
|
159
|
-
libp2pOptions.services.pubsub =
|
|
160
|
+
libp2pOptions.services.pubsub = floodsub()
|
|
160
161
|
|
|
161
162
|
const helia = await createHelia<Libp2p<DefaultLibp2pServices & { pubsub: PubSub }>>({
|
|
162
163
|
libp2p: libp2pOptions
|