sinricpro 2.11.1 → 2.11.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.
package/CHANGELOG.md CHANGED
@@ -26,4 +26,9 @@
26
26
  ## [2.11.1]
27
27
 
28
28
  ### Features
29
- * fix: targetTemperature
29
+ * fix: targetTemperature
30
+
31
+ ## [2.11.2]
32
+
33
+ ### Features
34
+ * fix: adjustTargetTemperature response format.
package/lib/cbhandler.js CHANGED
@@ -170,7 +170,7 @@ const handlePayload = (client, payload, signature, callbacks) => verifySignature
170
170
  return AdjustTargetTemperature(payload, callbacks)
171
171
  .then((resp) => {
172
172
  const { temperature } = resp;
173
- return jsonResponse(client, payload, temperature);
173
+ return jsonResponse(client, payload, { temperature });
174
174
  })
175
175
  .catch(handleError);
176
176
  }
package/lib/sinrcpro.js CHANGED
@@ -15,7 +15,7 @@ const sdkVersion = require('./../package.json').version;
15
15
 
16
16
  class SinricPro extends Websocket {
17
17
  constructor(appkey, deviceids, secretKey, restoreStates) {
18
- super("wss://ws.sinric.pro", {
18
+ super("wss://testws.sinric.pro", {
19
19
  headers: {
20
20
  appkey,
21
21
  deviceids: deviceids.join(';'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sinricpro",
3
- "version": "2.11.1",
3
+ "version": "2.11.2",
4
4
  "description": "Sinric Pro Nodejs SDK",
5
5
  "main": "index.js",
6
6
  "repository": {