sinricpro 2.6.1 → 2.7.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/CHANGELOG.md CHANGED
@@ -4,3 +4,8 @@
4
4
 
5
5
  * **Custom device types support**
6
6
  * **SR_DEBUG to support debug logs**
7
+
8
+ ## [2.7.1]
9
+
10
+ ### Features
11
+ * **Push notification feature added**
@@ -55,9 +55,10 @@ const eventNames = {
55
55
  lock: 'setLockState',
56
56
  mute: 'setMute',
57
57
  currentTemperature: 'currentTemperature',
58
+ pushNotification: 'pushNotification',
58
59
  };
59
60
 
60
- const actionArr = ['setPowerState', 'setBrightness', 'setPowerLevel', 'setColor', 'setColorTemperature', 'DoorbellPress', 'currentTemperature'];
61
+ const actionArr = ['setPowerState', 'setBrightness', 'setPowerLevel', 'setColor', 'setColorTemperature', 'DoorbellPress', 'currentTemperature', 'pushNotification'];
61
62
 
62
63
  const getJson = (client, eventName, deviceId, value) => {
63
64
  const header = {
@@ -93,7 +94,7 @@ const raiseEvent = async (client, eventName, deviceId, value) => {
93
94
  console.log('Too many events!');
94
95
  }
95
96
  } else {
96
- console.log('Invalid Event');
97
+ console.log(`Invalid Event: ${eventName}`);
97
98
  }
98
99
  };
99
100
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sinricpro",
3
- "version": "2.6.1",
3
+ "version": "2.7.1",
4
4
  "description": "Sinric Pro Nodejs SDK",
5
5
  "main": "index.js",
6
6
  "repository": {