This repository was archived by the owner on Feb 12, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 109
109
"ipfs-unixfs-engine" : " ~0.22.0" ,
110
110
"ipld-resolver" : " ~0.13.0" ,
111
111
"is-ipfs" : " ^0.3.0" ,
112
- "isstream " : " ^0 .1.2 " ,
112
+ "is-stream " : " ^1 .1.0 " ,
113
113
"joi" : " ^10.6.0" ,
114
114
"libp2p" : " ^0.11.0" ,
115
115
"libp2p-floodsub" : " ~0.11.0" ,
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ const pushable = require('pull-pushable')
11
11
const toStream = require ( 'pull-stream-to-stream' )
12
12
const toPull = require ( 'stream-to-pull-stream' )
13
13
const waterfall = require ( 'async/waterfall' )
14
- const isStream = require ( 'isstream ' )
14
+ const isStream = require ( 'is-stream ' )
15
15
const Duplex = require ( 'stream' ) . Duplex
16
16
17
17
module . exports = function files ( self ) {
@@ -144,7 +144,7 @@ function normalizeContent (content) {
144
144
}
145
145
146
146
// Readable stream input
147
- if ( isStream . isReadable ( data ) ) {
147
+ if ( isStream . readable ( data ) ) {
148
148
data = {
149
149
path : '' ,
150
150
content : toPull . source ( data )
@@ -156,7 +156,7 @@ function normalizeContent (content) {
156
156
data . content = pull . values ( [ data . content ] )
157
157
}
158
158
159
- if ( isStream . isReadable ( data . content ) ) {
159
+ if ( isStream . readable ( data . content ) ) {
160
160
data . content = toPull . source ( data . content )
161
161
}
162
162
}
Original file line number Diff line number Diff line change 4
4
const expect = require ( 'chai' ) . expect
5
5
const runOnAndOff = require ( '../utils/on-and-off' )
6
6
7
- describe ( 'general cli options' , ( ) => runOnAndOff ( ( thing ) => {
7
+ describe ( 'general cli options' , ( ) => runOnAndOff . off ( ( thing ) => {
8
8
it ( 'should handle --quiet flag' , ( ) => {
9
9
return thing . ipfs ( 'help --quiet' ) . then ( ( out ) => {
10
10
expect ( out ) . to . be . empty ( )
You can’t perform that action at this time.
0 commit comments