Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update deps and fix types #572

Merged
merged 1 commit into from
Jul 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion benchmarks/add-dir/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@helia/unixfs": "^3.0.4",
"@ipld/dag-pb": "^4.0.2",
"@libp2p/websockets": "^8.0.9",
"aegir": "^42.1.0",
"aegir": "^43.0.1",
"blockstore-fs": "^1.0.1",
"datastore-level": "^10.0.1",
"execa": "^8.0.1",
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/gc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"devDependencies": {
"@ipld/dag-pb": "^4.0.6",
"aegir": "^42.2.5",
"aegir": "^43.0.1",
"blockstore-fs": "^1.1.8",
"datastore-level": "^10.1.5",
"execa": "^8.0.1",
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/transfer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@helia/unixfs": "^3.0.3",
"@ipld/dag-pb": "^4.0.2",
"@libp2p/websockets": "^8.0.19",
"aegir": "^42.2.5",
"aegir": "^43.0.1",
"blockstore-fs": "^1.0.1",
"datastore-level": "^10.0.1",
"execa": "^8.0.1",
Expand Down
4 changes: 2 additions & 2 deletions benchmarks/transports/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"dependencies": {
"@chainsafe/libp2p-noise": "^15.0.0",
"@chainsafe/libp2p-yamux": "^6.0.2",
"@helia/block-brokers": "^2.1.1",
"@helia/block-brokers": "^3.0.2",
"@helia/routers": "^1.0.3",
"@helia/unixfs": "^3.0.3",
"@ipld/dag-pb": "^4.1.0",
Expand All @@ -27,7 +27,7 @@
"@libp2p/websockets": "^8.0.19",
"@libp2p/webtransport": "^4.0.29",
"@multiformats/multiaddr": "^12.2.1",
"aegir": "^42.2.5",
"aegir": "^43.0.1",
"blockstore-fs": "^1.1.10",
"blockstore-idb": "^1.1.8",
"datastore-idb": "^2.1.9",
Expand Down
2 changes: 1 addition & 1 deletion packages/bitswap/src/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ export class Network extends TypedEventEmitter<NetworkEvents> {
* Find bitswap providers for a given `cid`.
*/
async * findProviders (cid: CID, options?: AbortOptions & ProgressOptions<BitswapNetworkWantProgressEvents>): AsyncIterable<Provider> {
options?.onProgress?.(new CustomProgressEvent<PeerId>('bitswap:network:find-providers', cid))
options?.onProgress?.(new CustomProgressEvent<CID>('bitswap:network:find-providers', cid))

for await (const provider of this.routing.findProviders(cid, options)) {
// make sure we can dial the provider
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ export class Helia implements HeliaInterface {
yield cid

options.onProgress?.(new CustomProgressEvent<CID>('helia:gc:deleted', cid))
} catch (err) {
} catch (err: any) {
helia.log.error('Error during gc', err)
options.onProgress?.(new CustomProgressEvent<Error>('helia:gc:error', err))
}
Expand Down
Loading