Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add possibility to pass config options to local node and down to init() #109

Closed
wants to merge 27 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
a12e8c4
Add possibility to pass config options to local node and down to init()
haadcode Sep 13, 2016
3280552
Fix hash check test
haadcode Nov 11, 2016
ab73fcf
fix(shutdown): fixed bugs in stopDaemon
jbenet Sep 16, 2016
b15aeb2
note(shutdown): comment on problematic func name
jbenet Sep 16, 2016
7a00f73
fix: rm unused var (thanks, linter)
jbenet Sep 16, 2016
5168be7
fix(startDaemon): fix the behavior of startDeamon
jbenet Sep 16, 2016
ef39988
feat(startDeamon): allow passing flags to ipfs daemon
jbenet Sep 16, 2016
99f6778
fix: make the linter happy for D#
jbenet Sep 16, 2016
b618b71
updates ipfs-api@9.0.0
jbenet Sep 16, 2016
9c7b060
fix(tests): guarded func to avoid it being called twice
jbenet Sep 16, 2016
724bd73
Merge pull request #107 from ipfs/fixes/startDaemon
daviddias Sep 16, 2016
3ae9063
chore: update scripts
daviddias Sep 16, 2016
d65571d
chore: update contributors
daviddias Sep 16, 2016
aad1d0b
chore: release version v0.15.0
daviddias Sep 16, 2016
0e9cb98
feat: upgrade to go-ipfs 0.4.3
dignifiedquire Jun 2, 2016
a66d5f5
fix: ensure setting the config cbs only once
dignifiedquire Sep 29, 2016
a71bbb4
chore: use latest go-ipfs dep
dignifiedquire Sep 29, 2016
5277c5a
Merge pull request #81 from ipfs/upgrade
daviddias Sep 29, 2016
de1ec6c
chore: update contributors
daviddias Sep 29, 2016
a537fd5
update go-ipfs-dep to v0.4.3-2
edsilv Oct 23, 2016
ace94f5
update to v0.4.4
edsilv Oct 24, 2016
8996ef9
chore: release version v0.16.0
daviddias Sep 29, 2016
cb215cc
Merge pull request #112 from edsilv/master
daviddias Oct 29, 2016
bf7620a
chore: update contributors
daviddias Oct 29, 2016
f97df5c
chore: release version v0.17.0
daviddias Oct 29, 2016
1b36b09
chore(package): update aegir to version 9.1.1
greenkeeperio-bot Nov 4, 2016
b2fec54
Merge pull request #120 from ipfs/greenkeeper-aegir-9.1.1
daviddias Nov 10, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,19 @@ module.exports = {
version (done) {
(new Node()).version(done)
},
local (path, done) {
local (path, opts, done) {
if (typeof opts === 'function') {
done = opts
opts = {}
}
if (!done) {
done = path
path = process.env.IPFS_PATH ||
join(process.env.HOME ||
process.env.USERPROFILE, '.ipfs')
}
process.nextTick(() => {
done(null, new Node(path))
done(null, new Node(path, opts))
})
},
disposableApi (opts, done) {
Expand Down