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

lwm2m-id

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lwm2m-id - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

52

index.js

@@ -37,3 +37,3 @@ 'use strict';

return this.Cmd.get(cmdId);
return DEFS.Cmd.get(cmdId);
};

@@ -45,3 +45,3 @@

return this.RspCode.get(code);
return DEFS.RspCode.get(code);
};

@@ -59,3 +59,3 @@

oidItem = this.Oid.get(oid);
oidItem = DEFS.Oid.get(oid);

@@ -69,5 +69,5 @@ return oidItem;

for (var key in items) {
if (this.getOid(key))
if (DEFS.getOid(key))
throw new Error('oid: ' + key + ' name conflicts.');
else if (this.getOid(items[key]))
else if (DEFS.getOid(items[key]))
throw new Error('oid: ' + key + ' value conflicts.');

@@ -78,10 +78,10 @@ else

this.Oid = null;
this.Oid = new Enum(_oid);
DEFS.Oid = null;
DEFS.Oid = new Enum(_oid);
return this;
return DEFS;
};
DEFS.getRid = function (oid, rid) {
var oidItem = this.getOid(oid),
var oidItem = DEFS.getOid(oid),
ridNumber,

@@ -117,6 +117,6 @@ ridItem,

if (this.SpecificRid[oidKey] instanceof Enum)
ridItem = this.SpecificRid[oidKey].get(rid);
if (DEFS.SpecificRid[oidKey] instanceof Enum)
ridItem = DEFS.SpecificRid[oidKey].get(rid);
} else {
ridItem = this.UniqueRid.get(rid);
ridItem = DEFS.UniqueRid.get(rid);
}

@@ -131,5 +131,5 @@

for (var key in items) {
if (this.getRid(key))
if (DEFS.getRid(key))
throw new Error('unique rid: ' + key + ' name conflicts.');
else if (this.getRid(items[key]))
else if (DEFS.getRid(items[key]))
throw new Error('unique rid: ' + key + 'value conflicts.');

@@ -140,10 +140,10 @@ else

this.UniqueRid = null;
this.UniqueRid = new Enum(_uRid);
DEFS.UniqueRid = null;
DEFS.UniqueRid = new Enum(_uRid);
return this;
return DEFS;
};
DEFS.addSpecificRid = function (oid, items) {
var oidItem = this.getOid(oid),
var oidItem = DEFS.getOid(oid),
oidKey,

@@ -168,11 +168,11 @@ ridItem,

this.SpecificRid[oidKey] = null;
this.SpecificRid[oidKey] = new Enum(_spfRid[oidKey]);
DEFS.SpecificRid[oidKey] = null;
DEFS.SpecificRid[oidKey] = new Enum(_spfRid[oidKey]);
return this;
return DEFS;
};
DEFS.getSpecificResrcChar = function (oid, rid) {
var oidItem = this.getOid(oid),
ridItem = this.getRid(oid, rid),
var oidItem = DEFS.getOid(oid),
ridItem = DEFS.getRid(oid, rid),
characteristic;

@@ -195,3 +195,3 @@

var _rChar = DEFS._defs.specificResrcChar,
oidItem = this.getOid(oid),
oidItem = DEFS.getOid(oid),
ridItem,

@@ -207,3 +207,3 @@ pass = _checkCharFormat(chars);

for (var rid in chars) {
ridItem = this.getRid(oid, rid);
ridItem = DEFS.getRid(oid, rid);
if (!ridItem)

@@ -222,3 +222,3 @@ throw new Error('rid: ' + rid + ' does not exist. Please do addSpecificRid() first.');

return this;
return DEFS;
};

@@ -225,0 +225,0 @@

{
"name": "lwm2m-id",
"version": "1.2.1",
"version": "1.2.2",
"description": "lwm2m-id is a module that implements a dictionary of ip-based smart object(IPSO) identifiers defined by lwm2m spec.",

@@ -5,0 +5,0 @@ "main": "index.js",

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