File tree 4 files changed +9
-8
lines changed
4 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
6
6
7
7
## [ Unreleased]
8
8
9
- ## [ 0.3.20 ] - 2018-01-24
9
+ ## [ 0.3.21 ] - 2018-01-24
10
10
11
11
### Added
12
12
- Additional entry nodes
Original file line number Diff line number Diff line change @@ -240,8 +240,8 @@ var IRI = function (_Base) {
240
240
} ) ;
241
241
} ) ) . then ( function ( urls ) {
242
242
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 ;
245
245
} ) . length === 0 ;
246
246
} ) ;
247
247
if ( ! toRemove . length ) {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " nelson.cli" ,
3
- "version" : " 0.3.20 " ,
3
+ "version" : " 0.3.21 " ,
4
4
"repository" : {
5
5
"type" : " git" ,
6
6
"url" : " https://github.com/SemkoDev/nelson.cli.git"
Original file line number Diff line number Diff line change @@ -174,10 +174,11 @@ class IRI extends Base {
174
174
return url ;
175
175
} )
176
176
} ) ) . 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
+ ) ;
181
182
if ( ! toRemove . length ) {
182
183
return resolve ( toRemove ) ;
183
184
}
You can’t perform that action at this time.
0 commit comments