From 6e262d21ea841a6d640fb8a82add59a9527ede06 Mon Sep 17 00:00:00 2001 From: Hugo Dias Date: Fri, 17 May 2019 01:27:36 +0200 Subject: [PATCH] fix: use ipfs-utils --- package.json | 4 ++-- src/core/components/files-regular/add-pull-stream.js | 4 ++-- src/core/components/files-regular/add.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index b70aee6995..3798179526 100644 --- a/package.json +++ b/package.json @@ -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" }, @@ -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", diff --git a/src/core/components/files-regular/add-pull-stream.js b/src/core/components/files-regular/add-pull-stream.js index 1cc1190e70..9937b08852 100644 --- a/src/core/components/files-regular/add-pull-stream.js +++ b/src/core/components/files-regular/add-pull-stream.js @@ -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/' diff --git a/src/core/components/files-regular/add.js b/src/core/components/files-regular/add.js index 69407fd15e..d254159b7f 100644 --- a/src/core/components/files-regular/add.js +++ b/src/core/components/files-regular/add.js @@ -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) => {