|
1 |
| -import { pushableV } from 'it-pushable' |
| 1 | +import { CodeError } from '@libp2p/interfaces/errors' |
| 2 | +import { logger } from '@libp2p/logger' |
2 | 3 | import { abortableSource } from 'abortable-iterator'
|
3 |
| -import { encode } from './encode.js' |
| 4 | +import { anySignal } from 'any-signal' |
| 5 | +import { pushableV } from 'it-pushable' |
| 6 | +import { RateLimiterMemory } from 'rate-limiter-flexible' |
| 7 | +import { toString as uint8ArrayToString } from 'uint8arrays' |
4 | 8 | import { Decoder } from './decode.js'
|
5 |
| -import { MessageTypes, MessageTypeNames, Message } from './message-types.js' |
| 9 | +import { encode } from './encode.js' |
| 10 | +import { MessageTypes, MessageTypeNames, type Message } from './message-types.js' |
6 | 11 | import { createStream } from './stream.js'
|
7 |
| -import { toString as uint8ArrayToString } from 'uint8arrays' |
8 |
| -import { logger } from '@libp2p/logger' |
9 |
| -import { CodeError } from '@libp2p/interfaces/errors' |
10 |
| -import { RateLimiterMemory } from 'rate-limiter-flexible' |
11 |
| -import type { Sink, Source } from 'it-stream-types' |
12 |
| -import type { StreamMuxer, StreamMuxerInit } from '@libp2p/interface-stream-muxer' |
13 |
| -import type { Stream } from '@libp2p/interface-connection' |
14 | 12 | import type { MplexInit } from './index.js'
|
15 |
| -import { anySignal } from 'any-signal' |
| 13 | +import type { Stream } from '@libp2p/interface-connection' |
| 14 | +import type { StreamMuxer, StreamMuxerInit } from '@libp2p/interface-stream-muxer' |
| 15 | +import type { Sink, Source } from 'it-stream-types' |
16 | 16 | import type { Uint8ArrayList } from 'uint8arraylist'
|
17 | 17 |
|
18 | 18 | const log = logger('libp2p:mplex')
|
|
0 commit comments