Skip to content

Commit 35faf5b

Browse files
committed
Merge branch 'release/0.3.21-beta'
2 parents 4fbb7d2 + 287aebb commit 35faf5b

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
66

77
## [Unreleased]
88

9-
## [0.3.20] - 2018-01-24
9+
## [0.3.21] - 2018-01-24
1010

1111
### Added
1212
- Additional entry nodes

dist/node/iri.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,8 @@ var IRI = function (_Base) {
240240
});
241241
})).then(function (urls) {
242242
var toRemove = urls.filter(function (url) {
243-
return peers.filter(function (p) {
244-
return !_this5.staticNeighbors.includes(url.hostname) && !_this5.staticNeighbors.includes(url.ip) && p.data.hostname !== url.hostname && p.data.ip !== url.ip;
243+
return !_this5.staticNeighbors.includes(url.hostname) && !_this5.staticNeighbors.includes(url.ip) && peers.filter(function (p) {
244+
return p.data.hostname !== url.hostname && p.data.ip !== url.ip;
245245
}).length === 0;
246246
});
247247
if (!toRemove.length) {

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nelson.cli",
3-
"version": "0.3.20",
3+
"version": "0.3.21",
44
"repository": {
55
"type": "git",
66
"url": "https://github.com/SemkoDev/nelson.cli.git"

src/node/iri.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,11 @@ class IRI extends Base {
174174
return url;
175175
})
176176
})).then((urls) => {
177-
const toRemove = urls.filter((url) => peers.filter((p) => (
178-
!this.staticNeighbors.includes(url.hostname) && !this.staticNeighbors.includes(url.ip) &&
179-
p.data.hostname !== url.hostname && p.data.ip !==url.ip
180-
)).length === 0);
177+
const toRemove = urls.filter((url) =>
178+
!this.staticNeighbors.includes(url.hostname) &&
179+
!this.staticNeighbors.includes(url.ip) &&
180+
peers.filter((p) => (p.data.hostname !== url.hostname && p.data.ip !==url.ip)).length === 0
181+
);
181182
if (!toRemove.length) {
182183
return resolve(toRemove);
183184
}

0 commit comments

Comments
 (0)