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

@peerbit/stream-interface

Package Overview
Dependencies
Maintainers
1
Versions
149
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@peerbit/stream-interface - npm Package Compare versions

Comparing version 5.0.4-88f45c3 to 5.0.4-a3e5123

7

dist/src/messages.d.ts

@@ -15,2 +15,3 @@ import type { PeerId } from "@libp2p/interface";

}
type PeerIds = (string | PublicSignKey | PeerId)[] | Set<string> | IterableIterator<string>;
/**

@@ -23,3 +24,3 @@ * when you just want to deliver at paths, but does not expect acknowledgement

constructor(properties: {
to: (string | PublicSignKey | PeerId)[] | Set<string>;
to: PeerIds;
redundancy: number;

@@ -35,3 +36,3 @@ });

constructor(properties: {
to: (string | PublicSignKey | PeerId)[] | Set<string>;
to: PeerIds;
redundancy: number;

@@ -48,3 +49,3 @@ });

constructor(properties: {
to?: (string | PublicSignKey | PeerId)[] | Set<string>;
to?: PeerIds;
redundancy: number;

@@ -51,0 +52,0 @@ });

{
"name": "@peerbit/stream-interface",
"version": "5.0.4-88f45c3",
"version": "5.0.4-a3e5123",
"description": "Block store streaming",

@@ -78,4 +78,4 @@ "sideEffects": false,

"@dao-xyz/borsh": "^5.2.3",
"@peerbit/crypto": "2.3.1-88f45c3"
"@peerbit/crypto": "2.3.1-a3e5123"
}
}

@@ -37,3 +37,8 @@ import {

const coerceTo = (tos: (string | PublicSignKey | PeerId)[] | Set<string>) => {
const coerceTo = (
tos:
| (string | PublicSignKey | PeerId)[]
| Set<string>
| IterableIterator<string>,
) => {
const toHashes: string[] = [];

@@ -72,2 +77,7 @@ let i = 0;

type PeerIds =
| (string | PublicSignKey | PeerId)[]
| Set<string>
| IterableIterator<string>;
/**

@@ -84,6 +94,3 @@ * when you just want to deliver at paths, but does not expect acknowledgement

constructor(properties: {
to: (string | PublicSignKey | PeerId)[] | Set<string>;
redundancy: number;
}) {
constructor(properties: { to: PeerIds; redundancy: number }) {
super();

@@ -106,6 +113,3 @@ this.to = coerceTo(properties.to);

constructor(properties: {
to: (string | PublicSignKey | PeerId)[] | Set<string>;
redundancy: number;
}) {
constructor(properties: { to: PeerIds; redundancy: number }) {
super();

@@ -134,6 +138,3 @@ if (this.to?.length === 0) {

constructor(properties: {
to?: (string | PublicSignKey | PeerId)[] | Set<string>;
redundancy: number;
}) {
constructor(properties: { to?: PeerIds; redundancy: number }) {
super();

@@ -140,0 +141,0 @@ if (this.to?.length === 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