Comparing version 4.5.1 to 4.6.0
@@ -54,4 +54,4 @@ const events = require('events') | ||
this._extension = opts.extension || new Extension(this) | ||
if (!opts.extension) this._extension.outgoing = this.feed.registerExtension('hypertrie', this._extension) | ||
this._extension = opts.extension === false ? null : (opts.extension || new Extension(this)) | ||
if (!opts.extension && opts.extension !== false) this._extension.outgoing = this.feed.registerExtension('hypertrie', this._extension) | ||
@@ -134,3 +134,3 @@ this._watchers = [] | ||
feed: this.feed, | ||
extension: this._extension | ||
extension: this._extension === null ? false : this._extension | ||
}) | ||
@@ -137,0 +137,0 @@ } |
{ | ||
"name": "hypertrie", | ||
"version": "4.5.1", | ||
"version": "4.6.0", | ||
"description": "Distributed single writer key/value store", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
126688