greybel-mock-environment 1.3.6 → 1.3.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -150,6 +150,7 @@ var MockEnvironment = /** @class */ (function () {
150
150
  MockEnvironment.prototype.findRoutersCloseToLocation = function (loc) {
151
151
  var e_1, _a;
152
152
  var me = this;
153
+ var session = me.getLatestSession();
153
154
  var getDistance = function (routerLoc) {
154
155
  var y = routerLoc.x - loc.x;
155
156
  var x = routerLoc.y - loc.y;
@@ -159,6 +160,8 @@ var MockEnvironment = /** @class */ (function () {
159
160
  try {
160
161
  for (var _b = __values(me.networkGenerator.serverMap.values()), _c = _b.next(); !_c.done; _c = _b.next()) {
161
162
  var serverMapGenerator = _c.value;
163
+ if (session.device.getRouter() === serverMapGenerator.router)
164
+ continue;
162
165
  var distance = getDistance(serverMapGenerator.router.location);
163
166
  if (distance < me.WIFI_MAX_DISTANCE) {
164
167
  var percentage = Math.round(((me.WIFI_MAX_DISTANCE - distance) * 100) / me.WIFI_MAX_DISTANCE);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "greybel-mock-environment",
3
- "version": "1.3.6",
3
+ "version": "1.3.7",
4
4
  "description": "Mock environment",
5
5
  "main": "dist/index",
6
6
  "typings": "dist/index",