Skip to content

Commit 278aea4

Browse files
authored
fix: add extended to default exporter options (#439)
Otherwise we can't pass true or undefined.
1 parent 9509fb7 commit 278aea4

File tree

1 file changed

+13
-0
lines changed
  • packages/ipfs-unixfs-exporter/src

1 file changed

+13
-0
lines changed

packages/ipfs-unixfs-exporter/src/index.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,19 @@ export interface ExporterOptions extends ProgressOptions<ExporterProgressEvents>
134134
* (default: undefined)
135135
*/
136136
blockReadConcurrency?: number
137+
138+
/**
139+
* When directory contents are listed, by default the root node of each entry
140+
* is fetched to decode the UnixFS metadata and know if the entry is a file or
141+
* a directory. This can result in fetching extra data which may not be
142+
* desirable, depending on your application.
143+
*
144+
* Pass false here to only return the CID and the name of the entry and not
145+
* any extended metadata.
146+
*
147+
* @default true
148+
*/
149+
extended?: boolean
137150
}
138151

139152
export interface BasicExporterOptions extends ExporterOptions {

0 commit comments

Comments
 (0)