Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

Awesome IPLD endeavour #25

Merged
merged 11 commits into from
Oct 26, 2016
Merged

Awesome IPLD endeavour #25

merged 11 commits into from
Oct 26, 2016

Conversation

daviddias
Copy link
Member

No description provided.

Copy link
Member

@dignifiedquire dignifiedquire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some notes I had when reading through it

value: flatObj[key]
}
})
return paths
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can just immediately return the result, instead of creating a variable

continue
}
// Exclude arrays from the final result
if (flatObject[x] && Array === flatObject.constructor) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can use Array.isArray

@daviddias daviddias force-pushed the awesome-ipld branch 3 times, most recently from d296603 to 4bc69d2 Compare October 18, 2016 16:03
@daviddias daviddias mentioned this pull request Oct 21, 2016
36 tasks
"version": "0.6.0",
"description": "JavaScript implementation of the IPLD (InterpPlanetary Linked Data)",
"main": "lib/index.js",
"main": "src/index.js",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: remove before merge

'use strict'

const util = require('./util')
const _times = require('lodash.times')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why _times?

// out of scope

// TODO this was my first try at writting this out of scope traversal code,
// it REALLY needs way more testing.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this still valid?

Copy link
Member Author

@daviddias daviddias Oct 25, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is :( Doesn't make it incorrect though

const flatObj = flattenObject(node)
const paths = Object.keys(flatObj)
.map((key) => {
return {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is some odd indenation


describe('node', () => {
describe.skip('resolver.resolve', () => {
it('path', () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about tests for these things?

}, {
path: 'array/1',
value: '2'
} */])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be probably fixed before merge?

@daviddias daviddias merged commit 27b273d into master Oct 26, 2016
@daviddias daviddias deleted the awesome-ipld branch October 26, 2016 11:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants