New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ipfs-unixfs-importer

Package Overview
Dependencies
Maintainers
3
Versions
136
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 15.1.0 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 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc