diff --git a/CHANGELOG.md b/CHANGELOG.md index 9941be38..7919f80f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ + +# [0.101.0](https://github.com/ipfs/interface-ipfs-core/compare/v0.100.1...v0.101.0) (2019-05-15) + + + ## [0.100.1](https://github.com/ipfs/interface-ipfs-core/compare/v0.100.0...v0.100.1) (2019-05-13) diff --git a/SPEC/NAME.md b/SPEC/NAME.md index d4e5905a..e9a13eee 100644 --- a/SPEC/NAME.md +++ b/SPEC/NAME.md @@ -21,7 +21,7 @@ resolve: // bool - Resolve given path before publishing. Default: true lifetime: // string - Time duration of the record. Default: 24h ttl: // string - Time duration this record should be cached - key: // string - Name of the key to be used or Peer ID. Default: 'self' + key: // string - Name of the key to be used. Default: 'self' } ``` diff --git a/package.json b/package.json index c4d1bff0..6fd4764b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "interface-ipfs-core", - "version": "0.100.1", + "version": "0.101.0", "description": "A test suite and interface you can use to implement a IPFS core interface.", "leadMaintainer": "Alan Shaw ", "main": "src/index.js", diff --git a/src/config/set.js b/src/config/set.js index 6570413a..50b1be49 100644 --- a/src/config/set.js +++ b/src/config/set.js @@ -59,6 +59,19 @@ module.exports = (createCommon, options) => { }) }) + it('should set a number', (done) => { + const key = 'Discovery.MDNS.Interval' + const val = 11 + ipfs.config.set(key, val, function (err) { + expect(err).to.not.exist() + ipfs.config.get(key, function (err, result) { + expect(err).to.not.exist() + expect(result).to.equal(val) + done() + }) + }) + }) + it('should set a JSON object', (done) => { const key = 'API.HTTPHeaders.Access-Control-Allow-Origin' const val = ['http://example.io']