@peerbit/stream-interface
Advanced tools
Comparing version 5.0.4 to 5.0.5-01f2c90
@@ -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 @@ }); |
156
package.json
{ | ||
"name": "@peerbit/stream-interface", | ||
"version": "5.0.4", | ||
"description": "Block store streaming", | ||
"sideEffects": false, | ||
"type": "module", | ||
"types": "./dist/src/index.d.ts", | ||
"typesVersions": { | ||
"*": { | ||
"*": [ | ||
"*", | ||
"dist/*", | ||
"dist/src/*", | ||
"dist/src/*/index" | ||
], | ||
"src/*": [ | ||
"*", | ||
"dist/*", | ||
"dist/src/*", | ||
"dist/src/*/index" | ||
] | ||
} | ||
}, | ||
"files": [ | ||
"src", | ||
"dist", | ||
"!dist/test", | ||
"!**/*.tsbuildinfo" | ||
], | ||
"exports": { | ||
".": { | ||
"types": "./dist/src/index.d.ts", | ||
"import": "./dist/src/index.js" | ||
} | ||
}, | ||
"eslintConfig": { | ||
"extends": "peerbit", | ||
"parserOptions": { | ||
"project": true, | ||
"sourceType": "module" | ||
}, | ||
"ignorePatterns": [ | ||
"!.aegir.js", | ||
"test/ts-use", | ||
"*.d.ts" | ||
] | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"scripts": { | ||
"clean": "aegir clean", | ||
"build": "aegir build --no-bundle", | ||
"test": "", | ||
"lint": "aegir lint" | ||
}, | ||
"engines": { | ||
"node": ">=16.15.1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/dao-xyz/peerbit.git" | ||
}, | ||
"keywords": [ | ||
"peerbit" | ||
], | ||
"author": "dao.xyz", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/dao-xyz/peerbit/issues" | ||
}, | ||
"homepage": "https://github.com/dao-xyz/peerbit#readme", | ||
"localMaintainers": [ | ||
"dao.xyz" | ||
], | ||
"dependencies": { | ||
"@dao-xyz/borsh": "^5.2.3", | ||
"@peerbit/crypto": "2.3.1" | ||
} | ||
"name": "@peerbit/stream-interface", | ||
"version": "5.0.5-01f2c90", | ||
"description": "Block store streaming", | ||
"sideEffects": false, | ||
"type": "module", | ||
"types": "./dist/src/index.d.ts", | ||
"typesVersions": { | ||
"*": { | ||
"*": [ | ||
"*", | ||
"dist/*", | ||
"dist/src/*", | ||
"dist/src/*/index" | ||
], | ||
"src/*": [ | ||
"*", | ||
"dist/*", | ||
"dist/src/*", | ||
"dist/src/*/index" | ||
] | ||
} | ||
}, | ||
"files": [ | ||
"src", | ||
"dist", | ||
"!dist/test", | ||
"!**/*.tsbuildinfo" | ||
], | ||
"exports": { | ||
".": { | ||
"types": "./dist/src/index.d.ts", | ||
"import": "./dist/src/index.js" | ||
} | ||
}, | ||
"eslintConfig": { | ||
"extends": "peerbit", | ||
"parserOptions": { | ||
"project": true, | ||
"sourceType": "module" | ||
}, | ||
"ignorePatterns": [ | ||
"!.aegir.js", | ||
"test/ts-use", | ||
"*.d.ts" | ||
] | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"scripts": { | ||
"clean": "aegir clean", | ||
"build": "aegir build --no-bundle", | ||
"test": "", | ||
"lint": "aegir lint" | ||
}, | ||
"engines": { | ||
"node": ">=16.15.1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/dao-xyz/peerbit.git" | ||
}, | ||
"keywords": [ | ||
"peerbit" | ||
], | ||
"author": "dao.xyz", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/dao-xyz/peerbit/issues" | ||
}, | ||
"homepage": "https://github.com/dao-xyz/peerbit#readme", | ||
"localMaintainers": [ | ||
"dao.xyz" | ||
], | ||
"dependencies": { | ||
"@dao-xyz/borsh": "^5.2.3", | ||
"@peerbit/crypto": "2.3.2-01f2c90" | ||
} | ||
} |
@@ -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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
54548
1181
2
+ 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-01f2c90(transitive)
+ Added@peerbit/crypto@2.3.2-01f2c90(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.2(transitive)
- Removed@peerbit/crypto@2.3.1(transitive)