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

Commit

Permalink
chore: use it-last (#28)
Browse files Browse the repository at this point in the history
* chore: ue it-last
* fix: restore cids
  • Loading branch information
Alan Shaw authored Feb 4, 2020
1 parent d75213b commit ccb6a6b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@
"sinon": "^8.0.4"
},
"dependencies": {
"async-iterator-last": "^1.0.0",
"cids": "^0.7.1",
"err-code": "^2.0.0",
"hamt-sharding": "^1.0.0",
"ipfs-unixfs": "^0.3.0",
"it-last": "^1.0.1",
"multihashing-async": "^0.8.0"
},
"contributors": [
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const errCode = require('err-code')
const CID = require('cids')
const resolve = require('./resolvers')
const last = require('async-iterator-last')
const last = require('it-last')

const toPathComponents = (path = '') => {
// split on / unless escaped with \
Expand Down
2 changes: 1 addition & 1 deletion test/exporter-sharded.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const UnixFS = require('ipfs-unixfs')
const mh = require('multihashing-async').multihash
const mc = require('multicodec')
const all = require('async-iterator-all')
const last = require('async-iterator-last')
const last = require('it-last')
const randomBytes = require('async-iterator-buffer-stream')
const exporter = require('../src')
const importer = require('ipfs-unixfs-importer')
Expand Down
2 changes: 1 addition & 1 deletion test/exporter-subtree.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const inMemory = require('ipld-in-memory')
const importer = require('ipfs-unixfs-importer')
const mc = require('multicodec')
const all = require('async-iterator-all')
const last = require('async-iterator-last')
const last = require('it-last')
const randomBytes = require('async-iterator-buffer-stream')

const ONE_MEG = Math.pow(1024, 2)
Expand Down
2 changes: 1 addition & 1 deletion test/exporter.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const mc = require('multicodec')
const exporter = require('../src')
const importer = require('ipfs-unixfs-importer')
const all = require('async-iterator-all')
const last = require('async-iterator-last')
const last = require('it-last')
const first = require('async-iterator-first')
const randomBytes = require('async-iterator-buffer-stream')

Expand Down

0 comments on commit ccb6a6b

Please sign in to comment.