net-snmp 3.9.4 → 3.9.5

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/lib/mib.js +2 -2
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -3293,6 +3293,10 @@ Example programs are included under the module's `example` directory.
3293
3293
 
3294
3294
  * Fix syntax constraints tokenization and fix applying of size constraints
3295
3295
 
3296
+ ## Version 3.9.5 - 30/05/2023
3297
+
3298
+ * Normalize whitespace parsing for OBJECT IDENTIFIER value
3299
+
3296
3300
  # License
3297
3301
 
3298
3302
  Copyright (c) 2020 Mark Abrahams <mark@abrahams.co.nz>
package/lib/mib.js CHANGED
@@ -364,7 +364,7 @@ var MIB = function (dir) {
364
364
  Object[Symbols[i - 2]] = {};
365
365
  Object[Symbols[i - 2]]['ObjectName'] = Symbols[i - 2];
366
366
  Object[Symbols[i - 2]]['ModuleName'] = ModuleName;
367
- Object[Symbols[i - 2]]['OBJECT IDENTIFIER'] = Symbols[i + 1].replace("{", "").replace("}", "").trim();
367
+ Object[Symbols[i - 2]]['OBJECT IDENTIFIER'] = Symbols[i + 1].replace("{", "").replace("}", "").trim().replace(/\s+/, " ");
368
368
  if (Object[Symbols[i - 2]]['OBJECT IDENTIFIER'] == '0 0') {
369
369
  Object[Symbols[i - 2]]['OID'] = '0.0';
370
370
  Object[Symbols[i - 2]]['NameSpace'] = 'null';
@@ -524,7 +524,7 @@ var MIB = function (dir) {
524
524
  }
525
525
  Object[Symbols[r - 1]]['ObjectName'] = Symbols[r - 1];
526
526
  Object[Symbols[r - 1]]['ModuleName'] = ModuleName;
527
- Object[Symbols[r - 1]]['OBJECT IDENTIFIER'] = Symbols[i + 1].replace("{", "").replace("}", "").trim();
527
+ Object[Symbols[r - 1]]['OBJECT IDENTIFIER'] = Symbols[i + 1].replace("{", "").replace("}", "").trim().replace(/\s+/, " ");
528
528
 
529
529
  if (Object[Symbols[r - 1]]['OBJECT IDENTIFIER'] == '0 0') {
530
530
  Object[Symbols[r - 1]]['OID'] = '0.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "net-snmp",
3
- "version": "3.9.4",
3
+ "version": "3.9.5",
4
4
  "description": "JavaScript implementation of the Simple Network Management Protocol (SNMP)",
5
5
  "main": "index.js",
6
6
  "directories": {