hypercore 10.33.2 → 10.33.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -927,6 +927,7 @@ module.exports = class Hypercore extends EventEmitter {
|
|
|
927
927
|
const activeRequests = (opts && opts.activeRequests) || this.activeRequests
|
|
928
928
|
|
|
929
929
|
const req = this.replicator.addBlock(activeRequests, index)
|
|
930
|
+
req.snapshot = index < this.length
|
|
930
931
|
|
|
931
932
|
const timeout = opts && opts.timeout !== undefined ? opts.timeout : this.timeout
|
|
932
933
|
if (timeout) req.context.setTimeout(req, timeout)
|