Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
fix: use ipfs-utils
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomrdias committed May 16, 2019
1 parent 6d76cb5 commit 6e262d2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"ncp": "^2.0.0",
"qs": "^6.5.2",
"rimraf": "^2.6.2",
"interface-ipfs-core": "ipfs/interface-js-ipfs-core#feat/support-file-dom-api",
"interface-ipfs-core": "~0.102.0",
"sinon": "^7.3.1",
"stream-to-promise": "^2.2.0"
},
Expand Down Expand Up @@ -112,7 +112,7 @@
"ipfs-bitswap": "~0.23.0",
"ipfs-block": "~0.8.0",
"ipfs-block-service": "~0.15.1",
"ipfs-http-client": "ipfs/js-ipfs-http-client#feat/support-file-dom-api",
"ipfs-http-client": "~31.1.0",
"ipfs-http-response": "~0.2.1",
"ipfs-mfs": "~0.10.2",
"ipfs-multipart": "~0.1.0",
Expand Down
4 changes: 2 additions & 2 deletions src/core/components/files-regular/add-pull-stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ const waterfall = require('async/waterfall')
const isStream = require('is-stream')
const { isSource } = require('is-pull-stream')
const { parseChunkerString } = require('./utils')
const streamFromFileReader = require('js-ipfs-utils/src/streams/stream-from-filereader')
const { supportsFileReader } = require('js-ipfs-utils/src/supports')
const streamFromFileReader = require('ipfs-utils/src/streams/stream-from-filereader')
const { supportsFileReader } = require('ipfs-utils/src/supports')

const WRAPPER = 'wrapper/'

Expand Down
2 changes: 1 addition & 1 deletion src/core/components/files-regular/add.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const promisify = require('promisify-es6')
const pull = require('pull-stream')
const sort = require('pull-sort')
const isSource = require('is-pull-stream').isSource
const validateAddInput = require('js-ipfs-utils/src/files/add-input-validation')
const validateAddInput = require('ipfs-utils/src/files/add-input-validation')

module.exports = function (self) {
const add = promisify((data, options, callback) => {
Expand Down

0 comments on commit 6e262d2

Please sign in to comment.