@gibme/mikrotik 2.0.3 → 2.0.4
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.
- package/dist/index.js +3 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -707,6 +707,9 @@ class Mikrotik extends ssh_1.default {
|
|
|
707
707
|
line.split(/\s+/)
|
|
708
708
|
.map(col => col.trim())
|
|
709
709
|
.forEach(col => {
|
|
710
|
+
if (!result.idx && !isNaN(parseInt(col))) {
|
|
711
|
+
result.idx = parseInt(col);
|
|
712
|
+
}
|
|
710
713
|
if (col.includes('=')) {
|
|
711
714
|
const [key, ...value] = col.split('=');
|
|
712
715
|
result[key] = value.join('=');
|