Release v1.8.3 (#37)

* improved code quality

* version bump
This commit is contained in:
Martin M
2019-11-16 03:12:00 -03:00
committed by GitHub
parent e8d2405050
commit c0f9fd584c
3 changed files with 3 additions and 3 deletions

View File

@@ -17,7 +17,7 @@ const getDeviceChannelCountMixin = {
const switchesAmount = getDeviceChannelCount(uiid); const switchesAmount = getDeviceChannelCount(uiid);
if (error) { if (error) {
if (error && parseInt(error) === 401) { if (error === 401) {
return device; return device;
} }
return { error, msg: 'Device does not exist' }; return { error, msg: 'Device does not exist' };

2
package-lock.json generated
View File

@@ -1,6 +1,6 @@
{ {
"name": "ewelink-api", "name": "ewelink-api",
"version": "1.8.2", "version": "1.8.3",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@@ -1,6 +1,6 @@
{ {
"name": "ewelink-api", "name": "ewelink-api",
"version": "1.8.2", "version": "1.8.3",
"description": "eWeLink API for Node.js", "description": "eWeLink API for Node.js",
"author": "Martín M.", "author": "Martín M.",
"license": "MIT", "license": "MIT",