New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@libp2p/interface-metrics

Package Overview
Dependencies
Maintainers
6
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@libp2p/interface-metrics - npm Package Compare versions

Comparing version 2.0.0 to 3.0.0

8

dist/src/index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc