Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ipfs-inactive/js-ipfs-http-client
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 7f93859fe1aa
Choose a base ref
...
head repository: ipfs-inactive/js-ipfs-http-client
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 015d3df83fb1
Choose a head ref
  • 2 commits
  • 2 files changed
  • 2 contributors

Commits on Nov 20, 2015

  1. Copy the full SHA
    cf8b80a View commit details
  2. Merge pull request #129 from Dignifiedquire/diag-sys

    feat: Add diag/sys command
    daviddias committed Nov 20, 2015
    Copy the full SHA
    015d3df View commit details
Showing with 14 additions and 1 deletion.
  1. +2 −1 src/index.js
  2. +12 −0 test/tests.js
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -123,7 +123,8 @@ function IpfsAPI (host_or_multiaddr, port) {
}

self.diag = {
net: command('diag/net')
net: command('diag/net'),
sys: command('diag/sys')
}

self.block = {
12 changes: 12 additions & 0 deletions test/tests.js
Original file line number Diff line number Diff line change
@@ -368,6 +368,18 @@ describe('IPFS Node.js API wrapper tests', () => {
done()
})
})

it('.diag.sys', function (done) {
apiClients['a'].diag.sys((err, res) => {
if (err) {
throw err
}
assert(res)
assert(res.memory)
assert(res.diskinfo)
done()
})
})
})

describe('.block', function () {