This repository was archived by the owner on Mar 10, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ module.exports = configure(({ ky }) => {
17
17
18
18
const searchParams = new URLSearchParams ( options . searchParams )
19
19
searchParams . set ( 'arg' , CID . isCID ( path ) ? `/ipfs/${ path } ` : path )
20
- searchParams . set ( 'stream' , true )
20
+ searchParams . set ( 'stream' , options . stream == null ? true : options . stream )
21
21
if ( options . cidBase ) searchParams . set ( 'cid-base' , options . cidBase )
22
22
searchParams . set ( 'long' , options . long == null ? true : options . long )
23
23
@@ -34,9 +34,9 @@ module.exports = configure(({ ky }) => {
34
34
for ( const entry of result . Entries || [ ] ) {
35
35
yield toCoreInterface ( toCamelWithMetadata ( entry ) )
36
36
}
37
- return
37
+ } else {
38
+ yield toCoreInterface ( toCamelWithMetadata ( result ) )
38
39
}
39
- yield toCoreInterface ( toCamelWithMetadata ( result ) )
40
40
}
41
41
}
42
42
} )
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ module.exports = configure(({ ky }) => {
10
10
11
11
const searchParams = new URLSearchParams ( options . searchParams )
12
12
searchParams . set ( 'arg' , path )
13
- searchParams . set ( 'stream' , true )
13
+ searchParams . set ( 'stream' , options . stream == null ? true : options . stream )
14
14
if ( options . dhtRecordCount != null ) searchParams . set ( 'dht-record-count' , options . dhtRecordCount )
15
15
if ( options . dhtTimeout != null ) searchParams . set ( 'dht-timeout' , options . dhtTimeout )
16
16
if ( options . noCache != null ) searchParams . set ( 'nocache' , options . noCache )
You can’t perform that action at this time.
0 commit comments