Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ipfs-log

Package Overview
Dependencies
Maintainers
1
Versions
113
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ipfs-log - npm Package Compare versions

Comparing version 1.6.0-beta.5 to 1.6.0-beta.6

2

package.json
{
"name": "ipfs-log",
"version": "1.6.0-beta.5",
"version": "1.6.0-beta.6",
"description": "Append-only log for IPFS",

@@ -5,0 +5,0 @@ "main": "src/log.js",

'use strict'
const EventEmitter = require('events').EventEmitter
const unionWith = require('lodash.unionwith')

@@ -25,2 +26,3 @@ const differenceWith = require('lodash.differencewith')

this._heads = []
this.events = new EventEmitter()
}

@@ -64,2 +66,5 @@

// Fetch history
if (nexts.length > 0)
this.events.emit('history', this.options.maxHistory)
return Promise.map(nexts, (f) => {

@@ -94,2 +99,4 @@ let all = this.items.map((a) => a.hash)

this.events.emit('progress', 1)
// If the given hash is in the given log (all) or if we're at maximum depth, return

@@ -96,0 +103,0 @@ if (isReferenced(all, hash) || depth >= amount)

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