Comparing version 1.4.0 to 1.4.1
{ | ||
"name": "multiblob", | ||
"description": "", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"homepage": "https://github.com/dominictarr/multiblob", | ||
@@ -6,0 +6,0 @@ "repository": { |
@@ -44,2 +44,11 @@ | ||
tape('hasher exposes size', function (t) { | ||
var hasher = util.createHash() | ||
pull(pull.values(random1), hasher, pull.drain()) | ||
t.equal(hasher.digest, hash1) | ||
t.equal(hasher.size, 1024*100) | ||
t.end() | ||
}) | ||
tape('size of missing hash is null', function (t) { | ||
@@ -46,0 +55,0 @@ blobs.size(hasher([]), function (_, size) { |
@@ -20,3 +20,3 @@ var Blake2s = require('blake2s') | ||
data = isBuffer(data) ? data : new Buffer(data) | ||
hasher.byteLength += data.length | ||
hasher.size += data.length | ||
hash.update(data) | ||
@@ -29,3 +29,3 @@ }, function () { | ||
hasher.len = 0 | ||
hasher.size = 0 | ||
@@ -32,0 +32,0 @@ return hasher |
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
13792
366