Comparing version 3.16.0 to 3.16.1
@@ -60,11 +60,11 @@ /* eslint-disable no-unused-vars */ | ||
// AUGMENTS ifEntry - meaning a single integer foreign key | ||
mib.addTableRow ("ifXEntry", [1, "eth0", 10, 2, 20, 4, counter64(1000), counter64(100), counter64(50), counter64(20), | ||
counter64(2000), counter64(200), counter64(100), counter64(40), 1, 1000, 0, 1, "myeth0", 10]); | ||
var ifXEntryRow1 = mib.getTableRowCells ("ifXEntry", [1]); | ||
// mib.addTableRow ("ifXEntry", [1, "eth0", 10, 2, 20, 4, counter64(1000), counter64(100), counter64(50), counter64(20), | ||
// counter64(2000), counter64(200), counter64(100), counter64(40), 1, 1000, 0, 1, "myeth0", 10]); | ||
// var ifXEntryRow1 = mib.getTableRowCells ("ifXEntry", [1]); | ||
// console.log (ifXEntryRow1); | ||
var ifXEntryData1 = mib.getTableCells ("ifXEntry", false, false); | ||
var ifXEntryData2 = mib.getTableCells ("ifXEntry", true, false); | ||
var ifXEntryData3 = mib.getTableCells ("ifXEntry", false, true); | ||
var ifXEntryData4 = mib.getTableCells ("ifXEntry", true, true); | ||
mib.setTableSingleCell ("ifXEntry", 1, [1], "another0"); | ||
// var ifXEntryData1 = mib.getTableCells ("ifXEntry", false, false); | ||
// var ifXEntryData2 = mib.getTableCells ("ifXEntry", true, false); | ||
// var ifXEntryData3 = mib.getTableCells ("ifXEntry", false, true); | ||
// var ifXEntryData4 = mib.getTableCells ("ifXEntry", true, true); | ||
// mib.setTableSingleCell ("ifXEntry", 1, [1], "another0"); | ||
@@ -71,0 +71,0 @@ // ifStackEntry |
@@ -1,4 +0,5 @@ | ||
var fs = require('fs'); | ||
const fs = require('fs'); | ||
const path = require('path'); | ||
var MIB = function (dir) { | ||
const MIB = function (dir) { | ||
@@ -130,3 +131,3 @@ var initializeBuffer = function (buffer) { | ||
Import: function (FileName) { | ||
this.ParseModule(FileName.split('/')[FileName.split('/').length - 1].split('.')[0], fs.readFileSync(FileName).toString()); | ||
this.ParseModule(path.basename(FileName, path.extname(FileName)), fs.readFileSync(FileName).toString()); | ||
}, | ||
@@ -133,0 +134,0 @@ ParseModule: function (FileName, Contents) { |
{ | ||
"name": "net-snmp", | ||
"version": "3.16.0", | ||
"version": "3.16.1", | ||
"description": "JavaScript implementation of the Simple Network Management Protocol (SNMP)", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
1688176
8418
3464
2871