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(core/components/dag): make options in put API optional
The [dag.put](https://github.com/ipfs/interface-ipfs-core/blob/master/SPEC/DAG.md#dagput) interface
takes an options object which is required, but should be optional with
decent defaults.
See dedicated test here: ipfs-inactive/interface-js-ipfs-core#316
This commit implements this behaviour.
**Before**:
```js
ipfs.dag.put(obj, options, (err, cid) => {...});
```
^ Prior to this commit, without passing `options`, this call resulted in an error.
**After**:
```js
ipfs.dag.put(obj, (err, cid) => {...});
```
^ This is now perfectly fine.
Fixes#1395
License: MIT
Signed-off-by: Pascal Precht <[email protected]>
0 commit comments