Comparing version 5.1.2 to 5.1.3
@@ -114,3 +114,3 @@ // Import packages | ||
this._send(buffer).then(data => { | ||
if (options.schema === true) { | ||
if (typeof data !== 'object' || options.schema === true) { | ||
// Return whole response | ||
@@ -117,0 +117,0 @@ resolve(data); |
{ | ||
"name": "tuyapi", | ||
"version": "5.1.2", | ||
"version": "5.1.3", | ||
"description": "An easy-to-use API for devices that use Tuya's cloud services", | ||
@@ -46,7 +46,7 @@ "main": "index.js", | ||
"@tuyapi/stub": "0.1.4", | ||
"ava": "2.2.0", | ||
"ava": "2.3.0", | ||
"clone": "2.1.2", | ||
"coveralls": "3.0.5", | ||
"coveralls": "3.0.6", | ||
"delay": "4.3.0", | ||
"documentation": "12.1.0", | ||
"documentation": "12.1.1", | ||
"nyc": "14.1.1", | ||
@@ -53,0 +53,0 @@ "xo": "0.24.0" |
42175