@svrooij/sonos
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -59,3 +59,3 @@ "use strict"; | ||
const groups = array_helper_1.ArrayHelper.ForceArray(decodedGroupState.ZoneGroupState.ZoneGroups.ZoneGroup); | ||
return groups.map(this.ParseGroup); | ||
return groups.map(g => this.ParseGroup(g)); | ||
} | ||
@@ -72,3 +72,3 @@ ParseMember(member) { | ||
ParseGroup(group) { | ||
const members = array_helper_1.ArrayHelper.ForceArray(group.ZoneGroupMember).map(this.ParseMember); | ||
const members = array_helper_1.ArrayHelper.ForceArray(group.ZoneGroupMember).map(m => this.ParseMember(m)); | ||
const coordinator = members.find(m => m.uuid === group._Coordinator); | ||
@@ -75,0 +75,0 @@ if (coordinator === undefined) |
@@ -20,3 +20,3 @@ "use strict"; | ||
get debug() { if (this._debugger === undefined) | ||
this._debugger = debug('sonos:device'); return this._debugger; } | ||
this._debugger = debug(`sonos:device:${this.host}`); return this._debugger; } | ||
/** | ||
@@ -23,0 +23,0 @@ * Service that controls stuff related to transport (play/pause/next/special urls) |
{ | ||
"name": "@svrooij/sonos", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "A node library to control your sonos devices, written in typescript", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
263086