Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

homey-lib

Package Overview
Dependencies
Maintainers
1
Versions
235
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

homey-lib - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

2

examples/validate_app.js

@@ -8,3 +8,3 @@ var lib = require('..');

var app = new lib.App( process.argv[2] );
var result = app.validate( true ); // true = check for app store
var result = app.validate( ( process.argv[3] == '--validate-app-store' ) || false ); // true = check for app store

@@ -11,0 +11,0 @@ if( result.success ) {

@@ -121,2 +121,7 @@ var fs = require('fs');

error("invalid category `" + json.category + "` in app.json. Allowed categories: [" + categories.join(', ') + "]");
} else if( lvl_publish && Array.isArray(json.category) ) {
json.category.forEach(function(category, i){
if( categories.indexOf(category) < 0 )
error("invalid category `" + category + "` in app.json. Allowed categories: [" + categories.join(', ') + "]");
});
} else if( lvl_publish ) {

@@ -317,18 +322,22 @@ error("missing `category` in app.json");

if( typeof trigger.id == 'undefined' )
if( typeof trigger.id == 'undefined' ) {
error("missing `speech[" + i + "].id` in app.json")
}
if( typeof trigger.importance != 'number' )
error("invalid `speech[" + i + "].importance` in app.json, must be of type number")
if( typeof trigger.importance == 'number' ) {
if( trigger.importance < 0 || trigger.importance > 1 )
if( trigger.importance < 0 || trigger.importance > 1 ) {
error("`speech[" + i + "].importance` is out of range [0-1]")
}
} else if( trigger.importance !== false ) {
error("`speech[" + i + "].importance` not a number, or boolean false");
}
if( typeof trigger.triggers == 'undefined' )
if( typeof trigger.triggers == 'undefined' ) {
error("missing `speech[" + i + "].triggers` in app.json")
}
if( typeof trigger.triggers == 'object' )
if( !Array.isArray(trigger.triggers.en) )
if( typeof trigger.triggers == 'object' ) {
if( !Array.isArray(trigger.triggers.en) ) {
error("missing `speech[" + i + "].triggers.en` in app.json")
}
}

@@ -335,0 +344,0 @@

{
"name": "homey-lib",
"version": "1.0.5",
"version": "1.0.6",
"description": "Library for Homey",

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