net-snmp 3.15.2 → 3.15.3
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/README.md +4 -0
- package/index.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
@@ -3424,6 +3424,10 @@ Example programs are included under the module's `example` directory.
|
|
3424
3424
|
|
3425
3425
|
* Change return of non-existing OIDs under table from NoSuchObject to NoSuchInstance
|
3426
3426
|
|
3427
|
+
## Version 3.15.3 - 04/12/2024
|
3428
|
+
|
3429
|
+
* Fix agent SNMP SetRequest for OIDs
|
3430
|
+
|
3427
3431
|
# License
|
3428
3432
|
|
3429
3433
|
Copyright (c) 2020 Mark Abrahams <mark@abrahams.co.nz>
|
package/index.js
CHANGED
@@ -4763,7 +4763,7 @@ Agent.prototype.castSetValue = function ( type, value ) {
|
|
4763
4763
|
}
|
4764
4764
|
|
4765
4765
|
case ObjectType.OID:
|
4766
|
-
if ( typeof value != "string" || ! value.match(
|
4766
|
+
if ( typeof value != "string" || ! value.match(/^([0-9]+)(\.[0-9]+)+$/) ) {
|
4767
4767
|
throw new Error("Invalid OID", value);
|
4768
4768
|
}
|
4769
4769
|
return value;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "net-snmp",
|
3
|
-
"version": "3.15.
|
3
|
+
"version": "3.15.3",
|
4
4
|
"description": "JavaScript implementation of the Simple Network Management Protocol (SNMP)",
|
5
5
|
"main": "index.js",
|
6
6
|
"directories": {
|
@@ -47,6 +47,6 @@
|
|
47
47
|
"author": "Mark Abrahams <mark@abrahams.co.nz>",
|
48
48
|
"license": "MIT",
|
49
49
|
"scripts": {
|
50
|
-
"lint": "
|
50
|
+
"lint": "eslint . ./**/*.js"
|
51
51
|
}
|
52
52
|
}
|