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

@libp2p/interface-connection

Package Overview
Dependencies
Maintainers
6
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@libp2p/interface-connection - npm Package Compare versions

Comparing version 5.1.0 to 5.1.1-1c6702c8

10

dist/src/index.d.ts

@@ -137,2 +137,10 @@ import type * as Status from './status.js';

}
export interface NewStreamOptions extends AbortOptions {
/**
* If specified, and no handler has been registered with the registrar for the
* successfully negotiated protocol, use this as the max outbound stream limit
* for the protocol
*/
maxOutboundStreams?: number;
}
/**

@@ -151,3 +159,3 @@ * A Connection is a high-level representation of a connection

streams: Stream[];
newStream: (multicodecs: string | string[], options?: AbortOptions) => Promise<Stream>;
newStream: (multicodecs: string | string[], options?: NewStreamOptions) => Promise<Stream>;
addStream: (stream: Stream) => void;

@@ -154,0 +162,0 @@ removeStream: (id: string) => void;

16

package.json
{
"name": "@libp2p/interface-connection",
"version": "5.1.0",
"version": "5.1.1-1c6702c8",
"description": "Connection interface for libp2p",
"license": "Apache-2.0 OR MIT",
"homepage": "https://github.com/libp2p/js-libp2p-interfaces/tree/master/packages/interface-connection#readme",
"homepage": "https://github.com/libp2p/js-libp2p/tree/master/packages/interface-connection#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/libp2p/js-libp2p-interfaces.git"
"url": "git+https://github.com/libp2p/js-libp2p.git"
},
"bugs": {
"url": "https://github.com/libp2p/js-libp2p-interfaces/issues"
"url": "https://github.com/libp2p/js-libp2p/issues"
},

@@ -18,6 +18,2 @@ "keywords": [

],
"engines": {
"node": ">=16.0.0",
"npm": ">=7.0.0"
},
"type": "module",

@@ -156,4 +152,4 @@ "types": "./dist/src/index.d.ts",

"dependencies": {
"@libp2p/interface-peer-id": "^2.0.0",
"@libp2p/interfaces": "^3.0.0",
"@libp2p/interface-peer-id": "2.0.2-1c6702c8",
"@libp2p/interfaces": "3.3.2-1c6702c8",
"@multiformats/multiaddr": "^12.0.0",

@@ -160,0 +156,0 @@ "it-stream-types": "^2.0.1",

@@ -5,4 +5,4 @@ # @libp2p/interface-connection <!-- omit in toc -->

[![Discuss](https://img.shields.io/discourse/https/discuss.libp2p.io/posts.svg?style=flat-square)](https://discuss.libp2p.io)
[![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p-interfaces.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p-interfaces)
[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p-interfaces/js-test-and-release.yml?branch=master\&style=flat-square)](https://github.com/libp2p/js-libp2p-interfaces/actions/workflows/js-test-and-release.yml?query=branch%3Amaster)
[![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p)
[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p/main.yml?branch=master\&style=flat-square)](https://github.com/libp2p/js-libp2p/actions/workflows/main.yml?query=branch%3Amaster)

@@ -305,3 +305,3 @@ > Connection interface for libp2p

- <https://libp2p.github.io/js-libp2p-interfaces/modules/_libp2p_interface_connection.html>
- <https://libp2p.github.io/js-libp2p/modules/_libp2p_interface_connection.html>

@@ -308,0 +308,0 @@ ## License

@@ -161,2 +161,11 @@ import type * as Status from './status.js'

export interface NewStreamOptions extends AbortOptions {
/**
* If specified, and no handler has been registered with the registrar for the
* successfully negotiated protocol, use this as the max outbound stream limit
* for the protocol
*/
maxOutboundStreams?: number
}
/**

@@ -176,3 +185,3 @@ * A Connection is a high-level representation of a connection

newStream: (multicodecs: string | string[], options?: AbortOptions) => Promise<Stream>
newStream: (multicodecs: string | string[], options?: NewStreamOptions) => Promise<Stream>
addStream: (stream: Stream) => void

@@ -179,0 +188,0 @@ removeStream: (id: string) => void

Sorry, the diff of this file is not supported yet

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