hypercore-storage 2.5.7 → 2.6.0

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.
Files changed (2) hide show
  1. package/index.js +5 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -107,6 +107,11 @@ class HypercoreStorage {
107
107
  }
108
108
 
109
109
  setDependencyHead(dep) {
110
+ if (dep === null) {
111
+ this.core.dependencies = []
112
+ return
113
+ }
114
+
110
115
  const deps = this.core.dependencies
111
116
 
112
117
  for (let i = deps.length - 1; i >= 0; i--) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hypercore-storage",
3
- "version": "2.5.7",
3
+ "version": "2.6.0",
4
4
  "main": "index.js",
5
5
  "files": [
6
6
  "index.js",