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 2.1.1 to 3.0.0

5

dist/src/index.d.ts

@@ -6,2 +6,3 @@ import type { Multiaddr } from '@multiformats/multiaddr';

import type { AbortOptions } from '@libp2p/interfaces';
import type { Uint8ArrayList } from 'uint8arraylist';
export interface ConnectionTimeline {

@@ -63,3 +64,3 @@ open: number;

*/
export interface Stream extends Duplex<Uint8Array> {
export interface Stream extends Duplex<Uint8ArrayList, Uint8ArrayList | Uint8Array> {
/**

@@ -222,3 +223,3 @@ * Close a stream for reading and writing

*/
export interface MultiaddrConnection extends Duplex<Uint8Array> {
export interface MultiaddrConnection<T extends Uint8Array | Uint8ArrayList = Uint8Array> extends Duplex<T> {
close: (err?: Error) => Promise<void>;

@@ -225,0 +226,0 @@ remoteAddr: Multiaddr;

17

package.json
{
"name": "@libp2p/interface-connection",
"version": "2.1.1",
"version": "3.0.0",
"description": "Connection interface for libp2p",

@@ -89,11 +89,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"

@@ -128,5 +128,9 @@ },

"type": "docs",
"section": "Trivial Changes"
"section": "Documentation"
},
{
"type": "deps",
"section": "Dependencies"
},
{
"type": "test",

@@ -156,3 +160,4 @@ "section": "Tests"

"@multiformats/multiaddr": "^10.2.0",
"it-stream-types": "^1.0.4"
"it-stream-types": "^1.0.4",
"uint8arraylist": "^2.1.1"
},

@@ -159,0 +164,0 @@ "devDependencies": {

@@ -6,2 +6,3 @@ import type { Multiaddr } from '@multiformats/multiaddr'

import type { AbortOptions } from '@libp2p/interfaces'
import type { Uint8ArrayList } from 'uint8arraylist'

@@ -75,3 +76,3 @@ export interface ConnectionTimeline {

*/
export interface Stream extends Duplex<Uint8Array> {
export interface Stream extends Duplex<Uint8ArrayList, Uint8ArrayList | Uint8Array> {
/**

@@ -260,3 +261,3 @@ * Close a stream for reading and writing

*/
export interface MultiaddrConnection extends Duplex<Uint8Array> {
export interface MultiaddrConnection<T extends Uint8Array | Uint8ArrayList = Uint8Array> extends Duplex<T> {
close: (err?: Error) => Promise<void>

@@ -263,0 +264,0 @@ remoteAddr: Multiaddr

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