@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/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: PubSub
15
+ pubsub: GossipSub
16
16
  }
17
17
 
18
18
  export class PubSubOperations {
19
- private readonly pubsub: PubSub
19
+ private readonly pubsub: GossipSub
20
20
 
21
21
  constructor (init: PubSubOperationsInit) {
22
22
  const { pubsub } = init