Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@libp2p/interfaces

Package Overview
Dependencies
Maintainers
4
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@libp2p/interfaces - npm Package Compare versions

Comparing version 1.3.18 to 1.3.19

20

dist/src/pubsub/index.d.ts

@@ -34,16 +34,16 @@ import type { PeerId } from '../peer-id/index.js';

export interface PubSubRPCMessage {
from?: Uint8Array | null;
topic?: string | null;
data?: Uint8Array | null;
sequenceNumber?: Uint8Array | null;
signature?: Uint8Array | null;
key?: Uint8Array | null;
from?: Uint8Array;
topic?: string;
data?: Uint8Array;
sequenceNumber?: Uint8Array;
signature?: Uint8Array;
key?: Uint8Array;
}
export interface PubSubRPCSubscription {
subscribe?: boolean | null;
topic?: string | null;
subscribe?: boolean;
topic?: string;
}
export interface PubSubRPC {
subscriptions?: PubSubRPCSubscription[] | null;
messages?: PubSubRPCMessage[] | null;
subscriptions: PubSubRPCSubscription[];
messages: PubSubRPCMessage[];
}

@@ -50,0 +50,0 @@ export interface PeerStreams extends EventEmitter<PeerStreamEvents> {

{
"name": "@libp2p/interfaces",
"version": "1.3.18",
"version": "1.3.19",
"description": "Interfaces for JS Libp2p",

@@ -224,8 +224,11 @@ "license": "Apache-2.0 OR MIT",

"scripts": {
"clean": "aegir clean",
"lint": "aegir lint",
"dep-check": "aegir dep-check dist/src/**/*.js dist/test/**/*.js",
"build": "tsc"
"dep-check": "aegir dep-check",
"build": "aegir build",
"release": "aegir release"
},
"dependencies": {
"@multiformats/multiaddr": "^10.1.5",
"err-code": "^3.0.1",
"interface-datastore": "^6.1.0",

@@ -235,4 +238,4 @@ "multiformats": "^9.6.3"

"devDependencies": {
"aegir": "^36.1.3"
"aegir": "^37.0.6"
}
}

@@ -38,18 +38,18 @@ import type { PeerId } from '../peer-id/index.js'

export interface PubSubRPCMessage {
from?: Uint8Array | null
topic?: string | null
data?: Uint8Array | null
sequenceNumber?: Uint8Array | null
signature?: Uint8Array | null
key?: Uint8Array | null
from?: Uint8Array
topic?: string
data?: Uint8Array
sequenceNumber?: Uint8Array
signature?: Uint8Array
key?: Uint8Array
}
export interface PubSubRPCSubscription {
subscribe?: boolean | null
topic?: string | null
subscribe?: boolean
topic?: string
}
export interface PubSubRPC {
subscriptions?: PubSubRPCSubscription[] | null
messages?: PubSubRPCMessage[] | null
subscriptions: PubSubRPCSubscription[]
messages: PubSubRPCMessage[]
}

@@ -56,0 +56,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