diff --git a/README.md b/README.md index 6f24eba..ad3b1ee 100644 --- a/README.md +++ b/README.md @@ -87,6 +87,9 @@ $ rm -fr node_modules; \ # Revision History +* 0.3.1 + - Fix an issue where Object.value function was missing on Node.js v6 + * 0.3.0 - Add the mac property only when it's available - Fix an issue where some of events didn't contain the mac address diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index c842670..c41ba4c 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -1,6 +1,6 @@ { "name": "node-red-contrib-smartmesh", - "version": "0.3.0", + "version": "0.3.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 2945ffb..6faeaa0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-red-contrib-smartmesh", - "version": "0.3.0", + "version": "0.3.1", "description": "Node-RED nodes for Analog Devices' SmartMesh® IP Motes and Manager", "license": "Apache-2.0", "repository": { diff --git a/src/smartmesh-common.js b/src/smartmesh-common.js index b36392f..46bad4f 100644 --- a/src/smartmesh-common.js +++ b/src/smartmesh-common.js @@ -111,7 +111,7 @@ export class SmartMeshClientProxy { } getActiveMotes() { - return Object.values(this.motes).filter(mote => mote.active); + return Object.keys(this.motes).filter(mac => this.motes[mac].active); } getActiveMoteCount() {