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

Commit 78d75cc

Browse files
authored
chore: update deps (#33)
1 parent b78fe9c commit 78d75cc

9 files changed

+15
-15
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
},
3838
"homepage": "https://github.com./ipfs/js-ipfs-unixfs-importer#readme",
3939
"devDependencies": {
40-
"aegir": "^18.0.2",
40+
"aegir": "^19.0.3",
4141
"async-iterator-buffer-stream": "^1.0.0",
4242
"async-iterator-last": "^1.0.0",
4343
"chai": "^4.2.0",

src/dag-builder/file/trickle.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
const batch = require('async-iterator-batch')
44

5-
module.exports = async function * trickleReduceToRoot (source, reduce, options) {
5+
module.exports = function * trickleReduceToRoot (source, reduce, options) {
66
yield trickleStream(source, reduce, options)
77
}
88

src/dag-builder/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ async function * dagBuilder (source, ipld, options) {
2424
// wrap in iterator if it is array-like or not an iterator
2525
if ((!source[Symbol.asyncIterator] && !source[Symbol.iterator]) || source.length !== undefined) {
2626
source = {
27-
[Symbol.asyncIterator]: async function * () {
27+
[Symbol.iterator]: function * () {
2828
yield entry.content
2929
}
3030
}

src/dir-sharded.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class DirSharded extends Dir {
4747
await this._bucket.put(name, value)
4848
}
4949

50-
async get (name) {
50+
get (name) {
5151
return this._bucket.get(name)
5252
}
5353

src/utils/persist.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
const mh = require('multihashes')
44
const mc = require('multicodec')
55

6-
const persist = async (node, ipld, options) => {
6+
const persist = (node, ipld, options) => {
77
if (!options.codec && node.length) {
88
options.cidVersion = 1
99
options.codec = 'raw'

test/builder-dir-sharding.spec.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ describe('builder: directory sharding', () => {
129129

130130
it('imports a big dir', async () => {
131131
const source = {
132-
[Symbol.asyncIterator]: async function * () {
132+
[Symbol.iterator]: function * () {
133133
for (let i = 0; i < maxDirs; i++) {
134134
yield {
135135
path: 'big/' + i.toString().padStart(4, '0'),
@@ -148,7 +148,7 @@ describe('builder: directory sharding', () => {
148148

149149
it('exports a big dir', async () => {
150150
const source = {
151-
[Symbol.asyncIterator]: async function * () {
151+
[Symbol.iterator]: function * () {
152152
for (let i = 0; i < maxDirs; i++) {
153153
yield {
154154
path: 'big/' + i.toString().padStart(4, '0'),
@@ -180,7 +180,7 @@ describe('builder: directory sharding', () => {
180180

181181
before(async () => {
182182
const source = {
183-
[Symbol.asyncIterator]: async function * () {
183+
[Symbol.iterator]: function * () {
184184
let pending = maxDirs
185185
let pendingDepth = maxDepth
186186
let i = 0

test/helpers/finite-pseudorandom-byte-stream.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
const REPEATABLE_CHUNK_SIZE = 300000
44

5-
module.exports = async function * (maxSize, seed) {
5+
module.exports = function * (maxSize, seed) {
66
const chunks = Math.ceil(maxSize / REPEATABLE_CHUNK_SIZE)
77
let emitted = 0
88
const buf = Buffer.alloc(REPEATABLE_CHUNK_SIZE)

test/helpers/random-byte-stream.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict'
22

3-
module.exports = async function * randomByteStream (seed) {
3+
module.exports = function * randomByteStream (seed) {
44
while (true) {
55
const r = Math.floor(random(seed) * 256)
66
seed = r

test/importer.spec.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ strategies.forEach((strategy) => {
312312
await all(importer([{
313313
path: '200Bytes.txt',
314314
content: {
315-
[Symbol.asyncIterator]: async function * () {
315+
[Symbol.iterator]: function * () {
316316
yield 7
317317
}
318318
}
@@ -641,25 +641,25 @@ strategies.forEach((strategy) => {
641641
}
642642
})
643643

644-
it('imports file with raw leaf nodes when specified', async () => {
644+
it('imports file with raw leaf nodes when specified', () => {
645645
return checkLeafNodeTypes(ipld, {
646646
leafType: 'raw'
647647
}, 'raw')
648648
})
649649

650-
it('imports file with file leaf nodes when specified', async () => {
650+
it('imports file with file leaf nodes when specified', () => {
651651
return checkLeafNodeTypes(ipld, {
652652
leafType: 'file'
653653
}, 'file')
654654
})
655655

656-
it('reduces file to single node when specified', async () => {
656+
it('reduces file to single node when specified', () => {
657657
return checkNodeLinks(ipld, {
658658
reduceSingleLeafToSelf: true
659659
}, 0)
660660
})
661661

662-
it('does not reduce file to single node when overidden by options', async () => {
662+
it('does not reduce file to single node when overidden by options', () => {
663663
return checkNodeLinks(ipld, {
664664
reduceSingleLeafToSelf: false
665665
}, 1)

0 commit comments

Comments
 (0)