ipfs-unixfs-importer
Advanced tools
Comparing version 10.0.1 to 10.0.2
@@ -22,9 +22,5 @@ /** | ||
* @param {UserImporterOptions} options | ||
* @returns {AsyncGenerator<ImportResult, void, unknown>} | ||
*/ | ||
export function importer(source: AsyncIterable<ImportCandidate> | Iterable<ImportCandidate> | ImportCandidate, blockstore: Blockstore, options?: UserImporterOptions): AsyncGenerator<{ | ||
cid: import("multiformats").CID; | ||
path: string | undefined; | ||
unixfs: import("ipfs-unixfs/dist/src").UnixFS | undefined; | ||
size: number; | ||
}, void, unknown>; | ||
export function importer(source: AsyncIterable<ImportCandidate> | Iterable<ImportCandidate> | ImportCandidate, blockstore: Blockstore, options?: UserImporterOptions): AsyncGenerator<ImportResult, void, unknown>; | ||
export type Blockstore = import('interface-blockstore').Blockstore; | ||
@@ -31,0 +27,0 @@ export type ImportCandidate = import('./types').ImportCandidate; |
{ | ||
"name": "ipfs-unixfs-importer", | ||
"version": "10.0.1", | ||
"version": "10.0.2", | ||
"description": "JavaScript implementation of the UnixFs importer used by IPFS", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0 OR MIT", |
@@ -28,2 +28,3 @@ import parallelBatch from 'it-parallel-batch' | ||
* @param {UserImporterOptions} options | ||
* @returns {AsyncGenerator<ImportResult, void, unknown>} | ||
*/ | ||
@@ -30,0 +31,0 @@ export async function * importer (source, blockstore, options = {}) { |
Sorry, the diff of this file is not supported yet
229110
2479