Comparing version 1.6.0-beta.5 to 1.6.0-beta.6
{ | ||
"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) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
393488
11470