corestore 7.12.3 → 7.12.5
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 +3 -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
|
@@ -65,7 +65,8 @@ class SessionTracker {
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
gc(id) {
|
|
68
|
-
this.map.
|
|
68
|
+
const existing = this.map.get(id)
|
|
69
|
+
if (existing && existing.length === 0) this.map.delete(id)
|
|
69
70
|
}
|
|
70
71
|
|
|
71
72
|
list(id) {
|
|
@@ -700,6 +701,7 @@ class Corestore extends ReadyResource {
|
|
|
700
701
|
notDownloadingLinger: opts.notDownloadingLinger,
|
|
701
702
|
allowFork: opts.allowFork !== false,
|
|
702
703
|
allowPush: !!opts.allowPush,
|
|
704
|
+
alwaysLatestBlock: !!opts.allowLatestBlock,
|
|
703
705
|
inflightRange: opts.inflightRange,
|
|
704
706
|
compat: false, // no compat for now :)
|
|
705
707
|
force: opts.force,
|