-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Make ipfs.files.add return DAGNodes #261
Conversation
src/core/ipfs/files.js
Outdated
| i.once('end', () => { | ||
| // Transform file info tuples to DAGNodes | ||
| i.pipe(through.obj(function transform (info, enc, next) { | ||
| console.log('info', info) |
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.
Why console log in the core? What spec does this follow? Same for L31
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.
Whoops -- debugging leftovers.
2dac5eb to
be926ba
Compare
|
This PR blocked on major release on https://github.com/ipfs/js-ipfs-unixfs-engine and merge of ipfs-inactive/interface-js-ipfs-core#20. Please don't merge until all is green. :) |
|
be926ba to
11a9b62
Compare
Though one of these is a fix (using 'before' properly), the rest are timing issues that are more noticeable on slower computers.
11a9b62 to
7b698b3
Compare
|
Just waiting on ipfs-inactive/interface-js-ipfs-core#20 to get merged + published and we're good to go! |
|
Did you check browser tests? Just ran them and got: |
|
I got the same result when testing the interface-core tests through js-ipfs-api yesterday. |
|
that's a bug in brfs browserify/brfs#40 |
|
@diasdavid sorry could you please share more information before closing a PR? |
DAGNodesNOTE: this breaks backwards compatibility for
addand will require a major semver bump.