corestore 7.0.3 → 7.0.4

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 +4 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -183,6 +183,10 @@ class Corestore extends ReadyResource {
183
183
  return this.session({ ...opts, namespace: generateNamespace(this.ns, name) })
184
184
  }
185
185
 
186
+ getAuth (discoveryKey) {
187
+ return this.storage.getAuth(discoveryKey)
188
+ }
189
+
186
190
  _ongc (session) {
187
191
  if (session.sessions.length === 0) this.sessions.gc(session.id)
188
192
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "corestore",
3
- "version": "7.0.3",
3
+ "version": "7.0.4",
4
4
  "description": "A Hypercore factory that simplifies managing collections of cores.",
5
5
  "main": "index.js",
6
6
  "files": [