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

Commit f7fb043

Browse files
greenkeeper[bot]Alan Shaw
authored and
Alan Shaw
committed
chore: update aegir to the latest version 🚀 (#498)
* chore(package): update aegir to version 20.0.0 * chore: appease linter License: MIT Signed-off-by: Alan Shaw <[email protected]>
1 parent 525d333 commit f7fb043

File tree

5 files changed

+7
-9
lines changed

5 files changed

+7
-9
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"through2": "^3.0.0"
6767
},
6868
"devDependencies": {
69-
"aegir": "^19.0.3"
69+
"aegir": "^20.0.0"
7070
},
7171
"contributors": [
7272
"Alan Shaw <[email protected]>",

src/files-mfs/ls-readable-stream.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ module.exports = (createCommon, options) => {
5454
expect(err).to.not.exist()
5555

5656
const stream = ipfs.files.lsReadableStream(testDir)
57-
58-
let entries = []
57+
const entries = []
5958

6059
stream.on('data', entry => entries.push(entry))
6160

@@ -79,8 +78,7 @@ module.exports = (createCommon, options) => {
7978
expect(err).to.not.exist()
8079

8180
const stream = ipfs.files.lsReadableStream(testDir, { long: true })
82-
83-
let entries = []
81+
const entries = []
8482

8583
stream.on('data', entry => entries.push(entry))
8684

src/files-regular/get-readable-stream.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ module.exports = (createCommon, options) => {
3737

3838
it('should return a Readable Stream of Readable Streams', (done) => {
3939
const stream = ipfs.getReadableStream(fixtures.smallFile.cid)
40+
const files = []
4041

41-
let files = []
4242
stream.pipe(through.obj((file, enc, next) => {
4343
file.content.pipe(concat((content) => {
4444
files.push({ path: file.path, content: content })

src/miscellaneous/resolve.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ module.exports = (createCommon, options) => {
3535
it('should resolve an IPFS hash', async () => {
3636
const content = loadFixture('test/fixtures/testfile.txt', 'interface-ipfs-core')
3737

38-
const [ { hash } ] = await ipfs.add(content)
38+
const [{ hash }] = await ipfs.add(content)
3939
const path = await ipfs.resolve(`/ipfs/${hash}`)
4040
expect(path).to.equal(`/ipfs/${hash}`)
4141
})
4242

4343
it('should resolve an IPFS hash and return a base64url encoded CID in path', async () => {
44-
const [ { hash } ] = await ipfs.add(Buffer.from('base64url encoded'))
44+
const [{ hash }] = await ipfs.add(Buffer.from('base64url encoded'))
4545
const path = await ipfs.resolve(`/ipfs/${hash}`, { cidBase: 'base64url' })
4646
const [,, cid] = path.split('/')
4747

src/object/get.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ module.exports = (createCommon, options) => {
321321

322322
it('should supply unaltered data', () => {
323323
// has to be big enough to span several DAGNodes
324-
let data = crypto.randomBytes(1024 * 3000)
324+
const data = crypto.randomBytes(1024 * 3000)
325325

326326
return ipfs.add({
327327
path: '',

0 commit comments

Comments
 (0)