New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@svrooij/sonos

Package Overview
Dependencies
Maintainers
1
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@svrooij/sonos - npm Package Compare versions

Comparing version 2.4.1-beta.3 to 2.4.1-beta.4

5

lib/models/zone-group.d.ts

@@ -5,2 +5,3 @@ export interface ChannelMapSet {

export interface ZoneGroup {
groupId: string;
name: string;

@@ -21,3 +22,7 @@ coordinator: ZoneMember;

SwGen: string;
TVConfigurationError: number;
HdmiCecAvailable: boolean;
HasConfiguredSSID: boolean;
WifiEnabled: boolean;
}
//# sourceMappingURL=zone-group.d.ts.map

@@ -60,2 +60,6 @@ "use strict";

SwGen: member.SWGen,
HasConfiguredSSID: member.HasConfiguredSSID === '1' || member.HasConfiguredSSID === 1,
WifiEnabled: member.WifiEnabled === '1' || member.WifiEnabled === 1,
TVConfigurationError: parseInt(member.TVConfigurationError, 10),
HdmiCecAvailable: member.HdmiCecAvailable === '1' || member.HdmiCecAvailable === 1,
};

@@ -72,2 +76,3 @@ }

return {
groupId: group.ID,
name,

@@ -74,0 +79,0 @@ coordinator,

@@ -488,2 +488,10 @@ /// <reference types="node" />

/**
* Set relative group volume, shortcut to .Coordinator.GroupRenderingControlService.SetRelativeGroupVolume({ InstanceID: 0, Adjustment: volumeAdjustment })
*
* @param {number} volumeAdjustment the adjustment, positive or negative
* @returns {Promise<number>}
* @memberof SonosDevice
*/
SetRelativeGroupVolume(volumeAdjustment: number): Promise<number>;
/**
* Set relative volume, shortcut to .RenderingControlService.SetRelativeVolume({ InstanceID: 0, Channel: 'Master', Adjustment: volumeAdjustment })

@@ -490,0 +498,0 @@ *

13

lib/sonos-device.js

@@ -494,3 +494,3 @@ "use strict";

const notificationOptions = await tts_helper_1.default.TtsOptionsToNotification(options);
return await this.PlayNotification(notificationOptions);
return await this.PlayNotificationTwo(notificationOptions);
}

@@ -944,2 +944,13 @@ async PlayNextNotification(originalState, havePlayed) {

/**
* Set relative group volume, shortcut to .Coordinator.GroupRenderingControlService.SetRelativeGroupVolume({ InstanceID: 0, Adjustment: volumeAdjustment })
*
* @param {number} volumeAdjustment the adjustment, positive or negative
* @returns {Promise<number>}
* @memberof SonosDevice
*/
async SetRelativeGroupVolume(volumeAdjustment) {
return await this.Coordinator.GroupRenderingControlService.SetRelativeGroupVolume({ InstanceID: 0, Adjustment: volumeAdjustment })
.then((response) => response.NewVolume);
}
/**
* Set relative volume, shortcut to .RenderingControlService.SetRelativeVolume({ InstanceID: 0, Channel: 'Master', Adjustment: volumeAdjustment })

@@ -946,0 +957,0 @@ *

2

package.json
{
"name": "@svrooij/sonos",
"version": "2.4.1-beta.3",
"version": "2.4.1-beta.4",
"description": "A node library to control your sonos devices, written in typescript",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc