-
Notifications
You must be signed in to change notification settings - Fork 11
Conversation
1c5d19d
to
e0c8c96
Compare
05d7b30
to
8491b57
Compare
b7bfc49
to
42b886f
Compare
42b886f
to
eafeffc
Compare
👏🏽👏🏽👏🏽👏🏽👏🏽👏🏽👏🏽👏🏽👏🏽👏🏽 @magik6k :D Does this work in |
87879c6
to
b6b60ae
Compare
@diasdavid done in ipld/js-ipld#97, the tests there pass locally for me, though this needs to be reviewed/merged/released first. |
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 is a ton of good work here! Really impressed and I would not say that you are not used to JS :)
Added some comments for small changes. Otherwise LGTM
let head = data.slice(0, headLen).toString() | ||
let typeLen = head.match(/([^ ]+) (\d+)/) | ||
if (!typeLen) { | ||
setImmediate(() => callback(new Error('invalid object header'), null)) |
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.
You gotta say return
otherwise the rest of the function will be executed.
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.
done
src/resolver.js
Outdated
] | ||
|
||
if (node.tagger) { | ||
paths = paths.concat(personInfoPaths.map(e => 'tagger/' + e)) |
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.
Add the parenthesis to the arrow function: `.map((e) => 'tagger/' + e))
'type', | ||
'tag', | ||
'message' | ||
] |
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.
Are these constants? Move to a Constants file
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.
These few paths are there for every tag, I'm not really sure if it'd really be worth having a separate file for that.
'name', | ||
'email', | ||
'date' | ||
] |
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.
Are these constants? Move to a constant file
package.json
Outdated
"multihashes": "^0.4.8", | ||
"multihashing-async": "^0.4.6", | ||
"smart-buffer": "^3.0.3", | ||
"traverse": "^0.6.6" |
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.
Replace the ^
for ~
for any module that is below 1.0.0
No description provided.