hyperdrive
Advanced tools
Comparing version 3.2.0 to 3.2.1
@@ -315,2 +315,3 @@ var constants = require('constants') | ||
var size = 0 | ||
var stats = opts.stats | ||
var feed = this.core.add({filename: opts.filename && path.resolve(this.directory, opts.filename)}) | ||
@@ -352,2 +353,3 @@ var stream = pumpify(rabin(), bulk(write, end)) | ||
size += buffers[i].length | ||
if (stats) stats.bytesRead += buffers[i].length | ||
self.stats.bytesRead += buffers[i].length | ||
@@ -385,2 +387,3 @@ } | ||
var opts = {filename: filename, stats: stats} | ||
var ws = self.append({ | ||
@@ -391,3 +394,3 @@ name: name, | ||
link: null | ||
}, {filename: filename}, cb) | ||
}, opts, cb) | ||
@@ -394,0 +397,0 @@ stats.bytesTotal = st.size |
{ | ||
"name": "hyperdrive", | ||
"version": "3.2.0", | ||
"version": "3.2.1", | ||
"description": "A file sharing network based on rabin file chunking and append only feeds of data verified by merkle trees.", | ||
@@ -5,0 +5,0 @@ "main": "index.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
56585
714