New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

net-snmp

Package Overview
Dependencies
Maintainers
2
Versions
157
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

net-snmp - npm Package Compare versions

Comparing version 2.5.7 to 2.5.8

38

lib/mib.js

@@ -766,22 +766,22 @@ var fs = require('fs');

OID: function (OBJECT_IDENTIFIER, ID, ObjectName, OD, callback) {
var parent = OBJECT_IDENTIFIER.split(" ")[0];
var oid = OBJECT_IDENTIFIER.split(" ")[1];
if (parent.indexOf("iso") == 0 && !parseInt(oid)) {
ID = '1.3.6.1.' + ID
OD = 'iso.org.dod.' + OD + ObjectName;
callback(ID, OD);
let members = OBJECT_IDENTIFIER.split(" ");
let parent = members.shift();
let oid = members.pop();
if (parent == 'iso') {
let midID = ['1'];
let midOD = ['iso'];
for (let entry of members) {
let match = entry.match(/(.*)\((.+)\)$/);
midID.push(match[2]);
midOD.push(match[1]);
}
midID.push(oid);
midID.push(ID);
midOD.push(OD);
midOD.push(ObjectName);
callback(midID.join('.'), midOD.join('.'));
return;
} else if (parent == 'iso') {
ID = '1.3.' + ID;
OD = 'iso.org.' + OD;
callback(ID, OD);
return;
} else {
if (ID == '') {
ID = oid
} else {
ID = oid + '.' + ID;
}
OD = parent + '.' + OD;
}
ID = ID == '' ? oid : [oid, ID].join('.');
OD = OD == '' ? parent : [parent, OD].join('.');
for (var ModuleName in this.Modules) {

@@ -795,4 +795,2 @@ if (this.Modules.hasOwnProperty(ModuleName)) {

}
},

@@ -799,0 +797,0 @@ LoadMIBs: function () {

{
"name": "net-snmp",
"version": "2.5.7",
"version": "2.5.8",
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc