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

homey-signal-validator

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

homey-signal-validator - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

CONTRIBUTING.md

27

lib/SignalValidator/index.js

@@ -61,5 +61,11 @@ "use strict";

}
if(data.some(function(word) {
return (!signal.words || !signal.words[word]);
})) res.result = false;
if(signal.packing) {
if (data.some(function (word) {
return !(word >= 0 && word <= 0xFF);
})) res.result = false;
} else {
if (data.some(function (word) {
return (!signal.words || !signal.words[word]);
})) res.result = false;
}
return res;

@@ -252,7 +258,14 @@ }

var res = !Object.keys(cmds).some(function(cmd) {
return !_valid_pronto_string(signal.cmds[cmd]);
return !_valid_pronto_string(cmds[cmd]);
});
return {result: res, msg: 'invalid_pronto_cmd' };
return {result: res, msg: 'invalid_pronto_cmds' };
},
toggleCmds: function(cmds, signal) {
var res = !Object.keys(cmds).some(function(cmd) {
return !_valid_pronto_string(cmds[cmd]);
});
return {result: res, msg: 'invalid_pronto_toggleCmds' };
},
repetitions: function(repetitions, signal) {

@@ -287,3 +300,3 @@ var res = _valid_bounds(repetitions, rfBounds.repetitions.min, rfBounds.repetitions.max);

var irBounds = {
carrier: { min: 30000, max: 45000 },
carrier: { min: 30000, max: 58000 },
dutyCycle: { min: 30, max: 70 }

@@ -380,2 +393,2 @@ };

module.exports = SignalValidator;
module.exports = SignalValidator;
{
"name": "homey-signal-validator",
"version": "2.0.0",
"version": "2.0.1",
"description": " Validator methods for Homey Signals",

@@ -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