hypercore-storage 1.8.0 → 1.8.1
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 +6 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -101,7 +101,7 @@ class HypercoreStorage {
|
|
|
101
101
|
return null
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
|
|
104
|
+
setDependencyHead (dep) {
|
|
105
105
|
const deps = this.core.dependencies
|
|
106
106
|
|
|
107
107
|
for (let i = deps.length - 1; i >= 0; i--) {
|
|
@@ -123,6 +123,11 @@ class HypercoreStorage {
|
|
|
123
123
|
length: dep.length
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
|
+
|
|
127
|
+
this.core.dependencies = [{
|
|
128
|
+
dataPointer: dep.dataPointer,
|
|
129
|
+
length: dep.length
|
|
130
|
+
}]
|
|
126
131
|
}
|
|
127
132
|
|
|
128
133
|
// TODO: this might have to be async if the dependents have changed, but prop ok for now
|