node-lifx-lan-multi 1.1.0 → 1.1.2

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.
@@ -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
  });
@@ -131,7 +131,7 @@ LifxLanUdp.prototype._requestUnicast = function (p) {
131
131
  timer = setTimeout(() => {
132
132
  if (this._requests[seq]) {
133
133
  delete this._requests[seq];
134
- reject(new Error('Timeout'));
134
+ reject(new Error('Timeout:\n' + JSON.stringify(p, null, 2)));
135
135
  }
136
136
  }, this._timeout);
137
137
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-lifx-lan-multi",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
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": [