Comparing version 6.3.0 to 6.3.1
@@ -332,3 +332,3 @@ // Import packages | ||
this._send(buffer); | ||
if(options.shouldWaitForResponse) { | ||
if (options.shouldWaitForResponse) { | ||
this._setResolver = resolve; | ||
@@ -580,3 +580,3 @@ } else { | ||
if (packet.commandByte === CommandType.STATUS && typeof packet.payload.dps[1] === 'undefined') { | ||
if (packet.commandByte === CommandType.STATUS && packet.payload && typeof packet.payload.dps[1] === 'undefined') { | ||
debug('Received DP_REFRESH packet.'); | ||
@@ -583,0 +583,0 @@ /** |
{ | ||
"name": "tuyapi", | ||
"version": "6.3.0", | ||
"version": "6.3.1", | ||
"description": "An easy-to-use API for devices that use Tuya's cloud services", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
51087