net-snmp 3.5.3 → 3.5.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.
Files changed (3) hide show
  1. package/README.md +4 -0
  2. package/index.js +2 -2
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -3146,6 +3146,10 @@ Example programs are included under the module's `example` directory.
3146
3146
 
3147
3147
  * Fix error with empty varbind array in walk
3148
3148
 
3149
+ ## Version 3.5.4 - 24/08/2021
3150
+
3151
+ * Align accessible-for-notify row cell behaviour with not-accessible behaviour
3152
+
3149
3153
  # License
3150
3154
 
3151
3155
  Copyright (c) 2020 Mark Abrahams <mark@abrahams.co.nz>
package/index.js CHANGED
@@ -4203,8 +4203,8 @@ Mib.prototype.addTableRow = function (table, row) {
4203
4203
  for ( var i = 0; i < provider.tableColumns.length ; i++ ) {
4204
4204
  var column = provider.tableColumns[i];
4205
4205
  var isColumnIndex = provider.tableIndex.some ( indexPart => indexPart.columnNumber == column.number );
4206
- // prevent not-accessible index entries from being added as columns in the row
4207
- if ( ! isColumnIndex || column.maxAccess !== MaxAccess['not-accessible'] ) {
4206
+ // prevent not-accessible and accessible-for-notify index entries from being added as columns in the row
4207
+ if ( ! isColumnIndex || ! (column.maxAccess === MaxAccess['not-accessible'] || column.maxAccess === MaxAccess['accessible-for-notify']) ) {
4208
4208
  instanceAddress = providerNode.address.concat (column.number).concat (instance);
4209
4209
  this.addNodesForAddress (instanceAddress);
4210
4210
  instanceNode = this.lookup (instanceAddress);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "net-snmp",
3
- "version": "3.5.3",
3
+ "version": "3.5.4",
4
4
  "description": "JavaScript implementation of the Simple Network Management Protocol (SNMP)",
5
5
  "main": "index.js",
6
6
  "directories": {