Skip to content

Commit

Permalink
fix: update deps and fix types (#572)
Browse files Browse the repository at this point in the history
TSC picks up a couple of new type errors when all deps are updated
to their latest versions.
  • Loading branch information
achingbrain authored Jul 19, 2024
1 parent 5fab3a3 commit f16c9ea
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
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

0 comments on commit f16c9ea

Please sign in to comment.