ipfs-unixfs-importer
Advanced tools
Comparing version 15.1.0 to 15.1.1
{ | ||
"name": "ipfs-unixfs-importer", | ||
"version": "15.1.0", | ||
"version": "15.1.1", | ||
"description": "JavaScript implementation of the UnixFs importer used by IPFS", | ||
@@ -167,3 +167,3 @@ "license": "Apache-2.0 OR MIT", | ||
"interface-blockstore": "^5.0.0", | ||
"interface-store": "^4.0.0", | ||
"interface-store": "^5.0.1", | ||
"ipfs-unixfs": "^11.0.0", | ||
@@ -170,0 +170,0 @@ "it-all": "^2.0.0", |
@@ -55,2 +55,3 @@ # ipfs-unixfs-importer <!-- omit in toc --> | ||
import { MemoryBlockstore } from 'blockstore-core/memory' | ||
import * as fs from 'node:fs' | ||
@@ -60,12 +61,12 @@ // Where the blocks will be stored | ||
// Import path /tmp/foo/bar | ||
// Import path /tmp/foo/ | ||
const source = [{ | ||
path: '/tmp/foo/bar', | ||
content: fs.createReadStream(file) | ||
content: fs.createReadStream('/tmp/foo/bar') | ||
}, { | ||
path: '/tmp/foo/quxx', | ||
content: fs.createReadStream(file2) | ||
content: fs.createReadStream('/tmp/foo/quux') | ||
}] | ||
for await (const entry of importer(source, blockstore, options)) { | ||
for await (const entry of importer(source, blockstore)) { | ||
console.info(entry) | ||
@@ -72,0 +73,0 @@ } |
269200
170
+ Addedinterface-store@5.1.8(transitive)
- Removedinterface-store@4.1.0(transitive)
Updatedinterface-store@^5.0.1