hypercore 10.28.5 → 10.28.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/lib/core.js +2 -0
- package/package.json +1 -1
package/lib/core.js
CHANGED
|
@@ -131,6 +131,8 @@ module.exports = class Core {
|
|
|
131
131
|
// if we signalled compat, but already now this core isn't disable it
|
|
132
132
|
if (compat && header.manifest && !isCompat(header.key, header.manifest)) {
|
|
133
133
|
compat = false
|
|
134
|
+
} else if (!compat && header.manifest && isCompat(header.key, header.manifest)) {
|
|
135
|
+
compat = true
|
|
134
136
|
}
|
|
135
137
|
|
|
136
138
|
const tree = await MerkleTree.open(treeFile, { crypto, ...header.tree })
|