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

Commit

Permalink
fix: #572
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddias committed Jul 26, 2017
1 parent f0627c3 commit 3354901
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"ipfs-unixfs": "~0.1.12",
"ipld-dag-pb": "~0.11.0",
"is-ipfs": "^0.3.0",
"isstream": "^0.1.2",
"is-stream": "^1.1.0",
"lru-cache": "^4.1.1",
"multiaddr": "^2.3.0",
"multihashes": "~0.4.5",
Expand Down Expand Up @@ -134,4 +134,4 @@
"url": "https://github.com/ipfs/js-ipfs-api/issues"
},
"homepage": "https://github.com/ipfs/js-ipfs-api"
}
}
4 changes: 2 additions & 2 deletions src/files/add.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
'use strict'

const isStream = require('isstream')
const isStream = require('is-stream')
const promisify = require('promisify-es6')
const DAGNodeStream = require('../utils/dagnode-stream')

module.exports = (send) => {
return promisify((files, callback) => {
const ok = Buffer.isBuffer(files) ||
isStream.isReadable(files) ||
isStream.readable(files) ||
Array.isArray(files)

if (!ok) {
Expand Down

0 comments on commit 3354901

Please sign in to comment.