Comparing version 1.0.1 to 1.0.2
@@ -52,3 +52,3 @@ 'use strict'; | ||
resolve(node); | ||
}); | ||
}).catch(reject); | ||
}); | ||
@@ -185,3 +185,2 @@ } | ||
return Lazy(log.items) | ||
.reverse() | ||
.filter((f) => !Log.isReferencedInChain(log, f)) | ||
@@ -192,3 +191,3 @@ .toArray(); | ||
static isReferencedInChain(log, item) { | ||
return Lazy(log.items).reverse().find((e) => e.hasChild(item)) !== undefined; | ||
return Lazy(log.items).find((e) => e.hasChild(item)) !== undefined; | ||
} | ||
@@ -195,0 +194,0 @@ |
{ | ||
"name": "ipfs-log", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Append-only log for IPFS", | ||
@@ -5,0 +5,0 @@ "main": "lib/log.js", |
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
48706
12
1189