@libp2p/daemon-server 5.0.1 → 6.0.0
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/dist/index.min.js +4 -4
- package/dist/src/dht.d.ts +3 -3
- package/dist/src/dht.d.ts.map +1 -1
- package/dist/src/dht.js +3 -2
- package/dist/src/dht.js.map +1 -1
- package/dist/src/index.d.ts +13 -23
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +27 -17
- package/dist/src/index.js.map +1 -1
- package/dist/src/pubsub.d.ts +2 -2
- package/dist/src/pubsub.d.ts.map +1 -1
- package/dist/src/pubsub.js +4 -3
- package/dist/src/pubsub.js.map +1 -1
- package/dist/typedoc-urls.json +11 -0
- package/package.json +16 -25
- package/src/dht.ts +6 -6
- package/src/index.ts +33 -47
- package/src/pubsub.ts +6 -6
package/src/pubsub.ts
CHANGED
|
@@ -3,20 +3,20 @@
|
|
|
3
3
|
import {
|
|
4
4
|
PSMessage
|
|
5
5
|
} from '@libp2p/daemon-protocol'
|
|
6
|
-
import { ErrorResponse, OkResponse } from './responses.js'
|
|
7
|
-
import type { PubSub } from '@libp2p/interface-pubsub'
|
|
8
|
-
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
|
|
9
|
-
import { pushable } from 'it-pushable'
|
|
10
6
|
import { logger } from '@libp2p/logger'
|
|
7
|
+
import { pushable } from 'it-pushable'
|
|
8
|
+
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
|
|
9
|
+
import { ErrorResponse, OkResponse } from './responses.js'
|
|
10
|
+
import type { GossipSub } from '@chainsafe/libp2p-gossipsub'
|
|
11
11
|
|
|
12
12
|
const log = logger('libp2p:daemon-server:pubsub')
|
|
13
13
|
|
|
14
14
|
export interface PubSubOperationsInit {
|
|
15
|
-
pubsub:
|
|
15
|
+
pubsub: GossipSub
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
export class PubSubOperations {
|
|
19
|
-
private readonly pubsub:
|
|
19
|
+
private readonly pubsub: GossipSub
|
|
20
20
|
|
|
21
21
|
constructor (init: PubSubOperationsInit) {
|
|
22
22
|
const { pubsub } = init
|