homey-lib
Advanced tools
Comparing version 1.0.51 to 1.0.52
@@ -494,9 +494,9 @@ "use strict"; | ||
if( ['string', 'number', 'boolean', 'image'].indexOf(type) === -1 ) | ||
return error("invalid `flow." + column + "[" + i + "].arg[" + j + "].type` in app.json"); | ||
return error("invalid `flow." + column + "[" + i + "].tokens[" + j + "].type` in app.json"); | ||
if( type === 'string' && !isI18nObject(token.example) ) | ||
return error("invalid `flow." + column + "[" + i + "].arg[" + j + "].example` in app.json"); | ||
return error("invalid `flow." + column + "[" + i + "].tokens[" + j + "].example` in app.json"); | ||
if( type === 'number' && typeof token.example !== 'number' ) | ||
return error("invalid `flow." + column + "[" + i + "].arg[" + j + "].example` in app.json"); | ||
return error("invalid `flow." + column + "[" + i + "].tokens[" + j + "].example` in app.json"); | ||
@@ -503,0 +503,0 @@ }); |
{ | ||
"name": "homey-lib", | ||
"version": "1.0.51", | ||
"version": "1.0.52", | ||
"description": "Library for Homey", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
123723