hypercore-storage 2.1.1 → 2.2.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.
Files changed (3) hide show
  1. package/index.js +4 -0
  2. package/lib/tx.js +1 -1
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -83,6 +83,10 @@ class HypercoreStorage {
83
83
  this.view.readStart()
84
84
  }
85
85
 
86
+ get readOnly() {
87
+ return this.store.readOnly
88
+ }
89
+
86
90
  get dependencies() {
87
91
  return this.core.dependencies
88
92
  }
package/lib/tx.js CHANGED
@@ -179,7 +179,7 @@ class CoreRX {
179
179
  }
180
180
 
181
181
  static async getHints(db, c) {
182
- return await decode(CORE_HINTS, await db.get(core.head(c.dataPointer)))
182
+ return await decode(CORE_HINTS, await db.get(core.hints(c.dataPointer)))
183
183
  }
184
184
 
185
185
  async getHints() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hypercore-storage",
3
- "version": "2.1.1",
3
+ "version": "2.2.1",
4
4
  "main": "index.js",
5
5
  "files": [
6
6
  "index.js",