corestore 7.12.4 → 7.12.6
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/README.md +2 -1
- package/index.js +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -46,7 +46,8 @@ Options:
|
|
|
46
46
|
{
|
|
47
47
|
primaryKey: null, // The primary key to use as the master key for key derivation.
|
|
48
48
|
writable: true,
|
|
49
|
-
treeCache: { maxSize: 8192 } // Options to use when creating hypercore's default storage
|
|
49
|
+
treeCache: { maxSize: 8192 }, // Options to use when creating hypercore's default storage
|
|
50
|
+
active: true // Whether to attach downloading cores to existing or future replication streams
|
|
50
51
|
}
|
|
51
52
|
```
|
|
52
53
|
|
package/index.js
CHANGED
|
@@ -667,7 +667,7 @@ class Corestore extends ReadyResource {
|
|
|
667
667
|
result.manifest = opts.manifest
|
|
668
668
|
} else if (result.keyPair && !result.discoveryKey) {
|
|
669
669
|
result.manifest = {
|
|
670
|
-
version: this.manifestVersion,
|
|
670
|
+
version: opts.manifestVersion || this.manifestVersion,
|
|
671
671
|
signers: [{ publicKey: result.keyPair.publicKey }]
|
|
672
672
|
}
|
|
673
673
|
}
|
|
@@ -701,6 +701,7 @@ class Corestore extends ReadyResource {
|
|
|
701
701
|
notDownloadingLinger: opts.notDownloadingLinger,
|
|
702
702
|
allowFork: opts.allowFork !== false,
|
|
703
703
|
allowPush: !!opts.allowPush,
|
|
704
|
+
alwaysLatestBlock: !!opts.allowLatestBlock,
|
|
704
705
|
inflightRange: opts.inflightRange,
|
|
705
706
|
compat: false, // no compat for now :)
|
|
706
707
|
force: opts.force,
|