mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-05-02 14:02:14 +00:00
chore: update deps (#1190)
This commit is contained in:
parent
c64a586a20
commit
1b9bab68ed
@ -98,7 +98,7 @@
|
|||||||
"@achingbrain/nat-port-mapper": "^1.0.0",
|
"@achingbrain/nat-port-mapper": "^1.0.0",
|
||||||
"@libp2p/connection": "^1.1.4",
|
"@libp2p/connection": "^1.1.4",
|
||||||
"@libp2p/crypto": "^0.22.9",
|
"@libp2p/crypto": "^0.22.9",
|
||||||
"@libp2p/interfaces": "^1.3.17",
|
"@libp2p/interfaces": "^1.3.21",
|
||||||
"@libp2p/logger": "^1.1.3",
|
"@libp2p/logger": "^1.1.3",
|
||||||
"@libp2p/multistream-select": "^1.0.3",
|
"@libp2p/multistream-select": "^1.0.3",
|
||||||
"@libp2p/peer-id": "^1.1.8",
|
"@libp2p/peer-id": "^1.1.8",
|
||||||
@ -164,7 +164,7 @@
|
|||||||
"@libp2p/floodsub": "^1.0.2",
|
"@libp2p/floodsub": "^1.0.2",
|
||||||
"@libp2p/interface-compliance-tests": "^1.1.20",
|
"@libp2p/interface-compliance-tests": "^1.1.20",
|
||||||
"@libp2p/interop": "^1.0.3",
|
"@libp2p/interop": "^1.0.3",
|
||||||
"@libp2p/kad-dht": "^1.0.3",
|
"@libp2p/kad-dht": "^1.0.5",
|
||||||
"@libp2p/mdns": "^1.0.3",
|
"@libp2p/mdns": "^1.0.3",
|
||||||
"@libp2p/mplex": "^1.0.1",
|
"@libp2p/mplex": "^1.0.1",
|
||||||
"@libp2p/pubsub": "^1.2.14",
|
"@libp2p/pubsub": "^1.2.14",
|
||||||
|
@ -2,7 +2,7 @@ import { CustomEvent, EventEmitter } from '@libp2p/interfaces'
|
|||||||
import { createMovingAverage } from './moving-average.js'
|
import { createMovingAverage } from './moving-average.js'
|
||||||
// @ts-expect-error no types
|
// @ts-expect-error no types
|
||||||
import retimer from 'retimer'
|
import retimer from 'retimer'
|
||||||
import type { MovingAverages, Stats } from '@libp2p/interfaces/metrics'
|
import type { MovingAverages, Stats, TransferStats } from '@libp2p/interfaces/metrics'
|
||||||
|
|
||||||
export interface StatsEvents {
|
export interface StatsEvents {
|
||||||
'update': CustomEvent<TransferStats>
|
'update': CustomEvent<TransferStats>
|
||||||
@ -16,11 +16,6 @@ export interface StatsInit {
|
|||||||
computeThrottleTimeout: number
|
computeThrottleTimeout: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface TransferStats {
|
|
||||||
dataReceived: BigInt
|
|
||||||
dataSent: BigInt
|
|
||||||
}
|
|
||||||
|
|
||||||
export class DefaultStats extends EventEmitter<StatsEvents> implements Stats {
|
export class DefaultStats extends EventEmitter<StatsEvents> implements Stats {
|
||||||
private readonly enabled: boolean
|
private readonly enabled: boolean
|
||||||
public queue: Array<[string, number, number]>
|
public queue: Array<[string, number, number]>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user