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

@libp2p/interface-transport

Package Overview
Dependencies
Maintainers
6
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@libp2p/interface-transport - npm Package Compare versions

Comparing version 1.0.4 to 2.0.0

10

dist/src/index.d.ts
import type { AbortOptions } from '@libp2p/interfaces';
import type { EventEmitter } from '@libp2p/interfaces/events';
import type { StreamMuxerFactory } from '@libp2p/interface-stream-muxer';
import type { Multiaddr } from '@multiformats/multiaddr';

@@ -71,2 +72,7 @@ import type { Connection, MultiaddrConnection } from '@libp2p/interface-connection';

}
export interface UpgraderOptions {
skipEncryption?: boolean;
skipProtection?: boolean;
muxerFactory?: StreamMuxerFactory;
}
export interface Upgrader extends EventEmitter<UpgraderEvents> {

@@ -76,7 +82,7 @@ /**

*/
upgradeOutbound: (maConn: MultiaddrConnection) => Promise<Connection>;
upgradeOutbound: (maConn: MultiaddrConnection, opts?: UpgraderOptions) => Promise<Connection>;
/**
* Upgrades an inbound connection on transport listener.
*/
upgradeInbound: (maConn: MultiaddrConnection) => Promise<Connection>;
upgradeInbound: (maConn: MultiaddrConnection, opts?: UpgraderOptions) => Promise<Connection>;
}

@@ -83,0 +89,0 @@ export interface ProtocolHandler {

3

package.json
{
"name": "@libp2p/interface-transport",
"version": "1.0.4",
"version": "2.0.0",
"description": "Transport interface for libp2p",

@@ -138,2 +138,3 @@ "license": "Apache-2.0 OR MIT",

"@multiformats/multiaddr": "^11.0.0",
"@libp2p/interface-stream-muxer": "^3.0.0",
"it-stream-types": "^1.0.4"

@@ -140,0 +141,0 @@ },

import type { AbortOptions } from '@libp2p/interfaces'
import type { EventEmitter } from '@libp2p/interfaces/events'
import type { StreamMuxerFactory } from '@libp2p/interface-stream-muxer'
import type { Multiaddr } from '@multiformats/multiaddr'

@@ -81,2 +82,8 @@ import type { Connection, MultiaddrConnection } from '@libp2p/interface-connection'

export interface UpgraderOptions {
skipEncryption?: boolean
skipProtection?: boolean
muxerFactory?: StreamMuxerFactory
}
export interface Upgrader extends EventEmitter<UpgraderEvents> {

@@ -86,3 +93,3 @@ /**

*/
upgradeOutbound: (maConn: MultiaddrConnection) => Promise<Connection>
upgradeOutbound: (maConn: MultiaddrConnection, opts?: UpgraderOptions) => Promise<Connection>

@@ -92,3 +99,3 @@ /**

*/
upgradeInbound: (maConn: MultiaddrConnection) => Promise<Connection>
upgradeInbound: (maConn: MultiaddrConnection, opts?: UpgraderOptions) => Promise<Connection>
}

@@ -95,0 +102,0 @@

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