You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
fix: typeof bug when passing timeout to dag.get (#3035)
Passing `options` without a `path` to dag.get will throw an error.
```
ipfs.dag.get(cidPath, { timeout: 2000 })
TypeError: Cannot read property 'timeout' of null
```
Cause by the lovely JS issue of `typeof null === 'object'`.
Co-authored-by: Kia Rahimian <[email protected]>
0 commit comments