-
Notifications
You must be signed in to change notification settings - Fork 37
Conversation
done, ready for review :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good!
|
||
// pass an optional blockService, if no blockService is passed, | ||
// one is created in memory. | ||
const ipldResolver = new IPLDResolver(blockService) | ||
const Resolver = new Resolver(blockService) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's tell them that the blockService can be optional
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it was late night..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nicola <3
``` | ||
|
||
## API | ||
|
||
### IPLD Resolver | ||
### `.put(node, <<cid> || <format>, <hashAlg>>, callback)` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wasn't it meant to be {node: *, cid: *} (this is what I saw from the tests)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see: https://github.com/ipfs/interface-ipfs-core/issues/81#issuecomment-277271941
tests were updated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I saw it later on in the code while I was seeing this.
This makes much more sense and it is much cleaner, awesome!
(it just breaks my ipld selector tests! :D)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, sorry about that, as you say it gets things clearer :)
} | ||
|
||
resolve (cid, path, callback) { | ||
get (cid, path, options, callback) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<3 merging get and resolve :)
nice! |
ref: https://github.com/ipfs/interface-ipfs-core/issues/81#issuecomment-277271941