@libp2p/interface-metrics
Advanced tools
Comparing version 2.0.0 to 3.0.0
@@ -40,7 +40,9 @@ import type { PeerId } from '@libp2p/interface-peer-id'; | ||
} | ||
export interface TrackStreamOptions<T extends Duplex<Uint8Array>> { | ||
export interface TrackStreamOptions { | ||
/** | ||
* A duplex iterable stream | ||
*/ | ||
stream: T; | ||
stream: Duplex<{ | ||
byteLength: number; | ||
}, any>; | ||
/** | ||
@@ -96,3 +98,3 @@ * The id of the remote peer that's connected | ||
*/ | ||
trackStream: <T extends Duplex<Uint8Array>>(data: TrackStreamOptions<T>) => T; | ||
trackStream: (data: TrackStreamOptions) => void; | ||
} | ||
@@ -99,0 +101,0 @@ /** |
{ | ||
"name": "@libp2p/interface-metrics", | ||
"version": "2.0.0", | ||
"version": "3.0.0", | ||
"description": "Metrics interface for libp2p", | ||
@@ -69,11 +69,11 @@ "license": "Apache-2.0 OR MIT", | ||
{ | ||
"type": "chore", | ||
"type": "docs", | ||
"release": "patch" | ||
}, | ||
{ | ||
"type": "docs", | ||
"type": "test", | ||
"release": "patch" | ||
}, | ||
{ | ||
"type": "test", | ||
"type": "deps", | ||
"release": "patch" | ||
@@ -108,5 +108,9 @@ }, | ||
"type": "docs", | ||
"section": "Trivial Changes" | ||
"section": "Documentation" | ||
}, | ||
{ | ||
"type": "deps", | ||
"section": "Dependencies" | ||
}, | ||
{ | ||
"type": "test", | ||
@@ -113,0 +117,0 @@ "section": "Tests" |
@@ -49,7 +49,7 @@ import type { PeerId } from '@libp2p/interface-peer-id' | ||
export interface TrackStreamOptions <T extends Duplex<Uint8Array>> { | ||
export interface TrackStreamOptions { | ||
/** | ||
* A duplex iterable stream | ||
*/ | ||
stream: T | ||
stream: Duplex<{ byteLength: number }, any> | ||
@@ -115,3 +115,3 @@ /** | ||
*/ | ||
trackStream: <T extends Duplex<Uint8Array>> (data: TrackStreamOptions<T>) => T | ||
trackStream: (data: TrackStreamOptions) => void | ||
} | ||
@@ -118,0 +118,0 @@ |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
17919
329
1