corestore 6.5.0 → 6.5.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 +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -27,7 +27,7 @@ module.exports = class Corestore extends EventEmitter {
|
|
|
27
27
|
this.primaryKey = opts.primaryKey || null
|
|
28
28
|
|
|
29
29
|
this._keyStorage = null
|
|
30
|
-
this._bootstrap = opts.
|
|
30
|
+
this._bootstrap = opts._bootstrap || null
|
|
31
31
|
this._namespace = opts.namespace || DEFAULT_NAMESPACE
|
|
32
32
|
|
|
33
33
|
this._root = root || this
|
|
@@ -314,7 +314,7 @@ module.exports = class Corestore extends EventEmitter {
|
|
|
314
314
|
|
|
315
315
|
namespace (name) {
|
|
316
316
|
if (name instanceof Hypercore) {
|
|
317
|
-
return this.session({
|
|
317
|
+
return this.session({ _bootstrap: name })
|
|
318
318
|
}
|
|
319
319
|
return this.session({ namespace: generateNamespace(this._namespace, name) })
|
|
320
320
|
}
|