ipfs-unixfs-importer 10.0.1 → 10.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/index.d.ts +2 -6
- package/dist/src/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.js +1 -0
package/dist/src/index.d.ts
CHANGED
|
@@ -19,13 +19,9 @@
|
|
|
19
19
|
* @param {AsyncIterable<ImportCandidate> | Iterable<ImportCandidate> | ImportCandidate} source
|
|
20
20
|
* @param {Blockstore} blockstore
|
|
21
21
|
* @param {UserImporterOptions} options
|
|
22
|
+
* @returns {AsyncGenerator<ImportResult, void, unknown>}
|
|
22
23
|
*/
|
|
23
|
-
export function importer(source: AsyncIterable<ImportCandidate> | Iterable<ImportCandidate> | ImportCandidate, blockstore: Blockstore, options?: UserImporterOptions): AsyncGenerator<
|
|
24
|
-
cid: import("multiformats").CID;
|
|
25
|
-
path: string | undefined;
|
|
26
|
-
unixfs: import("ipfs-unixfs/dist/src").UnixFS | undefined;
|
|
27
|
-
size: number;
|
|
28
|
-
}, void, unknown>;
|
|
24
|
+
export function importer(source: AsyncIterable<ImportCandidate> | Iterable<ImportCandidate> | ImportCandidate, blockstore: Blockstore, options?: UserImporterOptions): AsyncGenerator<ImportResult, void, unknown>;
|
|
29
25
|
export type Blockstore = import('interface-blockstore').Blockstore;
|
|
30
26
|
export type ImportCandidate = import('./types').ImportCandidate;
|
|
31
27
|
export type UserImporterOptions = import('./types').UserImporterOptions;
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.js"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;GAgBG;AAEH
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.js"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;GAgBG;AAEH;;;;;GAKG;AACH,iCALW,cAAc,eAAe,CAAC,GAAG,SAAS,eAAe,CAAC,GAAG,eAAe,cAC5E,UAAU,YACV,mBAAmB,GACjB,eAAe,YAAY,EAAE,IAAI,EAAE,OAAO,CAAC,CAwCvD;yBA7DY,OAAO,sBAAsB,EAAE,UAAU;8BACzC,OAAO,SAAS,EAAE,eAAe;kCACjC,OAAO,SAAS,EAAE,mBAAmB;8BACrC,OAAO,SAAS,EAAE,eAAe;wBACjC,OAAO,SAAS,EAAE,SAAS;mBAC3B,OAAO,SAAS,EAAE,IAAI;2BACtB,OAAO,SAAS,EAAE,YAAY;sBAE9B,OAAO,SAAS,EAAE,OAAO;yBACzB,OAAO,SAAS,EAAE,UAAU;0BAC5B,OAAO,SAAS,EAAE,WAAW;6BAC7B,OAAO,SAAS,EAAE,cAAc;6BAChC,OAAO,SAAS,EAAE,cAAc;sBAChC,OAAO,SAAS,EAAE,OAAO;8BACzB,OAAO,SAAS,EAAE,eAAe"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ipfs-unixfs-importer",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.2",
|
|
4
4
|
"description": "JavaScript implementation of the UnixFs importer used by IPFS",
|
|
5
5
|
"license": "Apache-2.0 OR MIT",
|
|
6
6
|
"homepage": "https://github.com/ipfs/js-ipfs-unixfs/tree/master/packages/ipfs-unixfs-importer#readme",
|
package/src/index.js
CHANGED
|
@@ -25,6 +25,7 @@ import treeBuilderFn from './tree-builder.js'
|
|
|
25
25
|
* @param {AsyncIterable<ImportCandidate> | Iterable<ImportCandidate> | ImportCandidate} source
|
|
26
26
|
* @param {Blockstore} blockstore
|
|
27
27
|
* @param {UserImporterOptions} options
|
|
28
|
+
* @returns {AsyncGenerator<ImportResult, void, unknown>}
|
|
28
29
|
*/
|
|
29
30
|
export async function * importer (source, blockstore, options = {}) {
|
|
30
31
|
const opts = defaultOptions(options)
|