Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit cbd27bb

Browse files
committed
fix: add missing option and defaults
1 parent 75a0736 commit cbd27bb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/ipfs-http-client/src/add/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ module.exports = api => {
1616
options,
1717
{
1818
'stream-channels': true,
19-
progress: Boolean(progressFn)
19+
progress: Boolean(progressFn),
20+
hash: options.hashAlg // TODO fix this either is hash or hashAlg
2021
}
2122
)
2223

packages/ipfs-http-client/src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ function kebabCase (str) {
8383
})
8484
}
8585

86-
function ipfsClient (config) {
86+
function ipfsClient (config = {}) {
8787
const api = new API({
8888
timeout: config.timeout || 60000 * 20,
8989
signal: config.signal,

0 commit comments

Comments
 (0)