corestore 7.0.3 → 7.0.5

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 -2
  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
  }
@@ -295,7 +299,6 @@ class Corestore extends ReadyResource {
295
299
 
296
300
  const conf = {
297
301
  preload: null,
298
- parent: opts.parent || null,
299
302
  sessions: null,
300
303
  ongc: null,
301
304
  core: null,
@@ -347,7 +350,6 @@ class Corestore extends ReadyResource {
347
350
  const core = this._getCore(discoveryKey, opts)
348
351
 
349
352
  return {
350
- parent: opts.parent || null,
351
353
  core,
352
354
  sessions: this.sessions.get(core.id),
353
355
  ongc: this._ongcBound,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "corestore",
3
- "version": "7.0.3",
3
+ "version": "7.0.5",
4
4
  "description": "A Hypercore factory that simplifies managing collections of cores.",
5
5
  "main": "index.js",
6
6
  "files": [