@oneblink/sdk
Advanced tools
Comparing version 0.2.7-beta.1 to 0.2.7-beta.2
@@ -13,6 +13,7 @@ // @flow | ||
) /* : T */ { | ||
const validatedResult = Joi.validate(data, schema, options) | ||
if (validatedResult.error) { | ||
throw new Error(validatedResult.error) | ||
} else return validatedResult.value | ||
const result = Joi.validate(data, schema, options) | ||
if (result.error) { | ||
throw result.error | ||
} | ||
return result.value | ||
} | ||
@@ -19,0 +20,0 @@ |
{ | ||
"name": "@oneblink/sdk", | ||
"description": "OneBlink SDK to serve as an entry point for all OneBlink Services in NodeJS", | ||
"version": "0.2.7-beta.1", | ||
"version": "0.2.7-beta.2", | ||
"bugs": { | ||
@@ -6,0 +6,0 @@ "url": "https://github.com/blinkmobile/oneblink-sdk-js/issues" |
2399
82945