You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

ipfs-unixfs-importer

Package Overview
Dependencies
Maintainers
3
Versions
140
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ipfs-unixfs-importer - npm Package Compare versions

Comparing version

to
15.1.1

4

package.json
{
"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 @@ }