hypercore 10.21.0 → 10.21.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 CHANGED
@@ -338,8 +338,8 @@ module.exports = class Hypercore extends EventEmitter {
338
338
  const result = await preload()
339
339
  const from = result && result.from
340
340
  if (from) {
341
- if (!from.opened) await from.ready()
342
- if (from.closing) continue
341
+ if (!from.opened) await from.ready().catch(noop)
342
+ if (!from.opened || from.closing) continue
343
343
  }
344
344
  return result
345
345
  }
package/lib/batch.js CHANGED
@@ -59,6 +59,10 @@ module.exports = class HypercoreBatch extends EventEmitter {
59
59
  return this.session.core
60
60
  }
61
61
 
62
+ get auth () {
63
+ return this.session.auth
64
+ }
65
+
62
66
  async ready () {
63
67
  await this.session.ready()
64
68
  if (this.opened) return
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hypercore",
3
- "version": "10.21.0",
3
+ "version": "10.21.1",
4
4
  "description": "Hypercore is a secure, distributed append-only log",
5
5
  "main": "index.js",
6
6
  "scripts": {