node-lifx-lan-multi 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/lifx-lan-device.js +2 -0
- package/package.json +1 -1
package/lib/lifx-lan-device.js
CHANGED
|
@@ -74,6 +74,7 @@ LifxLanDevice.prototype._request = function (type, payload) {
|
|
|
74
74
|
: this._extractPayload(res);
|
|
75
75
|
resolve(payload);
|
|
76
76
|
}).catch((error) => {
|
|
77
|
+
console.error(error);
|
|
77
78
|
reject(error);
|
|
78
79
|
});
|
|
79
80
|
});
|
|
@@ -369,6 +370,7 @@ LifxLanDevice.prototype.getDeviceInfo = function () {
|
|
|
369
370
|
this.deviceInfo = info;
|
|
370
371
|
resolve(JSON.parse(JSON.stringify(info)));
|
|
371
372
|
}).catch((error) => {
|
|
373
|
+
console.error(error);
|
|
372
374
|
reject(error);
|
|
373
375
|
});
|
|
374
376
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-lifx-lan-multi",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "The node-lifx-lan is a Node.js module which allows you to communicate with the Wi-Fi LED smart light products \"LIFX\" using the LAN protocol.",
|
|
5
5
|
"main": "./lib/lifx-lan.js",
|
|
6
6
|
"files": [
|