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.
Files changed (2) hide show
  1. package/index.js +2 -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.bootstrap || null
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({ bootstrap: name })
317
+ return this.session({ _bootstrap: name })
318
318
  }
319
319
  return this.session({ namespace: generateNamespace(this._namespace, name) })
320
320
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "corestore",
3
- "version": "6.5.0",
3
+ "version": "6.5.1",
4
4
  "description": "A Hypercore factory that simplifies managing collections of cores.",
5
5
  "main": "index.js",
6
6
  "scripts": {