-
Notifications
You must be signed in to change notification settings - Fork 3
Conversation
Ref: ipfs/js-ipfs#1670 |
Closes #7 |
``` | ||
|
||
### `maxDepth` | ||
#### CBOR entries |
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.
hmm, interesting...
- Does it already support this?
- Does go-ipfs support this?
- Given that this is a unixfs exporter should we be supporting these IPLD node types?
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.
Yes, through the object
exporter.
I'm not sure what go does.
The name starts to become misleading, true - might be worth turning it into a ipfs-exporter
, though it's really an ipld-exporter
with some baked in assumptions about dag-pb
nodes? Not sure.
const validateOffsetAndLength = require('../utils/validate-offset-and-length') | ||
|
||
const rawContent = (node) => { | ||
return function * (options = {}) { |
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 tend not to use this feature because it only works when undefined
is passed and I usually also want to allow null
to be passed (or any other falsey value really) so I end up doing the old options = options || {}
. Kinda preference but also flexibility for the caller 🤷♀️
Converts the importer to
async
/await
pull-stream-to-async-iterator
async
/await
Requires ipfs-inactive/js-ipfs-unixfs-importer#24 to be merged.