Comparing version 1.2.0 to 1.2.1
@@ -103,8 +103,15 @@ | ||
let hash = this.funHash(item); | ||
let map = this.usedLeft ? this.leftMap : this.rightMap; | ||
if (!map.has(hash)) | ||
map.set(hash, []); | ||
let arr = map.get(hash); | ||
arr.push(item); | ||
if (this.usedLeft && this.right.done) { | ||
this.leftMap = null; | ||
} else if (this.left.done) { | ||
this.rightMap = null; | ||
} else { | ||
let map = this.usedLeft ? this.leftMap : this.rightMap; | ||
if (!map.has(hash)) | ||
map.set(hash, []); | ||
let arr = map.get(hash); | ||
arr.push(item); | ||
} | ||
this.match = item; | ||
@@ -111,0 +118,0 @@ this.matches = (this.usedLeft ? this.rightMap : this.leftMap).get(hash) || []; |
{ | ||
"name": "asyncjoin", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Join library for asynciterator", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
12341
333