ipfs-unixfs-importer 9.0.8 → 9.0.9

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.
@@ -6,5 +6,5 @@ export type BufferImporter = import('../../types').BufferImporter;
6
6
  /**
7
7
  * @type {BufferImporter}
8
8
  */
9
- declare function bufferImporter(file: import("../../types").File, block: import("interface-blockstore/dist/src/types").Blockstore, options: import("../../types").ImporterOptions): AsyncIterable<() => Promise<import("../../types").InProgressImportResult>>;
9
+ declare function bufferImporter(file: import("../../types").File, block: import("interface-blockstore").Blockstore, options: import("../../types").ImporterOptions): AsyncIterable<() => Promise<import("../../types").InProgressImportResult>>;
10
10
  //# sourceMappingURL=buffer-importer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"buffer-importer.d.ts","sourceRoot":"","sources":["../../../../src/dag-builder/file/buffer-importer.js"],"names":[],"mappings":";6BAMa,OAAO,aAAa,EAAE,cAAc;AADjD;;GAEG;AAEH;;GAEG;AACH,+PAoCC"}
1
+ {"version":3,"file":"buffer-importer.d.ts","sourceRoot":"","sources":["../../../../src/dag-builder/file/buffer-importer.js"],"names":[],"mappings":";6BAMa,OAAO,aAAa,EAAE,cAAc;AADjD;;GAEG;AAEH;;GAEG;AACH,gPAoCC"}
@@ -8,5 +8,5 @@ export type FileDAGBuilder = import('../../types').FileDAGBuilder;
8
8
  /**
9
9
  * @type {import('../../types').UnixFSV1DagBuilder<File>}
10
10
  */
11
- declare function fileBuilder(file: import("../../types").File, block: import("interface-blockstore/dist/src/types").Blockstore, options: import("../../types").ImporterOptions): Promise<import("../../types").InProgressImportResult>;
11
+ declare function fileBuilder(file: import("../../types").File, block: import("interface-blockstore").Blockstore, options: import("../../types").ImporterOptions): Promise<import("../../types").InProgressImportResult>;
12
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/dag-builder/file/index.js"],"names":[],"mappings":";yBAca,OAAO,sBAAsB,EAAE,UAAU;mBACzC,OAAO,aAAa,EAAE,IAAI;8BAC1B,OAAO,aAAa,EAAE,eAAe;sBACrC,OAAO,aAAa,EAAE,OAAO;yBAC7B,OAAO,aAAa,EAAE,UAAU;6BAChC,OAAO,aAAa,EAAE,cAAc;AA+KjD;;GAEG;AACH,uOAQC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/dag-builder/file/index.js"],"names":[],"mappings":";yBAca,OAAO,sBAAsB,EAAE,UAAU;mBACzC,OAAO,aAAa,EAAE,IAAI;8BAC1B,OAAO,aAAa,EAAE,eAAe;sBACrC,OAAO,aAAa,EAAE,OAAO;yBAC7B,OAAO,aAAa,EAAE,UAAU;6BAChC,OAAO,aAAa,EAAE,cAAc;AA+KjD;;GAEG;AACH,wNAQC"}
@@ -7,5 +7,5 @@ export type ChunkValidator = import('../types').ChunkValidator;
7
7
  /**
8
8
  * @type {DAGBuilder}
9
9
  */
10
- declare function dagBuilder(source: AsyncIterable<import("../types").ImportCandidate> | Iterable<import("../types").ImportCandidate>, blockstore: import("interface-blockstore/dist/src/types").Blockstore, options: import("../types").ImporterOptions): AsyncIterable<() => Promise<import("../types").InProgressImportResult>>;
10
+ declare function dagBuilder(source: AsyncIterable<import("../types").ImportCandidate> | Iterable<import("../types").ImportCandidate>, blockstore: import("interface-blockstore").Blockstore, options: import("../types").ImporterOptions): AsyncIterable<() => Promise<import("../types").InProgressImportResult>>;
11
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dag-builder/index.js"],"names":[],"mappings":";mBAQa,OAAO,UAAU,EAAE,IAAI;wBACvB,OAAO,UAAU,EAAE,SAAS;yBAC5B,OAAO,UAAU,EAAE,UAAU;sBAC7B,OAAO,UAAU,EAAE,OAAO;6BAC1B,OAAO,UAAU,EAAE,cAAc;AA2C9C;;GAEG;AACH,kUA4DC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dag-builder/index.js"],"names":[],"mappings":";mBAQa,OAAO,UAAU,EAAE,IAAI;wBACvB,OAAO,UAAU,EAAE,SAAS;yBAC5B,OAAO,UAAU,EAAE,UAAU;sBAC7B,OAAO,UAAU,EAAE,OAAO;6BAC1B,OAAO,UAAU,EAAE,cAAc;AA2C9C;;GAEG;AACH,mTA4DC"}
@@ -7,5 +7,5 @@ export type TreeBuilder = (source: AsyncIterable<InProgressImportResult>, blocks
7
7
  /**
8
8
  * @type {TreeBuilder}
9
9
  */
10
- declare function treeBuilder(source: AsyncIterable<import("./types").InProgressImportResult>, block: import("interface-blockstore/dist/src/types").Blockstore, options: import("./types").ImporterOptions): AsyncIterable<import("./types").ImportResult>;
10
+ declare function treeBuilder(source: AsyncIterable<import("./types").InProgressImportResult>, block: import("interface-blockstore").Blockstore, options: import("./types").ImporterOptions): AsyncIterable<import("./types").ImportResult>;
11
11
  //# sourceMappingURL=tree-builder.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tree-builder.d.ts","sourceRoot":"","sources":["../../src/tree-builder.js"],"names":[],"mappings":";2BAMa,OAAO,SAAS,EAAE,YAAY;qCAC9B,OAAO,SAAS,EAAE,sBAAsB;8BACxC,OAAO,SAAS,EAAE,eAAe;yBACjC,OAAO,sBAAsB,EAAE,UAAU;mCAChC,cAAc,sBAAsB,CAAC,cAAc,UAAU,WAAW,eAAe,KAAK,cAAc,YAAY,CAAC;AAqE7I;;GAEG;AACH,0PAiCC"}
1
+ {"version":3,"file":"tree-builder.d.ts","sourceRoot":"","sources":["../../src/tree-builder.js"],"names":[],"mappings":";2BAMa,OAAO,SAAS,EAAE,YAAY;qCAC9B,OAAO,SAAS,EAAE,sBAAsB;8BACxC,OAAO,SAAS,EAAE,eAAe;yBACjC,OAAO,sBAAsB,EAAE,UAAU;mCAChC,cAAc,sBAAsB,CAAC,cAAc,UAAU,WAAW,eAAe,KAAK,cAAc,YAAY,CAAC;AAqE7I;;GAEG;AACH,2OAiCC"}
@@ -3,5 +3,5 @@ export type CID = import('multiformats/cid').CID;
3
3
  /**
4
4
  * @typedef {import('multiformats/cid').CID} CID
5
5
  */
6
- declare function createBlockApi(): import("interface-blockstore/dist/src/types").Blockstore;
6
+ declare function createBlockApi(): import("interface-blockstore").Blockstore;
7
7
  //# sourceMappingURL=block.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"block.d.ts","sourceRoot":"","sources":["../../../test/helpers/block.js"],"names":[],"mappings":";kBAKa,OAAO,kBAAkB,EAAE,GAAG;AAD3C;;GAEG;AAEH,4FAqCC"}
1
+ {"version":3,"file":"block.d.ts","sourceRoot":"","sources":["../../../test/helpers/block.js"],"names":[],"mappings":";kBAKa,OAAO,kBAAkB,EAAE,GAAG;AAD3C;;GAEG;AAEH,6EAqCC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ipfs-unixfs-importer",
3
- "version": "9.0.8",
3
+ "version": "9.0.9",
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",
@@ -148,7 +148,7 @@
148
148
  "clean": "rimraf ./dist",
149
149
  "lint": "aegir ts -p check && aegir lint",
150
150
  "coverage": "nyc -s npm run test -t node && nyc report --reporter=html",
151
- "de-pcheck": "aegir dep-check -i @types/mocha -i nyc -i rimraf -i copy -i util -i crypto-browserify -i events -i readable-stream -i assert",
151
+ "de-pcheck": "aegir dep-check -i @types/mocha -i nyc -i rimraf -i copy -i util -i crypto-browserify -i events -i readable-stream -i assert -i interface-blockstore",
152
152
  "release": "semantic-release"
153
153
  },
154
154
  "dependencies": {
@@ -157,7 +157,7 @@
157
157
  "bl": "^5.0.0",
158
158
  "err-code": "^3.0.1",
159
159
  "hamt-sharding": "^2.0.0",
160
- "interface-blockstore": "^1.0.0",
160
+ "interface-blockstore": "^2.0.3",
161
161
  "ipfs-unixfs": "^6.0.0",
162
162
  "it-all": "^1.0.5",
163
163
  "it-batch": "^1.0.8",
@@ -169,9 +169,9 @@
169
169
  "uint8arrays": "^3.0.0"
170
170
  },
171
171
  "devDependencies": {
172
- "@types/mocha": "^8.2.1",
173
172
  "aegir": "^36.2.3",
174
173
  "assert": "^2.0.0",
174
+ "blockstore-core": "^1.0.5",
175
175
  "copy": "^0.3.2",
176
176
  "crypto-browserify": "^3.12.0",
177
177
  "events": "^3.3.0",
@@ -6,5 +6,5 @@ export type BufferImporter = import('../../types').BufferImporter;
6
6
  /**
7
7
  * @type {BufferImporter}
8
8
  */
9
- declare function bufferImporter(file: import("../../types").File, block: import("interface-blockstore/dist/src/types").Blockstore, options: import("../../types").ImporterOptions): AsyncIterable<() => Promise<import("../../types").InProgressImportResult>>;
9
+ declare function bufferImporter(file: import("../../types").File, block: import("interface-blockstore").Blockstore, options: import("../../types").ImporterOptions): AsyncIterable<() => Promise<import("../../types").InProgressImportResult>>;
10
10
  //# sourceMappingURL=buffer-importer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"buffer-importer.d.ts","sourceRoot":"","sources":["../../../../src/dag-builder/file/buffer-importer.js"],"names":[],"mappings":";6BAMa,OAAO,aAAa,EAAE,cAAc;AADjD;;GAEG;AAEH;;GAEG;AACH,+PAoCC"}
1
+ {"version":3,"file":"buffer-importer.d.ts","sourceRoot":"","sources":["../../../../src/dag-builder/file/buffer-importer.js"],"names":[],"mappings":";6BAMa,OAAO,aAAa,EAAE,cAAc;AADjD;;GAEG;AAEH;;GAEG;AACH,gPAoCC"}
@@ -8,5 +8,5 @@ export type FileDAGBuilder = import('../../types').FileDAGBuilder;
8
8
  /**
9
9
  * @type {import('../../types').UnixFSV1DagBuilder<File>}
10
10
  */
11
- declare function fileBuilder(file: import("../../types").File, block: import("interface-blockstore/dist/src/types").Blockstore, options: import("../../types").ImporterOptions): Promise<import("../../types").InProgressImportResult>;
11
+ declare function fileBuilder(file: import("../../types").File, block: import("interface-blockstore").Blockstore, options: import("../../types").ImporterOptions): Promise<import("../../types").InProgressImportResult>;
12
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/dag-builder/file/index.js"],"names":[],"mappings":";yBAca,OAAO,sBAAsB,EAAE,UAAU;mBACzC,OAAO,aAAa,EAAE,IAAI;8BAC1B,OAAO,aAAa,EAAE,eAAe;sBACrC,OAAO,aAAa,EAAE,OAAO;yBAC7B,OAAO,aAAa,EAAE,UAAU;6BAChC,OAAO,aAAa,EAAE,cAAc;AA+KjD;;GAEG;AACH,uOAQC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/dag-builder/file/index.js"],"names":[],"mappings":";yBAca,OAAO,sBAAsB,EAAE,UAAU;mBACzC,OAAO,aAAa,EAAE,IAAI;8BAC1B,OAAO,aAAa,EAAE,eAAe;sBACrC,OAAO,aAAa,EAAE,OAAO;yBAC7B,OAAO,aAAa,EAAE,UAAU;6BAChC,OAAO,aAAa,EAAE,cAAc;AA+KjD;;GAEG;AACH,wNAQC"}
@@ -7,5 +7,5 @@ export type ChunkValidator = import('../types').ChunkValidator;
7
7
  /**
8
8
  * @type {DAGBuilder}
9
9
  */
10
- declare function dagBuilder(source: AsyncIterable<import("../types").ImportCandidate> | Iterable<import("../types").ImportCandidate>, blockstore: import("interface-blockstore/dist/src/types").Blockstore, options: import("../types").ImporterOptions): AsyncIterable<() => Promise<import("../types").InProgressImportResult>>;
10
+ declare function dagBuilder(source: AsyncIterable<import("../types").ImportCandidate> | Iterable<import("../types").ImportCandidate>, blockstore: import("interface-blockstore").Blockstore, options: import("../types").ImporterOptions): AsyncIterable<() => Promise<import("../types").InProgressImportResult>>;
11
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dag-builder/index.js"],"names":[],"mappings":";mBAQa,OAAO,UAAU,EAAE,IAAI;wBACvB,OAAO,UAAU,EAAE,SAAS;yBAC5B,OAAO,UAAU,EAAE,UAAU;sBAC7B,OAAO,UAAU,EAAE,OAAO;6BAC1B,OAAO,UAAU,EAAE,cAAc;AA2C9C;;GAEG;AACH,kUA4DC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dag-builder/index.js"],"names":[],"mappings":";mBAQa,OAAO,UAAU,EAAE,IAAI;wBACvB,OAAO,UAAU,EAAE,SAAS;yBAC5B,OAAO,UAAU,EAAE,UAAU;sBAC7B,OAAO,UAAU,EAAE,OAAO;6BAC1B,OAAO,UAAU,EAAE,cAAc;AA2C9C;;GAEG;AACH,mTA4DC"}
@@ -7,5 +7,5 @@ export type TreeBuilder = (source: AsyncIterable<InProgressImportResult>, blocks
7
7
  /**
8
8
  * @type {TreeBuilder}
9
9
  */
10
- declare function treeBuilder(source: AsyncIterable<import("./types").InProgressImportResult>, block: import("interface-blockstore/dist/src/types").Blockstore, options: import("./types").ImporterOptions): AsyncIterable<import("./types").ImportResult>;
10
+ declare function treeBuilder(source: AsyncIterable<import("./types").InProgressImportResult>, block: import("interface-blockstore").Blockstore, options: import("./types").ImporterOptions): AsyncIterable<import("./types").ImportResult>;
11
11
  //# sourceMappingURL=tree-builder.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tree-builder.d.ts","sourceRoot":"","sources":["../../src/tree-builder.js"],"names":[],"mappings":";2BAMa,OAAO,SAAS,EAAE,YAAY;qCAC9B,OAAO,SAAS,EAAE,sBAAsB;8BACxC,OAAO,SAAS,EAAE,eAAe;yBACjC,OAAO,sBAAsB,EAAE,UAAU;mCAChC,cAAc,sBAAsB,CAAC,cAAc,UAAU,WAAW,eAAe,KAAK,cAAc,YAAY,CAAC;AAqE7I;;GAEG;AACH,0PAiCC"}
1
+ {"version":3,"file":"tree-builder.d.ts","sourceRoot":"","sources":["../../src/tree-builder.js"],"names":[],"mappings":";2BAMa,OAAO,SAAS,EAAE,YAAY;qCAC9B,OAAO,SAAS,EAAE,sBAAsB;8BACxC,OAAO,SAAS,EAAE,eAAe;yBACjC,OAAO,sBAAsB,EAAE,UAAU;mCAChC,cAAc,sBAAsB,CAAC,cAAc,UAAU,WAAW,eAAe,KAAK,cAAc,YAAY,CAAC;AAqE7I;;GAEG;AACH,2OAiCC"}
@@ -3,5 +3,5 @@ export type CID = import('multiformats/cid').CID;
3
3
  /**
4
4
  * @typedef {import('multiformats/cid').CID} CID
5
5
  */
6
- declare function createBlockApi(): import("interface-blockstore/dist/src/types").Blockstore;
6
+ declare function createBlockApi(): import("interface-blockstore").Blockstore;
7
7
  //# sourceMappingURL=block.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"block.d.ts","sourceRoot":"","sources":["../../../test/helpers/block.js"],"names":[],"mappings":";kBAKa,OAAO,kBAAkB,EAAE,GAAG;AAD3C;;GAEG;AAEH,4FAqCC"}
1
+ {"version":3,"file":"block.d.ts","sourceRoot":"","sources":["../../../test/helpers/block.js"],"names":[],"mappings":";kBAKa,OAAO,kBAAkB,EAAE,GAAG;AAD3C;;GAEG;AAEH,6EAqCC"}