@peerbit/stream-interface
Advanced tools
Comparing version 5.0.4-88f45c3 to 5.0.4-a3e5123
@@ -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
1181
54548
+ Added@libp2p/crypto@5.0.13(transitive)
+ Added@libp2p/interface@2.6.1(transitive)
+ Added@libp2p/peer-id@5.0.14(transitive)
+ Added@peerbit/cache@2.1.0-a3e5123(transitive)
+ Added@peerbit/crypto@2.3.1-a3e5123(transitive)
- Removed@libp2p/crypto@4.1.9(transitive)
- Removed@libp2p/interface@1.7.0(transitive)
- Removed@libp2p/peer-id@4.2.4(transitive)
- Removed@peerbit/cache@2.1.0-88f45c3(transitive)
- Removed@peerbit/crypto@2.3.1-88f45c3(transitive)