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.
- package/index.js +2 -0
- 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)
|