Comparing version 4.2.3 to 4.3.0
@@ -52,2 +52,11 @@ const sodium = require('sodium-universal') | ||
Node.prototype.compare = function (other) { | ||
const min = Math.min(this.length, other.length) | ||
for (var i = 0; i < min; i++) { | ||
const diff = this.path(i) - other.path(i) | ||
if (diff !== 0) return diff | ||
} | ||
return 0 | ||
} | ||
Node.prototype.final = function () { | ||
@@ -54,0 +63,0 @@ if (this._finalized) return this |
{ | ||
"name": "hypertrie", | ||
"version": "4.2.3", | ||
"version": "4.3.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
104010
3243