hypercore 10.0.0-alpha.21 → 10.0.0-alpha.22

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 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -231,6 +231,8 @@ module.exports = class Hypercore extends EventEmitter {
231
231
  this.storage = Hypercore.defaultStorage(opts.storage || storage)
232
232
 
233
233
  this.core = await Core.open(this.storage, {
234
+ createIfMissing: opts.createIfMissing,
235
+ overwrite: opts.overwrite,
234
236
  keyPair,
235
237
  crypto: this.crypto,
236
238
  onupdate: this._oncoreupdate.bind(this)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hypercore",
3
- "version": "10.0.0-alpha.21",
3
+ "version": "10.0.0-alpha.22",
4
4
  "description": "Hypercore 10",
5
5
  "main": "index.js",
6
6
  "scripts": {