Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <kia@tintmail.com>
- Loading branch information