@gibme/mikrotik 1.1.0 → 1.1.1

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -204,7 +204,9 @@ class Mikrotik extends ssh_1.default {
204
204
  best.ip = key;
205
205
  }
206
206
  }
207
- results[best.ip].active = true;
207
+ if (results[best.ip]) {
208
+ results[best.ip].active = true;
209
+ }
208
210
  return results;
209
211
  });
210
212
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gibme/mikrotik",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "A simple mikrotik helper/wrapper",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",