Comparing version 1.0.5 to 1.0.6
@@ -69,30 +69,29 @@ | ||
if (this.ended || !this.readable) | ||
return null; | ||
while(true) { | ||
if (this.ended || !this.readable) | ||
return null; | ||
while (this.matchIdx < this.matches.length) | ||
{ | ||
let item = this.matches[this.matchIdx++]; | ||
let result = this.funJoin(item, this.match); | ||
if (result !== null) | ||
return result; | ||
} | ||
while (this.matchIdx < this.matches.length) | ||
{ | ||
let item = this.matches[this.matchIdx++]; | ||
let result = this.funJoin(item, this.match); | ||
if (result !== null) | ||
return result; | ||
} | ||
if (!this.hasResults()) | ||
this._end(); | ||
if (!this.hasResults()) | ||
this._end(); | ||
this.match = this.right.read(); | ||
this.match = this.right.read(); | ||
if (this.match === null) | ||
{ | ||
this.readable = false; | ||
return null; | ||
if (this.match === null) | ||
{ | ||
this.readable = false; | ||
return null; | ||
} | ||
let hash = this.funHash(this.match); | ||
this.matches = this.leftMap.get(hash) || []; | ||
this.matchIdx = 0; | ||
} | ||
let hash = this.funHash(this.match); | ||
this.matches = this.leftMap.get(hash) || []; | ||
this.matchIdx = 0; | ||
// array is filled again so recursive call can have results | ||
return this.read(); | ||
} | ||
@@ -99,0 +98,0 @@ |
{ | ||
"name": "asyncjoin", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "Join library for asynciterator", | ||
@@ -8,3 +8,3 @@ "license": "MIT", | ||
"type": "git", | ||
"url": "https://github.com/joachimvh/asyncjoin.js" | ||
"url": "https://github.com/comunica/asyncjoin" | ||
}, | ||
@@ -17,6 +17,8 @@ "dependencies": { | ||
"mocha": "^5.2.0", | ||
"pre-commit": "^1.2.2" | ||
"pre-commit": "^1.2.2", | ||
"manual-git-changelog": "^1.0.0" | ||
}, | ||
"scripts": { | ||
"test": "mocha test" | ||
"test": "mocha test", | ||
"version": "manual-git-changelog onversion" | ||
}, | ||
@@ -23,0 +25,0 @@ "pre-commit": [ |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
12443
10
4
1