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

Commit a28a475

Browse files
committed
chore: udpate deps
1 parent f79355f commit a28a475

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

package.json

Lines changed: 2 additions & 2 deletions
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": "^19.0.3",
40+
"aegir": "^20.0.0",
4141
"async-iterator-buffer-stream": "^1.0.0",
4242
"async-iterator-last": "^1.0.0",
4343
"chai": "^4.2.0",
@@ -57,7 +57,7 @@
5757
"async-iterator-first": "^1.0.0",
5858
"bl": "^3.0.0",
5959
"deep-extend": "~0.6.0",
60-
"err-code": "^1.1.2",
60+
"err-code": "^2.0.0",
6161
"hamt-sharding": "~0.0.2",
6262
"ipfs-unixfs": "~0.1.16",
6363
"ipld-dag-pb": "^0.18.0",

src/dag-builder/dir.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const dirBuilder = async (item, ipld, options) => {
1010
const unixfs = new UnixFS('directory')
1111
const node = new DAGNode(unixfs.marshal(), [])
1212
const cid = await persist(node, ipld, options)
13-
let path = item.path
13+
const path = item.path
1414

1515
return {
1616
cid,

src/dag-builder/file/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ async function * buildFile (source, ipld, options) {
2525
let node
2626
let unixfs
2727

28-
let opts = {
28+
const opts = {
2929
...options
3030
}
3131

test/chunker-fixed-size.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ describe('chunker: fixed size', function () {
6363

6464
it('256 KiB chunks of non scalar filesize', async () => {
6565
const KiB256 = 262144
66-
let file = Buffer.concat([rawFile, Buffer.from('hello')])
66+
const file = Buffer.concat([rawFile, Buffer.from('hello')])
6767

6868
const chunks = await all(chunker([file], {
6969
maxChunkSize: KiB256

test/chunker-rabin.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ describe('chunker: rabin', function () {
6868

6969
it('256 KiB avg chunks of non scalar filesize', async () => {
7070
const KiB256 = 262144
71-
let file = Buffer.concat([rawFile, Buffer.from('hello')])
71+
const file = Buffer.concat([rawFile, Buffer.from('hello')])
7272
const opts = {
7373
...defaultOptions,
7474
minChunkSize: KiB256 / 3,
@@ -114,7 +114,7 @@ describe('chunker: rabin', function () {
114114
})
115115

116116
it('uses the min chunk size when max and avg are too small', async () => {
117-
let file = Buffer.concat([rawFile, Buffer.from('hello')])
117+
const file = Buffer.concat([rawFile, Buffer.from('hello')])
118118
const opts = {
119119
...defaultOptions,
120120
minChunkSize: 100,

0 commit comments

Comments
 (0)