Comparing version 1.3.0 to 1.4.0
{ | ||
"name": "multiblob", | ||
"description": "", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"homepage": "https://github.com/dominictarr/multiblob", | ||
@@ -6,0 +6,0 @@ "repository": { |
@@ -5,2 +5,4 @@ var Blake2s = require('blake2s') | ||
var isBuffer = Buffer.isBuffer | ||
exports.toPath = function (dir, hash) { | ||
@@ -18,2 +20,4 @@ var i = hash.indexOf('.') | ||
var hasher = pull.through(function (data) { | ||
data = isBuffer(data) ? data : new Buffer(data) | ||
hasher.byteLength += data.length | ||
hash.update(data) | ||
@@ -26,2 +30,4 @@ }, function () { | ||
hasher.len = 0 | ||
return hasher | ||
@@ -28,0 +34,0 @@ } |
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
13590
359